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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 165, 116, 0.3);
    color: #060E1B;
}

/* === Hero Background === */
.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/3794743/pexels-photo-3794743.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6, 14, 40, 0.7) 0%,
        rgba(6, 14, 40, 0.55) 40%,
        rgba(6, 14, 40, 0.75) 100%
    );
}

/* === Scroll Indicator === */
.scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    border-color: rgba(232, 196, 138, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* === Navbar === */
.nav-link {
    position: relative;
}

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

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

.navbar-scrolled {
    background: rgba(3, 7, 18, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar-transparent {
    background: transparent !important;
    backdrop-filter: none !important;
}

/* === Mobile Menu === */
.mobile-link {
    position: relative;
}

/* === Feature Cards === */
.feature-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

/* === Menu Cards === */
.menu-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-2px);
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .hero-bg-img {
        animation: none;
        transform: scale(1);
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
    
    .menu-card:hover {
        transform: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* === Gallery Hover === */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* === Button Focus === */
a:focus-visible, button:focus-visible {
    outline: 2px solid #E8C48A;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

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

/* === Contact Form === */
.contact-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-input:focus {
    border-color: #D4A574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

/* === Toast === */
.toast {
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-out {
    animation: toastOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-bg-img {
        background-position: center center;
    }
}
