/* ================================
   CSS VARIABLES & RESET
   ================================ */
:root {
    --pink-100: #fff0f5;
    --pink-200: #ffd6e7;
    --pink-300: #ffb3d1;
    --pink-400: #ff80b5;
    --pink-500: #ff4d94;
    --pink-600: #e6337a;
    --pink-700: #cc1a60;
    --pink-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 25%, #ff9a9e 50%, #fecfef 75%, #ffecd2 100%);
    --pink-gradient-dark: linear-gradient(135deg, #2d1b2e 0%, #3d1f3f 50%, #2d1b2e 100%);
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(255, 77, 148, 0.15);
    --radius: 24px;
    --radius-sm: 16px;
    --font-display: 'Dancing Script', cursive;
    --font-body: 'Quicksand', sans-serif;
    --font-accent: 'Pacifico', cursive;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    background: #1a0a1a;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ================================
   SCROLLBAR
   ================================ */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0a1a;
}
::-webkit-scrollbar-thumb {
    background: var(--pink-500);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--pink-600);
}

/* ================================
   UTILITY CLASSES
   ================================ */
.hidden {
    display: none !important;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    padding: 40px;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--pink-300), var(--pink-500), #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    text-align: center;
    font-size: 1.1rem;
    color: var(--pink-200);
    margin-bottom: 40px;
}

/* ================================
   MOUSE GLOW
   ================================ */
#mouse-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 77, 148, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* ================================
   FLOATING HEARTS
   ================================ */
#floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    font-size: 20px;
    animation: floatUp linear forwards;
    opacity: 0.7;
    pointer-events: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-110vh) rotate(720deg) scale(0.3);
        opacity: 0;
    }
}

/* ================================
   CONFETTI CANVAS
   ================================ */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

/* ================================
   1. INTRO SCREEN
   ================================ */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    background: linear-gradient(135deg, #1a0a1e 0%, #2d1133 30%, #1a0a1e 60%, #2d1133 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#intro-screen.fade-out {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.intro-phase {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.intro-phase.active {
    display: flex;
    animation: fadeInPhase 0.6s ease;
}

@keyframes fadeInPhase {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Loading Phase */
.loading-container {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.loading-icon {
    font-size: 64px;
    animation: bounce 1s infinite;
    margin-bottom: 20px;
}

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

.loading-container h2 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pink-200);
    margin-bottom: 30px;
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--pink-400), var(--pink-500), #ff6b9d);
    border-radius: 10px;
    transition: width 0.1s ease;
    position: relative;
    box-shadow: 0 0 15px rgba(255, 77, 148, 0.5);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-fill.stuck {
    width: 99% !important;
    animation: pulse-glow 1s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 77, 148, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 77, 148, 0.8); }
}

.progress-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--pink-400);
    min-width: 45px;
}

.loading-hint {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Stuck Phase */
.stuck-container {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.stuck-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-2deg); }
    75% { transform: translateX(5px) rotate(2deg); }
}

.stuck-container h2 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff6b6b;
    margin-bottom: 12px;
}

.stuck-container p {
    color: var(--pink-200);
    margin-bottom: 24px;
}

.stuck-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.stuck-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Troll Buttons */
.btn-troll {
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-exit {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.1s ease;
}

.btn-exit:hover {
    transform: translate(
        calc((var(--mouse-x, 0) - 0.5) * -200px),
        calc((var(--mouse-y, 0) - 0.5) * -200px)
    );
}

.btn-retry {
    background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 77, 148, 0.4);
}

.btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 77, 148, 0.6);
}

/* Error Phase */
.error-container {
    text-align: center;
    max-width: 550px;
    width: 100%;
}

.error-icon {
    font-size: 72px;
    margin-bottom: 16px;
}

.error-title {
    font-family: var(--font-body);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff4757;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.error-box {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 30px;
}

.error-msg {
    font-size: 1.1rem;
    color: #ffb3b3;
    margin-bottom: 10px;
    line-height: 1.6;
}

.error-code {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: monospace;
}

/* Glitch Effect */
.glitch-effect {
    animation: glitch 0.3s ease 3;
}

@keyframes glitch {
    0% { transform: translate(0); filter: hue-rotate(0deg); }
    20% { transform: translate(-5px, 5px); filter: hue-rotate(90deg); }
    40% { transform: translate(5px, -5px); filter: hue-rotate(180deg); }
    60% { transform: translate(-3px, -3px); filter: hue-rotate(270deg); }
    80% { transform: translate(3px, 3px); filter: hue-rotate(360deg); }
    100% { transform: translate(0); filter: hue-rotate(0deg); }
}

/* Found Phase */
.found-container {
    text-align: center;
    max-width: 500px;
    width: 100%;
    animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.found-icon {
    font-size: 80px;
    margin-bottom: 16px;
    animation: heartPulse 1s infinite;
}

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

.found-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.rainbow-text {
    background: linear-gradient(135deg, #ff6b9d, #c084fc, #60a5fa, #34d399, #fbbf24, #ff6b9d);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.found-msg {
    font-size: 1.3rem;
    color: var(--pink-200);
    margin-bottom: 20px;
    font-weight: 500;
}

.found-sparkles {
    font-size: 2rem;
    margin-bottom: 30px;
    animation: sparkle 2s ease-in-out infinite;
}

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

.btn-enter {
    padding: 18px 48px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--pink-500), #c084fc);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 30px rgba(255, 77, 148, 0.5);
}

.pulse-btn {
    animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
    0%, 100% { box-shadow: 0 4px 30px rgba(255, 77, 148, 0.5); }
    50% { box-shadow: 0 4px 50px rgba(255, 77, 148, 0.8), 0 0 80px rgba(192, 132, 252, 0.3); }
}

.btn-enter:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 40px rgba(255, 77, 148, 0.7);
}

/* ================================
   2. HERO SECTION
   ================================ */
.hero-section {
    background: linear-gradient(135deg, #1a0a1e 0%, #2d1133 30%, #3d1446 60%, #2d1133 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

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

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.c1 {
    width: 600px;
    height: 600px;
    background: var(--pink-500);
    top: -200px;
    right: -100px;
    animation: float1 20s ease-in-out infinite;
}

.c2 {
    width: 400px;
    height: 400px;
    background: #c084fc;
    bottom: -100px;
    left: -100px;
    animation: float2 25s ease-in-out infinite;
}

.c3 {
    width: 300px;
    height: 300px;
    background: var(--pink-400);
    top: 50%;
    left: 50%;
    animation: float3 18s ease-in-out infinite;
}

.c4 {
    width: 200px;
    height: 200px;
    background: #60a5fa;
    top: 30%;
    left: 10%;
    animation: float1 22s ease-in-out infinite reverse;
}

.c5 {
    width: 250px;
    height: 250px;
    background: #f472b6;
    bottom: 20%;
    right: 10%;
    animation: float2 16s ease-in-out infinite reverse;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -80px) scale(1.1); }
    66% { transform: translate(-30px, 60px) scale(0.9); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, 40px) scale(1.15); }
    66% { transform: translate(40px, -50px) scale(0.85); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-40%, -60%) scale(1.2); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-top-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 28px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.2);
    padding: 12px;
    box-shadow: 0 0 30px rgba(255, 77, 148, 0.3), 0 0 60px rgba(255, 77, 148, 0.1);
    animation: fadeInDown 1s ease 0.1s both, logoFloat 4s ease-in-out infinite;
    transition: var(--transition);
}

.hero-logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 40px rgba(255, 77, 148, 0.5), 0 0 80px rgba(192, 132, 252, 0.2);
}

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

.hero-badge {
    display: inline-block;
    padding: 10px 28px;
    background: rgba(255, 77, 148, 0.15);
    border: 1px solid rgba(255, 77, 148, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--pink-300);
    margin-bottom: 32px;
    animation: fadeInDown 1s ease 0.3s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInDown 1s ease 0.5s both;
    color: #fff;
}

.hero-name {
    display: block;
    font-size: clamp(2.5rem, 9vw, 6rem);
    background: linear-gradient(135deg, var(--pink-300), var(--pink-500), #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(255, 77, 148, 0.3));
}

.hero-emoji {
    display: inline-block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    animation: bounce 2s infinite;
    -webkit-text-fill-color: initial;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--pink-200);
    font-weight: 500;
    margin-bottom: 48px;
    animation: fadeInDown 1s ease 0.7s both;
}

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

.btn-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--pink-500), #c084fc);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    animation: fadeInDown 1s ease 0.9s both;
    box-shadow: 0 4px 30px rgba(255, 77, 148, 0.4);
}

.btn-scroll:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(255, 77, 148, 0.6);
}

.scroll-arrow {
    font-size: 1.2rem;
    animation: scrollBounce 2s infinite;
}

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

/* ================================
   3. GALLERY SECTION
   ================================ */
.gallery-section {
    background: linear-gradient(180deg, #1a0a1e 0%, #2a1230 50%, #1a0a1e 100%);
    padding: 100px 20px;
}

.section-header {
    margin-bottom: 60px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    aspect-ratio: 3 / 4;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 77, 148, 0) 0%, rgba(255, 77, 148, 0.15) 100%);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2.5rem;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 77, 148, 0.3), 0 0 40px rgba(255, 77, 148, 0.15);
    border-color: rgba(255, 77, 148, 0.4);
}

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

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Gallery item load animation */
.gallery-item.loaded {
    animation: galleryFadeIn 0.8s ease both;
}

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

/* ================================
   LIGHTBOX
   ================================ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 80px rgba(255, 77, 148, 0.3);
    animation: lightboxZoom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightboxZoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 77, 148, 0.3);
    border-color: var(--pink-500);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--pink-200);
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

/* ================================
   4. MESSAGE SECTION
   ================================ */
.message-section {
    background: linear-gradient(180deg, #1a0a1e 0%, #2d1133 50%, #1a0a1e 100%);
    position: relative;
    overflow: hidden;
}

.message-container {
    max-width: 700px;
    width: 100%;
    z-index: 2;
}

.message-card {
    text-align: center;
    position: relative;
}

.message-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: float1 4s ease-in-out infinite;
}

.typewriter-container {
    margin-top: 32px;
    text-align: left;
    min-height: 200px;
}

.typewriter-text {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--pink-100);
    font-weight: 400;
    white-space: pre-wrap;
}

.typewriter-cursor {
    display: inline-block;
    color: var(--pink-400);
    font-weight: 700;
    animation: blink 0.8s infinite;
}

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

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

.message-heart {
    position: absolute;
    font-size: 24px;
    animation: messageHeartFloat 6s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes messageHeartFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-80px) rotate(180deg);
        opacity: 0.7;
    }
}

/* ================================
   5. GIFT SECTION
   ================================ */
.gift-section {
    background: linear-gradient(180deg, #1a0a1e 0%, #2d1133 50%, #1a0a1e 100%);
    position: relative;
    overflow: hidden;
}

.gift-container {
    text-align: center;
    z-index: 2;
}

.gift-hint {
    color: var(--pink-200);
    font-size: 1.1rem;
    margin-bottom: 48px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.gift-box-wrapper {
    perspective: 600px;
    margin-bottom: 40px;
}

.gift-box {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: giftFloat 3s ease-in-out infinite;
}

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

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

.gift-body {
    width: 180px;
    height: 140px;
    background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
    border-radius: 14px;
    position: absolute;
    bottom: 0;
    box-shadow: 0 10px 40px rgba(255, 77, 148, 0.4);
    overflow: hidden;
}

.gift-ribbon-v {
    position: absolute;
    left: 50%;
    top: 0;
    width: 24px;
    height: 100%;
    background: linear-gradient(180deg, #ffd700, #ffaa00);
    transform: translateX(-50%);
}

.gift-ribbon-h {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 24px;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    transform: translateY(-50%);
}

.gift-lid {
    width: 200px;
    height: 50px;
    background: linear-gradient(135deg, var(--pink-400), var(--pink-500));
    border-radius: 14px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(255, 77, 148, 0.3);
}

.gift-bow {
    width: 50px;
    height: 30px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.gift-bow::before,
.gift-bow::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: #ffd700;
    border-radius: 50% 50% 0 50%;
}

.gift-bow::before {
    left: 0;
    transform: rotate(-30deg);
}

.gift-bow::after {
    right: 0;
    border-radius: 50% 50% 50% 0;
    transform: rotate(30deg);
}

.gift-box.opened .gift-lid {
    transform: translateX(-50%) translateY(-120px) rotate(-30deg);
    opacity: 0;
}

.gift-box.opened {
    animation: none;
}

.gift-reveal-card {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    animation: popIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gift-reveal-emoji {
    margin-bottom: 16px;
    width: 100%;
}

.gift-form-embed {
    width: min(100%, 640px);
    height: 420px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
}

.gift-reveal-card h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    background: linear-gradient(135deg, var(--pink-300), var(--pink-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.gift-reveal-card p {
    font-size: 1.1rem;
    color: var(--pink-100);
    line-height: 1.8;
    margin-bottom: 20px;
}

.gift-reveal-sparkle {
    font-size: 1.5rem;
    animation: sparkle 2s infinite;
}

@media (max-width: 768px) {
    .gift-form-embed {
        height: 520px;
    }
}

/* ================================
   7. FOOTER
   ================================ */
.footer-section {
    padding: 40px 20px;
    background: linear-gradient(180deg, #1a0a1e 0%, #0d050d 100%);
    border-top: 1px solid rgba(255, 77, 148, 0.15);
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 1rem;
    color: var(--pink-300);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.05); }
    28% { transform: scale(1); }
    42% { transform: scale(1.08); }
    56% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* ================================
   SCROLL ANIMATIONS
   ================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 768px) {
    .glass-card {
        padding: 24px;
    }

    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 10px;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 8px 20px;
    }

    .message-card {
        padding: 24px 20px;
    }

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

    .gift-box {
        width: 140px;
        height: 140px;
    }

    .gift-body {
        width: 140px;
        height: 110px;
    }

    .gift-lid {
        width: 160px;
        height: 40px;
    }

    .gift-ribbon-v {
        width: 18px;
    }

    .gift-ribbon-h {
        height: 18px;
    }

    .footer-text {
        font-size: 0.85rem;
    }

    .lightbox img {
        max-width: 95%;
        max-height: 75vh;
    }

    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .section {
        padding: 60px 16px;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        grid-template-columns: 1fr;
    }

    .stuck-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn-troll {
        width: 100%;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .hero-name {
        font-size: clamp(2rem, 10vw, 4rem);
    }
}
