/* DESIGN SYSTEM & TOKENS */
:root {
    --pink-light: #fff0f3;
    --pink-pastel: #ffccd5;
    --pink-primary: #ff8da1;
    --pink-dark: #d94e6c;
    --pink-vibrant: #ff4d6d;
    --cream-light: #fffbf5;
    --gold: #f9c74f;
    --text-dark: #4a3e40;
    --text-muted: #806f72;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 10px 30px rgba(217, 78, 108, 0.15);
    --shadow-polaroid: 0 15px 35px rgba(74, 62, 64, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --font-cursive: 'Sacramento', cursive;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--pink-light);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--pink-light);
}
::-webkit-scrollbar-thumb {
    background: var(--pink-primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--pink-dark);
}

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

/* UTILITIES */
.hidden {
    display: none !important;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* MUSIC CONTROLLER */
.music-player-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--pink-vibrant);
    border: 3px solid #fff;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.music-btn:hover {
    transform: scale(1.1);
    background-color: var(--pink-dark);
}

.music-btn.playing {
    animation: musicPulse 2s infinite;
}

.music-btn.playing i {
    animation: musicRotate 4s infinite linear;
}

.music-wave-bar {
    display: none;
}

/* 1. AUTH GATE (PINTU MASUK) */
.auth-gate-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffe5ec 0%, #ffc2d1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.auth-gate-section.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateY(-30px);
}

.gate-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    animation: cardEntrance 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gate-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    pointer-events: none;
}

.gate-heart-wrapper {
    margin-bottom: 20px;
}

.gate-heart {
    font-size: 3rem;
    color: var(--pink-vibrant);
    display: inline-block;
    animation: pulseHeart 1.5s infinite;
}

.gate-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--pink-dark);
    margin-bottom: 10px;
}

.gate-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.input-group {
    text-align: left;
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--pink-pastel);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--pink-primary);
    box-shadow: 0 0 0 4px rgba(255, 141, 161, 0.25);
    background-color: #fff;
}

.input-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
    font-style: italic;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    border: none;
    background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-vibrant) 100%);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 77, 109, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 77, 109, 0.4);
}

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

.gate-error-message {
    margin-top: 20px;
    background-color: #fff0f3;
    border: 1px solid #ffccd5;
    padding: 12px;
    border-radius: var(--radius-sm);
    color: var(--pink-dark);
    font-size: 0.9rem;
    font-weight: 600;
    animation: shake 0.5s ease-in-out;
}

.gate-card.shake {
    animation: shake 0.5s ease-in-out;
}

/* 2. MAIN LAYOUT */
.main-content-layout {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-bottom: 60px;
    background: radial-gradient(circle at 10% 20%, #fff0f3 0%, #fffbf5 90%);
}

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

.floating-heart {
    position: absolute;
    bottom: -50px;
    color: var(--pink-primary);
    opacity: 0.3;
    pointer-events: none;
    animation: floatUp 8s linear infinite;
}

/* HERO SECTION */
.hero-section {
    position: relative;
    padding: 120px 20px 80px;
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    background-color: #ffccd5;
    color: var(--pink-dark);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1.5px solid var(--pink-primary);
    box-shadow: 0 4px 10px rgba(255, 141, 161, 0.15);
    display: inline-block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--pink-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight-name {
    font-family: var(--font-heading);
    color: var(--pink-vibrant);
    background: linear-gradient(120deg, rgba(255, 77, 109, 0.15) 0%, rgba(255, 141, 161, 0.15) 100%);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

/* Countdown Counter Box */
.counter-box {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 30px;
    width: 100%;
    max-width: 550px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 50px;
}

.counter-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

.time-item {
    background-color: white;
    border: 2px solid var(--pink-pastel);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
}

.time-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--pink-vibrant);
    font-weight: 700;
    line-height: 1.1;
}

.time-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 600;
}

.scroll-down-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--pink-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.bounce-arrow {
    margin-top: 10px;
    font-size: 1.2rem;
    animation: bounceArrow 1.5s infinite;
}

/* SECTION GLOBAL TITLE WRAPPER */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.section-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--pink-dark);
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* VIDEO CONTAINER SECTION */
.video-container-section {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.video-wrapper {
    background: var(--glass-bg);
    border: 3px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-custom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 62, 64, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.5s ease;
    z-index: 5;
    padding: 20px;
    text-align: center;
}

.video-custom-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-btn-circle {
    width: 80px;
    height: 80px;
    background-color: var(--pink-vibrant);
    border: 4px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(255, 77, 109, 0.5);
    margin-bottom: 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-btn-circle i {
    margin-left: 5px;
}

.video-custom-overlay:hover .play-btn-circle {
    transform: scale(1.15);
    background-color: var(--pink-dark);
}

.video-custom-overlay p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* PHOTO GALLERY SECTION */
.gallery-container-section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: start;
}

/* Polaroid Card Styles */
.polaroid-card {
    background-color: white;
    padding: 16px 16px 24px;
    border-radius: 4px;
    box-shadow: var(--shadow-polaroid);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    cursor: pointer;
}

.polaroid-card::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(2px);
    border: 1px dashed rgba(255, 77, 109, 0.15);
    z-index: 2;
}

.polaroid-img-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    border: 1px solid #eaeaea;
    background-color: var(--pink-light);
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.polaroid-caption {
    margin-top: 15px;
    text-align: center;
}

.polaroid-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--pink-dark);
    font-weight: 500;
    line-height: 1.4;
    word-break: break-word;
}

/* Custom tilts for random organic look */
.rotate-left {
    transform: rotate(-3deg);
}

.rotate-right {
    transform: rotate(3deg);
}

.rotate-left-more {
    transform: rotate(-4deg);
}

.polaroid-card:hover {
    transform: scale(1.05) rotate(0deg) translateY(-10px);
    box-shadow: 0 25px 50px rgba(74, 62, 64, 0.2);
    z-index: 10;
}

.polaroid-card:hover .gallery-img {
    transform: scale(1.1);
}

/* LOVE LETTER ENVELOPE SECTION */
.letter-container-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.envelope-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 380px;
    position: relative;
    margin-top: 40px;
}

/* 2D/3D CSS Envelope */
.envelope-container {
    position: relative;
    width: 320px;
    height: 220px;
    background-color: var(--pink-pastel);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

/* Envelope Flap (Top triangle) */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 160px solid transparent;
    border-right: 160px solid transparent;
    border-top: 110px solid var(--pink-primary);
    transform-origin: top;
    transition: transform 0.5s ease 0.3s, z-index 0.1s ease 0.3s;
    z-index: 4;
}

/* Envelope Pocket (Bottom & sides) */
.envelope-pocket {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 160px solid var(--pink-pastel);
    border-right: 160px solid var(--pink-pastel);
    border-bottom: 110px solid #ffccd5;
    z-index: 3;
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
}

.envelope-pocket::before {
    content: '';
    position: absolute;
    left: -160px;
    bottom: -110px;
    width: 320px;
    height: 110px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}

/* Seal Button */
.envelope-seal {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background-color: var(--pink-vibrant);
    border-radius: 50%;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 77, 109, 0.4);
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid white;
}

.envelope-seal i {
    font-size: 1.4rem;
    animation: pulseHeart 1.5s infinite;
}

.seal-text {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2px;
}

.envelope-seal:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--pink-dark);
}

/* Letter Card hidden inside */
.letter-card {
    position: absolute;
    top: 10px;
    left: 15px;
    width: 290px;
    height: 200px;
    background-color: var(--cream-light);
    border: 1px solid #f6eedb;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.6s ease;
    z-index: 2;
    padding: 20px;
    overflow-y: auto;
}

.letter-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.letter-header {
    font-family: var(--font-heading);
    color: var(--pink-dark);
    font-size: 1rem;
    margin-bottom: 10px;
    border-bottom: 1.5px dashed var(--pink-pastel);
    padding-bottom: 5px;
}

.letter-body {
    font-size: 0.85rem;
    color: var(--text-dark);
    flex-grow: 1;
    overflow-y: auto;
    font-style: italic;
    line-height: 1.4;
    white-space: pre-line;
}

.letter-footer {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
    padding-bottom: 10px;
}

.love-signature {
    font-family: var(--font-cursive);
    font-size: 1.6rem;
    color: var(--pink-vibrant);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* OPEN ANIMATION CLASSES (Triggered by JS) */
.envelope-container.open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1; /* Drop behind the pocket and letter */
    transition: transform 0.5s ease, z-index 0s ease 0.5s;
}

.envelope-container.open .letter-card {
    transform: translateY(-190px);
    height: 340px;
    width: 310px;
    left: 5px;
    z-index: 4; /* Slide up in front of the flap and pocket */
    box-shadow: 0 15px 35px rgba(74, 62, 64, 0.15);
    transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.1) 0.5s, 
                height 0.7s ease 0.5s, 
                width 0.7s ease 0.5s, 
                left 0.7s ease 0.5s, 
                z-index 0s ease 0.5s;
}

.envelope-container.open .envelope-seal {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.5);
    transition: all 0.3s ease;
}

/* BALLOONS GAME / INTERACTIVE SECTION */
.balloons-game-section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.game-card-wrapper {
    background: var(--glass-bg);
    border: 3px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.game-info h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--pink-dark);
    margin-bottom: 8px;
}

.game-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.balloon-score {
    font-family: var(--font-heading);
    background-color: white;
    border: 1.5px solid var(--pink-pastel);
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-block;
    color: var(--pink-vibrant);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.balloon-playground {
    width: 100%;
    height: 350px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2.5px dashed var(--pink-pastel);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

/* Balloons Styling */
.balloon {
    position: absolute;
    width: 50px;
    height: 65px;
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    cursor: pointer;
    animation: balloonWobble 4s ease-in-out infinite alternate;
    transition: transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.balloon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid currentColor;
    opacity: 0.8;
}

.balloon-string {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 35px;
    background-color: var(--text-muted);
    opacity: 0.4;
}

/* FOOTER */
.birthday-footer {
    text-align: center;
    padding: 40px 20px;
    background-color: transparent;
    position: relative;
    z-index: 1;
    border-top: 1.5px dashed var(--pink-pastel);
    max-width: 600px;
    margin: 60px auto 0;
}

.birthday-footer p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    opacity: 0.7;
}

/* KEYFRAMES ANIMATIONS */
@keyframes pulseHeart {
    0% { transform: scale(1); }
    14% { transform: scale(1.12); }
    28% { transform: scale(1); }
    42% { transform: scale(1.12); }
    70% { transform: scale(1); }
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
    20%, 40%, 60%, 80% { transform: translateX(6px); }
}

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

@keyframes bounceArrow {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-8px);
    }
    70% {
        transform: translateY(-4px);
    }
}

@keyframes musicPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(255, 77, 109, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); }
}

@keyframes musicRotate {
    100% { transform: rotate(360deg); }
}

@keyframes balloonWobble {
    0% {
        transform: rotate(-3deg) translateX(-5px);
    }
    100% {
        transform: rotate(3deg) translateX(5px);
    }
}

/* RESPONSIVE DESIGN (MOBILE ADAPTABILITY) */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .gate-card {
        padding: 30px 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .counter-box {
        padding: 20px;
    }
    
    .countdown-grid {
        gap: 8px;
    }
    
    .time-value {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* Envelope scaling down for mobile view */
    .envelope-wrapper {
        height: 320px;
    }
    
    .envelope-container {
        width: 280px;
        height: 190px;
    }
    
    .envelope-flap {
        border-left-width: 140px;
        border-right-width: 140px;
        border-top-width: 95px;
    }
    
    .envelope-pocket {
        border-left-width: 140px;
        border-right-width: 140px;
        border-bottom-width: 95px;
    }
    
    .envelope-pocket::before {
        left: -140px;
        bottom: -95px;
        width: 280px;
        height: 95px;
    }
    
    .envelope-seal {
        top: 95px;
        width: 54px;
        height: 54px;
    }
    
    .envelope-seal i {
        font-size: 1.2rem;
    }
    
    .letter-card {
        width: 250px;
        height: 170px;
        padding: 15px;
    }
    
    .envelope-container.open .letter-card {
        transform: translateY(-160px);
        height: 300px;
        width: 270px;
        left: 5px;
    }
    
    .balloon-playground {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .polaroid-card {
        padding: 12px 12px 18px;
    }
    
    .polaroid-text {
        font-size: 1.1rem;
    }
}

/* WHATSAPP REQUEST MODAL STYLES */
.wa-request-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wa-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.wa-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 3px solid var(--pink-pastel);
}

.wa-modal-content h3 {
    font-family: var(--font-heading);
    color: var(--pink-vibrant);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.wa-modal-content p {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.wa-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wa-btn {
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    background-color: var(--pink-light);
    color: var(--pink-dark);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid var(--pink-pastel);
}

.wa-btn:hover {
    background-color: var(--pink-pastel);
    transform: translateY(-2px);
}

.wa-custom-btn {
    background: linear-gradient(135deg, var(--pink-primary) 0%, var(--pink-vibrant) 100%);
    color: white;
    border: none;
}

.wa-custom-btn:hover {
    background: linear-gradient(135deg, var(--pink-dark) 0%, var(--pink-vibrant) 100%);
}

.animate-pop {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* CURSOR TRAIL EFFECT */
.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    width: 15px;
    height: 15px;
    background-image: radial-gradient(circle, var(--pink-primary) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: fadeShrink 0.8s ease-out forwards;
}

@keyframes fadeShrink {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}
