/* ============================================
   Java Hut — Premium Dark Luxury Styles
   ============================================ */

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

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

body {
    background-color: #040B16;
    color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4AF37, #AA820C);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #F2D372, #D4AF37);
}

/* Selection */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #FDF9EF;
}

/* Gold Shimmer Animation for CTA buttons */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Reveal Animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger children */
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* Navbar */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(4, 11, 22, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 175, 55, 0.1);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #D4AF37, #F2D372);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #F2D372;
}

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

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

.mobile-link {
    position: relative;
}

/* Menu toggle animation */
.menu-line {
    display: block;
}

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

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

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

/* Gold decorative lines in hero */
.gold-line-deco {
    animation: goldPulse 4s ease-in-out infinite;
}

.gold-line-deco:nth-child(2) {
    animation-delay: 1s;
}

.gold-line-deco:nth-child(3) {
    animation-delay: 2s;
}

@keyframes goldPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Image hover zoom wrapper */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Form inputs */
input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

input:focus,
textarea:focus {
    background: rgba(10, 22, 40, 0.8);
}

/* Map filter override */
iframe[src*="google.com/maps"] {
    filter: grayscale(80%) invert(92%) contrast(85%) brightness(0.9);
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #D4AF37 0%, #F2D372 50%, #AA820C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effect */
.reveal > div {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Loading state for images */
img {
    background: linear-gradient(135deg, #0A1628 0%, #0F2035 100%);
    min-height: 100px;
}
