/* Custom styles for The Purple Indian */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1F0B2A;
}
::-webkit-scrollbar-thumb {
    background: #4A1A5E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6B2F6F;
}

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}
.card-2 {
    animation-delay: -2s;
}
.card-3 {
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Menu card hover effects */
.menu-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(212, 160, 23, 0.15);
}

/* Gallery item hover */
.gallery-item {
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(31, 11, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
.mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.5s; }

/* Hero text reveal animation */
.hero-text {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.hero-text:nth-child(1) { animation-delay: 0.2s; }
.hero-text:nth-child(2) { animation-delay: 0.4s; }
.hero-text:nth-child(3) { animation-delay: 0.6s; }
.hero-text:nth-child(4) { animation-delay: 0.8s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle at 1px 1px, rgba(212, 160, 23, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Pulse animation for live indicator */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}
.pulse-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-ring 1.5s ease-out infinite;
}

/* Decorative gradient orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}
.btn-ripple::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}
.btn-ripple:hover::after {
    opacity: 1;
}

/* Loading state for images */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Print styles */
@media print {
    nav, .floating-card, .gallery-item {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
