/* ============================================
   KRAVE SNACK BAR — Custom Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #0d1321;
    color: #ffffff;
}

/* ============================================
   DECORATIVE BACKGROUND SHAPES
   ============================================ */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.deco-circle--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.06) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.deco-circle--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.04) 0%, transparent 70%);
    bottom: 20%;
    left: -100px;
}

.deco-circle--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(92, 124, 250, 0.08) 0%, transparent 70%);
    top: 50%;
    right: 10%;
}

.deco-rect {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.deco-rect--1 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(74, 222, 128, 0.08);
    border-radius: 24px;
    transform: rotate(45deg);
    top: 60%;
    left: 5%;
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    background: rgba(13, 19, 33, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled {
    background: rgba(13, 19, 33, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4ade80;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #4ade80 !important;
}

/* Hamburger */
#menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 60;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

#menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 19, 33, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 55;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-item {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 16px 0;
    transition: color 0.2s ease;
    transform: translateY(20px);
    opacity: 0;
}

.mobile-menu.open .mobile-menu-item {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.open .mobile-menu-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-item:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-item:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-item:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu-item:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-menu-item:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu-item:hover {
    color: #4ade80;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #0d1321;
    border: none;
    border-radius: 9999px;
    padding: 14px 28px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 222, 128, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 14px 28px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(74, 222, 128, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.input-field {
    background: rgba(26, 39, 68, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 18px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-field:focus {
    border-color: rgba(74, 222, 128, 0.5);
    background: rgba(26, 39, 68, 0.8);
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

.input-field option {
    background: #1a2744;
    color: #ffffff;
}

/* ============================================
   MENU CARDS
   ============================================ */
.menu-card {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.menu-card.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.menu-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    overflow: hidden;
    border-radius: 16px;
}

.gallery-item img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ============================================
   FLOATING CARD
   ============================================ */
.floating-card {
    position: absolute;
    z-index: 10;
}

.card--1 {
    bottom: 40px;
    left: -30px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: rgba(74, 222, 128, 0.6);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .deco-circle--1 {
        width: 300px;
        height: 300px;
    }
    
    .deco-circle--2 {
        width: 200px;
        height: 200px;
    }
    
    .deco-circle--3 {
        display: none;
    }
    
    .deco-rect--1 {
        width: 100px;
        height: 100px;
    }
    
    .floating-card.card--1 {
        left: 10px;
        bottom: 20px;
    }
    
    #hero h1 {
        font-size: 2.75rem;
    }
    
    .menu-card {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
    
    .section-padding {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .floating-card {
        animation: none;
    }
    
    .scroll-dot {
        animation: none;
        opacity: 0.6;
    }
    
    .gallery-item img {
        transition: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
}
