/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Navbar Styles */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-logo-text {
    transition: color 0.4s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
    color: #fff;
}

#navbar.scrolled .nav-logo-text {
    color: #1a1a1a;
}

.nav-link {
    position: relative;
}

#navbar:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

#navbar:not(.scrolled) .nav-link:hover {
    color: #ff7a52;
}

#navbar.scrolled .nav-link {
    color: #4a4a4a;
}

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

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

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

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

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

#mobile-menu .menu-line.active:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

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

.hero-badge {
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.3s;
}

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

.hero-badge {
    opacity: 0;
    transform: translateY(20px);
}

h1, h1 .italic {
    opacity: 0;
    transform: translateY(30px);
}

h1 {
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.5s;
}

h1 .italic {
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.65s;
}

p {
    opacity: 0;
    transform: translateY(20px);
}

p {
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.8s;
}

/* CTA Buttons */
.hero-cta {
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.95s;
}

/* Stats */
.hero-stats {
    opacity: 0;
    transform: translateY(20px);
}

.hero-stats {
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 1.1s;
}

/* Scroll Reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-badge, h1, p, .hero-cta, .hero-stats {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Menu Tabs */
.menu-tab {
    background: transparent;
    color: #4a4a4a;
    border: none;
    cursor: pointer;
}

.menu-tab.active {
    background: #ff5a2e;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 90, 46, 0.3);
}

.menu-tab:not(.active):hover {
    background: #f6f6f6;
}

.menu-content {
    display: block;
    animation: menuFadeIn 0.4s ease;
}

.menu-content.hidden {
    display: none;
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf8f0;
}

::-webkit-scrollbar-thumb {
    background: #e6e6e6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cccccc;
}

/* Selection */
::selection {
    background: #ffd0b8;
    color: #1a1a1a;
}
