/* ===================================
   SAMAYA'S CHRISTMAS SURPRISE
   A Purple Dream for My Queen
   =================================== */

/* CSS Variables */
:root {
    --purple-dark: #1a0a2e;
    --purple-deep: #2d1b4e;
    --purple-royal: #5b2c8c;
    --purple-vibrant: #7b4bb9;
    --purple-light: #9d6fca;
    --purple-soft: #c9a6e9;
    --purple-pale: #e8d5f5;
    
    --burgundy: #722f37;
    --burgundy-light: #9c4a54;
    --rose-gold: #d4a5a5;
    --gold: #d4af37;
    --gold-soft: #f5e6a3;
    
    --cream: #faf8f5;
    --white: #ffffff;
    
    --font-elegant: 'Cormorant Garamond', Georgia, serif;
    --font-clean: 'Quicksand', 'Segoe UI', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-clean);
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-deep) 50%, #1f0f35 100%);
    color: var(--cream);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Snow Canvas */
#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* Floating Hearts Background */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    color: var(--purple-soft);
    opacity: 0.3;
    animation: floatUp 15s infinite ease-in-out;
    font-size: 20px;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Music Toggle Button */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    background: linear-gradient(135deg, var(--purple-royal), var(--burgundy));
    border: 2px solid var(--gold);
    border-radius: 50px;
    padding: 12px 24px;
    color: var(--cream);
    font-family: var(--font-clean);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(91, 44, 140, 0.5);
}

.music-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(91, 44, 140, 0.7);
}

.music-toggle.playing {
    background: linear-gradient(135deg, var(--burgundy), var(--purple-vibrant));
}

.music-icon {
    font-size: 18px;
    animation: pulse 2s infinite;
}

.music-toggle.playing .music-icon {
    animation: bounce 0.5s infinite alternate;
}

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

@keyframes bounce {
    from { transform: translateY(-2px); }
    to { transform: translateY(2px); }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    padding: 40px 20px 120px;
    background: 
        radial-gradient(ellipse at top, rgba(123, 75, 185, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(114, 47, 55, 0.2) 0%, transparent 50%);
}

.hero-content {
    animation: fadeInUp 1.5s ease-out;
    position: relative;
    z-index: 2;
    max-width: 90%;
}

.crown-icon {
    font-size: 60px;
    color: var(--gold);
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
    to { text-shadow: 0 0 40px rgba(212, 175, 55, 0.8), 0 0 60px rgba(212, 175, 55, 0.4); }
}

.hero-title {
    font-family: var(--font-elegant);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--cream), var(--gold-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-elegant);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 600;
    font-style: italic;
    color: var(--purple-soft);
    margin-bottom: 30px;
}

.hero-divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 20px auto;
}

.hero-name {
    font-family: var(--font-elegant);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 600;
    background: linear-gradient(135deg, var(--purple-light), var(--rose-gold), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    letter-spacing: 0.05em;
    margin-bottom: 0;
    line-height: 1.2;
    word-break: break-word;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: fadeIn 2s ease-out 1s both;
    z-index: 1;
    pointer-events: none;
}

.scroll-indicator span {
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--purple-soft);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--purple-soft);
    border-bottom: 2px solid var(--purple-soft);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
    50% { transform: rotate(45deg) translate(5px, 5px); opacity: 0.5; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===================================
   INTRODUCTION SECTION
   =================================== */
.introduction {
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(45, 27, 78, 0.5) 50%, transparent 100%);
}

.intro-content {
    max-width: 600px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.intro-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.intro-text {
    font-family: var(--font-elegant);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-style: italic;
    color: var(--cream);
    margin-bottom: 20px;
    line-height: 1.6;
}

.intro-subtext {
    font-size: 1.1rem;
    color: var(--purple-soft);
    line-height: 1.8;
}

/* ===================================
   25 REASONS SECTION
   =================================== */
.reasons-section {
    padding: 100px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-elegant);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
    color: var(--purple-soft);
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

.reasons-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.reason-card {
    background: linear-gradient(135deg, rgba(91, 44, 140, 0.3), rgba(114, 47, 55, 0.2));
    border: 1px solid rgba(157, 111, 202, 0.3);
    border-radius: 20px;
    padding: 30px 40px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reason-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.reason-card:nth-child(even) {
    transform: translateX(50px);
}

.reason-card:nth-child(even).visible {
    transform: translateX(0);
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.05) 100%);
    pointer-events: none;
}

.reason-card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(91, 44, 140, 0.4);
    transform: translateY(-5px) !important;
}

.reason-number {
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: var(--font-elegant);
    font-size: 4rem;
    font-weight: 600;
    color: rgba(212, 175, 55, 0.2);
    line-height: 1;
}

.reason-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--cream);
    padding-left: 50px;
}

/* ===================================
   LETTER SECTION
   =================================== */
.letter-section {
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    background: 
        radial-gradient(ellipse at center, rgba(91, 44, 140, 0.2) 0%, transparent 70%);
}

.letter-container {
    max-width: 700px;
    width: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: all 1s ease-out;
}

.letter-container.visible {
    opacity: 1;
    transform: scale(1);
}

.letter-paper {
    background: linear-gradient(145deg, #faf5f0, #f5ede3);
    border-radius: 10px;
    padding: 60px 50px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 0 100px rgba(245, 230, 163, 0.3);
    position: relative;
    color: var(--purple-dark);
}

.letter-paper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(91, 44, 140, 0.1);
    border-radius: 5px;
    pointer-events: none;
}

.letter-greeting {
    font-family: var(--font-elegant);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--purple-royal);
    margin-bottom: 30px;
}

.letter-body {
    font-family: var(--font-elegant);
    font-size: 1.2rem;
    line-height: 2;
    color: #2d1b4e;
}

.letter-body p {
    margin-bottom: 20px;
    text-indent: 30px;
}

.letter-closing {
    font-family: var(--font-elegant);
    font-size: 1.3rem;
    font-style: italic;
    margin-top: 40px;
    color: var(--purple-royal);
}

.letter-signature {
    font-family: var(--font-elegant);
    font-size: 1.5rem;
    font-style: italic;
    margin-top: 10px;
    color: var(--burgundy);
}

/* ===================================
   THE BIG QUESTION SECTION
   =================================== */
.question-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px 20px;
}

.question-container {
    text-align: center;
    position: relative;
    z-index: 10;
}

.question-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 1s ease;
    pointer-events: none;
    z-index: -1;
}

.question-section.active .question-backdrop {
    background: rgba(0, 0, 0, 0.7);
}

#fireworksCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.question-content {
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-section.active .question-content {
    opacity: 1;
    transform: scale(1);
}

.heart-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.question-title {
    font-family: var(--font-elegant);
    font-size: clamp(3rem, 10vw, 5rem);
    background: linear-gradient(135deg, var(--purple-soft), var(--rose-gold), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.question-text {
    font-family: var(--font-elegant);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--cream);
    margin-bottom: 50px;
    font-style: italic;
}

/* Response Buttons */
.response-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.response-btn {
    padding: 18px 50px;
    font-family: var(--font-clean);
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
}

.yes-btn {
    background: linear-gradient(135deg, var(--burgundy), var(--purple-vibrant));
    color: var(--cream);
    border: 2px solid var(--gold);
    box-shadow: 0 5px 30px rgba(114, 47, 55, 0.5);
    font-size: 1.4rem;
    padding: 22px 60px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.yes-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 50px rgba(114, 47, 55, 0.7);
    background: linear-gradient(135deg, var(--burgundy-light), var(--purple-light));
}

.no-btn {
    background: transparent;
    color: var(--purple-soft);
    border: 1px solid var(--purple-soft);
    position: relative;
    transition: all 0.2s ease;
}

.no-btn:hover {
    /* Will be handled by JS to make it run away */
}

.think-btn {
    background: transparent;
    color: var(--cream);
    border: 1px solid var(--gold);
}

.think-btn:hover {
    background: rgba(212, 175, 55, 0.2);
}

/* Response Messages */
.response-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 40px;
    z-index: 500;
    background: linear-gradient(135deg, var(--purple-dark), var(--purple-deep));
}

.response-message.show {
    display: flex;
    animation: fadeIn 1s ease-out;
}

.response-message h2 {
    font-family: var(--font-elegant);
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--gold), var(--rose-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.response-message p {
    font-size: 1.3rem;
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--cream);
}

.love-text {
    font-size: 2rem !important;
    color: var(--rose-gold) !important;
    margin-top: 30px !important;
}

.celebration-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    .music-toggle {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .music-text {
        display: none;
    }
    
    .reason-card {
        padding: 25px 20px;
    }
    
    .reason-number {
        font-size: 3rem;
        top: -5px;
        left: 10px;
    }
    
    .reason-text {
        padding-left: 40px;
        font-size: 1rem;
    }
    
    .letter-paper {
        padding: 40px 30px;
    }
    
    .response-buttons {
        width: 100%;
    }
    
    .response-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 20px 20px 100px;
        min-height: 100vh;
    }
    
    .hero-content {
        margin-bottom: 40px;
    }
    
    .crown-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .hero-title {
        margin-bottom: 5px;
    }
    
    .hero-subtitle {
        margin-bottom: 15px;
    }
    
    .hero-name {
        margin-bottom: 20px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .letter-body {
        font-size: 1rem;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .response-btn {
        padding: 16px 30px;
        font-size: 1rem;
    }
    
    .yes-btn {
        padding: 18px 40px;
        font-size: 1.2rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .response-btn {
        min-height: 50px;
    }
    
    .music-toggle {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Smooth scrolling for all devices */
html {
    -webkit-overflow-scrolling: touch;
}

