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

body {
    font-family: 'Montserrat', sans-serif;
    background: url('public/assets/background.avif') center center / cover no-repeat fixed;
    min-height: 100vh;
    overflow-x: hidden;
    color: #fff;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 25, 35, 0.75);
    backdrop-filter: blur(2px);
    z-index: -1;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Music Toggle Button */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.music-toggle:active {
    transform: scale(1.05);
}

.music-icon {
    display: block;
    line-height: 1;
}

/* Snowflakes Animation */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2em;
    animation: fall linear infinite;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 15s; animation-delay: 2s; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 10s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 16s; animation-delay: 1s; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 13s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 11s; animation-delay: 5s; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 14s; animation-delay: 2s; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 12s; animation-delay: 4s; }

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

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
    padding: 40px 20px;
    animation: fadeIn 0.8s ease-in;
}

.screen.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.container {
    max-width: 700px;
    width: 100%;
    text-align: center;
}

/* Landing Screen */
.gift-box {
    margin-bottom: 50px;
    animation: float 3s ease-in-out infinite;
}

.gift-icon {
    font-size: 120px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

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

.title {
    font-size: 3.5em;
    margin-bottom: 30px;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.5);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.4em;
    margin-bottom: 20px;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.6;
}

.hint {
    font-size: 1.1em;
    margin-bottom: 50px;
    opacity: 0.85;
    font-weight: 300;
    font-style: italic;
}

/* Buttons */
.btn {
    padding: 18px 50px;
    font-size: 1.1em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.95em;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 1);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Quiz Screen */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    margin-bottom: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.quiz-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.question-counter {
    font-size: 0.95em;
    margin-bottom: 30px;
    opacity: 0.7;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

.question-text {
    font-size: 2em;
    margin-bottom: 40px;
    line-height: 1.5;
    font-weight: 300;
}

.photo-placeholder {
    background: rgba(255,255,255,0.1);
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 50px 30px;
    margin-bottom: 40px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-placeholder.large {
    min-height: 350px;
    grid-column: 1 / -1;
}

.photo-placeholder.round {
    border-radius: 50%;
    width: 220px;
    height: 220px;
    margin: 40px auto 0;
    padding: 30px;
}

.photo-text {
    font-size: 1em;
    opacity: 0.5;
    font-weight: 300;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.answer-btn {
    padding: 25px 30px;
    font-size: 1.05em;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    font-weight: 300;
    letter-spacing: 0.3px;
    line-height: 1.6;
    font-family: 'Montserrat', sans-serif;
    backdrop-filter: blur(10px);
}

.answer-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(10px);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.answer-btn:active {
    transform: translateX(5px);
}

/* Loading Screen */
.spinner {
    font-size: 90px;
    animation: spin 2s linear infinite;
    margin-bottom: 40px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 2em;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.loading-dots {
    font-size: 2.5em;
    font-weight: 300;
}

.loading-dots span {
    animation: blink 1.4s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

/* Reveal Screen */
.reveal-content {
    animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.reveal-title {
    font-size: 3.5em;
    margin-bottom: 40px;
    animation: pulse 1.2s ease-in-out;
    font-weight: 300;
    letter-spacing: 1px;
}

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

.reveal-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(25px);
    border-radius: 25px;
    padding: 60px 50px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.4);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reveal-subtitle {
    font-size: 1.4em;
    margin-bottom: 25px;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.gift-name {
    font-size: 2.2em;
    font-weight: 300;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    font-family: 'Cormorant Garamond', serif;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.therme-section {
    margin: 40px 0;
}

.therme-section h3 {
    font-size: 2.2em;
    margin-bottom: 35px;
    color: #fff;
    font-weight: 300;
    letter-spacing: 1px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.therme-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.therme-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.therme-photo.large {
    grid-column: 1 / -1;
    height: 350px;
}

.photo-us-img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 40px auto 0;
    display: block;
}

.gift-details {
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 35px;
    margin: 35px 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.gift-details p {
    font-size: 1.15em;
    margin: 15px 0;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.personal-note {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px;
    margin-top: 35px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.note-text {
    font-size: 1.2em;
    line-height: 1.9;
    margin-bottom: 25px;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.signature {
    font-size: 1.3em;
    font-weight: 400;
    margin-top: 20px;
    letter-spacing: 0.5px;
    font-family: 'Cormorant Garamond', serif;
}

/* Confetti Animation */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f0f;
    animation: confetti-fall 3s linear infinite;
}

@keyframes confetti-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .title {
        font-size: 2.5em;
    }
    
    .question-text {
        font-size: 1.6em;
    }
    
    .reveal-title {
        font-size: 2.5em;
    }
    
    .gift-name {
        font-size: 1.7em;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-content {
        padding: 35px 25px;
    }
    
    .reveal-card {
        padding: 40px 30px;
    }
    
    .answer-btn {
        padding: 20px 25px;
        font-size: 1em;
    }
    
    .btn {
        padding: 16px 40px;
    }
}
