/* ============================================
   J Chan Restaurant — Custom Styles
   ============================================ */

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

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

body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    overflow-x: hidden;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
}

.geo-circle-1 {
    top: 15%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: #14b8a6;
    border-radius: 50%;
}

.geo-circle-2 {
    bottom: 20%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: #0d9488;
    border-radius: 50%;
}

.geo-triangle {
    top: 40%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #14b8a6;
    opacity: 0.04;
}

.geo-rect-1 {
    top: 60%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: #0d9488;
    transform: rotate(45deg);
    opacity: 0.04;
}

.geo-circle-3 {
    bottom: 10%;
    right: 30%;
    width: 200px;
    height: 200px;
    background: #2dd4bf;
    border-radius: 50%;
    opacity: 0.03;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.nav-scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
}

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

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

#navbar.nav-scrolled .nav-logo-text {
    color: #0f172a;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-menu-link:hover {
    color: #0d9488;
    transform: translateX(8px);
}

/* Mobile menu button animation */
.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background-color: #14b8a6;
    color: white;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ============================================
   Image Placeholder Fallback
   ============================================ */
img {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}
