/* Captain Hook's Jingle Factory - Custom Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: content-box;
}

:root {
    --purple: #7c14d7;
    --gold: #FFD700;
    --green: #007b1d;
    --dark-purple: #4C1D95;
    --dark-gold: #F59E0B;
}

/* Navigation Styles */
.nav-backdrop {
    background: linear-gradient(180deg, 
        rgba(15, 23, 42, 0.98) 0%, 
        rgba(88, 28, 135, 0.95) 50%,
        rgba(15, 23, 42, 0.98) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mainNav.scrolled .nav-backdrop {
    opacity: 1;
}

#mainNav.nav-hidden {
    pointer-events: none;
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--purple), var(--green));
    transition: width 0.3s ease;
}

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

/* Hero Section Styles */
.hero-gradient-background {
    position: absolute;
    inset: 0;
    background: radial-gradient(135deg, 
        #fff30b 30%, 
        #581C87 60%, 
        #0F172A 100%, 
        #145f0c 75%, 
        #0F172A 60%);
    opacity: 0.8;
}

.hero-gradient-overlay {
    background: radial-gradient(ellipse at center, 
        transparent 0%, 
        rgba(15, 23, 42, 0.5) 100%);
}

/* Captain Image Styles */
.captain-container {
    margin-top: 4rem;
    margin-bottom: 2rem;
    position: relative;
    transform-origin: center bottom;
}

.captain-image {
    width: auto;
    height: 90vh !important;
    max-width: 95vw;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5))
            drop-shadow(0 0 60px rgba(123, 44, 191, 0.3))
            drop-shadow(0 0 90px rgba(16, 185, 129, 0.2));
    transform-origin: center bottom;
}


/* Pop-in animation for captain on load */

@keyframes captainPop {
    0% {
        transform: scale(0.88);
        opacity: 0;
        filter: saturate(0.9) brightness(0.95);
    }
    60% {
        transform: scale(1.08);
        opacity: 1;
        filter: saturate(1.15) brightness(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        filter: saturate(1) brightness(1);
    }
}

@keyframes captainPopStrong {
    0% {
        transform: translateY(24px) scale(0.82);
        opacity: 0;
        filter: saturate(0.9) brightness(0.95);
    }
    50% {
        transform: translateY(-8px) scale(1.12);
        opacity: 1;
        filter: saturate(1.2) brightness(1.08);
    }
    75% {
        transform: translateY(4px) scale(1.03);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: saturate(1) brightness(1);
    }
}

/* Glow burst on the captain image */
.captain-glow-burst {
    animation: goldenShimmer 1.8s ease-out 1;
}


/* Particle Effects */

.particle-container {
    position: relative;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, #FFD700, transparent),
        radial-gradient(2px 2px at 60% 70%, #7B2CBF, transparent),
        radial-gradient(1px 1px at 50% 50%, #10B981, transparent);
    background-size: 200% 200%;
    animation: particleFloat 20s linear infinite;
    overflow: hidden;
}

/* Water bubble effects */
.water-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(135, 206, 235, 0.2) 50%, transparent 100%);
    border-radius: 50%;
    animation: bubbleFloat 8s infinite ease-in-out;
    opacity: 0;
}

.bubble:nth-child(1) {
    width: 20px;
    height: 20px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.bubble:nth-child(2) {
    width: 15px;
    height: 15px;
    left: 25%;
    animation-delay: 1s;
    animation-duration: 8s;
}

.bubble:nth-child(3) {
    width: 25px;
    height: 25px;
    left: 45%;
    animation-delay: 2s;
    animation-duration: 7s;
}

.bubble:nth-child(4) {
    width: 12px;
    height: 12px;
    left: 65%;
    animation-delay: 3s;
    animation-duration: 9s;
}

.bubble:nth-child(5) {
    width: 18px;
    height: 18px;
    left: 80%;
    animation-delay: 4s;
    animation-duration: 6.5s;
}

.bubble:nth-child(6) {
    width: 22px;
    height: 22px;
    left: 15%;
    animation-delay: 5s;
    animation-duration: 8.5s;
}

.bubble:nth-child(7) {
    width: 14px;
    height: 14px;
    left: 35%;
    animation-delay: 6s;
    animation-duration: 7.5s;
}

.bubble:nth-child(8) {
    width: 16px;
    height: 16px;
    left: 55%;
    animation-delay: 1.5s;
    animation-duration: 8.2s;
}

.bubble:nth-child(9) {
    width: 20px;
    height: 20px;
    left: 75%;
    animation-delay: 2.5s;
    animation-duration: 6.8s;
}

.bubble:nth-child(10) {
    width: 13px;
    height: 13px;
    left: 90%;
    animation-delay: 3.5s;
    animation-duration: 9.2s;
}

/* Underwater distortion effect */
.underwater-distortion {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(135, 206, 235, 0.1) 50%,
        transparent 60%
    );
    background-size: 30px 30px;
    animation: waterDistortion 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

/* Light rays effect */
.light-rays {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 120%;
    background: linear-gradient(
        to bottom,
        rgba(212, 255, 0, 0.171) 0%,
        transparent 30%,
        transparent 70%,
        rgba(135, 206, 235, 0.05) 100%
    );
    background-size: 100% 100%;
    animation: lightRays 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

/* Service Cards */
.service-card {
    background: linear-gradient(135deg, 
        rgba(28, 46, 88, 0.9) 0%, 
        rgba(88, 28, 135, 0.2) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
}

/* Audio Player Styles */
.audio-player {
    background: linear-gradient(135deg, 
        rgba(123, 44, 191, 0.1) 0%, 
        rgba(16, 185, 129, 0.1) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.audio-player::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, rgba(#fff30b), rgba(rgb(62, 0, 128)), rgba(rgb(1, 96, 1)));
    border-radius: 1rem;
    z-index: -1;
    opacity: 0.5;
   
}

.soundwave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 60px;
    animation: shimmer 3s linear infinite;
}

.soundwave-bar {
    width: 6px;
    background: linear-gradient(180deg, #FFD700, #7B2CBF, #00A86B); /* Mardi Gras gold, purple, green */
    animation: wave 1.2s ease-in-out infinite;
    animation-play-state: running; /* JS will pause/resume */
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.soundwave-bar:nth-child(2) { animation-delay: 0.1s; }
.soundwave-bar:nth-child(3) { animation-delay: 0.2s; }
.soundwave-bar:nth-child(4) { animation-delay: 0.3s; }
.soundwave-bar:nth-child(5) { animation-delay: 0.4s; }
.soundwave-bar:nth-child(6) { animation-delay: 0.5s; }
.soundwave-bar:nth-child(7) { animation-delay: 0.6s; }
.soundwave-bar:nth-child(8) { animation-delay: 0.7s; }
.soundwave-bar:nth-child(9) { animation-delay: 0.8s; }
.soundwave-bar:nth-child(10) { animation-delay: 0.9s; }
.soundwave-bar:nth-child(11) { animation-delay: 1s; }
.soundwave-bar:nth-child(12) { animation-delay: 1.1s; }
.soundwave-bar:nth-child(13) { animation-delay: 1.2s; }
.soundwave-bar:nth-child(14) { animation-delay: 1.3s; }
.soundwave-bar:nth-child(15) { animation-delay: 1.4s; }
.soundwave-bar:nth-child(16) { animation-delay: 1.5s; }

/* Animation Classes */
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-600 { animation-delay: 0.6s; }
.animation-delay-800 { animation-delay: 0.8s; }
.animation-delay-1000 { animation-delay: 1s; }

/* Mobile Menu */
.mobile-menu-open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Mobile Menu Default State - ensure proper positioning */
#mobileMenu {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    height: auto;
    max-height: 100vh;
    overflow-y: auto;
}

/* Ensure mobile menu shows above other elements */
#mobileMenu.mobile-menu-open {
    z-index: 60;
    position: fixed;
    top: 100%;
}

/* Mobile menu backdrop */
#mobileMenu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    z-index: -1;
}

/* Additional mobile menu fixes */
@media (max-width: 1023px) {
    #mobileMenu {
        left: 0;
        right: 0;
        width: 100vw;
        min-height: 50vh;
    }
    
    #mobileMenu.mobile-menu-open {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        position: fixed !important;
        top: 100% !important;
        z-index: 60 !important;
    }
    
    /* Ensure mobile menu button is functional */
    #mobileMenuBtn {
        z-index: 61;
        position: relative;
    }
    
    /* Hide desktop nav on mobile */
    .hidden.lg\:flex {
        display: none !important;
    }
}

/* Menu Lines */
.menu-line-1 { top: 8px; }
.menu-line-2 { top: 16px; }
.menu-line-3 { top: 24px; }

.menu-open .menu-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line-2 {
    opacity: 0;
}

.menu-open .menu-line-3 {
    transform: rotate(-45deg) translate(7px, -8px);
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading overlay */
.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Enhanced Loading Animations */
/* Sparkling Stars Background */
.stars-container {
    background-image:
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(2px 2px at 15% 90%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Flying Fairy Animation */
.fairy-container {
    animation: fairyFly 6s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    z-index: 10;
}

.fairy {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8))
            drop-shadow(0 0 20px rgba(255, 215, 0, 0.6))
            drop-shadow(0 0 30px rgba(255, 215, 0, 0.4));
    animation: fairySpin 2s linear infinite, fairyGlow 1.5s ease-in-out infinite;
}

@keyframes fairyFly {
    0% {
        left: -5%;
        top: 20%;
        transform: scale(1) rotate(0deg);
    }
    12% {
        left: 20%;
        top: 10%;
        transform: scale(1.1) rotate(15deg);
    }
    25% {
        left: 45%;
        top: 25%;
        transform: scale(1) rotate(-10deg);
    }
    37% {
        left: 70%;
        top: 15%;
        transform: scale(1.1) rotate(20deg);
    }
    50% {
        left: 85%;
        top: 35%;
        transform: scale(1) rotate(-15deg);
    }
    62% {
        left: 65%;
        top: 55%;
        transform: scale(1.1) rotate(10deg);
    }
    75% {
        left: 35%;
        top: 45%;
        transform: scale(1) rotate(-20deg);
    }
    87% {
        left: 10%;
        top: 30%;
        transform: scale(1.1) rotate(15deg);
    }
    100% {
        left: -5%;
        top: 20%;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes fairySpin {
    0%, 100% { transform: rotate(-10deg) scale(1); }
    25% { transform: rotate(10deg) scale(1.1); }
    50% { transform: rotate(-10deg) scale(1); }
    75% { transform: rotate(10deg) scale(0.9); }
}

@keyframes fairyGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8))
                drop-shadow(0 0 20px rgba(255, 215, 0, 0.6))
                drop-shadow(0 0 30px rgba(255, 215, 0, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1))
                drop-shadow(0 0 30px rgba(255, 215, 0, 0.8))
                drop-shadow(0 0 45px rgba(255, 215, 0, 0.6));
    }
}

/* Fairy Dust Particles */
.fairy-dust {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 215, 0, 1) 0%, rgba(255, 215, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: dustFall 2s ease-out forwards;
}

@keyframes dustFall {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(100px) scale(0.3);
    }
}

/* Animated Logo */
.loading-logo {
    animation: logoHeavyDrop 1.4s cubic-bezier(0.1, 1, 0.2, 1) forwards,
               logoFloat 3s ease-in-out 1.6s infinite;
    filter: drop-shadow(0 0 20px rgba(123, 44, 191, 0.6))
            drop-shadow(0 0 40px rgba(123, 44, 191, 0.4));
    opacity: 0;
    transform: translateY(-200%) scaleY(1.2);
}

@keyframes logoHeavyDrop {
    0% {
        opacity: 0;
        transform: translateY(-200%) scaleY(1.3);
    }
    65% {
        opacity: 1;
        transform: translateY(120px) scaleY(0.75);
    }
    78% {
        transform: translateY(70px) scaleY(1.15);
    }
    90% {
        transform: translateY(90px) scaleY(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(100px) scaleY(1);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* Loading Text Animation */
.loading-text {
    animation: textFadeIn 1s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Form Inputs */
input[type="text"],
input[type="email"],
textarea {
    background-color: rgba(17, 24, 39, 0.5);
    color: white;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: rgba(156, 163, 175, 0.7);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .captain-image {
        width: auto;
        height: min(90vh, 600px);
        max-width: 95vw;
    }
    
    .floating-hook {
        width: 30px;
        height: 55px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold), var(--purple), var(--green));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--green), var(--purple), var(--gold));
}

/* Print styles */
@media print {
    .loading-overlay,
    #backToTop,
    #mobileMenuBtn {
        display: none !important;
    }
}

/* Keyframe Animations */
@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5))
                drop-shadow(0 0 60px rgba(123, 44, 191, 0.3))
                drop-shadow(0 0 90px rgba(16, 185, 129, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8))
                drop-shadow(0 0 80px rgba(123, 44, 191, 0.5))
                drop-shadow(0 0 120px rgba(16, 185, 129, 0.4));
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes shimmer {
    0% {
        filter: brightness(1) hue-rotate(0deg);
    }
    50% {
        filter: brightness(1.2) hue-rotate(180deg);
    }
    100% {
        filter: brightness(1) hue-rotate(360deg);
    }
}

@keyframes particleFloat {
    0%, 100% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
}

@keyframes wave {
    0%, 100% {
        height: 10px;
    }
    50% {
        height: 30px;
    }
}

/* Water effect animations */
@keyframes bubbleFloat {
    0% {
        bottom: -50px;
        opacity: 0;
        transform: translateX(0px) scale(0.8);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 110%;
        opacity: 0;
        transform: translateX(20px) scale(1.2);
    }
}

@keyframes waterDistortion {
    0%, 100% {
        transform: translateX(0px) skewX(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateX(-10px) skewX(2deg);
        opacity: 0.5;
    }
    50% {
        transform: translateX(5px) skewX(-1deg);
        opacity: 0.4;
    }
    75% {
        transform: translateX(-5px) skewX(1deg);
        opacity: 0.6;
    }
}

@keyframes lightRays {
    0%, 100% {
        opacity: 0.1;
        transform: rotate(0deg) scaleY(1);
    }
    50% {
        opacity: 0.3;
        transform: rotate(1deg) scaleY(1.1);
    }
}

@keyframes goldenShimmer {
    0% {
        filter: drop-shadow(0 0 15px rgba(110, 93, 0, 0.9))
                drop-shadow(0 0 30px rgba(255, 255, 0, 0.6))
                drop-shadow(0 0 45px rgba(255, 193, 7, 0.4))
                brightness(1) hue-rotate(0deg);
    }
    25% {
        filter: drop-shadow(0 0 20px rgb(123, 123, 0))
                drop-shadow(0 0 40px rgba(255, 215, 0, 0.8))
                drop-shadow(0 0 60px rgba(255, 193, 7, 0.6))
                brightness(1.3) hue-rotate(15deg);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 255, 0, 1.2))
                drop-shadow(0 0 50px rgb(133, 113, 0))
                drop-shadow(0 0 75px rgba(255, 193, 7, 0.8))
                brightness(1.5) hue-rotate(30deg);
    }
    75% {
        filter: drop-shadow(0 0 20px rgb(123, 105, 0))
                drop-shadow(0 0 40px rgba(255, 255, 0, 0.8))
                drop-shadow(0 0 60px rgba(255, 193, 7, 0.6))
                brightness(1.2) hue-rotate(15deg);
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(141, 120, 0, 0.9))
                drop-shadow(0 0 30px rgba(255, 255, 0, 0.6))
                drop-shadow(0 0 45px rgba(255, 193, 7, 0.4))
                brightness(1) hue-rotate(0deg);
    }
}

/* HANGING HOOKS FROM TOP */

.hanging-hooks-container {
    position: fixed;
    top: -120px; /* Initially hidden above screen */
    left: 0;
    right: 0;
    height: 120px; /* just enough for hooks */
    z-index: 1; /* Behind everything - decorative background element */
    pointer-events: none;
    overflow: hidden;
    transition: top 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hanging-hooks-container.hooks-visible {
    top: 0px; /* Hooks dangle from very top when nav is hidden */
}

.hanging-hooks-container.hooks-attached {
    top: 64px; /* Hooks attach to bottom of nav when nav is visible */
    z-index: 1; /* Keep behind everything even when attached */
}

.hanging-hook {
    position: absolute;
    top: 0;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: top center;
}

.top-hook {
    width: 84px;
    height: 126px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    filter: brightness(1.1) saturate(1.2) contrast(1.05) hue-rotate(-10deg)
            drop-shadow(0 0 8px rgba(255, 215, 0, 0.4))
            drop-shadow(0 0 16px rgba(255, 215, 0, 0.2))
            drop-shadow(0 8px 15px rgba(0, 0, 0, 0.3));
    animation: gentleSwing 6s ease-in-out infinite;
    transform-origin: top center;
    will-change: transform, filter;
    opacity: 0;
    transform: scale(0.7) translateY(-30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hanging-hook-top-1 { left: 10%; }
.hanging-hook-top-2 { left: 25%; }
.hanging-hook-top-3 { left: 40%; }
.hanging-hook-top-4 { left: 50%; }
.hanging-hook-top-5 { left: 60%; }
.hanging-hook-top-6 { left: 75%; }
.hanging-hook-top-7 { left: 90%; }
@keyframes gentleSwing {
    0%, 100% {
        transform: rotate(-6deg) translateX(-1px);
        filter: brightness(1.1) saturate(1.2) contrast(1.05) hue-rotate(-10deg)
                drop-shadow(0 0 8px rgba(255, 215, 0, 0.4))
                drop-shadow(0 0 16px rgba(255, 215, 0, 0.2))
                drop-shadow(0 8px 15px rgba(0, 0, 0, 0.3));
    }
    25% {
        transform: rotate(-2deg) translateX(1px);
        filter: brightness(1.15) saturate(1.25) contrast(1.08) hue-rotate(-8deg)
                drop-shadow(0 0 10px rgba(255, 215, 0, 0.5))
                drop-shadow(0 0 18px rgba(255, 215, 0, 0.25))
                drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
    }
    50% {
        transform: rotate(6deg) translateX(1px);
        filter: brightness(1.2) saturate(1.3) contrast(1.1) hue-rotate(-5deg)
                drop-shadow(0 0 12px rgba(255, 215, 0, 0.6))
                drop-shadow(0 0 20px rgba(255, 215, 0, 0.3))
                drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
    }
    75% {
        transform: rotate(2deg) translateX(-1px);
        filter: brightness(1.12) saturate(1.22) contrast(1.06) hue-rotate(-8deg)
                drop-shadow(0 0 9px rgba(255, 215, 0, 0.45))
                drop-shadow(0 0 17px rgba(255, 215, 0, 0.22))
                drop-shadow(0 9px 16px rgba(0, 0, 0, 0.32));
    }
}

/* Hook pop-out animation from top of screen */
@keyframes hookPopOut {
    0% {
        transform: translateY(-120px) scale(0.4) rotate(-60deg);
        opacity: 0;
        filter: brightness(0.4) saturate(0.8) blur(2px);
    }
    30% {
        transform: translateY(-40px) scale(0.8) rotate(-20deg);
        opacity: 0.7;
        filter: brightness(1.1) saturate(1.2) blur(1px);
    }
    50% {
        transform: translateY(15px) scale(1.15) rotate(10deg);
        opacity: 1;
        filter: brightness(1.4) saturate(1.5) blur(0px);
    }
    80% {
        transform: translateY(-5px) scale(1.05) rotate(-3deg);
        opacity: 1;
        filter: brightness(1.35) saturate(1.45);
    }
    100% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 1;
        filter: brightness(1.3) saturate(1.4) contrast(1.1);
    }
}

.hanging-hook.hook-popped-out .top-hook {
    opacity: 1;
    transform: scale(1) translateY(0px);
    animation: hookPopOut 1.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, 
               gentleSwing 8s ease-in-out infinite 1.4s;
}

/* Enhanced entrance stagger effect */
.hanging-hook:nth-child(1).hook-popped-out .top-hook { animation-delay: 0.1s; }
.hanging-hook:nth-child(2).hook-popped-out .top-hook { animation-delay: 0.2s; }
.hanging-hook:nth-child(3).hook-popped-out .top-hook { animation-delay: 0.3s; }
.hanging-hook:nth-child(4).hook-popped-out .top-hook { animation-delay: 0.15s; }
.hanging-hook:nth-child(5).hook-popped-out .top-hook { animation-delay: 0.4s; }
.hanging-hook:nth-child(6).hook-popped-out .top-hook { animation-delay: 0.25s; }
.hanging-hook:nth-child(7).hook-popped-out .top-hook { animation-delay: 0.35s; }
/* Alternative hook.png display method for img tags */
.top-hook img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Fallback for when hooks are created as img elements */
img.top-hook {
    width: 84px;
    height: 126px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    filter: brightness(1.1) saturate(1.2) contrast(1.05) hue-rotate(-10deg)
            drop-shadow(0 0 8px rgba(255, 215, 0, 0.4))
            drop-shadow(0 0 16px rgba(255, 215, 0, 0.2))
            drop-shadow(0 8px 15px rgba(0, 0, 0, 0.3));
    animation: gentleSwing 8s ease-in-out infinite;
    transform-origin: top center;
    will-change: transform, filter;
    opacity: 0;
    transform: scale(0.7) translateY(-30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ========================================
   TREASURE CHEST CONTACT FORM
   ======================================== */

.treasure-chest-wrapper {
    position: relative;
    min-height: 500px;
}

.treasure-chest-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.treasure-chest {
    width: 200px;
    height: 150px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.treasure-chest:hover {
    transform: scale(1.05);
}

.chest-lid {
    position: absolute;
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #8B4513 100%);
    border: 3px solid #654321;
    border-radius: 80px 80px 10px 10px;
    transform-origin: center bottom;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.4);
}

.chest-lid::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        transparent 30%, 
        rgba(255, 215, 0, 0.3) 50%, 
        transparent 70%);
    border-radius: inherit;
}

.chest-lock {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #FFD700, #B8860B);
    border: 2px solid #8B4513;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.chest-lock::after {
    content: '⚓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #654321;
}

.chest-base {
    position: absolute;
    width: 100%;
    height: 100px;
    background: linear-gradient(180deg, #654321 0%, #8B4513 50%, #654321 100%);
    border: 3px solid #4A2C17;
    border-radius: 10px;
    bottom: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.chest-base::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 10px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    top: 20px;
    left: 5%;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.5);
}

.chest-base::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 10px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    bottom: 20px;
    left: 5%;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(255, 215, 0, 0.5);
}

.treasure-chest.open .chest-lid {
    transform: rotateX(-110deg);
}

.chest-label {
    margin-top: 2rem;
    transition: opacity 0.3s ease;
}

.glow-text {
    animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6); }
}

/* Bell Animation Styles */
.treasure-bell {
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    transition: all 0.3s ease;
}

.treasure-bell:hover {
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
}

.treasure-bell.bell-ringing {
    animation: bellRing 1s ease-in-out;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(5deg); }
    20% { transform: rotate(-5deg); }
    30% { transform: rotate(4deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(3deg); }
    60% { transform: rotate(-3deg); }
    70% { transform: rotate(2deg); }
    80% { transform: rotate(-2deg); }
    90% { transform: rotate(1deg); }
}

@keyframes bellExplosion {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    50% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(0.5);
        opacity: 0;
    }
}

.contact-form-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.contact-form-wrapper.form-revealed {
    opacity: 1;
    transform: translateY(0);
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFD700;
    border-radius: 50%;
    animation: sparkleFloat 2s ease-out forwards;
    pointer-events: none;
}

@keyframes sparkleFloat {
    0% {
        transform: translateY(0) scale(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-50px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}

/* ========================================
   REALISTIC TREASURE CHEST
   ======================================== */

.treasure-chest-realistic {
    width: 300px;
    height: 200px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.treasure-chest-realistic:hover {
    transform: scale(1.05);
}

.chest-lid-realistic {
    position: absolute;
    width: 100%;
    height: 80px;
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #654321 100%);
    border: 4px solid #4A2C17;
    border-radius: 20px 20px 5px 5px;
    top: 0;
    transform-origin: bottom center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.chest-lid-realistic::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        transparent 30%, 
        rgba(255, 215, 0, 0.2) 50%, 
        transparent 70%);
    border-radius: inherit;
}

.chest-lock-realistic {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #FFD700, #B8860B);
    border: 3px solid #8B4513;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 3;
}

.chest-lock-realistic::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #654321;
}

.chest-hinge-left,
.chest-hinge-right {
    position: absolute;
    width: 8px;
    height: 20px;
    background: linear-gradient(180deg, #FFD700, #B8860B, #FFD700);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.chest-hinge-left {
    left: 20px;
}

.chest-hinge-right {
    right: 20px;
}

.chest-base-realistic {
    position: absolute;
    width: 100%;
    height: 140px;
    background: linear-gradient(180deg, #654321 0%, #8B4513 50%, #654321 100%);
    border: 4px solid #4A2C17;
    border-radius: 15px;
    bottom: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.chest-base-realistic::before {
    content: '';
    position: absolute;
    width: 85%;
    height: 12px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    top: 30px;
    left: 7.5%;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.6);
}

.chest-base-realistic::after {
    content: '';
    position: absolute;
    width: 85%;
    height: 12px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    bottom: 30px;
    left: 7.5%;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.6);
}

.chest-detail-top,
.chest-detail-bottom {
    position: absolute;
    width: 70%;
    height: 8px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    /* Add any additional styles as needed */
}

/* ========================================
   REALISTIC GLASS BOTTLE DESIGN
   ======================================== */

/* Container for the glass bottle */
.message-in-bottle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
    perspective: 1200px;
    padding: 2rem 0;
}

/* Main bottle container */
.message-bottle {
    position: relative;
    width: 250px;
    height: 500px;
    transform-style: preserve-3d;
    cursor: pointer;
    transition: all 0.4s ease;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3));
}

.message-bottle:hover {
    transform: scale(1.02) rotate(-0.5deg) rotateY(2deg);
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.4));
}

/* Glass bottle neck */
.bottle-neck {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 100px;
    background: linear-gradient(135deg,
        rgba(240, 248, 255, 0.1) 0%,
        rgba(173, 216, 230, 0.15) 25%,
        rgba(135, 206, 235, 0.2) 50%,
        rgba(70, 130, 180, 0.25) 75%,
        rgba(25, 25, 112, 0.3) 100%);
    border: 2px solid rgba(135, 206, 235, 0.3);
    border-radius: 35px 35px 20px 20px;
    z-index: 5;
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 2px 5px rgba(255, 255, 255, 0.2),
        inset 0 -2px 5px rgba(0, 0, 0, 0.1),
        inset -3px 0 8px rgba(255, 255, 255, 0.1),
        inset 3px 0 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(1px);
}

/* Cork for the bottle */
.bottle-cork {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 30px;
    background: linear-gradient(180deg,
        rgba(160, 82, 45, 0.95) 0%,
        rgba(139, 69, 19, 0.9) 50%,
        rgba(101, 67, 33, 0.95) 100%);
    border: 2px solid rgba(74, 44, 23, 0.6);
    border-radius: 27px 27px 10px 10px;
    z-index: 6;
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -1px 3px rgba(0, 0, 0, 0.2);
}

.bottle-cork::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 2px;
    background: rgba(101, 67, 33, 0.8);
    border-radius: 2px;
    box-shadow:
        0 4px 0 rgba(101, 67, 33, 0.6),
        0 8px 0 rgba(101, 67, 33, 0.4);
}

/* Main glass bottle body */
.bottle-body {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 380px;
    background: linear-gradient(135deg,
        rgba(240, 248, 255, 0.05) 0%,
        rgba(173, 216, 230, 0.08) 15%,
        rgba(135, 206, 235, 0.12) 35%,
        rgba(70, 130, 180, 0.15) 55%,
        rgba(25, 25, 112, 0.18) 75%,
        rgba(0, 0, 139, 0.22) 100%);
    border: 2px solid rgba(135, 206, 235, 0.3);
    border-radius: 20px 20px 100px 100px;
    overflow: hidden;
    z-index: 2;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.25),
        inset 0 0 30px rgba(255, 255, 255, 0.08),
        inset 0 0 60px rgba(173, 216, 230, 0.1),
        inset -10px 0 25px rgba(255, 255, 255, 0.06),
        inset 10px 0 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(3px);
}

/* Primary glass reflection */
.bottle-body::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 25px;
    bottom: 25px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.12) 20%,
        rgba(255, 255, 255, 0.05) 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.03) 80%,
        rgba(255, 255, 255, 0.08) 100%);
    border-radius: 15px 15px 85px 85px;
    pointer-events: none;
    z-index: 4;
}

/* Bright highlight stripe for glass effect */
.bottle-body::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    width: 8px;
    height: 120px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.35) 30%,
        rgba(255, 255, 255, 0.2) 60%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%);
    border-radius: 4px;
    transform: rotate(-8deg);
    pointer-events: none;
    z-index: 5;
    filter: blur(0.5px);
}

/* Bottle label */
.bottle-label {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg,
        rgba(255, 215, 0, 0.95) 0%,
        rgba(255, 193, 7, 0.92) 25%,
        rgba(255, 165, 0, 0.88) 50%,
        rgba(255, 193, 7, 0.92) 75%,
        rgba(255, 215, 0, 0.95) 100%);
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: bold;
    color: rgba(47, 79, 79, 0.9);
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        inset 0 -2px 3px rgba(0, 0, 0, 0.15);
    z-index: 6;
    border: 2px solid rgba(218, 165, 32, 0.4);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* Message area inside bottle */
.bottle-message {
    position: absolute;
    top: 80px;
    left: 25px;
    right: 25px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 3;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    backdrop-filter: blur(2px);
}

/* Water surface effect inside bottle */
.bottle-message::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 8px;
    right: 8px;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 15%,
        rgba(173, 216, 230, 0.3) 35%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(173, 216, 230, 0.3) 65%,
        rgba(255, 255, 255, 0.25) 85%,
        transparent 100%);
    border-radius: 50%;
    animation: gentleWaterRipple 5s ease-in-out infinite;
    z-index: 2;
}

/* Enhanced water ripple animation */
@keyframes gentleWaterRipple {
    0%, 100% {
        transform: translateX(0) scaleY(1) scaleX(1);
        opacity: 0.3;
    }
    25% {
        transform: translateX(2px) scaleY(1.1) scaleX(0.98);
        opacity: 0.5;
    }
    50% {
        transform: translateX(-1px) scaleY(0.9) scaleX(1.02);
        opacity: 0.4;
    }
    75% {
        transform: translateX(3px) scaleY(1.05) scaleX(0.99);
        opacity: 0.6;
    }
}

/* Improved form styling inside bottle */
.bottle-message input,
.bottle-message textarea {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bottle-message input::placeholder,
.bottle-message textarea::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bottle-message input:focus,
.bottle-message textarea:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 215, 0, 0.6) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .message-bottle {
        width: 220px;
        height: 420px;
    }

    .bottle-body {
        width: 170px;
        height: 320px;
    }

    .bottle-neck {
        width: 60px;
        height: 80px;
    }

    .bottle-cork {
        width: 45px;
        height: 25px;
    }

    .bottle-label {
        padding: 8px 12px;
        font-size: 10px;
    }

    .bottle-message {
        top: 70px;
        left: 20px;
        right: 20px;
        bottom: 85px;
        padding: 12px;
    }
}

/* Contact Info Section */
.contact-info-section {
    padding: 2rem 0;
}

.contact-item {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5) !important;
}



/* Additional responsive adjustments for very small screens */
@media (max-width: 480px) {
    .message-bottle {
        width: 200px;
        height: 380px;
    }

    .bottle-body {
        width: 150px;
        height: 280px;
    }

    .bottle-neck {
        width: 55px;
        height: 70px;
    }

    .bottle-cork {
        width: 42px;
        height: 22px;
    }

    .bottle-label {
        padding: 6px 10px;
        font-size: 9px;
    }

    .bottle-message {
        top: 65px;
        left: 18px;
        right: 18px;
        bottom: 75px;
        padding: 10px;
    }
}

/* Mardi Gras Fairy Dust Cursor Trail */
.fairy-dust-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.fairy-dust-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
    animation: fairyDustFloat 2s ease-out forwards;
}

/* Mardi Gras color variants */
.fairy-dust-purple {
    background: radial-gradient(circle, #7B3F98, #663399);
    box-shadow: 
        0 0 6px #7B3F98,
        0 0 12px rgba(123, 63, 152, 0.6),
        0 0 18px rgba(123, 63, 152, 0.3);
}

.fairy-dust-gold {
    background: radial-gradient(circle, #FFD700, #FDB927);
    box-shadow: 
        0 0 6px #FFD700,
        0 0 12px rgba(255, 215, 0, 0.6),
        0 0 18px rgba(255, 215, 0, 0.3);
}

.fairy-dust-green {
    background: radial-gradient(circle, #32CD32, #228B22);
    box-shadow: 
        0 0 6px #32CD32,
        0 0 12px rgba(50, 205, 50, 0.6),
        0 0 18px rgba(50, 205, 50, 0.3);
}

/* Size variations */
.fairy-dust-small {
    width: 3px;
    height: 3px;
}

.fairy-dust-medium {
    width: 5px;
    height: 5px;
}

.fairy-dust-large {
    width: 7px;
    height: 7px;
}

/* Sparkle stars for extra magic */
.fairy-sparkle {
    position: absolute;
    pointer-events: none;
    will-change: transform, opacity;
    animation: sparkleFloat 1.5s ease-out forwards;
}

.fairy-sparkle::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    animation: sparkleRotate 1.5s linear infinite;
}

.fairy-sparkle.sparkle-purple::before {
    color: #7B3F98;
    text-shadow: 
        0 0 4px #7B3F98,
        0 0 8px rgba(123, 63, 152, 0.5);
}

.fairy-sparkle.sparkle-gold::before {
    color: #FFD700;
    text-shadow: 
        0 0 4px #FFD700,
        0 0 8px rgba(255, 215, 0, 0.5);
}

.fairy-sparkle.sparkle-green::before {
    color: #32CD32;
    text-shadow: 
        0 0 4px #32CD32,
        0 0 8px rgba(50, 205, 50, 0.5);
}

/* Animations */
@keyframes fairyDustFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-20px) scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.3) rotate(360deg);
    }
}

@keyframes sparkleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-15px) scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.2) rotate(360deg);
    }
}

@keyframes sparkleRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Cursor enhancement */
body {
    cursor: none;
}

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.8), rgba(123, 63, 152, 0.6));
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    box-shadow: 
        0 0 10px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(123, 63, 152, 0.4),
        0 0 30px rgba(50, 205, 50, 0.3);
}

.custom-cursor::before {
    content: '✨';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    animation: sparkleRotate 2s linear infinite;
}

/* Hide cursor on touch devices */
@media (pointer: coarse) {
    body {
        cursor: auto;
    }
    
    .custom-cursor {
        display: none;
    }
}
