/* ========== Reset & Base ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #0A0A0F;
    --color-surface: #12121A;
    --color-card: #1A1A26;
    --color-primary: #00F0FF;
    --color-primary-glow: rgba(0, 240, 255, 0.15);
    --color-accent: #FF2D6B;
    --color-accent-glow: rgba(255, 45, 107, 0.15);
    --color-text: #E8E6F0;
    --color-text-muted: #7A7890;
    --color-border: #2A2A3A;
    --font-pixel: 'Press Start 2P', monospace;
    --font-main: 'Inter', system-ui, sans-serif;
    --font-hero: 'Cormorant Garamond', Georgia, serif;
    --max-width: 1100px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* ========== Cyberpunk animated background ========== */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        /* Grid lines */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 59px,
            rgba(0, 240, 255, 0.03) 59px,
            rgba(0, 240, 255, 0.03) 60px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 59px,
            rgba(0, 240, 255, 0.03) 59px,
            rgba(0, 240, 255, 0.03) 60px
        ),
        /* Glow spots */
        radial-gradient(ellipse 600px 400px at 15% 20%, rgba(0, 240, 255, 0.05), transparent),
        radial-gradient(ellipse 500px 500px at 85% 60%, rgba(255, 45, 107, 0.04), transparent),
        radial-gradient(ellipse 400px 300px at 50% 90%, rgba(0, 240, 255, 0.03), transparent),
        var(--color-bg);
}

/* Floating particles via pseudo-element on html */
html::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(1px 1px at 10% 15%, rgba(0, 240, 255, 0.4), transparent),
        radial-gradient(1px 1px at 25% 45%, rgba(255, 45, 107, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 40% 80%, rgba(0, 240, 255, 0.35), transparent),
        radial-gradient(1px 1px at 55% 25%, rgba(255, 45, 107, 0.25), transparent),
        radial-gradient(1px 1px at 70% 65%, rgba(0, 240, 255, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 85% 10%, rgba(255, 45, 107, 0.35), transparent),
        radial-gradient(1px 1px at 90% 85%, rgba(0, 240, 255, 0.25), transparent),
        radial-gradient(1px 1px at 5% 70%, rgba(255, 45, 107, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 60% 50%, rgba(0, 240, 255, 0.2), transparent),
        radial-gradient(1px 1px at 35% 5%, rgba(255, 45, 107, 0.3), transparent),
        radial-gradient(1px 1px at 78% 38%, rgba(0, 240, 255, 0.3), transparent),
        radial-gradient(1px 1px at 18% 92%, rgba(0, 240, 255, 0.25), transparent);
    animation: starDrift 25s linear infinite;
    pointer-events: none;
}

@keyframes starDrift {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-30px); }
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== Preloader ========== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    padding: 2rem;
}

.preloader-title {
    font-family: var(--font-pixel);
    font-size: clamp(1rem, 4vw, 1.8rem);
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-shadow: 0 0 20px var(--color-primary-glow);
}

.progress-bar {
    width: min(400px, 80vw);
    height: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.15s linear;
    box-shadow: 0 0 12px var(--color-primary-glow);
}

.preloader-text {
    font-family: var(--font-pixel);
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

/* ========== Navigation ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    transition: transform 0.3s;
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    color: var(--color-primary) !important;
    text-shadow: 0 0 10px var(--color-primary-glow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover {
    color: var(--color-primary);
    text-shadow: 0 0 8px var(--color-primary-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ========== Hero ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 240, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 45, 107, 0.04) 0%, transparent 50%),
        var(--color-bg);
}

.window-frame {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(18, 18, 26, 0.85);
    backdrop-filter: blur(8px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 1px rgba(0, 240, 255, 0.1);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(26, 26, 38, 0.9);
    border-bottom: 1px solid var(--color-border);
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-dot.red { background: var(--color-accent); }
.window-dot.yellow { background: #FFB800; }
.window-dot.green { background: var(--color-primary); }

.window-title {
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    color: var(--color-text-muted);
    margin-left: 8px;
}

.window-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.hero-label {
    font-family: var(--font-pixel);
    font-size: 0.6rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--color-accent-glow);
}

.hero-names {
    font-family: var(--font-hero);
    font-size: clamp(2.2rem, 7vw, 3.8rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
    color: var(--color-text);
}

.amp {
    color: var(--color-primary);
    font-weight: 400;
    text-shadow: 0 0 15px var(--color-primary-glow);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.hero-meta {
    font-family: var(--font-pixel);
    font-size: 0.6rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.hero-meta strong {
    color: var(--color-text);
}

.blink {
    animation: blink 1s step-end infinite;
    color: var(--color-primary);
    text-shadow: 0 0 8px var(--color-primary-glow);
}

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

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 4px 25px var(--color-primary-glow);
}

.btn-primary:hover {
    color: var(--color-bg);
    box-shadow: 0 6px 35px rgba(0, 240, 255, 0.3);
}

.btn-large {
    padding: 1rem 3rem;
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* ========== Sections ========== */
.section {
    padding: 5rem 0;
}

.section:nth-child(even) {
    background: rgba(18, 18, 26, 0.6);
}

.section-title {
    text-align: center;
    font-family: var(--font-pixel);
    font-size: clamp(0.8rem, 2.5vw, 1.1rem);
    color: var(--color-primary);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    text-shadow: 0 0 15px var(--color-primary-glow);
}

.title-icon {
    margin-right: 0.5rem;
    font-size: 1.6rem;
    vertical-align: middle;
}

/* ========== About ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.about-card {
    background: rgba(26, 26, 38, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    min-width: 0;
    overflow: hidden;
}


.about-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.about-role {
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
    text-shadow: 0 0 8px var(--color-accent-glow);
}

.about-specs {
    list-style: none;
    text-align: left;
    font-size: 0.9rem;
}

.about-specs li {
    display: flex;
    align-items: baseline;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.about-specs li:last-child {
    border-bottom: none;
}

.about-specs span {
    color: var(--color-primary);
    font-weight: 600;
    min-width: 4.5rem;
    flex-shrink: 0;
}

.about-heart {
    text-align: center;
}

.heart-icon {
    font-size: 3rem;
    color: var(--color-accent);
    animation: pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 10px var(--color-accent-glow));
}

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

.about-heart p {
    font-family: var(--font-pixel);
    font-size: 0.6rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
    line-height: 1.8;
}

.about-heart strong {
    color: var(--color-primary);
    font-size: 0.8rem;
    text-shadow: 0 0 8px var(--color-primary-glow);
}

/* ========== Meme Section ========== */
.meme-section {
    text-align: center;
}

.meme-card {
    max-width: 480px;
    margin: 0 auto;
    background: rgba(26, 26, 38, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.meme-top {
    padding: 1.25rem 1.5rem 0.75rem;
}

.meme-photo {
    width: 100%;
    height: auto;
    display: block;
}

.meme-bottom {
    padding: 0.75rem 1.5rem 1.25rem;
}

.meme-text {
    font-family: var(--font-pixel);
    font-size: clamp(0.55rem, 2vw, 0.7rem);
    color: var(--color-primary);
    line-height: 1.8;
    text-shadow: 0 0 10px var(--color-primary-glow);
}

.meme-subtext {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 0.3rem;
}

/* ========== Party Description ========== */
.party-body {
    text-align: left;
}

.party-body h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    text-shadow: 0 0 10px var(--color-primary-glow);
}

.party-body > p {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.7;
}

.party-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.party-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: rgba(10, 10, 15, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s;
}


.party-feature-icon {
    font-size: 1.3rem;
}

.party-note {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 1.25rem;
    line-height: 1.7;
}

/* ========== Timeline / Schedule ========== */
.timeline {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 0.6rem;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--color-primary-glow);
}

.timeline-time {
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    color: var(--color-accent);
    margin-bottom: 0.4rem;
    text-shadow: 0 0 8px var(--color-accent-glow);
}

.timeline-content h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ========== RSVP ========== */
.rsvp {
    text-align: center;
}

.rsvp-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.rsvp-subtitle small {
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    display: block;
    margin-top: 0.75rem;
    color: var(--color-accent);
    text-shadow: 0 0 8px var(--color-accent-glow);
}

/* ========== Survey Panels ========== */
.survey-panels {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#attending-questions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.3s, max-height 0.4s;
}

#attending-questions.hidden {
    opacity: 0.3;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    gap: 0;
}

.survey-panel {
    text-align: left;
}

.survey-panels .window-frame {
    max-width: 100%;
}

.survey-label {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    display: block;
}

.survey-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
    text-align: center;
    font-style: italic;
}

.survey-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: rgba(10, 10, 15, 0.6);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.survey-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.survey-input::placeholder {
    color: var(--color-text-muted);
}

.survey-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: rgba(10, 10, 15, 0.6);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.survey-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.survey-textarea::placeholder {
    color: var(--color-text-muted);
}

/* Option cards grid */
.option-grid {
    display: grid;
    gap: 1rem;
}

.option-grid-2 { grid-template-columns: repeat(2, 1fr); }
.option-grid-3 { grid-template-columns: repeat(3, 1fr); }

.option-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.25rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: rgba(26, 26, 38, 0.7);
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    font-family: var(--font-main);
    color: var(--color-text);
    text-align: center;
}

@media (hover: hover) {
    .option-card:hover {
        transform: translateY(-3px);
        border-color: var(--color-primary);
        box-shadow: 0 0 15px var(--color-primary-glow);
    }
}

.option-card.selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 25px var(--color-primary-glow);
    background: linear-gradient(to bottom, rgba(26, 26, 38, 0.8), rgba(0, 240, 255, 0.06));
}

.option-emoji {
    font-size: 1.8rem;
    line-height: 1;
}

.option-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.option-sub {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.option-check {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.85rem;
    color: var(--color-primary);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s, transform 0.2s;
    text-shadow: 0 0 6px var(--color-primary-glow);
}

.option-card.selected .option-check {
    opacity: 1;
    transform: scale(1);
}

.cant-card {
    position: relative;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s, box-shadow 0.2s;
}

.cant-card.selected {
    border-color: var(--color-accent);
    box-shadow: 0 0 25px var(--color-accent-glow);
    background: linear-gradient(to bottom, rgba(26, 26, 38, 0.8), rgba(255, 45, 107, 0.06));
}

.cant-card.selected .option-check {
    color: var(--color-accent);
    text-shadow: 0 0 6px var(--color-accent-glow);
}

/* Validation errors */
.survey-error {
    display: none;
    color: var(--color-accent);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--color-accent-glow);
    border-radius: 6px;
    border: 1px solid rgba(255, 45, 107, 0.2);
}

.has-error .window-header {
    border-bottom-color: var(--color-accent);
}

/* Submit */
.survey-submit-wrap {
    text-align: center;
    padding-top: 0.5rem;
}

/* Success screen */
.survey-success {
    max-width: 500px;
    margin: 0 auto;
}

.success-body {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-body h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    text-shadow: 0 0 15px var(--color-primary-glow);
}

.success-body p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.success-sub {
    font-family: var(--font-pixel);
    font-size: 0.55rem !important;
    margin-top: 1rem !important;
    line-height: 2;
}

/* ========== Footer ========== */
.footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--color-border);
}

.footer-text {
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.footer-sub {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.heart-footer {
    color: var(--color-accent);
    text-shadow: 0 0 6px var(--color-accent-glow);
}

/* ========== Scroll Animations ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Mobile ========== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links.open {
        max-height: 300px;
        padding: 1rem 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-heart {
        order: -1;
    }

    .window-body {
        padding: 2rem 1.25rem;
    }

    .hero {
        padding-top: 5rem;
    }

    .timeline {
        padding-left: 2.5rem;
    }

    .option-grid-2,
    .option-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .party-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 3.5rem 0;
    }
}

@media (max-width: 400px) {
    .hero-names {
        font-size: 1.8rem;
    }

    .window-body {
        padding: 1.5rem 1rem;
    }

    .option-grid-2,
    .option-grid-3 {
        grid-template-columns: 1fr;
    }

    .party-features {
        grid-template-columns: 1fr;
    }
}
