/* CSS Custom Properties */
:root {
    --pink-light: #ffc0cb;
    --pink-medium: #ffb6c1;
    --pink-hot: #ff69b4;
    --pink-deep: #ff1493;
    --pink-pale: #fff0f5;
    --white: #ffffff;
    --shadow: rgba(255, 105, 180, 0.3);
    --text-dark: #333;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--pink-pale) 0%, var(--pink-light) 100%);
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
    cursor: none;
}

/* Custom Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--pink-hot), transparent);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.1s ease;
    mix-blend-mode: screen;
}

.cursor-trail::before {
    content: '💖';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    animation: cursorPulse 1.5s ease-in-out infinite;
}

@keyframes cursorPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-heart {
    font-size: 80px;
    animation: heartBeat 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes heartBeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.1);
    }
}

.loading-text {
    font-size: 24px;
    margin-bottom: 30px;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.loading-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: var(--white);
    border-radius: 10px;
    animation: loadingProgress 3s ease-in-out forwards;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Parallax Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    transition: transform 0.5s ease-out;
}

.layer-1 {
    z-index: 1;
}

.layer-2 {
    z-index: 2;
}

.cake-container {
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

.cake {
    font-size: 100px;
    filter: drop-shadow(0 10px 20px var(--shadow));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.main-title {
    font-size: 72px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out, textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px var(--pink-hot));
    }

    50% {
        filter: drop-shadow(0 0 20px var(--pink-deep));
    }
}

.subtitle {
    font-size: 24px;
    color: var(--pink-deep);
    margin-bottom: 10px;
    animation: fadeInUp 1.2s ease-out;
}

.from-signature {
    font-size: 18px;
    color: var(--pink-hot);
    font-style: italic;
    margin-bottom: 40px;
    animation: fadeInUp 1.4s ease-out;
}

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

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

.surprise-btn {
    padding: 18px 40px;
    font-size: 20px;
    background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px var(--shadow);
    animation: fadeInUp 1.6s ease-out, pulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.surprise-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.surprise-btn:hover::before {
    width: 300px;
    height: 300px;
}

.surprise-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px var(--shadow);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 20px var(--shadow);
    }

    50% {
        box-shadow: 0 8px 30px rgba(255, 105, 180, 0.5);
    }
}

/* Scratch Card Section */
.scratch-section {
    padding: 60px 20px;
}

.section-title {
    font-size: 42px;
    text-align: center;
    color: var(--pink-deep);
    margin-bottom: 50px;
    animation: fadeIn 1s ease-out;
}

.scratch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.scratch-card-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    height: 200px;
}

.scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
    z-index: 2;
}

.scratch-canvas:active {
    cursor: grabbing;
}

.scratch-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pink-light), var(--pink-hot));
    z-index: 1;
    padding: 20px;
}

.scratch-message p {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    line-height: 1.6;
}

/* Memory Timeline Section */
.timeline-section {
    padding: 80px 20px;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--pink-light), var(--pink-hot), var(--pink-deep));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 40px;
    animation: fadeInTimeline 0.8s ease-out;
}

@keyframes fadeInTimeline {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item.left {
    left: 0;
    padding-right: 60px;
}

.timeline-item.right {
    left: 50%;
    padding-left: 60px;
}

.timeline-content {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px var(--shadow);
}

.timeline-date {
    color: var(--pink-deep);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.timeline-content h3 {
    color: var(--pink-hot);
    font-size: 24px;
    margin-bottom: 15px;
}

.timeline-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.timeline-icon {
    position: absolute;
    top: 30px;
    font-size: 30px;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px var(--shadow);
    z-index: 2;
}

.timeline-item.left .timeline-icon {
    right: -90px;
}

.timeline-item.right .timeline-icon {
    left: -90px;
}

/* 3D Card Effects */
.message-section {
    padding: 60px 20px;
}

.card {
    background: var(--white);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 10px 40px var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.card:hover {
    transform: translateY(-10px) rotateX(2deg);
}

.card-title {
    font-size: 36px;
    color: var(--pink-deep);
    margin-bottom: 30px;
    text-align: center;
}

.message-text {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: justify;
}

.signature {
    text-align: right;
    font-size: 20px;
    color: var(--pink-hot);
    margin-top: 30px;
    font-style: italic;
}

/* Reasons Section */
.reasons-section {
    padding: 60px 20px;
}

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

.reason-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reason-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s ease;
}

.reason-card:hover::before {
    left: 100%;
}

.reason-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px var(--shadow);
}

.reason-number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.reason-text {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

/* Quiz Section */
.quiz-section {
    padding: 60px 20px;
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-card {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 40px var(--shadow);
    margin-bottom: 30px;
}

.quiz-question {
    font-size: 24px;
    color: var(--pink-deep);
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
}

.quiz-options {
    display: grid;
    gap: 15px;
}

.quiz-option {
    padding: 15px 25px;
    font-size: 16px;
    background: linear-gradient(135deg, var(--pink-light), var(--pink-medium));
    color: var(--text-dark);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--shadow);
}

.quiz-option.correct {
    background: linear-gradient(135deg, #90EE90, #32CD32);
    color: var(--white);
    animation: correctAnswer 0.5s ease;
}

.quiz-option.wrong {
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    opacity: 0.5;
}

@keyframes correctAnswer {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.quiz-result {
    margin-top: 20px;
    font-size: 20px;
    text-align: center;
    color: var(--pink-deep);
    font-weight: 600;
}

.quiz-next {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 18px;
    background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.quiz-score {
    text-align: center;
    font-size: 24px;
    color: var(--pink-deep);
    font-weight: 700;
}

/* Photo Gallery with 3D Flip */
.gallery-section {
    padding: 60px 20px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Flip Card Container */
.flip-card {
    perspective: 1000px;
    cursor: pointer;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: visible;
}

.photo-card {
    position: relative;
    width: 100%;
    height: 100%;
    box-shadow: 0 10px 30px var(--shadow);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

/* Inner container for flip effect */
.photo-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

/* Trigger flip on hover */
.flip-card:hover .photo-card-inner {
    transform: rotateY(180deg);
}

/* Front and back positioning */
.photo-card-front,
.photo-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

/* Front side - Image container */
.photo-card-front {
    background: linear-gradient(135deg, var(--pink-light), var(--pink-medium));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Image styling */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

/* Optional: Zoom effect on hover before flip */
.flip-card:hover .gallery-img {
    transform: scale(1.05);
}

/* Back side - Text container */
.photo-card-back {
    background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
    color: var(--white);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.photo-card-back p {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gallery-note {
    text-align: center;
    color: var(--pink-hot);
    font-size: 16px;
    font-style: italic;
    margin-top: 20px;
}

/* Add glow effect on hover */
.flip-card:hover {
    filter: drop-shadow(0 0 20px var(--shadow));
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .photo-card-back p {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .flip-card {
        aspect-ratio: 1;
    }

    .photo-card-back {
        padding: 20px;
    }

    .photo-card-back p {
        font-size: 16px;
    }

    .gallery-note {
        font-size: 14px;
        padding: 0 10px;
    }
}

@media (max-width: 479px) {
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .flip-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .photo-card-back p {
        font-size: 18px;
    }
}

/* Alternative: If you want images to fit without cropping (show full image) */
.gallery-img.contain {
    object-fit: contain;
    background: var(--white);
}

/* Alternative: For portrait images that need different treatment */
.photo-card.portrait .gallery-img {
    object-fit: contain;
    background: linear-gradient(135deg, var(--pink-pale), var(--pink-light));
}

.gallery-img.portrait {
    object-fit: contain;
}

.gallery-img.landscape {
    object-fit: cover;
    object-position: center;
}


/* Virtual Gift Box Section */
.gift-section {
    padding: 60px 20px;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.gift-box {
    position: relative;
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease;
}

.gift-box:hover {
    transform: scale(1.1);
}

.gift-lid {
    font-size: 40px;
    animation: lidFloat 2s ease-in-out infinite;
    transition: transform 0.5s ease;
}

.gift-box.opened .gift-lid {
    transform: translateY(-50px) rotate(20deg);
    animation: none;
}

@keyframes lidFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.gift-body {
    font-size: 80px;
    margin-top: -20px;
}

.gift-reveal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    width: 90%;
    z-index: 10;
}

.gift-box.opened .gift-reveal {
    opacity: 1;
    visibility: visible;
}

.gift-reveal p {
    color: var(--pink-deep);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
}

/* Wishes Section */
.wishes-section {
    padding: 60px 20px;
}

.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.wish-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
}

.wish-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow);
}

.wish-icon {
    font-size: 50px;
    display: block;
    margin-bottom: 20px;
    animation: iconSpin 3s ease-in-out infinite;
}

@keyframes iconSpin {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

.wish-card h3 {
    color: var(--pink-deep);
    font-size: 24px;
    margin-bottom: 15px;
}

.wish-card p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* Countdown Section */
.countdown-section {
    padding: 60px 20px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 30px;
}

.countdown-item {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: scale(1.1);
}

.countdown-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--pink-deep);
    margin-bottom: 10px;
    animation: countPulse 2s ease-in-out infinite;
}

@keyframes countPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.countdown-label {
    display: block;
    font-size: 16px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-note {
    text-align: center;
    color: var(--pink-hot);
    font-size: 16px;
    font-style: italic;
    margin-bottom: 40px;
}

.first-meet-counter {
    max-width: 600px;
    margin: 40px auto 0;
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 40px var(--shadow);
    text-align: center;
}

.first-meet-counter h3 {
    color: var(--pink-deep);
    font-size: 28px;
    margin-bottom: 20px;
}

.meet-days {
    font-size: 48px;
    color: var(--pink-hot);
    font-weight: 700;
    margin-bottom: 15px;
}

.meet-days span {
    font-size: 64px;
}

.meet-date {
    color: #666;
    font-size: 18px;
    line-height: 1.6;
}

/* Balloon Section */
.balloon-section {
    padding: 60px 20px;
    position: relative;
    min-height: 500px;
}

.balloon-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    max-width: 800px;
    margin: 0 auto 40px;
    min-height: 300px;
}

.balloon {
    font-size: 60px;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: balloonFloat 3s ease-in-out infinite;
}

.balloon:hover {
    transform: scale(1.2);
}

.balloon-1 {
    animation-delay: 0s;
}

.balloon-2 {
    animation-delay: 0.5s;
}

.balloon-3 {
    animation-delay: 1s;
}

.balloon-4 {
    animation-delay: 1.5s;
}

.balloon-5 {
    animation-delay: 2s;
}

.balloon-6 {
    animation-delay: 2.5s;
}

@keyframes balloonFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

.balloon.popped {
    animation: balloonPop 0.5s ease forwards;
}

@keyframes balloonPop {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.balloon-message {
    text-align: center;
    font-size: 24px;
    color: var(--pink-deep);
    font-weight: 600;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.balloon-message.show {
    opacity: 1;
    animation: messageBounce 0.5s ease;
}

@keyframes messageBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Audio Section */
.audio-section {
    padding: 60px 20px;
}

.audio-player {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 10px 40px var(--shadow);
    text-align: center;
}

.audio-visual {
    margin-bottom: 30px;
}

.audio-wave {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    height: 80px;
}

.audio-wave span {
    width: 4px;
    background: var(--pink-hot);
    border-radius: 2px;
    animation: audioWave 1s ease-in-out infinite;
}

.audio-wave span:nth-child(1) {
    animation-delay: 0s;
    height: 20px;
}

.audio-wave span:nth-child(2) {
    animation-delay: 0.1s;
    height: 35px;
}

.audio-wave span:nth-child(3) {
    animation-delay: 0.2s;
    height: 50px;
}

.audio-wave span:nth-child(4) {
    animation-delay: 0.3s;
    height: 45px;
}

.audio-wave span:nth-child(5) {
    animation-delay: 0.4s;
    height: 60px;
}

.audio-wave span:nth-child(6) {
    animation-delay: 0.5s;
    height: 40px;
}

.audio-wave span:nth-child(7) {
    animation-delay: 0.6s;
    height: 55px;
}

.audio-wave span:nth-child(8) {
    animation-delay: 0.7s;
    height: 30px;
}

.audio-wave span:nth-child(9) {
    animation-delay: 0.8s;
    height: 45px;
}

.audio-wave span:nth-child(10) {
    animation-delay: 0.9s;
    height: 25px;
}

@keyframes audioWave {

    0%,
    100% {
        transform: scaleY(0.5);
    }

    50% {
        transform: scaleY(1);
    }
}

.audio-play-btn {
    padding: 15px 40px;
    font-size: 20px;
    background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.audio-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px var(--shadow);
}

.audio-note {
    color: #999;
    font-size: 14px;
    font-style: italic;
}

/* Final Section */
.final-section {
    padding: 60px 20px 100px;
}

.final-card {
    background: linear-gradient(135deg, var(--pink-hot), var(--pink-deep));
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 15px 50px var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.final-title {
    font-size: 42px;
    color: var(--white);
    margin-bottom: 30px;
}

.final-message {
    font-size: 22px;
    color: var(--white);
    line-height: 1.8;
    margin-bottom: 20px;
}

.final-signature {
    font-size: 20px;
    color: var(--white);
    font-style: italic;
    margin-bottom: 40px;
}

.love-btn {
    padding: 18px 40px;
    font-size: 20px;
    background: var(--white);
    color: var(--pink-deep);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.love-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--pink-deep);
    font-size: 36px;
    margin-bottom: 20px;
}

.modal-content p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.modal-signature {
    font-style: italic;
    color: var(--pink-hot);
    font-size: 20px;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 40px;
    color: var(--pink-hot);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN - ALL DEVICE SIZES
   ============================================ */

/* Large Desktops (1400px and above) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .main-title {
        font-size: 86px;
    }

    .section-title {
        font-size: 48px;
    }
}

/* Standard Desktops (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .main-title {
        font-size: 72px;
    }
}

/* Small Desktops & Laptops (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .main-title {
        font-size: 64px;
    }

    .section-title {
        font-size: 38px;
    }

    .card {
        padding: 40px;
    }

    .timeline-content {
        padding: 25px;
    }

    .final-card {
        padding: 50px 35px;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 15px;
    }

    .hero {
        padding: 60px 15px;
        min-height: 90vh;
    }

    .main-title {
        font-size: 56px;
        margin-bottom: 15px;
    }

    .subtitle {
        font-size: 20px;
    }

    .from-signature {
        font-size: 16px;
    }

    .cake {
        font-size: 80px;
    }

    .surprise-btn {
        padding: 15px 35px;
        font-size: 18px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    /* Scratch Cards */
    .scratch-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Timeline */
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px !important;
        padding-right: 20px !important;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0 !important;
    }

    .timeline-item .timeline-icon {
        left: 0 !important;
        right: auto !important;
    }

    .timeline-content h3 {
        font-size: 22px;
    }

    /* Cards */
    .card {
        padding: 35px;
    }

    .card-title {
        font-size: 32px;
    }

    .message-text {
        font-size: 16px;
    }

    /* Reasons */
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .reason-number {
        font-size: 40px;
    }

    .reason-text {
        font-size: 15px;
    }

    /* Quiz */
    .quiz-question {
        font-size: 22px;
    }

    .quiz-option {
        font-size: 15px;
        padding: 12px 20px;
    }

    /* Photo Gallery */
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Gift Boxes */
    .gift-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .gift-body {
        font-size: 70px;
    }

    .gift-lid {
        font-size: 35px;
    }

    /* Wishes */
    .wishes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .wish-icon {
        font-size: 45px;
    }

    .wish-card h3 {
        font-size: 22px;
    }

    /* Countdown */
    .countdown-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .countdown-number {
        font-size: 40px;
    }

    .countdown-label {
        font-size: 14px;
    }

    .first-meet-counter {
        padding: 35px;
    }

    .first-meet-counter h3 {
        font-size: 24px;
    }

    .meet-days {
        font-size: 40px;
    }

    .meet-days span {
        font-size: 56px;
    }

    /* Balloons */
    .balloon {
        font-size: 50px;
    }

    .balloon-message {
        font-size: 20px;
    }

    /* Audio */
    .audio-player {
        padding: 35px;
    }

    .audio-play-btn {
        font-size: 18px;
        padding: 12px 35px;
    }

    /* Final Section */
    .final-card {
        padding: 45px 30px;
    }

    .final-title {
        font-size: 36px;
    }

    .final-message {
        font-size: 20px;
    }

    /* Modal */
    .modal-content {
        padding: 40px;
        max-width: 450px;
    }

    .modal-content h2 {
        font-size: 32px;
    }
}

/* Large Mobile Devices (576px - 767px) */
@media (max-width: 767px) {
    body {
        cursor: auto;
    }

    .cursor-trail {
        display: none;
    }

    .container {
        max-width: 100%;
        padding: 10px;
    }

    .hero {
        padding: 40px 15px;
        min-height: 80vh;
    }

    .main-title {
        font-size: 48px;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .from-signature {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .cake {
        font-size: 70px;
    }

    .cake-container {
        margin-bottom: 20px;
    }

    .surprise-btn {
        padding: 14px 30px;
        font-size: 16px;
    }

    /* Loading Screen */
    .loading-heart {
        font-size: 60px;
    }

    .loading-text {
        font-size: 18px;
        padding: 0 15px;
    }

    .loading-bar {
        width: 250px;
    }

    /* Sections */
    .section-title {
        font-size: 30px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    /* Scratch Cards */
    .scratch-section {
        padding: 40px 15px;
    }

    .scratch-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .scratch-card-wrapper {
        height: 180px;
    }

    .scratch-canvas {
        width: 100%;
        height: 180px;
    }

    .scratch-message p {
        font-size: 18px;
    }

    /* Timeline */
    .timeline-section {
        padding: 50px 15px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px !important;
        padding-right: 15px !important;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .timeline-content p {
        font-size: 15px;
    }

    .timeline-date {
        font-size: 12px;
    }

    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        left: -65px !important;
    }

    /* Message Section */
    .message-section {
        padding: 40px 15px;
    }

    .card {
        padding: 25px;
        border-radius: 20px;
    }

    .card-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .message-text {
        font-size: 15px;
        line-height: 1.7;
        text-align: left;
        margin-bottom: 15px;
    }

    .signature {
        font-size: 18px;
        margin-top: 20px;
    }

    /* Reasons */
    .reasons-section {
        padding: 40px 15px;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .reason-card {
        padding: 25px;
    }

    .reason-number {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .reason-text {
        font-size: 15px;
    }

    /* Quiz */
    .quiz-section {
        padding: 40px 15px;
    }

    .quiz-card {
        padding: 25px;
    }

    .quiz-question {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .quiz-option {
        font-size: 14px;
        padding: 12px 18px;
    }

    .quiz-result {
        font-size: 18px;
    }

    .quiz-next {
        font-size: 16px;
        padding: 12px 25px;
    }

    .quiz-score {
        font-size: 20px;
    }

    /* Photo Gallery */
    .gallery-section {
        padding: 40px 15px;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .photo-placeholder {
        font-size: 20px;
    }

    .photo-card-back p {
        font-size: 16px;
    }

    .gallery-note {
        font-size: 14px;
        padding: 0 10px;
    }

    /* Gift Boxes */
    .gift-section {
        padding: 40px 15px;
    }

    .gift-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gift-body {
        font-size: 60px;
    }

    .gift-lid {
        font-size: 30px;
    }

    .gift-reveal p {
        font-size: 16px;
        padding: 15px;
    }

    /* Wishes */
    .wishes-section {
        padding: 40px 15px;
    }

    .wishes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .wish-card {
        padding: 30px 25px;
    }

    .wish-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .wish-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .wish-card p {
        font-size: 15px;
    }

    /* Countdown */
    .countdown-section {
        padding: 40px 15px;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .countdown-item {
        padding: 20px;
    }

    .countdown-number {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .countdown-label {
        font-size: 12px;
    }

    .countdown-note {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .first-meet-counter {
        padding: 25px;
        margin-top: 30px;
    }

    .first-meet-counter h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .meet-days {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .meet-days span {
        font-size: 48px;
    }

    .meet-date {
        font-size: 16px;
    }

    /* Balloons */
    .balloon-section {
        padding: 40px 15px;
        min-height: 400px;
    }

    .balloon-container {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        min-height: 250px;
    }

    .balloon {
        font-size: 40px;
    }

    .balloon-message {
        font-size: 18px;
        padding: 0 15px;
        min-height: 50px;
    }

    /* Audio */
    .audio-section {
        padding: 40px 15px;
    }

    .audio-player {
        padding: 30px 20px;
    }

    .audio-wave {
        height: 60px;
    }

    .audio-play-btn {
        font-size: 16px;
        padding: 12px 30px;
    }

    .audio-note {
        font-size: 13px;
    }

    /* Final Section */
    .final-section {
        padding: 40px 15px 60px;
    }

    .final-card {
        padding: 35px 25px;
        border-radius: 25px;
    }

    .final-title {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .final-message {
        font-size: 18px;
        line-height: 1.7;
        margin-bottom: 15px;
    }

    .final-signature {
        font-size: 17px;
        margin-bottom: 30px;
    }

    .love-btn {
        padding: 14px 32px;
        font-size: 18px;
    }

    /* Modal */
    .modal-content {
        padding: 35px 25px;
        max-width: 90%;
        margin: 0 15px;
    }

    .modal-content h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .modal-content p {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .modal-signature {
        font-size: 18px;
    }

    .close-btn {
        font-size: 35px;
        top: 10px;
        right: 15px;
    }
}

/* Small Mobile Devices (480px - 575px) */
@media (max-width: 575px) {
    .main-title {
        font-size: 42px;
    }

    .subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 26px;
    }

    .scratch-grid {
        gap: 15px;
    }

    .scratch-card-wrapper {
        height: 160px;
    }

    .scratch-canvas {
        height: 160px;
    }

    .scratch-message p {
        font-size: 16px;
    }

    .card {
        padding: 20px;
    }

    .card-title {
        font-size: 24px;
    }

    .message-text {
        font-size: 14px;
    }

    .reason-card {
        padding: 20px;
    }

    .reason-number {
        font-size: 32px;
    }

    .quiz-card {
        padding: 20px;
    }

    .quiz-question {
        font-size: 18px;
    }

    .photo-grid {
        gap: 12px;
    }

    .gift-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gift-body {
        font-size: 50px;
    }

    .gift-lid {
        font-size: 25px;
    }

    .gift-reveal p {
        font-size: 14px;
    }

    .wish-card {
        padding: 25px 20px;
    }

    .countdown-grid {
        gap: 12px;
    }

    .countdown-item {
        padding: 18px;
    }

    .countdown-number {
        font-size: 32px;
    }

    .countdown-label {
        font-size: 11px;
    }

    .first-meet-counter {
        padding: 20px;
    }

    .first-meet-counter h3 {
        font-size: 18px;
    }

    .meet-days {
        font-size: 32px;
    }

    .meet-days span {
        font-size: 42px;
    }

    .meet-date {
        font-size: 15px;
    }

    .balloon {
        font-size: 35px;
    }

    .balloon-message {
        font-size: 16px;
    }

    .final-card {
        padding: 30px 20px;
    }

    .final-title {
        font-size: 26px;
    }

    .final-message {
        font-size: 16px;
    }

    .love-btn {
        padding: 12px 28px;
        font-size: 16px;
    }
}

/* Extra Small Mobile Devices (320px - 479px) */
@media (max-width: 479px) {
    .main-title {
        font-size: 36px;
        line-height: 1.1;
    }

    .subtitle {
        font-size: 15px;
    }

    .from-signature {
        font-size: 14px;
    }

    .cake {
        font-size: 60px;
    }

    .surprise-btn {
        padding: 12px 25px;
        font-size: 15px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .scratch-card-wrapper {
        height: 150px;
    }

    .scratch-canvas {
        height: 150px;
    }

    .scratch-message p {
        font-size: 15px;
        padding: 15px;
    }

    .timeline-item {
        padding-left: 55px !important;
        padding-right: 10px !important;
    }

    .timeline-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
        left: -60px !important;
    }

    .timeline-content {
        padding: 18px;
    }

    .timeline-content h3 {
        font-size: 18px;
    }

    .timeline-content p {
        font-size: 14px;
    }

    .card {
        padding: 18px;
    }

    .card-title {
        font-size: 22px;
    }

    .message-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .signature {
        font-size: 16px;
    }

    .reason-card {
        padding: 18px;
    }

    .reason-number {
        font-size: 28px;
    }

    .reason-text {
        font-size: 14px;
    }

    .quiz-card {
        padding: 18px;
    }

    .quiz-question {
        font-size: 17px;
        margin-bottom: 20px;
    }

    .quiz-option {
        font-size: 13px;
        padding: 10px 15px;
    }

    .quiz-result {
        font-size: 16px;
    }

    .quiz-score {
        font-size: 18px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .photo-card-back p {
        font-size: 15px;
    }

    .gift-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gift-body {
        font-size: 70px;
    }

    .gift-lid {
        font-size: 35px;
    }

    .gift-reveal {
        width: 95%;
    }

    .gift-reveal p {
        font-size: 15px;
    }

    .wish-card {
        padding: 25px 18px;
    }

    .wish-icon {
        font-size: 38px;
    }

    .wish-card h3 {
        font-size: 19px;
    }

    .wish-card p {
        font-size: 14px;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .countdown-item {
        padding: 15px;
    }

    .countdown-number {
        font-size: 28px;
    }

    .countdown-label {
        font-size: 10px;
    }

    .first-meet-counter {
        padding: 18px;
    }

    .first-meet-counter h3 {
        font-size: 17px;
    }

    .meet-days {
        font-size: 28px;
    }

    .meet-days span {
        font-size: 38px;
    }

    .meet-date {
        font-size: 14px;
    }

    .balloon-container {
        gap: 10px;
    }

    .balloon {
        font-size: 32px;
    }

    .balloon-message {
        font-size: 15px;
    }

    .audio-player {
        padding: 25px 18px;
    }

    .audio-wave {
        height: 50px;
    }

    .audio-play-btn {
        font-size: 15px;
        padding: 10px 25px;
    }

    .final-card {
        padding: 25px 18px;
    }

    .final-title {
        font-size: 24px;
    }

    .final-message {
        font-size: 15px;
    }

    .final-signature {
        font-size: 16px;
    }

    .love-btn {
        padding: 12px 25px;
        font-size: 15px;
    }

    .modal-content {
        padding: 25px 18px;
    }

    .modal-content h2 {
        font-size: 24px;
    }

    .modal-content p {
        font-size: 15px;
    }

    .close-btn {
        font-size: 32px;
    }

    .loading-heart {
        font-size: 50px;
    }

    .loading-text {
        font-size: 16px;
    }

    .loading-bar {
        width: 200px;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 40px 20px;
    }

    .main-title {
        font-size: 40px;
    }

    .cake {
        font-size: 60px;
    }

    .cake-container {
        margin-bottom: 15px;
    }

    .subtitle {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .from-signature {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .surprise-btn {
        padding: 10px 25px;
        font-size: 15px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .balloon-section {
        min-height: 300px;
    }

    .balloon-container {
        min-height: 180px;
    }
}

/* Print Styles */
@media print {

    .loading-screen,
    .cursor-trail,
    .hearts-container,
    #confetti,
    .surprise-btn,
    .love-btn,
    .quiz-option,
    .balloon,
    .audio-play-btn,
    .modal {
        display: none !important;
    }

    body {
        background: white;
    }

    .container {
        max-width: 100%;
    }

    .section-title {
        page-break-after: avoid;
    }

    .card,
    .timeline-item,
    .wish-card,
    .reason-card {
        page-break-inside: avoid;
    }
}

/* High DPI Displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .main-title,
    .section-title,
    .card-title {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cursor-trail {
        display: none;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* You can add dark mode styles here if needed */
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    .quiz-option,
    .love-btn,
    .surprise-btn,
    .audio-play-btn,
    .reason-card,
    .wish-card,
    .gift-box,
    .balloon {
        min-height: 44px;
        /* Minimum touch target size */
        min-width: 44px;
    }

    .quiz-option:hover,
    .love-btn:hover,
    .surprise-btn:hover,
    .reason-card:hover,
    .wish-card:hover {
        transform: none;
    }

    .quiz-option:active,
    .love-btn:active,
    .surprise-btn:active {
        transform: scale(0.95);
    }
}