/* ===================================
   Santa Magic UK - Magical Styles
   Rich & Cozy Christmas Theme
   =================================== */

/* Color Palette */
:root {
    --burgundy: #8B1538;
    --burgundy-dark: #6B0F2A;
    --emerald: #1B4D3E;
    --emerald-dark: #0F3325;
    --gold: #D4AF37;
    --gold-light: #F4D03F;
    --cream: #FAF3E0;
    --candlelight: #FFE4B5;
    --snow-white: #FFFAFA;
    --night-sky: #0A1128;
    --midnight-blue: #1B2845;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: var(--emerald-dark);
    background-color: var(--cream);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Magical Cursor Trail Canvas */
#cursorCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Music Toggle Button */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    background: var(--burgundy);
    border: 3px solid var(--gold);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.6);
}

.music-icon {
    display: none;
}

.music-toggle.is-muted .muted {
    display: block;
}

.music-toggle.is-playing .playing {
    display: block;
    animation: musicPulse 1s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===================================
   HERO SECTION - Flying Through Sky
   =================================== */

.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--night-sky), var(--midnight-blue), var(--burgundy-dark));
}

/* Parallax Layers */
.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.sky-gradient {
    background: linear-gradient(to bottom,
        #0A1128 0%,
        #1B2845 40%,
        #2E4057 70%,
        #5C4D7D 100%);
}

.northern-lights {
    background: radial-gradient(ellipse at 50% 30%,
        rgba(0, 255, 150, 0.3) 0%,
        rgba(100, 200, 255, 0.2) 30%,
        transparent 60%);
    animation: northernLightsMove 20s ease-in-out infinite;
}

@keyframes northernLightsMove {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(0) scaleX(1);
    }
    50% {
        opacity: 0.6;
        transform: translateX(50px) scaleX(1.2);
    }
}

/* Stars */
.stars-far,
.stars-near {
    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);
    background-size: 200% 200%;
    animation: starsRotate 120s linear infinite;
}

.stars-near {
    background-image:
        radial-gradient(3px 3px at 25% 40%, var(--candlelight), transparent),
        radial-gradient(2px 2px at 70% 20%, white, transparent),
        radial-gradient(3px 3px at 45% 75%, var(--candlelight), transparent),
        radial-gradient(2px 2px at 85% 50%, white, transparent);
    animation: starsRotate 60s linear infinite;
}

@keyframes starsRotate {
    from { background-position: 0 0; }
    to { background-position: 100% 100%; }
}

/* Moon */
.moon {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 40% 40%, var(--cream), var(--candlelight));
    border-radius: 50%;
    top: 15%;
    right: 15%;
    box-shadow:
        0 0 40px rgba(255, 228, 181, 0.8),
        0 0 80px rgba(255, 228, 181, 0.4),
        inset -20px -20px 40px rgba(0, 0, 0, 0.1);
    animation: moonGlow 4s ease-in-out infinite;
}

@keyframes moonGlow {
    0%, 100% {
        box-shadow:
            0 0 40px rgba(255, 228, 181, 0.8),
            0 0 80px rgba(255, 228, 181, 0.4),
            inset -20px -20px 40px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow:
            0 0 60px rgba(255, 228, 181, 1),
            0 0 120px rgba(255, 228, 181, 0.6),
            inset -20px -20px 40px rgba(0, 0, 0, 0.1);
    }
}

/* Flying Reindeer Team */
.reindeer-team {
    position: absolute;
    width: 400px;
    height: 200px;
    top: 20%;
    left: -400px;
    animation: reindeerFly 35s linear infinite;
}

@keyframes reindeerFly {
    0% {
        left: -400px;
        top: 20%;
    }
    25% {
        top: 28%;
    }
    50% {
        left: 50%;
        top: 22%;
    }
    75% {
        top: 32%;
    }
    100% {
        left: 110%;
        top: 25%;
    }
}

.reindeer {
    position: absolute;
    font-size: 35px;
    filter: drop-shadow(0 0 8px rgba(255, 228, 181, 0.5));
    transform: scaleX(-1); /* Flip horizontally to face right */
}

/* Front pair - lead reindeer (largest, closest) */
.reindeer-front-left {
    left: 0;
    top: 35px;
    font-size: 42px;
    animation: reindeerBounce1 1.2s ease-in-out infinite;
    z-index: 4;
}

.reindeer-front-right {
    left: 8px;
    top: 65px;
    font-size: 42px;
    animation: reindeerBounce1 1.2s ease-in-out 0.15s infinite;
    z-index: 3;
}

/* Second pair - slightly smaller, further back */
.reindeer-mid1-left {
    left: 80px;
    top: 35px;
    font-size: 38px;
    animation: reindeerBounce2 1.3s ease-in-out infinite;
    z-index: 4;
}

.reindeer-mid1-right {
    left: 88px;
    top: 65px;
    font-size: 38px;
    animation: reindeerBounce2 1.3s ease-in-out 0.15s infinite;
    z-index: 3;
}

/* Third pair - smaller still */
.reindeer-mid2-left {
    left: 160px;
    top: 35px;
    font-size: 34px;
    animation: reindeerBounce3 1.4s ease-in-out infinite;
    z-index: 4;
}

.reindeer-mid2-right {
    left: 168px;
    top: 65px;
    font-size: 34px;
    animation: reindeerBounce3 1.4s ease-in-out 0.15s infinite;
    z-index: 3;
}

/* Back pair - smallest, furthest away */
.reindeer-back-left {
    left: 240px;
    top: 35px;
    font-size: 30px;
    animation: reindeerBounce4 1.5s ease-in-out infinite;
    z-index: 4;
}

.reindeer-back-right {
    left: 248px;
    top: 65px;
    font-size: 30px;
    animation: reindeerBounce4 1.5s ease-in-out 0.15s infinite;
    z-index: 3;
}

/* Different bounce animations for depth effect */
@keyframes reindeerBounce1 {
    0%, 100% { transform: scaleX(-1) translateY(0) rotate(5deg); }
    50% { transform: scaleX(-1) translateY(-8px) rotate(0deg); }
}

@keyframes reindeerBounce2 {
    0%, 100% { transform: scaleX(-1) translateY(0) rotate(5deg); }
    50% { transform: scaleX(-1) translateY(-6px) rotate(0deg); }
}

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

@keyframes reindeerBounce4 {
    0%, 100% { transform: scaleX(-1) translateY(0) rotate(5deg); }
    50% { transform: scaleX(-1) translateY(-4px) rotate(0deg); }
}

/* Snow Container */
#snowContainer {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: white;
    font-size: 20px;
    opacity: 0.8;
    pointer-events: all;
    cursor: pointer;
    animation: snowfall linear infinite;
    user-select: none;
}

@keyframes snowfall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 20px;
}

.magical-title {
    font-size: 5rem;
    color: var(--cream);
    text-shadow:
        0 0 20px var(--gold),
        0 0 40px var(--gold-light),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    font-weight: normal;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.title-line-1 {
    font-size: 0.5em;
    font-style: italic;
    animation: titleFloat 3s ease-in-out infinite;
}

.title-line-2 {
    animation: titleFloat 3s ease-in-out 0.5s infinite;
}

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

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--candlelight);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-style: italic;
    margin-bottom: 60px;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--cream);
    font-size: 1.2rem;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-arrow {
    font-size: 2rem;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ===================================
   SNOW DRIFT DIVIDERS
   =================================== */

.snow-drift-divider {
    width: 100%;
    height: 80px;
    position: relative;
}

.snow-drift-divider.top {
    background: linear-gradient(to bottom, transparent, var(--cream));
    clip-path: ellipse(120% 100% at 50% 100%);
    margin-bottom: -1px;
}

.snow-drift-divider.bottom {
    background: linear-gradient(to top, transparent, var(--cream));
    clip-path: ellipse(120% 100% at 50% 0%);
    margin-top: -1px;
}

/* ===================================
   SECTION COMMON STYLES
   =================================== */

section {
    padding: 80px 20px;
    position: relative;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    color: var(--burgundy);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title.enchanted::before,
.section-title.enchanted::after {
    content: '✨';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite;
}

.section-title.enchanted::before {
    left: -60px;
}

.section-title.enchanted::after {
    right: -60px;
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.4; transform: translateY(-50%) scale(0.8); }
    50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--emerald);
    font-style: italic;
    margin-bottom: 60px;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about-section {
    background: linear-gradient(to bottom, var(--cream), var(--snow-white));
}

.about-container {
    display: grid;
    gap: 60px;
    align-items: center;
}

/* Santa Portrait Ornament */
.santa-portrait-ornament {
    text-align: center;
    margin: 0 auto;
}

.ornament-hanger {
    width: 2px;
    height: 40px;
    background: var(--gold);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--gold-light);
}

.ornament-frame {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    border: 8px solid var(--gold);
    box-shadow:
        0 10px 40px rgba(139, 21, 56, 0.3),
        inset 0 0 20px rgba(212, 175, 55, 0.3),
        0 0 30px var(--gold-light);
    position: relative;
    overflow: hidden;
    background: var(--cream);
    animation: ornamentSway 4s ease-in-out infinite;
}

@keyframes ornamentSway {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.santa-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ornament-shine {
    position: absolute;
    top: 20px;
    left: 30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 50%;
    pointer-events: none;
}

/* Credentials Badges */
.credentials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.credential-badge {
    background: var(--snow-white);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.credential-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.credential-badge.expanded:hover {
    transform: scale(1.02);
}

.credential-badge.golden-star {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--cream), var(--candlelight));
}

.credential-badge.silver-bell {
    border-color: #C0C0C0;
    background: linear-gradient(135deg, var(--snow-white), #E8E8E8);
}

.credential-badge.magic-wand {
    border-color: var(--burgundy);
    background: linear-gradient(135deg, var(--cream), #FFE4F0);
}

.credential-badge.safety-shield {
    border-color: var(--emerald);
    background: linear-gradient(135deg, var(--cream), #E8F5E9);
}

.badge-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.badge-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--burgundy);
    line-height: 1;
}

.badge-text {
    font-size: 1.1rem;
    color: var(--emerald-dark);
    margin-top: 5px;
    line-height: 1.3;
}

/* Badge front (default view) */
.badge-front {
    transition: all 0.3s ease;
}

/* Tap hint */
.badge-tap-hint {
    font-size: 0.75rem;
    color: var(--burgundy);
    margin-top: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.credential-badge:hover .badge-tap-hint {
    opacity: 1;
}

/* Expanded content (hidden by default) */
.badge-expanded {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.badge-expanded p {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 2px solid var(--gold);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--emerald-dark);
    text-align: left;
}

/* Expanded state */
.credential-badge.expanded {
    transform: scale(1.02);
}

.credential-badge.expanded .badge-tap-hint {
    display: none;
}

.credential-badge.expanded .badge-expanded {
    max-height: 200px;
    opacity: 1;
    margin-top: 10px;
}

/* Santa Bio */
.santa-bio {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.bio-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--emerald-dark);
    margin-bottom: 20px;
}

/* ===================================
   SERVICES SECTION - Presents
   =================================== */

.services-section {
    background: linear-gradient(to bottom, var(--snow-white), var(--cream));
}

.presents-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.present-box {
    perspective: 1000px;
    cursor: pointer;
    height: 350px;
}

/* Present Wrapper */
.present-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.6s ease;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
}

.present-wrapper.burgundy {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
}

.present-wrapper.emerald {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
}

.present-wrapper.gold {
    background: linear-gradient(135deg, var(--gold), #B8860B);
}

/* Ribbons */
.ribbon {
    position: absolute;
    background: var(--gold);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.ribbon.vertical {
    width: 40px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.ribbon.horizontal {
    width: 100%;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.bow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--gold-light);
    border-radius: 50%;
    box-shadow:
        0 0 20px var(--gold-light),
        inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.bow::before,
.bow::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 30px;
    background: var(--gold-light);
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.bow::before {
    left: -40px;
    top: 15px;
}

.bow::after {
    right: -40px;
    top: 15px;
}

/* Gift Tag */
.present-label {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 10;
    background: var(--cream);
    color: var(--emerald-dark);
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 15px 20px;
    border-radius: 8px;
    border: 3px solid var(--burgundy);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: rotate(-8deg);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* String attached to tag */
.present-label::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 25px;
    background: var(--emerald-dark);
    box-shadow: 1px 0 2px rgba(0, 0, 0, 0.3);
}

/* Hole in tag for string */
.present-label::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--burgundy);
    border-radius: 50%;
    border: 2px solid var(--cream);
}

/* Flutter effect on hover */
.present-box:hover .present-label {
    transform: rotate(-5deg) translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    animation: tagFlutter 0.5s ease-in-out infinite;
}

@keyframes tagFlutter {
    0%, 100% { transform: rotate(-5deg) translateY(-3px); }
    25% { transform: rotate(-7deg) translateY(-2px); }
    50% { transform: rotate(-4deg) translateY(-4px); }
    75% { transform: rotate(-6deg) translateY(-3px); }
}

/* Present Content (hidden initially) */
.present-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--snow-white);
    border-radius: 15px;
    padding: 30px;
    opacity: 0;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.6s ease;
}

.present-content h3 {
    color: var(--burgundy);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.present-content ul {
    list-style: none;
    margin-bottom: 15px;
}

.present-content li {
    color: var(--emerald-dark);
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.present-content li::before {
    content: '🎁';
    position: absolute;
    left: 0;
}

.experience-note {
    font-style: italic;
    color: var(--emerald);
    font-size: 0.95rem;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid var(--gold);
}

/* Unwrapped State */
.present-box.unwrapped .present-wrapper {
    opacity: 0;
    transform: rotateY(180deg) scale(0.8);
}

.present-box.unwrapped .present-content {
    opacity: 1;
    transform: rotateY(0deg);
}

.present-box:hover .present-wrapper {
    transform: translateY(-5px) rotateY(5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ===================================
   TESTIMONIALS - Letter Scrolls
   =================================== */

.testimonials-section {
    background: linear-gradient(to bottom, var(--cream), var(--candlelight));
}

.letters-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.letter-scroll {
    background: var(--cream);
    border-radius: 10px;
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.15),
        inset 0 0 30px rgba(139, 21, 56, 0.05);
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid var(--gold);
}

.letter-scroll::before {
    content: '📜';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.letter-scroll:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.scroll-content {
    /* Removed hard-to-read Brush Script MT */
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--emerald-dark);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    text-align: right;
    color: var(--burgundy);
    font-weight: bold;
    font-size: 1rem;
    font-family: 'Brush Script MT', cursive, serif;
}

/* ===================================
   GALLERY - Polaroids
   =================================== */

.gallery-section {
    background: linear-gradient(to bottom, var(--candlelight), var(--cream));
    padding-bottom: 100px;
}

.gallery-polaroids {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.polaroid {
    cursor: pointer;
    transition: all 0.3s ease;
}

.polaroid-frame {
    background: white;
    padding: 15px 15px 60px 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: rotate(var(--rotation));
}

.polaroid[data-rotation="-5"] {
    --rotation: -5deg;
}

.polaroid[data-rotation="3"] {
    --rotation: 3deg;
}

.polaroid[data-rotation="-3"] {
    --rotation: -3deg;
}

.polaroid[data-rotation="4"] {
    --rotation: 4deg;
}

.polaroid:hover {
    transform: scale(1.1) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.polaroid:hover .polaroid-frame {
    transform: rotate(0deg);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    background: var(--cream);
}

.polaroid-caption {
    text-align: center;
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    color: var(--emerald-dark);
    font-size: 0.95rem;
}

.gallery-note {
    text-align: center;
    color: var(--emerald);
    font-style: italic;
    margin-top: 40px;
}

/* ===================================
   FAQ SECTION
   =================================== */

.faq-section {
    background: linear-gradient(to bottom, var(--cream), var(--snow-white));
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.faq-category {
    margin-bottom: 50px;
}

.faq-category-title {
    font-size: 1.8rem;
    color: var(--burgundy);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--gold);
    text-align: center;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
    color: white;
    border: none;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-question:hover {
    background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy));
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: var(--cream);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 25px;
}

.faq-answer p {
    color: var(--emerald-dark);
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact-section {
    background: linear-gradient(to bottom, var(--cream), var(--snow-white));
}

.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Letter to Santa Form */
.letter-to-santa {
    position: relative;
}

.letter-paper {
    background: var(--cream);
    border: 3px solid var(--gold);
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.letter-paper::before {
    content: '✉️';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.letter-heading {
    text-align: center;
    color: var(--burgundy);
    font-size: 2rem;
    margin-bottom: 30px;
}

/* Form Styles */
.santa-form {
    display: grid;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--emerald-dark);
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--emerald);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--burgundy);
    box-shadow: 0 0 10px rgba(139, 21, 56, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Visual Candle Captcha Styling */
.captcha-group {
    background: linear-gradient(135deg, var(--candlelight), var(--cream));
    padding: 30px;
    border-radius: 12px;
    border: 3px dashed var(--gold);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.2);
}

.captcha-group label {
    font-size: 1.2rem;
    color: var(--burgundy);
    display: block;
    text-align: center;
    margin-bottom: 20px;
}

.captcha-hint {
    display: block;
    font-size: 0.9rem;
    color: var(--emerald);
    font-style: italic;
    margin-top: 5px;
    font-weight: normal;
}

.candles-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    padding: 20px;
    min-height: 120px;
}

.candle {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.candle:hover {
    transform: translateY(-5px);
}

.candle-flame {
    font-size: 2rem;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 8px rgba(255, 165, 0, 0.8));
    animation: flicker 1.5s ease-in-out infinite;
}

@keyframes flicker {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.95) translateY(-2px);
    }
}

.candle-body {
    width: 30px;
    height: 60px;
    background: linear-gradient(to bottom, var(--cream), #E8E8E8);
    border-radius: 5px 5px 0 0;
    border: 2px solid var(--burgundy);
    position: relative;
}

.candle-body::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #333;
    border-radius: 2px;
}

/* Unlit candle */
.candle.unlit .candle-flame {
    opacity: 0;
    animation: none;
}

.candle.unlit .candle-body {
    background: linear-gradient(to bottom, #D3D3D3, #A9A9A9);
    border-color: var(--emerald);
}

.candle.unlit:hover .candle-body {
    background: linear-gradient(to bottom, #E0E0E0, #B8B8B8);
}

/* Just lit animation */
.candle.just-lit .candle-flame {
    animation: lightUp 0.6s ease-out;
}

@keyframes lightUp {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.submit-button {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 21, 56, 0.6);
    background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy));
}

.submit-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 1.5rem;
}

/* Form Success Message */
.form-success {
    text-align: center;
    padding: 40px;
}

.form-success.hidden {
    display: none;
}

.success-animation {
    font-size: 5rem;
    animation: successPop 0.6s ease-out;
    margin-bottom: 20px;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.form-success h4 {
    color: var(--burgundy);
    font-size: 2rem;
    margin-bottom: 15px;
}

.form-success p {
    color: var(--emerald);
    font-size: 1.2rem;
}

/* Contact Info */
.contact-info {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.info-ornament {
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
    color: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(139, 21, 56, 0.4);
    text-align: center;
}

.info-ornament h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 15px;
}

.contact-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.email-display {
    cursor: pointer;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.email-display:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.contact-note {
    margin-top: 30px;
    font-style: italic;
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: linear-gradient(to bottom, var(--burgundy-dark), var(--emerald-dark));
    color: var(--cream);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-text {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-credentials {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
}

.footer-snow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.2), transparent);
    clip-path: polygon(0 50%, 10% 30%, 20% 40%, 30% 20%, 40% 35%, 50% 15%, 60% 30%, 70% 20%, 80% 40%, 90% 25%, 100% 50%, 100% 100%, 0 100%);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .magical-title {
        font-size: 4rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    /* Fix hero section overflow */
    .hero-section {
        width: 100vw;
        overflow-x: hidden;
        position: relative;
    }

    .hero-content {
        width: 100%;
        padding: 0 20px;
    }

    /* Mobile-only: Attention-grabbing animation for muted music button */
    .music-toggle.is-muted {
        animation: tapMePrompt 2s ease-in-out infinite;
    }

    .music-toggle.is-playing {
        animation: none;
    }

    @keyframes tapMePrompt {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 4px 15px rgba(139, 21, 56, 0.4);
        }
        50% {
            transform: scale(1.15);
            box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
        }
    }

    /* Scale down reindeer team on mobile to prevent overflow */
    .reindeer-team {
        width: 250px;
        height: 125px;
        transform: scale(0.7);
    }

    .reindeer {
        font-size: 24px;
    }

    .reindeer-front-left,
    .reindeer-front-right {
        font-size: 28px;
    }

    .reindeer-mid1-left,
    .reindeer-mid1-right {
        font-size: 26px;
    }

    .reindeer-mid2-left,
    .reindeer-mid2-right {
        font-size: 24px;
    }

    .reindeer-back-left,
    .reindeer-back-right {
        font-size: 22px;
    }

    .magical-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2.5rem;
        padding: 0 10px;
    }

    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    /* Move snowflakes away from center of headings */
    .section-title.enchanted::before,
    .section-title.enchanted::after {
        font-size: 1.2rem;
        left: -30px;
        right: -30px;
        top: 0;
        transform: translateY(0);
    }

    /* Fix bauble cut-off issue */
    .ornament-frame {
        width: 250px;
        height: 250px;
        margin: 20px auto;
    }

    /* Section padding adjustments */
    .about-section,
    .services-section,
    .testimonials-section,
    .gallery-section,
    .faq-section,
    .contact-section {
        padding: 50px 15px;
    }

    .about-content {
        padding: 0 10px;
    }

    .credentials-container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Credential badges on mobile - no hover effects */
    .credential-badge {
        padding: 20px 15px;
    }

    .credential-badge:hover {
        transform: none;
    }

    .credential-badge.expanded {
        transform: none;
    }

    .badge-tap-hint {
        opacity: 1;
    }

    .badge-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .badge-number {
        font-size: 2.5rem;
    }

    .badge-text {
        font-size: 1rem;
    }

    .badge-expanded p {
        font-size: 0.9rem;
    }

    .presents-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 15px;
    }

    .present-box {
        height: auto;
        min-height: 320px;
    }

    .letter-paper {
        padding: 30px 20px;
    }

    /* Testimonials on mobile */
    .letters-container {
        gap: 30px;
        padding: 30px 15px;
    }

    .letter-scroll {
        padding: 25px 20px;
    }

    .testimonial-text {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .moon {
        width: 100px;
        height: 100px;
    }

    /* Fix FAQ styling on mobile */
    .faq-container {
        padding: 0 15px;
    }

    .faq-category {
        margin-bottom: 25px;
    }

    .faq-item {
        margin-bottom: 12px;
    }

    .faq-question {
        padding: 15px;
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Fix form width on mobile */
    .contact-container {
        padding: 0 15px;
    }

    .letter-paper {
        width: 100%;
        max-width: 100%;
        padding: 25px 15px;
        box-sizing: border-box;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .send-letter-btn {
        width: 100%;
        font-size: 1.1rem;
        padding: 15px;
    }

    /* Fix candle captcha on mobile */
    .candles-container {
        gap: 15px;
        padding: 15px 10px;
        flex-wrap: wrap;
    }

    .candle {
        transform: scale(0.9);
    }

    /* Ensure all sections fit properly */
    section {
        overflow-x: hidden;
    }

    .content-wrapper {
        max-width: 100%;
        padding: 0 15px;
    }

    /* Fix gallery polaroids on mobile */
    .gallery-polaroids {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        padding: 0 15px;
    }

    .gallery-img {
        height: 200px;
    }

    .polaroid-frame {
        padding: 10px 10px 50px 10px;
    }

    .polaroid-caption {
        font-size: 0.9rem;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    /* Ensure no horizontal overflow */
    body {
        overflow-x: hidden;
        width: 100vw;
    }

    .magical-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Hide snowflakes on very small screens for better readability */
    .section-title.enchanted::before,
    .section-title.enchanted::after {
        display: none;
    }

    .credentials-container {
        grid-template-columns: 1fr;
    }

    /* Ensure music toggle doesn't cause overflow */
    .music-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
        top: 10px;
        right: 10px;
        position: fixed;
    }

    /* Mobile-only: Attention-grabbing animation for muted button */
    .music-toggle.is-muted {
        animation: tapMePrompt 2s ease-in-out infinite;
    }

    .music-toggle.is-playing {
        animation: none;
    }

    @keyframes tapMePrompt {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 4px 15px rgba(139, 21, 56, 0.4);
        }
        50% {
            transform: scale(1.15);
            box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
        }
    }

    /* Further scale down reindeer on very small screens */
    .reindeer-team {
        width: 200px;
        height: 100px;
        transform: scale(0.6);
    }

    .ornament-frame {
        width: 200px;
        height: 200px;
    }

    /* Smaller padding for form elements on very small screens */
    .letter-paper {
        padding: 20px 12px;
    }

    .faq-question {
        padding: 12px;
        font-size: 0.95rem;
    }

    .faq-category-title {
        font-size: 1.3rem;
    }

    /* Gallery on very small screens */
    .gallery-polaroids {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
    }

    .gallery-img {
        height: 180px;
    }

    .polaroid:hover {
        transform: scale(1.05) rotate(0deg) !important;
    }
}

/* Smooth scroll reveal animations */
@media (prefers-reduced-motion: no-preference) {
    .credential-badge,
    .present-box,
    .letter-scroll,
    .polaroid {
        opacity: 0;
        animation: fadeInUp 0.8s ease forwards;
    }

    .credential-badge:nth-child(1) { animation-delay: 0.1s; }
    .credential-badge:nth-child(2) { animation-delay: 0.2s; }
    .credential-badge:nth-child(3) { animation-delay: 0.3s; }
    .credential-badge:nth-child(4) { animation-delay: 0.4s; }

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