/* ============================================
   KIN DEE THAI EATERY — Custom Styles
   Classic & Elegant | Deep Navy + Warm Gold
============================================ */

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

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

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #0d1129;
}

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

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

/* ============================================
   NAVIGATION
============================================ */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(7, 9, 22, 0.95);
    backdrop-filter: blur(20px);
    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: 1px;
    background: #d4a017;
    transition: width 0.3s ease;
}

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

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

/* ============================================
   MOBILE MENU
============================================ */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    font-size: 1.25rem;
    letter-spacing: 0.2em;
}

.mobile-link:hover {
    color: #e9bf40 !important;
}

/* Hamburger Animation */
.menu-line {
    transition: all 0.3s ease;
}

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

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

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

/* ============================================
   HERO SECTION
============================================ */
#hero {
    position: relative;
}

/* Floating animation for hero image card */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

#hero .relative.w-\[480px\] {
    animation: float 6s ease-in-out infinite;
}

/* ============================================
   REVEAL ANIMATIONS (below the fold only)
============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MENU SECTION
============================================ */
#menu .group:hover .w-10 {
    transform: scale(1.1);
}

/* ============================================
   CARDS
============================================ */
.group {
    transition: all 0.3s ease;
}

/* ============================================
   BUTTONS
============================================ */
a {
    text-decoration: none;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    #hero .relative.w-\[480px\] {
        display: none;
    }
}

@media (max-width: 768px) {
    .font-serif {
        font-family: 'Playfair Display', Georgia, serif;
    }
    
    .font-sans {
        font-family: 'Lato', 'Helvetica Neue', sans-serif;
    }
}

/* ============================================
   ACCESSIBILITY
============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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