/* ===========================
   CSS Variables & Reset (Cinematic Luxury)
   =========================== */

:root {
    /* Colors - Champagne Gold & Sakura Palette */
    --color-primary: #F9F7F2;
    /* Warm White / Ivory */
    --color-secondary: #e6d370;
    /* Unified Gold */
    --color-accent: #d8c360;
    /* Slightly deeper gold for gradients */
    --color-sakura: #fff0f5;
    /* Subtle Sakura Pink */
    --color-sakura-dark: #fddde6;
    /* Deeper Pink for visibility */

    --color-text: #2C2C2C;
    /* Soft Black */
    --color-text-light: #6E685E;
    /* Warm Gray */
    --color-bg: #F9F7F2;
    /* Warm White */
    --color-dark: #1A1A1A;
    /* Rich Black used for contrast */

    --color-border: rgba(230, 211, 112, 0.3);
    /* Gold border with opacity */
    --color-glass: rgba(255, 255, 255, 0.7);
    /* Glassmorphism base */

    --shadow-soft: 0 10px 30px rgba(44, 44, 44, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

    /* Fonts */
    --font-serif: 'Cormorant Garamond', serif;
    --font-heading: 'Cormorant Garamond', serif;
    --font-sans: 'Noto Sans JP', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    color: var(--color-text);
    line-height: 2;
    background-color: var(--color-bg);
    overflow-x: hidden;
    position: relative;
}

/* ===========================
   Visual Effects Layers
   =========================== */

/* Film Grain Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Cinematic Light Leak / Vignette */
.light-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8000;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 60%, rgba(212, 175, 55, 0.05) 100%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 40%);
    mix-blend-mode: overlay;
}

/* Floating Particles Container */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--color-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-glass);
}

/* ===========================
   Typography & Utilities
   =========================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: 0.15em;
    font-weight: 300;
}

.text-gold {
    color: var(--color-secondary);
    background: linear-gradient(45deg, #e6d370, #f0e6a0, #e6d370);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: shine 5s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Sakura Falling Animation */
@keyframes sakuraFall {
    0% {
        transform: translateY(-10%) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.25em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
    z-index: 20;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    color: var(--color-secondary);
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    position: relative;
    padding: 0 1rem;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background-color: var(--color-secondary);
}

.section-subtitle::before {
    left: -20px;
}

.section-subtitle::after {
    right: -20px;
}

.info-note {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-top: 1rem;
    line-height: 1.6;
}

.guest-info-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--gold-color);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-color);
    transition: opacity 0.3s;
}

.guest-info-link:hover {
    opacity: 0.7;
}

/* Text Reveal Animation */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   Header Navigation
   =========================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    /* Increased z-index */
    padding: var(--spacing-md) 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(249, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    list-style: none;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: #fff;
    /* Initial state white for hero */
    text-decoration: none;
    letter-spacing: 0.15em;
    transition: var(--transition);
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header.scrolled .nav-link {
    color: var(--color-text);
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 1px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-secondary);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ===========================
   Hero Section (Cinematic)
   =========================== */
/* ===========================
   Hero Section (Cinematic)
   =========================== */

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

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 0;
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Ken Burns Effect */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform-origin: center center;
}

.hero-slide.active img {
    animation: kenBurns 15s ease-out forwards;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Luxury Vignette */
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 20%, transparent 80%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: #ffffff;
    mix-blend-mode: normal;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    /* Larger title */
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

    /* Animation */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.hero-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-style: italic;
    font-weight: 400;
    color: var(--color-secondary);
    /* Gold color for names */
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);

    /* Animation */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
}

.hero-details {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: #f0f0f0;
    letter-spacing: 0.15em;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.5s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Message Section (Rich)
   =========================== */

.message {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
    position: relative;
    z-index: 20;
}

.message-content {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.message-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 2.5;
    color: var(--color-text);
    background: linear-gradient(180deg, var(--color-text) 0%, var(--color-text-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Couple Section */
.couple-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.couple-card {
    background: #fff;
    /* Fallback */
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
    /* Glassmorphism applied via HTML hierarchy or here */
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.couple-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
}

.couple-photo {
    width: 100%;
    aspect-ratio: 3/4;
    /* More vertical portrait */
    overflow: hidden;
    position: relative;
}

.couple-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.couple-card:hover .couple-photo img {
    transform: scale(1.1);
}

.couple-message {
    padding: var(--spacing-md);
    text-align: center;
    background: #fff;
}

.couple-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.1em;
}

.couple-text {
    font-size: 0.95rem;
    line-height: 2.2;
    color: var(--color-text-light);
}

/* ===========================
   Information Section (Rich)
   =========================== */

.info {
    padding: var(--spacing-xl) 0;
    position: relative;
    /* Subtle texture background */
    background-color: var(--color-primary);
    background-image:
        radial-gradient(circle at 100% 0%, rgba(212, 175, 55, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 0% 100%, rgba(212, 175, 55, 0.05) 0%, transparent 20%);
}

.info-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
    border-radius: 4px;
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--color-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.info-card:last-child {
    margin-bottom: 0;
}

.info-title {
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
    position: relative;
    padding-bottom: 1rem;
}

.info-title::after {
    content: 'WEDDING RECEPTION';
    display: block;
    font-size: 0.8rem;
    color: var(--color-accent);
    letter-spacing: 0.3em;
    margin-top: 0.5rem;
    font-family: var(--font-sans);
}

/* Specific Subtitles for info cards context */
.info-card:last-child .info-title::after {
    content: 'AFTER PARTY';
}

.info-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.info-photo {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    /* Removes white space at bottom */
}

.info-list {
    font-family: var(--font-sans);
}

.info-list dt {
    font-weight: 500;
    color: var(--color-accent);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.info-list dt::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 1px;
    background-color: var(--color-accent);
    margin-right: 10px;
}

.info-list dt:first-child {
    margin-top: 0;
}

.info-list dd {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.8;
    padding-left: 18px;
    /* Alignment adjustment */
    font-feature-settings: "palt";
}

.venue-address,
.venue-tel {
    font-size: 0.9rem;
    color: var(--color-text-light);
    display: block;
    margin-top: 0.5rem;
}

.info-note {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: rgba(212, 175, 55, 0.05);
    /* Tinted background */
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 2;
    text-align: center;
    border-radius: 2px;
}

/* ===========================
   RSVP Section (Glass)
   =========================== */

.rsvp {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
}

/* Decorative Circle Background */
.rsvp::before {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.rsvp-intro {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-heading);
}

.rsvp-intro p {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 2.2;
}

.rsvp-deadline {
    color: var(--color-secondary);
    font-weight: 500;
    margin-top: var(--spacing-md);
    font-size: 1.2rem !important;
    letter-spacing: 0.1em;
}

.rsvp-form {
    max-width: 650px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-xl);
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    position: relative;
    z-index: 5;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.required {
    color: var(--color-secondary);
    margin-left: 0.2rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid #ddd;
    background-color: #fafafa;
    border-radius: 0;
    /* Sharp edges for elegance */
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background-color: #fff;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.radio-group {
    display: flex;
    gap: var(--spacing-lg);
    padding: 0.5rem 0;
}

.radio-label {
    display: flex;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: var(--transition);
}

.radio-label:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.radio-label input[type=\"radio\"] {
    margin-right: 0.8rem;
    accent-color: var(--color-secondary);
    transform: scale(1.2);
}

.form-submit {
    display: block;
    width: 200px;
    margin: var(--spacing-lg) auto 0;
    padding: 1.2rem 0;
    background-color: var(--color-secondary);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.form-submit:hover {
    background-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

/* ===========================
   Footer (Updated)
   =========================== */

.footer {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    background-color: var(--color-secondary);
    /* Gold footer */
    text-align: center;
    color: #fff;
}

.footer-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 2.2;
    margin-bottom: var(--spacing-lg);
}

.footer-copyright {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ===========================
   Responsive Design
   =========================== */

@media (min-width: 768px) {
    .info-details {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        /* Center vertically align */
        gap: var(--spacing-xl);
    }

    .info-photo {
        max-width: none;
        height: 100%;
        aspect-ratio: 4/3;
    }

    /* Alternating layout for cards */
    .info-card:nth-child(even) .info-details {
        direction: rtl;
        /* Switch order visually */
    }

    .info-card:nth-child(even) .info-details>* {
        direction: ltr;
        /* Reset text direction */
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-names {
        font-size: 2rem;
    }

    .hero-details {
        font-size: 1rem;
    }

    .nav-list {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .couple-section {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: var(--spacing-md);
    }

    .info-title {
        font-size: 1.8rem;
    }

    .rsvp-form {
        padding: var(--spacing-md);
    }

    .radio-group {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .form-submit {
        width: 100%;
    }
}
