/* ============================================
   SKY BOBA TEA — Custom Styles
   Premium Dark Luxury Design System
   ============================================ */

/* --- Custom Properties --- */
:root {
    --color-navy-950: #050a14;
    --color-navy-900: #0a1628;
    --color-navy-800: #0f1f3a;
    --color-gold-400: #e8b84a;
    --color-gold-500: #d4a853;
    --color-gold-600: #b8923f;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #f0d078;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-navy-950);
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 83, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 168, 83, 0.5);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--color-gold-400), var(--color-gold-600));
    transition: width 0.3s var(--ease-out-expo);
}

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

.nav-link:hover {
    color: var(--color-gold-400) !important;
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(5, 10, 20, 0.9) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 83, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

.mobile-menu-link::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold-400), transparent);
    transition: width 0.3s var(--ease-out-expo);
}

.mobile-menu-link:hover::before {
    width: 12px;
}

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

/* Hamburger animation */
.menu-line {
    transition: all 0.4s var(--ease-out-expo);
}

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

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

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

/* --- Hero Section --- */
/* Hero entrance animations - run once on load */
.hero-badge {
    animation: slideUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero-title {
    animation: slideUp 0.8s var(--ease-out-expo) 0.4s forwards;
}

.hero-subtitle {
    animation: slideUp 0.8s var(--ease-out-expo) 0.6s forwards;
}

.hero-cta {
    animation: slideUp 0.8s var(--ease-out-expo) 0.8s forwards;
}

.hero-stats {
    animation: slideUp 0.8s var(--ease-out-expo) 1s forwards;
}

.hero-image {
    animation: slideLeft 1s var(--ease-out-expo) 0.5s forwards;
}

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

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating orbs animation */
.orb-1 {
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    animation: float 10s ease-in-out infinite reverse;
}

.orb-3 {
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(20px, -20px) scale(1.05);
    }
    66% {
        transform: translate(-10px, 15px) scale(0.95);
    }
}

/* --- Reveal Animations (scroll-triggered, progressive enhancement) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

/* Default visible state for reduced motion / no-JS */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Button Hover Effects --- */
a[href="#menu"], a[href="#about"], a[href="#craft"], a[href="#visit"], a[href="#contact"] {
    text-decoration: none;
}

/* --- Card Hover Effects --- */
.group:hover .group-hover\:text-gold-500\/10 {
    transition: color 0.5s ease;
}

/* --- Gold Gradient Text Utility --- */
.text-gradient-gold {
    background: linear-gradient(135deg, #f0d078, #d4a853, #b8923f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Image Hover Zoom --- */
img {
    transition: transform 0.6s var(--ease-out-expo);
}

/* --- Section Dividers --- */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.3), transparent);
}

/* --- Input Focus Styles --- */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(212, 168, 83, 0.3);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero-orb {
        display: none;
    }
    
    /* On mobile, show hero images immediately */
    .hero-image {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .hero-stats {
        animation-delay: 0.1s !important;
    }
}

@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}

/* --- Print Styles --- */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
