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

body {
    font-family: 'Quicksand', 'Inter', sans-serif;
    background: #4f0d09;
    color: #ffffff;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: 'Playfair Display', 'Lora', serif;
}

/* Opening Scene */
.opening-scene {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #290101;
    overflow: hidden;
} 

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.neural-network {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
}

.sakura-flower {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    opacity: 0;
}

.falling-petals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Corner Ornaments */
.corner-ornament {
    position: absolute;
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 5;
}

.corner-tl {
    top: 20px;
    left: 20px;
}

.corner-br {
    bottom: 20px;
    right: 20px;
}

@media (max-width: 768px) {
    .corner-ornament {
        width: 90px;
        height: 90px;
    }
    .corner-tl { top: 10px; left: 10px; }
    .corner-br { bottom: 10px; right: 10px; }
}

.title-container {
    text-align: center;
    z-index: 10;
    opacity: 0;
    position: relative;
    top: -100px;
}

.monogram-logo {
    width: 500px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 0 18px rgba(205, 133, 63, 0.5));
}

#main-title {
    font-size: 8.5rem;
    -webkit-text-stroke: 0.8px #C19D68;
    font-family: 'Great Vibes', cursive;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-align: center;
    text-shadow: 0 0 15px rgba(193, 157, 104, 0.12), 0 2px 8px rgba(0,0,0,0.4);
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #87ceeb;
    font-family: 'Playfair Display', serif;
}

.names {
    font-size: 3.5rem;
    color: #D4A1A1;
    font-family: 'Playfair Display', serif;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #290101;
    overflow: hidden;
    opacity: 1;
}



.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-petals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff69b4;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #87ceeb;
    font-family: 'Lora', 'Playfair Display', serif;
}

.hero-names {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
}

.divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff69b4, transparent);
    margin: 0 auto;
    box-shadow: 0 0 10px #ff69b4;
}

/* Story Section */
.story-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    background: #290101;
}

.story-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #63252A;
    -webkit-text-stroke: 0.5px #C19D68;
    font-family: 'Playfair Display', serif;
}

.story-text {
    font-size: 1.45rem;
    line-height: 1.9;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
}

/* Timeline Section */
.timeline-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    background: #290101;
}

.timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    gap: 0;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1.2rem;
}

.timeline-node {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid #C19D68;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 0 14px rgba(193, 157, 104, 0.25);
    transition: all 0.3s ease;
}

.timeline-node:hover {
    background: rgba(193, 157, 104, 0.1);
    box-shadow: 0 0 22px rgba(193, 157, 104, 0.45);
}

.timeline-content h3 {
    color: #D4A1A1;
    font-size: 1.15rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.04em;
}

.timeline-connector {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C19D68, transparent);
    opacity: 0.5;
    margin-bottom: 2.4rem;
}

/* Info Section */
.info-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    background: #290101;
}

.info-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
}

.countdown {
    margin-top: 2rem;
    text-align: center;
}

.countdown h3 {
    color: #ff69b4;
    margin-bottom: 1rem;
}

#countdown-timer {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 600;
}

.address-section {
    margin-top: 2rem;
    text-align: center;
}

.address-section h3 {
    color: #ff69b4;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.address-section p {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 500;
}

.info-card {
    background: #7c1c24;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    width: 250px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    color: #ff69b4;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: #ffffff;
}

/* Map Section */
.map-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    background: #290101;
}

.map-container {
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.map-button {
    background: linear-gradient(135deg, #ff69b4, #87ceeb);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.map-button:hover {
    transform: scale(1.05);
}

/* Final Section */
.final-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem 10rem;
    position: relative;
    background: #290101;
}

.final-content {
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.final-photo-frame {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.final-photo {
    width: 320px;
    height: 400px;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
    border: 1px solid rgba(193, 157, 104, 0.4);
    box-shadow: 0 0 40px rgba(0,0,0,0.6), 0 0 15px rgba(193,157,104,0.15);
    display: block;
}

.final-photo-ornament {
    position: absolute;
    color: #C19D68;
    font-size: 1.4rem;
    opacity: 0.7;
    line-height: 1;
}
.final-photo-ornament.top-left    { top: -14px; left: -14px; transform: rotate(0deg); }
.final-photo-ornament.top-right   { top: -14px; right: -14px; transform: rotate(90deg); }
.final-photo-ornament.bottom-left  { bottom: -14px; left: -14px; transform: rotate(270deg); }
.final-photo-ornament.bottom-right { bottom: -14px; right: -14px; transform: rotate(180deg); }

.final-divider-line {
    width: 120px;
    height: 1px;
    background: linear-gradient(to right, transparent, #C19D68, transparent);
    margin: 0.8rem auto 1rem;
}

.final-divider-ornament {
    color: #C19D68;
    font-size: 1rem;
    letter-spacing: 0.3em;
    margin: 0.5rem 0 1rem;
    opacity: 0.8;
}

.final-message {
    font-size: 1.9rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
}

.family-names {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.family-name-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.family-name-first {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: rgba(212, 161, 161, 0.75);
    letter-spacing: 0.04em;
    margin: 0;
    line-height: 1.5;
}

.family-name-last {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: rgba(212, 161, 161, 0.75);
    letter-spacing: 0.04em;
    margin: 0;
    line-height: 1.5;
}

.family-divider {
    color: #C19D68;
    font-size: 1.2rem;
    opacity: 0.6;
    margin-top: 0.2rem;
    line-height: 1.5;
}

.final-names {
    font-size: 3.5rem;
    color: #D4A1A1;
    font-family: 'Playfair Display', serif;
}

/* QR Section */
.qr-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    background: #290101;
}

#qrcode {
    margin-bottom: 1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 20;
    animation: scrollIndicatorFade 5s ease-in-out forwards;
}

.section-scroll {
    opacity: 0;
    animation: none;
}

.section-scroll.active {
    animation: scrollIndicatorFade 5s ease-in-out forwards;
}

.scroll-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: #F2DEB0;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 1;
    text-shadow: 0 0 10px rgba(193,157,104,0.4);
}

.scroll-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.scroll-arrow span {
    display: block;
    width: 18px;
    height: 18px;
    border-right: 2px solid #C19D68;
    border-bottom: 2px solid #C19D68;
    transform: rotate(45deg);
    opacity: 0;
    animation: scrollArrow 1.2s ease-in-out infinite;
}

.scroll-arrow span:nth-child(1) { animation-delay: 0s; }
.scroll-arrow span:nth-child(2) { animation-delay: 0.2s; }
.scroll-arrow span:nth-child(3) { animation-delay: 0.4s; }

@keyframes scrollArrow {
    0%   { opacity: 0; transform: rotate(45deg) translate(-4px, -4px); }
    50%  { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(4px, 4px); }
}

@keyframes scrollIndicatorFade {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOutOpening {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fadeInHero {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.opening-scene.hide {
    animation: fadeOutOpening 3s ease-out forwards;
}

.hero-section.show {
    animation: fadeInHero 3s ease-in forwards;
}

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

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 105, 180, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 105, 180, 0.8); }
}

/* Floating sakura petals */
/* Page Navigation */
.page-nav {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.page-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s ease;
}

.nav-line {
    width: 1px;
    height: 28px;
    background: rgba(193, 157, 104, 0.3);
    transition: all 0.4s ease;
    display: block;
}

.page-nav-item:first-child .nav-line {
    display: none;
}

.nav-number {
    font-family: 'Playfair Display', serif;
    font-size: 0.65rem;
    color: rgba(193, 157, 104, 0.45);
    letter-spacing: 0.05em;
    transition: all 0.4s ease;
    line-height: 1;
    padding: 4px 0;
}

.page-nav-item.active .nav-number {
    font-size: 0.95rem;
    color: #C19D68;
    font-weight: 700;
}

.page-nav-item.active .nav-line {
    background: rgba(193, 157, 104, 0.7);
    height: 32px;
}

.page-nav-item:hover .nav-number {
    color: rgba(193, 157, 104, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    /* Navigation */
    .page-nav {
        right: 12px;
    }
    .nav-number {
        font-size: 0.55rem;
    }
    .page-nav-item.active .nav-number {
        font-size: 0.8rem;
    }
    .nav-line {
        height: 20px;
    }

    /* Opening */
    .monogram-logo {
        width: 75vw;
        max-width: 320px;
    }
    #main-title {
        font-size: 5.5rem;
        line-height: 1.2;
        letter-spacing: 0.01em;
    }
    .subtitle {
        font-size: 1rem;
    }
    .names {
        font-size: 2rem;
    }

    /* Timeline */
    .timeline {
        flex-direction: column;
    }
    .timeline-connector {
        width: 2px;
        height: 40px;
        margin: 0.5rem 0;
    }

    /* Info cards */
    .info-cards {
        flex-direction: column;
        align-items: center;
    }
    .info-card {
        width: 85vw;
        max-width: 320px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.8rem;
    }

    /* Story */
    .story-text {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Final */
    .final-photo {
        width: 220px;
        height: 280px;
    }
    .final-message {
        font-size: 1.2rem;
        padding: 0 1.5rem;
        text-align: center;
    }
    .final-names {
        font-size: 2.2rem;
    }
    .family-names {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 1rem;
        flex-wrap: nowrap;
    }
    .family-divider {
        display: block;
        margin-top: 0.2rem;
    }
    .family-name-first,
    .family-name-last {
        font-size: 0.82rem;
    }

    /* Countdown */
    #countdown-timer {
        font-size: 1rem;
    }

    /* Map */
    .map-container iframe {
        height: 250px;
    }
}