/* ===== CUSTOM STYLES FOR DIPALEE LOUNGE ===== */

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0B0B0B;
}
::-webkit-scrollbar-thumb {
    background: #C8A96B;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E8D5A3;
}

/* Hide horizontal scrollbar for carousel */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Selection */
::selection {
    background: #C8A96B;
    color: #0B0B0B;
}

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

/* ===== LOADER ===== */
#loader {
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.loaded {
    opacity: 0;
    visibility: hidden;
}
.loader-logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.loader-ornament {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 1px solid #C8A96B;
}
.loader-ornament.top-left {
    top: -15px;
    left: -15px;
    border-right: none;
    border-bottom: none;
    animation: ornamentPulse 2s ease-in-out infinite;
}
.loader-ornament.top-right {
    top: -15px;
    right: -15px;
    border-left: none;
    border-bottom: none;
    animation: ornamentPulse 2s ease-in-out infinite 0.5s;
}
.loader-ornament.bottom-left {
    bottom: -15px;
    left: -15px;
    border-right: none;
    border-top: none;
    animation: ornamentPulse 2s ease-in-out infinite 1s;
}
.loader-ornament.bottom-right {
    bottom: -15px;
    right: -15px;
    border-left: none;
    border-top: none;
    animation: ornamentPulse 2s ease-in-out infinite 1.5s;
}
.loader-bar {
    width: 200px;
    height: 1px;
    background: rgba(200, 169, 107, 0.2);
    overflow: hidden;
    border-radius: 1px;
}
.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, #9A7B3F, #C8A96B, #E8D5A3);
    width: 0%;
    animation: loaderProgress 2.5s ease-in-out forwards;
}

@keyframes loaderProgress {
    0% { width: 0%; }
    60% { width: 70%; }
    100% { width: 100%; }
}

@keyframes ornamentPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Scroll line animation */
@keyframes scrollLine {
    0% { transform: translateY(-16px); }
    100% { transform: translateY(48px); }
}
.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* Pulse animations */
@keyframes pulseSlow {
    0%, 100% { opacity: 0.05; transform: scale(1); }
    50% { opacity: 0.15; transform: scale(1.05); }
}
.animate-pulse-slow {
    animation: pulseSlow 4s ease-in-out infinite;
}
.animate-pulse-slow2 {
    animation: pulseSlow 4s ease-in-out infinite 2s;
}

/* Floating particles */
@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}
.floating-particle {
    animation: floatParticle 8s ease-in-out infinite;
}

/* ===== NAVBAR ===== */
.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.6);
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.4s ease;
    text-decoration: none;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #C8A96B;
    transition: width 0.4s ease;
}
.nav-link:hover,
.nav-link.active {
    color: #C8A96B;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.navbar-scrolled {
    background: rgba(11, 11, 11, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(200, 169, 107, 0.1) !important;
}
.navbar-scrolled .nav-inner {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

/* ===== MENU TABS ===== */
.menu-tab {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.5);
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(200, 169, 107, 0.15);
    border-radius: 9999px;
    transition: all 0.4s ease;
    cursor: pointer;
    background: transparent;
    white-space: nowrap;
}
.menu-tab:hover {
    color: #C8A96B;
    border-color: rgba(200, 169, 107, 0.4);
    background: rgba(200, 169, 107, 0.05);
}
.menu-tab.active {
    color: #0B0B0B;
    background: linear-gradient(to right, #9A7B3F, #C8A96B);
    border-color: transparent;
}

/* Menu items animation */
.menu-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.menu-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FORM INPUTS ===== */
.form-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C8A96B;
    margin-bottom: 0.5rem;
    display: block;
}
.form-input {
    width: 100%;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(200, 169, 107, 0.15);
    border-radius: 0.75rem;
    padding: 0.85rem 1.2rem;
    color: #F5F0E8;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    outline: none;
}
.form-input:focus {
    border-color: #C8A96B;
    box-shadow: 0 0 0 3px rgba(200, 169, 107, 0.1), 0 0 20px rgba(200, 169, 107, 0.05);
    background: rgba(26, 26, 26, 0.9);
}
.form-input::placeholder {
    color: rgba(245, 240, 232, 0.25);
}

/* Select styling */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C8A96B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
select.form-input option {
    background: #1A1A1A;
    color: #F5F0E8;
}

/* Date input styling */
input[type="date"].form-input {
    color-scheme: dark;
}

/* ===== FADE UP ANIMATION ===== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HERO REVEAL ===== */
.hero-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* ===== STEAM EFFECT ===== */
.steam-container {
    width: 40px;
    height: 60px;
}
.steam {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(200, 169, 107, 0.3);
    border-radius: 50%;
    filter: blur(3px);
    animation: steamRise 2s ease-in-out infinite;
}
.steam-1 { left: 5px; animation-delay: 0s; }
.steam-2 { left: 15px; animation-delay: 0.5s; }
.steam-3 { left: 25px; animation-delay: 1s; }

@keyframes steamRise {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    15% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(1.5) translateX(10px);
    }
}

/* ===== SOCIAL ICON HOVER ===== */
.social-icon {
    position: relative;
    overflow: hidden;
}
.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(200, 169, 107, 0.2);
    transition: width 0.4s ease, height 0.4s ease;
    transform: translate(-50%, -50%);
}
.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

/* ===== MOBILE MENU ===== */
#mobileMenu.active {
    opacity: 1;
    pointer-events: all;
}
#mobileMenu .mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}
#mobileMenu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
#mobileMenu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }
#mobileMenu.active .mobile-link:nth-child(6) { transition-delay: 0.35s; }
#mobileMenu.active .mobile-link:nth-child(7) { transition-delay: 0.4s; }

/* Menu toggle animation */
#menuToggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
    width: 24px;
}
#menuToggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuToggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 24px;
}

/* ===== MAGNETIC BUTTON ===== */
.magnetic-btn {
    position: relative;
    transition: transform 0.3s ease;
}

/* ===== SUCCESS MODAL ===== */
#successModal.active {
    opacity: 1;
    pointer-events: all;
}
#successModal.active > div {
    transform: scale(1);
}

/* ===== COUNTER ANIMATION ===== */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 768px) {
    .menu-tab {
        font-size: 0.65rem;
        padding: 0.5rem 0.8rem;
    }
    
    #smartCursor {
        display: none !important;
    }
}

/* ===== LINE CLAMP ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== REVIEW CARDS ===== */
.review-card {
    transition: transform 0.3s ease;
}
.review-card:hover {
    transform: translateY(-4px);
}

/* ===== GALLERY HOVER ===== */
.gallery-item::after {
    content: attr(data-caption);
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #C8A96B;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* Load animation for page */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}
body.loaded {
    opacity: 1;
}