/* 
  Sakura Theme - 10th Anniversary (Jhonatan & Yolanda)
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Noto+Serif+JP:wght@200;700&family=Sacramento&family=Cormorant+Garamond:ital,wght@0,300;0,600;1,400&display=swap');

:root {
    --sakura-pink: #ffb7c5;
    --sakura-dark: #a63d40;
    --sakura-soft: #fff1f3;
    --deep-charcoal: #1a1a1a;
    --gold: #d4af37;
    --glass: rgba(255, 255, 255, 0.15);
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--sakura-soft);
    background-image: url('sakura_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--deep-charcoal);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--sakura-soft);
}

::-webkit-scrollbar-thumb {
    background: var(--sakura-pink);
    border-radius: 10px;
    border: 2px solid var(--sakura-soft);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sakura-dark);
}

/* --- Pre-loader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #0c0c0c;
    background-image: radial-gradient(ellipse at 50% 46%, rgba(166, 61, 64, 0.2) 0%, transparent 62%);
    /* Very dark for fireworks contrast */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.loader-content {
    text-align: center;
    position: relative;
    width: 100%;
}

.jy-logo {
    font-family: 'Sacramento', cursive;
    font-size: 12rem;
    /* Even larger */
    color: #fff;
    margin-bottom: 20px;
    opacity: 0;
    transform: scale(0.3);
    text-shadow: 0 0 20px var(--sakura-pink), 0 0 40px var(--gold);
    animation: revealLogo 1.2s forwards 0.5s cubic-bezier(0.17, 0.67, 0.1, 1.2);
    position: relative;
    z-index: 2;
}

@keyframes revealLogo {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sparkle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 0 10px currentColor;
}

.loader-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    letter-spacing: 15px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeIn 1s forwards 1.5s;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-start {
    padding: 18px 50px;
    background: transparent;
    color: #fff;
    border: 2px solid var(--sakura-pink);
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    animation: fadeIn 1s forwards 2s;
    backdrop-filter: blur(10px);
}

.btn-start:hover {
    background: var(--sakura-pink);
    color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 183, 197, 0.6);
}

.loader-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255, 183, 197, 0.88);
    letter-spacing: 2px;
    margin-top: -10px;
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeIn 1s forwards 1.15s;
}

.loader-date-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.78rem;
    letter-spacing: 3px;
    color: rgba(212, 175, 55, 0.9);
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeIn 1s forwards 1.85s;
}

.loader-date-arrow {
    font-size: 1.3rem;
    color: var(--sakura-pink);
    opacity: 0.85;
}

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

/* --- Hero Section --- */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35); /* Let sakura bg shine through but darken for text readability */
}

.hero-content {
    text-align: center;
    z-index: 10;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-family: 'Sacramento', cursive;
    font-size: 8rem;
    margin-bottom: -20px;
    color: white;
}

.hero-subtitle {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    letter-spacing: 12px;
    font-weight: 200;
}

.kanji {
    font-size: 4rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* --- Hero Scroll Hint --- */
.hero-scroll-hint {
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s forwards 2.4s;
}

.scroll-arrow {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, transparent, rgba(255, 183, 197, 0.75));
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 8px;
    height: 8px;
    border-right: 1px solid rgba(255, 183, 197, 0.75);
    border-bottom: 1px solid rgba(255, 183, 197, 0.75);
    transform: translateX(-50%) rotate(45deg);
    animation: arrowBounce 1.5s ease-in-out infinite;
}

.scroll-label {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.62rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 183, 197, 0.7);
}

@keyframes arrowBounce {
    0%, 100% { transform: translateX(-50%) rotate(45deg) translateY(0); }
    50%       { transform: translateX(-50%) rotate(45deg) translateY(4px); }
}

/* --- Content Sections --- */
section:not(.hero) {
    padding: 100px 5%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: rgba(255, 255, 255, 0.85); /* Glassmorphism contrast */
    backdrop-filter: blur(8px);
    margin: 40px auto;
    max-width: 1400px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* --- Romantic Intro Section --- */
.intro-section {
    background: linear-gradient(160deg, rgba(255, 237, 241, 0.97), rgba(255, 255, 255, 0.93)) !important;
}

.intro-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 100%;
}

.intro-date-badge {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.82rem;
    letter-spacing: 6px;
    color: var(--sakura-dark);
    border: 1px solid var(--sakura-pink);
    border-radius: 999px;
    padding: 8px 28px;
    background: rgba(255, 183, 197, 0.15);
}

.intro-names {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.intro-name {
    font-family: 'Sacramento', cursive;
    font-size: 5rem;
    color: var(--sakura-dark);
    line-height: 1;
}

.intro-heart {
    font-size: 2rem;
    color: #ff8fb4;
    animation: heartPulse 1.3s ease-in-out infinite;
    text-shadow: 0 0 18px rgba(255, 143, 180, 0.55);
    display: inline-block;
}

.intro-rule {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 440px;
}

.intro-rule span:first-child,
.intro-rule span:last-child {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    display: block;
}

.intro-rule-kanji {
    color: var(--gold);
    font-size: 1.2rem;
    flex: none;
}

.intro-text {
    max-width: 640px;
    text-align: center;
    line-height: 2;
    color: #4a3535;
    font-size: 1.05rem;
}

.intro-text::first-letter {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    float: left;
    line-height: 0.78;
    margin: 4px 10px 0 0;
    color: var(--sakura-dark);
}

.intro-typewriter {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.45rem;
    color: #7a4040;
    text-align: center;
    max-width: 640px;
    min-height: 2.6rem;
}

.typewriter-cursor {
    animation: cursorBlink 0.75s step-end infinite;
    color: var(--sakura-pink);
    font-style: normal;
}

@keyframes cursorBlink {
    50% { opacity: 0; }
}

@media (max-width: 768px) {
    .intro-name { font-size: 3.5rem; }
    .intro-typewriter { font-size: 1.15rem; }
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '10';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 6rem;
    opacity: 0.05;
    z-index: -1;
}

.section-title::before {
    content: '\2741';
    display: block;
    font-size: 1.15rem;
    color: var(--gold);
    opacity: 0.6;
    margin-bottom: 12px;
    letter-spacing: 0;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--sakura-pink);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 100px;
    width: 100%;
    position: relative;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--sakura-dark);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    overflow: visible;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 183, 197, 0.75);
    transform: translate(-50%, -50%) scale(1);
    animation: dotRingPulse 2.2s ease-out infinite;
}

@keyframes dotRingPulse {
    0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.85; }
    100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0;    }
}

.timeline-content {
    width: 45%;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    color: var(--sakura-dark);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

/* --- Love Letters (Messages) --- */
.messages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.message-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border-left: 5px solid var(--sakura-pink);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.message-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(166, 61, 64, 0.1), 0 0 0 1px rgba(255, 183, 197, 0.25);
}

.message-card p {
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    line-height: 1.6;
}

.message-card::before {
    content: '\201C';
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    line-height: 0.7;
    color: var(--sakura-pink);
    opacity: 0.4;
    display: block;
    margin-bottom: 8px;
}

/* --- Photo Wall --- */
.photo-wall-subtitle {
    text-align: center;
    max-width: 760px;
    margin: -20px auto 30px;
    line-height: 1.7;
    color: #5a4a4a;
}

.photo-wall-toolbar {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.story-status {
    min-height: 26px;
    text-align: center;
    margin-bottom: 18px;
    color: #6f2a2f;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.wall-btn {
    border: 0;
    background: linear-gradient(135deg, var(--sakura-dark), #7f2f31);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.6px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 20px rgba(166, 61, 64, 0.22);
}

.wall-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(166, 61, 64, 0.32);
}

.photo-wall {
    column-count: 4;
    column-gap: 16px;
}

.photo-tile {
    position: relative;
    break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform-origin: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.photo-tile:hover {
    transform: translateY(-6px) rotate(0deg) scale(1.02);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
}

.photo-tile:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.photo-tile img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.tile-sm img { height: 180px; }
.tile-md img { height: 240px; }
.tile-lg img { height: 320px; }
.tile-tall img { height: 380px; }
.tile-wide img { height: 210px; }

.tilt-a { transform: rotate(-1.2deg); }
.tilt-b { transform: rotate(0.8deg); }
.tilt-c { transform: rotate(-0.4deg); }
.tilt-d { transform: rotate(1.5deg); }
.tilt-e { transform: rotate(-1.8deg); }

.photo-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
}

.photo-wall.focus-mode .photo-tile {
    filter: saturate(0.6) contrast(0.9);
}

.photo-wall.focus-mode .photo-tile:hover {
    filter: none;
    transform: translateY(-10px) scale(1.05) rotate(0deg);
}

.photo-modal {
    position: fixed;
    inset: 0;
    background: rgba(12, 9, 9, 0.88);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.photo-modal.open {
    display: flex;
}

.modal-figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.modal-image {
    max-width: min(92vw, 1100px);
    max-height: 82vh;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.modal-caption {
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.modal-close,
.modal-nav {
    position: absolute;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.modal-close {
    top: 22px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    border-radius: 50%;
    line-height: 1;
}

.modal-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.6rem;
}

.modal-prev { left: 24px; }
.modal-next { right: 24px; }

/* --- Footer --- */
.romantic-footer {
    padding: 80px 50px;
    text-align: center;
    font-family: 'Noto Serif JP', serif;
    background: linear-gradient(160deg, rgba(166, 61, 64, 0.92), rgba(106, 33, 35, 0.95));
    backdrop-filter: blur(8px);
    margin: 40px auto;
    border-radius: 30px;
    max-width: 1400px;
    color: white;
}

.footer-title {
    letter-spacing: 5px;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-quote {
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 24px;
}

.footer-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.names-pulse {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: namesPulse 2.3s ease-in-out infinite;
}

.heart-pulse {
    color: #ff8fb4;
    font-size: 1.5rem;
    animation: heartPulse 1.2s ease-in-out infinite;
    text-shadow: 0 0 18px rgba(255, 143, 180, 0.6);
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.45);
    margin: 0 auto 24px;
}

.footer-copy {
    font-size: 0.86rem;
    opacity: 0.82;
}

@keyframes namesPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.22); }
}

@media (max-width: 1000px) {
    .photo-wall {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .photo-wall {
        column-count: 2;
    }

    .modal-nav {
        width: 44px;
        height: 44px;
    }
}

/* --- Sakura Particles --- */
#sakura-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* --- Animations --- */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

[data-aos].active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        letter-spacing: 5px;
    }

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

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: 85%;
        margin-left: 50px !important;
    }
}