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

:root {
    --primary: #c77dff;
    --secondary: #e0aaff;
    --accent: #ff6b9d;
    --dark: #1a1a2e;
}

body {
    font-family: 'Raleway', sans-serif;
    background: #0f0c29;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Animated Gradient Orbs Background */
.orb-background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #c77dff, transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ff6b9d, transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #7209b7, transparent);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(100px, -100px) scale(1.1); }
    50% { transform: translate(-50px, 100px) scale(0.9); }
    75% { transform: translate(150px, 50px) scale(1.05); }
}

/* Particle System */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) scale(1);
        opacity: 0;
    }
}

/* Content Container */
.content {
    position: relative;
    z-index: 2;
}

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

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

.hero-date {
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--secondary);
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
    opacity: 0;
    animation: titleReveal 2s ease 1s forwards;
    position: relative;
}

.hero-title span {
    display: inline-block;
    background: linear-gradient(135deg, #c77dff, #ff6b9d, #e0aaff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(50px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: fadeIn 1.5s ease 2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease 3s forwards, bounce 2s infinite 4s;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--secondary));
    margin: 0 auto;
    margin-bottom: 10px;
}

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

/* Section Wrapper */
section {
    padding: 8rem 2rem;
    position: relative;
}

/* Memory Timeline */
.timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 8rem;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    text-align: left;
    padding-left: 4rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    text-align: right;
    padding-right: 4rem;
}

.timeline-content {
    width: 45%;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    top: 0;
    box-shadow: 0 0 20px var(--accent);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -60px;
}

.timeline-date {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.timeline-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 300;
}

.timeline-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Photo Gallery - Masonry Style */
.gallery-section {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    padding: 8rem 2rem;
}

.gallery-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary);
    font-weight: 300;
}

.masonry-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(199, 125, 255, 0.2), rgba(255, 107, 157, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: scale(0.8) rotateY(15deg);
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.masonry-item.visible {
    opacity: 1;
    transform: scale(1) rotateY(0);
}

.masonry-item:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 30px 60px rgba(199, 125, 255, 0.4);
}

.masonry-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    filter: grayscale(0.3);
}

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-caption {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: white;
}

/* Letter Section */
.letter-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.letter-container {
    max-width: 800px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.letter-container::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 150px;
    font-family: 'Cormorant Garamond', serif;
    color: rgba(199, 125, 255, 0.15);
    line-height: 1;
}

.letter-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    text-align: center;
}

.letter-text {
    font-family: 'Crimson Text', serif;
    font-size: 1.3rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.letter-text.highlight {
    font-size: 1.5rem;
    color: var(--primary);
    font-style: italic;
    text-align: center;
    margin: 3rem 0;
    font-weight: 600;
}

.signature {
    text-align: right;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--accent);
    margin-top: 3rem;
    font-style: italic;
}

/* Closing Section */
.finale {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.finale-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #c77dff, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.finale-quote {
    font-family: 'Crimson Text', serif;
    font-size: 1.4rem;
    font-style: italic;
    max-width: 700px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

.heart-burst {
    font-size: 3rem;
    animation: heartbeat 1.5s ease infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 4rem 1rem;
    }

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

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        text-align: left !important;
        padding-left: 2rem !important;
        padding-right: 0 !important;
    }

    .timeline-item:nth-child(even) .timeline-content::before,
    .timeline-item:nth-child(odd) .timeline-content::before {
        left: -60px;
        right: auto;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
    }

    .letter-container {
        padding: 2rem;
    }
}