* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.envelope-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #3B82F6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.envelope-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.envelope-wrapper {
    text-align: center;
    animation: envelopeFadeIn 1s ease-out;
}

@keyframes envelopeFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.envelope {
    width: 280px;
    height: 200px;
    background: linear-gradient(135deg, #FF6B9D 0%, #FF8FAB 50%, #FFB3C6 100%);
    border-radius: 16px;
    position: relative;
    margin: 0 auto 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: envelopeFloat 3s ease-in-out infinite;
}

@keyframes envelopeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, #FF4D8F 0%, #FF6B9D 100%);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    border-radius: 16px 16px 0 0;
    z-index: 1;
}

.envelope-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    z-index: 2;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.envelope-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 32px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.envelope-btn {
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2563EB;
    background: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.envelope-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.envelope-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.main-content.hidden {
    opacity: 0;
    visibility: hidden;
}

.main-content {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease-in;
}

.main-content.sky-dive {
    animation: skyDive 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes skyDive {
    0% {
        transform: translateY(-150vh) rotate(-5deg);
        opacity: 0;
    }
    50% {
        transform: translateY(20vh) rotate(2deg);
        opacity: 1;
    }
    70% {
        transform: translateY(-10vh) rotate(-1deg);
    }
    85% {
        transform: translateY(5vh) rotate(0.5deg);
    }
    100% {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }
}

:root {
    --primary: #1E3A5F;
    --primary-light: #2A5A88;
    --accent: #2563EB;
    --accent-light: #3B82F6;
    --accent-dark: #1D4ED8;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --text-white: #FFFFFF;
    --text-soft: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 8px 32px rgba(37, 99, 235, 0.25);
    --radius-lg: 24px;
    --radius-xl: 32px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1E293B;
    line-height: 1.7;
    overflow-x: hidden;
    background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 50%, #E0E7FF 100%);
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

#hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 20px;
    animation: floatUp linear forwards;
    opacity: 0.5;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) rotate(270deg) scale(1.1);
        opacity: 0;
    }
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #64748B;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-light), var(--accent));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 80px 24px;
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #3B82F6 100%);
}

.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    top: -300px;
    right: -300px;
    animation: pulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation: pulse 8s ease-in-out infinite 4s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-title .heart-icon {
    display: inline-block;
    margin: 0 8px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-soft);
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-quote {
    max-width: 650px;
    margin: 0 auto 40px;
    padding: 32px 40px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.quote-text {
    font-size: 1.15rem;
    color: var(--text-white);
    font-style: italic;
    margin-bottom: 12px;
    line-height: 1.7;
}

.quote-author {
    color: var(--text-muted);
    font-weight: 500;
}

.hero-btn {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    background: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.hero-btn:active {
    transform: translateY(-1px);
}

.hero-bg-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}

.circle-1 { width: 400px; height: 400px; top: 5%; left: 5%; animation: float 12s ease-in-out infinite; }
.circle-2 { width: 300px; height: 300px; bottom: 15%; right: 10%; animation: float 15s ease-in-out infinite 2s; }
.circle-3 { width: 200px; height: 200px; top: 40%; right: 20%; animation: float 10s ease-in-out infinite 1s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -15px); }
    66% { transform: translate(-10px, 10px); }
}

.animate-fade-in { animation: fadeIn 1s ease-out; }
.animate-fade-in-delay { animation: fadeIn 1s ease-out 0.3s both; }
.animate-fade-in-delay2 { animation: fadeIn 1s ease-out 0.6s both; }
.animate-bounce-in { animation: bounceIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.9s both; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.section {
    padding: 100px 24px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: #64748B;
    margin-bottom: 60px;
    font-size: 1.05rem;
}

.story-section {
    background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,0.05) 100%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #1E40AF, #2563EB, #3B82F6);
    transform: translateX(-50%);
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.timeline-item:nth-child(odd) .timeline-card {
    margin-right: 55%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-card {
    margin-left: 55%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 52px;
    height: 52px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transform: translateX(-50%);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
    z-index: 10;
    border: 3px solid rgba(59, 130, 246, 0.15);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.35);
}

.timeline-card {
    background: white;
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: calc(50% - 50px);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.12);
}

.timeline-date {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #1E293B;
}

.timeline-desc {
    color: #64748B;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .timeline-line { left: 28px; }
    .timeline-dot { left: 28px; width: 44px; height: 44px; font-size: 18px; }
    .timeline-item:nth-child(odd) .timeline-card,
    .timeline-item:nth-child(even) .timeline-card {
        margin-left: 70px;
        margin-right: 0;
        text-align: left;
        max-width: calc(100% - 80px);
    }
}

.future-section {
    background: white;
}

.countdown-wrapper {
    margin-bottom: 50px;
}

.countdown-card {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
    padding: 40px;
    border-radius: 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.35);
    position: relative;
    overflow: hidden;
}

.countdown-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -150px;
    right: -100px;
}

.countdown-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.countdown-subtitle {
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px 16px;
    border-radius: 20px;
    min-width: 85px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 6px;
}

.countdown-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.countdown-hint {
    margin-top: 24px;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.goals-wrapper {
    background: #F8FAFC;
    padding: 36px;
    border-radius: 28px;
    border: 1px solid rgba(0,0,0,0.04);
}

.goals-title {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 28px;
    color: #1E293B;
}

.goals-list {
    display: grid;
    gap: 14px;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: white;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-size: 1.05rem;
    font-weight: 500;
    color: #334155;
    position: relative;
}

.goal-item:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.12);
}

.goal-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 26px;
    height: 26px;
    border: 2px solid #CBD5E1;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    background: white;
    transform-origin: center center;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.goal-item input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.goal-item input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.goal-item input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    border-color: transparent;
    animation: genieEffect 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.goal-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 42%;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2.2px 2.2px 0;
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
    animation: checkmarkPop 0.35s cubic-bezier(0.25, 0.1, 0.25, 1) 0.15s both;
}

@keyframes genieEffect {
    0% {
        transform: scale(1);
        z-index: 1;
        animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    }
    30% {
        transform: scale(2);
        z-index: 100;
        animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    }
    55% {
        transform: scale(1.6);
        z-index: 100;
        animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    }
    75% {
        transform: scale(1.85);
        z-index: 100;
        animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    }
    100% {
        transform: scale(1);
        z-index: 1;
    }
}

@keyframes checkmarkPop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(45deg) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(45deg) scale(1.4);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
    }
}

.goal-text {
    transition: color 0.3s ease;
}

.final-destination-section {
    padding: 80px 24px 100px;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, rgba(37, 99, 235, 0.02) 100%);
}

.final-destination-wrapper {
    text-align: center;
}

.final-destination-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 12px;
    background: linear-gradient(135deg, #1D4ED8, #2563EB, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.final-destination-desc {
    color: #64748B;
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.final-destination-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 20px 44px;
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 50%, #3B82F6 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.final-destination-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    left: -100%;
    transition: left 0.6s ease;
}

.final-destination-btn:hover::before {
    left: 100%;
}

.final-destination-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.45);
    color: white;
}

.final-destination-btn .btn-icon { font-size: 1.4rem; }
.final-destination-btn .btn-arrow {
    font-size: 1.4rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}
.final-destination-btn:hover .btn-arrow { transform: translateX(6px); }

.final-destination-btn.jump-animate,
.final-destination-btn:active {
    animation: jumpEffect 0.75s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes jumpEffect {
    0% {
        transform: translateY(0) scale(1);
    }
    20% {
        transform: translateY(12px) scale(0.96);
        animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    }
    40% {
        transform: translateY(-40px) scale(1.08);
        animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    }
    55% {
        transform: translateY(-48px) scale(1.1);
        animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    }
    70% {
        transform: translateY(-18px) scale(1.03);
        animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    }
    85% {
        transform: translateY(6px) scale(0.98);
        animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.footer {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    padding: 40px 24px;
    text-align: center;
}

.footer-text {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    margin-bottom: 8px;
}

.footer-date {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-copyright {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.footer-icp {
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
}

.footer-icp a:hover {
    color: rgba(255,255,255,0.8);
    text-decoration: underline;
}

.music-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    z-index: 500;
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.music-playing .music-spin {
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.gallery-section {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.02) 0%, white 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(29, 78, 216, 0.8) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    transform: scale(0);
    transition: transform 0.3s 0.1s;
}

.gallery-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transform: translateY(20px);
    transition: transform 0.3s 0.15s;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(29, 78, 216, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1);
}

.gallery-item:hover .gallery-text {
    transform: translateY(0);
}

.photo-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.photo-viewer.active {
    opacity: 1;
    visibility: visible;
}

.photo-viewer-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
}

.photo-viewer-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

.photo-viewer-close {
    position: absolute;
    top: -60px;
    right: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.photo-viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.photo-viewer-caption {
    text-align: center;
    color: white;
    margin-top: 16px;
    font-size: 1.1rem;
    font-weight: 500;
}

.quotes-section {
    background: white;
}

.quotes-wrapper {
    max-width: 700px;
    margin: 0 auto 32px;
}

.quotes-display {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    margin-bottom: 20px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.quotes-display::before, .quotes-display::after {
    content: '"';
    position: absolute;
    font-size: 5rem;
    color: rgba(37, 99, 235, 0.1);
    font-family: Georgia, serif;
    font-weight: bold;
}

.quotes-display::before {
    top: 0px;
    left: 20px;
}

.quotes-display::after {
    bottom: -30px;
    right: 20px;
}

.quote-card {
    text-align: center;
}

.quote-card-text {
    font-size: 1.25rem;
    color: #1E3A5F;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 16px;
}

.quote-card-date {
    color: #64748B;
    font-size: 0.9rem;
}

.quotes-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.quote-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563EB;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.quote-btn:hover {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.quote-dots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 300px;
}

.quote-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #CBD5E1;
    cursor: pointer;
    transition: all 0.2s;
}

.quote-dot.active {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.add-quote-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.add-quote-card {
    background: white;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.add-quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1D4ED8, #2563EB, #3B82F6);
}

.quote-label {
    display: block;
    font-weight: 600;
    color: #1E3A5F;
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quote-input {
    width: 100%;
    min-height: 120px;
    padding: 18px 22px;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 20px;
    outline: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    line-height: 1.7;
    background: #FAFBFF;
}

.quote-input:focus {
    border-color: #2563EB;
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), inset 0 0 0 1px rgba(37, 99, 235, 0.05);
}

.quote-input::placeholder {
    color: #94A3B8;
    font-style: italic;
}

.btn-primary,
.btn-add-quote {
    width: 100%;
    padding: 18px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 40%, #3B82F6 100%);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25), 
                0 1px 3px rgba(37, 99, 235, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-add-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover,
.btn-add-quote:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35), 
                0 4px 12px rgba(37, 99, 235, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover::before,
.btn-add-quote:hover::before {
    left: 100%;
}

.btn-primary:active,
.btn-add-quote:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3), 
                0 2px 6px rgba(37, 99, 235, 0.18);
    transition-duration: 0.1s;
}

.anniversaries-section {
    background: linear-gradient(180deg, white 0%, rgba(37, 99, 235, 0.03) 100%);
}

.anniversaries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.anniversary-card {
    background: white;
    padding: 32px 24px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.anniversary-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
}

.anniversary-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.anniversary-title {
    font-size: 1.15rem;
    color: #1E3A5F;
    margin-bottom: 8px;
    font-weight: 600;
}

.anniversary-date {
    color: #64748B;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.anniversary-count {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.anniversary-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1D4ED8, #2563EB, #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.anniversary-label {
    color: #64748B;
    font-size: 0.95rem;
    margin-top: 4px;
    font-weight: 500;
}

.floating-nav {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 400;
}

.float-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.float-nav-btn:hover {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

@media (max-width: 1100px) {
    .floating-nav {
        left: auto;
        right: 20px;
        top: auto;
        bottom: 90px;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 200px;
        gap: 10px;
    }
    
    .float-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .nav-links { gap: 16px; }
    .nav-links a { font-size: 0.8rem; }
    .hero-quote { padding: 24px 28px; }
    .countdown-card { padding: 32px 24px; }
    .countdown-display { gap: 10px; }
    .countdown-item { padding: 16px 12px; min-width: 70px; }
    .countdown-number { font-size: 2rem; }
    .goals-wrapper { padding: 28px 20px; }
    .final-destination-btn { padding: 16px 32px; font-size: 1.05rem; }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .quotes-display {
        padding: 32px 24px;
    }
    .quotes-display::before, .quotes-display::after {
        font-size: 3rem;
    }
    .quote-card-text {
        font-size: 1.1rem;
    }
    .anniversaries-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
    }
}
