/* ============================================
   PsychHaus — Premium Dark Luxury Hotel
   Custom Styles & Animations
   ============================================ */

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0a0f;
}
::-webkit-scrollbar-thumb {
    background: #4a2844;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8b4d85;
}

/* --- Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
}

/* --- Base Typography --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Navigation --- */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: #f59e0b;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* --- Navbar Scrolled State --- */
.navbar-scrolled {
    background: rgba(13, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(74, 40, 68, 0.3);
}

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

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

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

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .scroll-reveal {
        /* Content is always visible — no animation */
    }
}

/* --- Hero Badge Pulse --- */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
    }
}

.hero-badge {
    animation: pulse-glow 2.5s ease-in-out infinite;
}

/* --- Gold Shimmer Effect on Hover --- */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.text-shimmer:hover {
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706, #f59e0b, #fbbf24);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* --- Card Hover Glow --- */
.glow-on-hover:hover {
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
}

/* --- Decorative Line Animation --- */
@keyframes grow-line {
    from {
        height: 0;
    }
    to {
        height: 12rem;
    }
}

/* --- Focus Styles --- */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* --- Selection Color --- */
::selection {
    background: rgba(139, 77, 133, 0.5);
    color: #f5f0f7;
}

/* --- Image Loading Placeholder --- */
img {
    background: linear-gradient(135deg, #1f0f1a 0%, #381f34 100%);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .hero-badge {
        animation: none;
    }
}

/* --- Print Styles --- */
@media print {
    .scroll-reveal,
    .hero-badge {
        animation: none !important;
        opacity: 1 !important;
    }
}
