﻿:root {
    --bg-gradient: linear-gradient(135deg, #fef6ff 0%, #e7f0ff 50%, #fbf7ff 100%);
    --card-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.45);
    --primary: #6c63ff;
    --accent: #ff9bbf;
    --highlight: #88d4ff;
    --text-dark: #1f2033;
    --text-muted: rgba(31, 32, 51, 0.72);
    --shadow-soft: 0 24px 70px rgba(76, 78, 100, 0.15);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --max-width: 1200px;
    --section-gap: clamp(4rem, 12vw, 8rem);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: var(--bg-gradient);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Design Switcher Banner for Homepage */
.design-switcher-alt {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.95), rgba(136, 212, 255, 0.95));
    padding: 0.5rem 2rem;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.design-switcher-alt span {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.switch-link-alt {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.25rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.switch-link-alt:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.nav-open {
    overflow: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 211, 255, 0.45), transparent 55%),
                radial-gradient(circle at bottom right, rgba(180, 225, 255, 0.45), transparent 60%);
    z-index: -2;
}

.gradient-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    transform: translate3d(0, 0, 0);
    animation: float 14s ease-in-out infinite;
}

.orb-one {
    width: 480px;
    height: 480px;
    top: -120px;
    left: -160px;
    background: radial-gradient(circle, rgba(255, 194, 222, 0.9) 0%, rgba(255, 194, 222, 0) 70%);
}

.orb-two {
    width: 400px;
    height: 400px;
    bottom: -160px;
    right: -180px;
    background: radial-gradient(circle, rgba(180, 255, 255, 0.9) 0%, rgba(180, 255, 255, 0) 70%);
    animation-delay: 4s;
}

.orb-three {
    width: 320px;
    height: 320px;
    bottom: 20%;
    left: 15%;
    background: radial-gradient(circle, rgba(204, 205, 255, 0.9) 0%, rgba(204, 205, 255, 0) 70%);
    animation-delay: 8s;
}

.navbar {
    position: sticky;
    top: 40px;
    z-index: 10;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.nav-container {
    margin: 0 auto;
    padding: 1rem clamp(1.5rem, 5vw, 3rem);
    max-width: var(--max-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    text-decoration: none;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.4rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:focus-visible,
.nav-link:hover {
    color: var(--text-dark);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 0.25rem;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    inset: 0;
    padding: clamp(4rem, 10vw, 6rem) clamp(1.5rem, 12vw, 8rem);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.mobile-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2.5rem, 6vw, 4rem);
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: clamp(4rem, 10vw, 6rem) clamp(1.5rem, 5vw, 3rem);
}

.hero-content {
    display: grid;
    gap: 1rem;
    position: relative;
}

.eyebrow,
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    margin: 0;
    line-height: 1.1;
}

.hero-date {
    font-weight: 600;
    margin: 0;
}

.hero-subtitle {
    color: var(--text-muted);
    margin: 0;
    max-width: 32ch;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-soft);
}

.time-segment {
    display: grid;
    gap: 0.2rem;
    text-align: center;
}

.time-value {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 600;
    font-family: 'Playfair Display', serif;
}

.time-label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.4rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.button.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 14px 36px rgba(108, 99, 255, 0.25);
}

.button.ghost {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.button.submit {
    background: linear-gradient(135deg, var(--primary), var(--highlight));
    color: #fff;
    border: none;
    cursor: pointer;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(108, 99, 255, 0.25);
}

.hero-panel {
    position: relative;
}

.panel-card {
    padding: clamp(2rem, 6vw, 2.8rem);
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1rem;
}

.panel-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.panel-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-muted);
    display: grid;
    gap: 0.5rem;
}

.panel-note {
    margin: 0;
    font-style: italic;
    color: var(--accent);
}

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-gap) clamp(1.5rem, 5vw, 3rem);
    display: grid;
    gap: clamp(2rem, 6vw, 3rem);
}

.section-intro {
    max-width: 58ch;
    display: grid;
    gap: 0.75rem;
}

.section-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin: 0;
}

.section-intro p {
    margin: 0;
    color: var(--text-muted);
}

.rsvp-form {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: var(--shadow-soft);
    padding: clamp(2rem, 6vw, 3rem);
    display: grid;
    gap: 1.5rem;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
    display: grid;
    gap: 0.6rem;
    font-weight: 500;
}

input,
select,
textarea {
    font: inherit;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 3px rgba(31, 32, 51, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.15);
}

.form-fieldset {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.7);
}

.checkbox-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.checkbox-grid label {
    font-weight: 500;
    color: var(--text-muted);
    align-items: center;
    grid-auto-flow: column;
    justify-content: start;
}

.checkbox-grid input {
    width: 1.15rem;
    height: 1.15rem;
}

.form-hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.timeline {
    display: grid;
    gap: 1.5rem;
}

.timeline-card {
    padding: clamp(1.8rem, 4vw, 2.5rem);
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.75rem;
}

.timeline-card header {
    display: grid;
    gap: 0.4rem;
}

.timeline-time {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--highlight);
    font-weight: 600;
}

.timeline-card h3 {
    margin: 0;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.timeline-card p {
    margin: 0;
    color: var(--text-muted);
}

.dress-code {
    font-weight: 600;
    color: var(--accent);
}

.venue {
    position: relative;
}

.glass-card {
    background: rgba(255, 255, 255, 0.28);
    border-radius: calc(var(--radius-lg) + 12px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(40px);
    box-shadow: 0 40px 80px rgba(76, 78, 100, 0.2);
    padding: clamp(2.5rem, 7vw, 3.5rem);
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
}

.glass-grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.glass-item {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.35);
    display: grid;
    gap: 0.75rem;
}

.glass-item h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
}

.glass-item p {
    margin: 0;
    color: var(--text-muted);
}

.glass-item ul {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.4rem;
    color: var(--text-muted);
}

.inline-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.inline-link:hover,
.inline-link:focus-visible {
    text-decoration: underline;
}

.note {
    font-size: 0.9rem;
    color: var(--accent);
}

.logistics .info-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card {
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.75rem;
}

.info-card h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.footer {
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    color: var(--text-muted);
}

.footer p {
    margin: 0 0 0.5rem;
    font-weight: 500;
}

.footer small {
    font-size: 0.85rem;
}

.animate-fade-up,
.animate-fade-in,
.animate-stagger {
    opacity: 0;
    transform: translateY(24px);
}

.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-stagger.visible {
    transition-delay: var(--delay, 0ms);
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(20px, -30px, 0);
    }
}

@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        place-items: center;
    }

    .hero-subtitle {
        max-width: 48ch;
    }

    .hero-actions {
        justify-content: center;
    }

    .panel-card {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .countdown {
        grid-template-columns: repeat(2, minmax(110px, 1fr));
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .button {
        width: 100%;
    }

    .form-grid,
    .checkbox-grid,
    .glass-grid,
    .logistics .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-fade-up,
    .animate-fade-in,
    .animate-stagger,
    .visible {
        opacity: 1 !important;
        transform: none !important;
    }
}
