/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: #e05228;
    color: #FDF8F0;
}

/* Navbar */
.navbar-scrolled .nav-logo {
    color: #1A1410;
}

.navbar-scrolled .nav-link {
    color: #1A1410 / 0.7;
}

/* Hamburger Animation */
#menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

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

/* Hero Animations */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards 0.2s;
}

.hero-title {
    animation: slideUp 0.8s ease forwards 0.4s;
}

.hero-desc {
    animation: slideUp 0.8s ease forwards 0.6s;
}

.hero-cta {
    animation: slideUp 0.8s ease forwards 0.8s;
}

.hero-image-wrapper {
    animation: fadeInScale 1s ease forwards 0.3s;
    opacity: 0;
}

.hero-image-accent {
    animation: pulse 4s ease-in-out infinite;
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Divider */
.divider-line {
    animation: expandLine 1s ease forwards;
}

@keyframes expandLine {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

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

.reveal-hidden {
    opacity: 0;
    transform: translateY(32px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-hidden {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
}

/* Menu Items */
.menu-item {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(26, 20, 16, 0.08);
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-item:hover h3 {
    color: #e05228;
    transition: color 0.3s ease;
}

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

.gallery-item:hover .overflow-hidden img {
    transform: scale(1.1);
}

/* About Images */
.about-img-secondary {
    border: 4px solid #FDF8F0;
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Smooth Scroll Offset for Fixed Nav */
section[id] {
    scroll-margin-top: 80px;
}

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

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

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

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

/* Focus Styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #e05228;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Mobile Menu Overlay */
#mobile-menu {
    backdrop-filter: blur(8px);
    background: rgba(253, 248, 240, 0.97);
}

/* Loading State for Images */
img {
    background-color: #fce4d9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        max-width: 100%;
    }
    
    .about-img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        height: 200px;
        margin-top: 1rem;
    }
    
    .about-images-grid {
        display: flex;
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    nav, #mobile-menu, .gallery-item img {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
