/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --rose-50:  #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-300: #fda4af;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --rose-700: #be123c;
    --rose-800: #9f1239;

    --gold-200: #fde68a;
    --gold-300: #fcd34d;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;

    --blush-bg: #fff5f7;
    --cream-bg: #fdf8f4;

    --text-dark: #4a2035;
    --text-medium: #7a4560;
    --text-light: #a0708a;

    --shadow-soft: 0 4px 30px rgba(244, 63, 94, 0.12);
    --shadow-medium: 0 8px 40px rgba(244, 63, 94, 0.18);
    --shadow-glow: 0 0 40px rgba(244, 63, 94, 0.25);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
}

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

body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    background: var(--cream-bg);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.script-font {
    font-family: 'Great Vibes', cursive;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 16px;
}

.section-title .script-font {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    color: var(--rose-600);
}

/* ========================================
   PARTICLE CANVAS
   ======================================== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

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

.floating-heart {
    position: absolute;
    bottom: -60px;
    font-size: 20px;
    opacity: 0;
    animation: floatHeart linear forwards;
    pointer-events: none;
}

@keyframes floatHeart {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) rotate(360deg) scale(1.2);
    }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        #1a0011 0%, 
        #3d0028 25%, 
        #5c0038 50%, 
        #8b1058 75%, 
        #b91c6c 100%
    );
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(251, 113, 133, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(253, 164, 175, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(244, 63, 94, 0.12) 0%, transparent 50%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(253, 248, 244, 0.05) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px 24px;
}

.hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 3vw, 1.3rem);
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--rose-300);
    margin-bottom: 16px;
    font-weight: 300;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: white;
}

.hero-title .script-font {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 10vw, 6rem);
    display: block;
    background: linear-gradient(135deg, var(--rose-200), white, var(--rose-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 10px rgba(253, 164, 175, 0.4));
}

.hero-title .highlight {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--rose-200);
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.divider-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose-300), transparent);
}

.divider-flower,
.divider-heart {
    color: var(--rose-300);
    font-size: 1.2rem;
}

.divider-heart {
    animation: heartBeat 1.5s ease-in-out infinite;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--rose-200);
    font-style: italic;
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator p {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rose-300);
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--rose-300);
    border-radius: 14px;
    position: relative;
    opacity: 0.7;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--rose-300);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

/* ========================================
   ANIMATIONS - FADE IN
   ======================================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }
.delay-4 { animation-delay: 1.2s; }

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   MESSAGE SECTION
   ======================================== */
.message-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--cream-bg) 0%, var(--blush-bg) 50%, var(--cream-bg) 100%);
    position: relative;
    z-index: 3;
}

.message-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: clamp(40px, 8vw, 70px);
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rose-300), var(--rose-500), var(--gold-400), var(--rose-500), var(--rose-300));
}

.message-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--rose-100) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
}

.quote-mark {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: var(--rose-200);
    line-height: 0.5;
    margin-bottom: 20px;
    opacity: 0.6;
}

.message-card .section-title {
    text-align: left;
    margin-bottom: 28px;
    color: var(--rose-700);
}

.message-text {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

.message-text em {
    color: var(--rose-600);
    font-style: italic;
    font-weight: 500;
}

.message-signature {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--rose-500);
    text-align: right;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--cream-bg) 0%, #fef2f5 50%, var(--cream-bg) 100%);
    position: relative;
    z-index: 3;
}

.gallery-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    aspect-ratio: 3/4;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(159, 18, 57, 0.7) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: 2rem;
    color: white;
    margin-bottom: 8px;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.gallery-caption {
    font-family: 'Great Vibes', cursive;
    font-size: 1.4rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ========================================
   FINAL SECTION
   ======================================== */
.final-section {
    padding: 100px 0 80px;
    background: linear-gradient(180deg, var(--cream-bg) 0%, var(--blush-bg) 100%);
    position: relative;
    z-index: 3;
}

.final-card {
    background: linear-gradient(135deg, #fff 0%, var(--rose-50) 50%, #fff 100%);
    border-radius: var(--radius-xl);
    padding: clamp(50px, 10vw, 80px) clamp(30px, 6vw, 60px);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    max-width: 750px;
    margin: 0 auto;
}

.final-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, var(--rose-300), var(--gold-300), var(--rose-400));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.sparkle {
    position: absolute;
    font-size: 1.2rem;
    color: var(--gold-400);
    opacity: 0.6;
    animation: sparkleAnim 3s ease-in-out infinite;
}

.sparkle-1 { top: 15%; left: 10%; animation-delay: 0s; }
.sparkle-2 { top: 10%; right: 15%; animation-delay: 0.8s; }
.sparkle-3 { bottom: 20%; left: 8%; animation-delay: 1.5s; }
.sparkle-4 { bottom: 15%; right: 10%; animation-delay: 2.2s; }

@keyframes sparkleAnim {
    0%, 100% { opacity: 0.3; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.3) rotate(180deg); }
}

.final-title {
    font-size: clamp(2.5rem, 7vw, 4rem);
    color: var(--rose-600);
    margin-bottom: 30px;
}

.final-text {
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    color: var(--text-medium);
    line-height: 1.9;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-text strong {
    color: var(--rose-600);
    font-weight: 600;
}

.heart-animation {
    margin: 36px 0;
}

.heart-pulse {
    font-size: 3rem;
    color: var(--rose-500);
    display: inline-block;
    animation: heartPulse 1.2s ease-in-out infinite;
}

@keyframes heartPulse {
    0%   { transform: scale(1); }
    15%  { transform: scale(1.25); }
    30%  { transform: scale(1); }
    45%  { transform: scale(1.15); }
    60%  { transform: scale(1); }
}

.final-signature {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: var(--rose-500);
    margin-top: 10px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(135deg, #1a0011, #3d0028, #5c0038);
    padding: 40px 0;
    text-align: center;
    position: relative;
    z-index: 3;
}

.footer-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--rose-300);
    margin-bottom: 8px;
}

.footer-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: var(--rose-400);
    opacity: 0.7;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 350px;
        margin: 0 auto;
    }

    .gallery-card {
        aspect-ratio: 4/5;
    }

    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 50%, rgba(159, 18, 57, 0.6) 100%);
    }

    .message-section,
    .gallery-section,
    .final-section {
        padding: 70px 0;
    }

    .hero {
        min-height: 100svh;
    }

    .divider-line {
        width: 40px;
    }

    .scroll-indicator {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        max-width: 300px;
    }

    .message-card {
        border-radius: var(--radius-lg);
    }

    .final-card {
        border-radius: var(--radius-lg);
    }

    .quote-mark {
        font-size: 4rem;
    }
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 0 60px rgba(244, 63, 94, 0.3);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
    border: none;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
