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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(255, 112, 46, 0.3);
    color: #fff;
}

/* Hero Animations */
.hero-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subheadline {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-ctas {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Cards */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.revealed {
    animation: fadeUp 0.6s ease forwards;
}

.feature-card:nth-child(1).revealed { animation-delay: 0.1s; }
.feature-card:nth-child(2).revealed { animation-delay: 0.2s; }
.feature-card:nth-child(3).revealed { animation-delay: 0.3s; }

/* Menu Items */
.menu-item {
    opacity: 0;
    transform: translateY(20px);
}

.menu-item.revealed {
    animation: fadeUp 0.5s ease forwards;
}

.menu-category:nth-child(1) .menu-item.revealed { animation-delay: 0.1s; }
.menu-category:nth-child(1) .menu-item.revealed:nth-child(1) { animation-delay: 0.1s; }
.menu-category:nth-child(1) .menu-item.revealed:nth-child(2) { animation-delay: 0.2s; }
.menu-category:nth-child(1) .menu-item.revealed:nth-child(3) { animation-delay: 0.3s; }
.menu-category:nth-child(1) .menu-item.revealed:nth-child(4) { animation-delay: 0.4s; }
.menu-category:nth-child(2) .menu-item.revealed { animation-delay: 0.1s; }
.menu-category:nth-child(2) .menu-item.revealed:nth-child(1) { animation-delay: 0.1s; }
.menu-category:nth-child(2) .menu-item.revealed:nth-child(2) { animation-delay: 0.2s; }
.menu-category:nth-child(2) .menu-item.revealed:nth-child(3) { animation-delay: 0.3s; }
.menu-category:nth-child(2) .menu-item.revealed:nth-child(4) { animation-delay: 0.4s; }

/* Gallery */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
}

.gallery-item.revealed {
    animation: scaleIn 0.6s ease forwards;
}

.gallery-item:nth-child(1).revealed { animation-delay: 0.1s; }
.gallery-item:nth-child(2).revealed { animation-delay: 0.2s; }
.gallery-item:nth-child(3).revealed { animation-delay: 0.3s; }
.gallery-item:nth-child(4).revealed { animation-delay: 0.4s; }
.gallery-item:nth-child(5).revealed { animation-delay: 0.5s; }
.gallery-item:nth-child(6).revealed { animation-delay: 0.6s; }

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gallery Image Hover */
.gallery-item {
    cursor: pointer;
}

.gallery-img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Navbar */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .menu-line {
    background: #fff;
}

/* Mobile Menu */
.mobile-menu-open #mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

.mobile-link {
    opacity: 0;
    transform: translateY(15px);
}

.mobile-menu-open .mobile-link {
    animation: fadeUp 0.4s ease forwards;
}

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

/* Section Labels */
.section-label {
    opacity: 0;
    transform: translateY(15px);
}

.section-label.revealed {
    animation: fadeUp 0.5s ease forwards;
}

.section-title {
    opacity: 0;
    transform: translateY(20px);
}

.section-title.revealed {
    animation: fadeUp 0.6s ease forwards;
}

.section-desc {
    opacity: 0;
    transform: translateY(15px);
}

.section-desc.revealed {
    animation: fadeUp 0.5s ease forwards;
}

/* About Section */
.about-image {
    opacity: 0;
    transform: translateX(-30px);
}

.about-image.revealed {
    animation: slideRight 0.7s ease forwards;
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
}

.about-content.revealed {
    animation: slideLeft 0.7s ease forwards;
}

@keyframes slideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 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;
    }
    
    .hero-eyebrow,
    .hero-headline,
    .hero-subheadline,
    .hero-ctas {
        opacity: 1;
        transform: none;
    }
}
