/* ============================================
   Pan de Alex — Premium Dark Luxury Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0F0A0B;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #722F37, #D4AF37);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #8B3A42, #E5C158);
}

/* Selection */
::selection {
    background: rgba(114, 47, 55, 0.6);
    color: #FADADD;
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#navbar.scrolled {
    background: rgba(15, 10, 11, 0.95) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37, #E5C158);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

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

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

.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #D4AF37, #E5C158);
    margin: 4px auto 0;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 60%;
}

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

/* Menu Button Animation */
#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: 20px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-content {
    animation: fadeInUp 1s ease forwards;
}

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

/* ============================================
   Menu Cards
   ============================================ */
.menu-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(114, 47, 55, 0.15);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    height: 250px;
    cursor: pointer;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(5) {
    height: 300px;
}

/* ============================================
   Scroll Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    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; }

/* ============================================
   Gold Accent Line Animation
   ============================================ */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.text-shimmer {
    background: linear-gradient(90deg, #D4AF37, #F5D76E, #D4AF37);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* ============================================
   Input Focus Effects
   ============================================ */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .gallery-item {
        height: 200px;
    }
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(5) {
        height: 200px;
    }
}
