:root {
    --primary: #ff4d6d;
    --primary-dark: #c9184a;
    --secondary: #ffb3c1;
    --bg-dark: #000000;
    --bg-light: #fff0f3;
    --text-light: #ffffff;
    --text-dark: #2d2d2d;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', sans-serif;
}

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

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-sans);
    overflow-x: hidden;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--glass);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 20px;
    font-family: var(--font-serif);
    font-style: italic;
    letter-spacing: 2px;
}

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

/* Intro Overlay */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    text-align: center;
}

.intro-text {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-style: italic;
    color: var(--secondary);
    opacity: 0;
}

.countdown {
    font-size: 10rem;
    font-weight: 900;
    color: var(--primary);
    margin-top: 20px;
    opacity: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 5px;
}

.heart {
    color: var(--primary);
    display: inline-block;
    animation: pulse 2s infinite;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

#fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

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

#main-content {
    opacity: 0;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.hero .name {
    font-size: 6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 10px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    letter-spacing: 3px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.arrow {
    width: 2px;
    height: 30px;
    background: var(--text-light);
    position: relative;
}

.arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: translateX(-50%) rotate(45deg);
}

/* Scrollytelling Section */
.story-container {
    position: relative;
    width: 100%;
}

.sticky-image-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}

#story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: transform 0.5s ease;
}

.story-content {
    position: relative;
    z-index: 2;
    padding-bottom: 100vh;
}

.story-step {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 30px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.glass-card h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.glass-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 5%;
    background: var(--bg-dark);
}

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

.section-header h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 15px;
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto;
}

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

.bento-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
    height: 620px;
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Final Wish */
.final-wish {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #2b0b16 0%, #000000 100%);
}

.text-gradient {
    background: linear-gradient(45deg, #ff4d6d, #ffb3c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 5rem;
    font-family: var(--font-serif);
    margin-bottom: 2rem;
}

.heart-animation {
    font-size: 4rem;
    margin-top: 30px;
}

.footer {
    padding: 40px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.5;
    letter-spacing: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar { padding: 20px; }
    .hero h1 { font-size: 2.5rem; }
    .hero .name { font-size: 3.5rem; }
    .glass-card { padding: 30px; }
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .bento-item.large { grid-column: span 2; grid-row: span 1; height: 300px; }
    .text-gradient { font-size: 3rem; }
}
