:root {
    --neon-pink: #ff006e;
    --neon-purple: #8338ec;
    --neon-blue: #3a86ff;
    --neon-cyan: #06ffa5;
    --dark-bg: #0a0a0f;
    --dark-card: #1a1a2e;
    --text-white: #ffffff;
    --text-gray: #b8b8d1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--dark-bg);
    color: var(--text-white);
    overflow: hidden;
    position: relative;
}

/* Particle Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at 20% 50%, rgba(131, 56, 236, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(58, 134, 255, 0.1) 0%, transparent 40%);
}

.particles-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 250px 250px, 350px 350px, 200px 200px, 300px 300px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
    animation: particleFloat 20s linear infinite;
}

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

/* Scroll Container */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 1;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.page {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* PAGE 1: WELCOME */
.welcome-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.neon-frame {
    position: relative;
    width: 90%;
    max-width: 500px;
    aspect-ratio: 0.8;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px 30px;
    border: 3px solid transparent;
    background-clip: padding-box;
    overflow: hidden;
}

.neon-frame::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        var(--neon-pink), 
        var(--neon-purple), 
        var(--neon-blue), 
        var(--neon-cyan),
        var(--neon-pink));
    background-size: 300% 300%;
    border-radius: 30px;
    z-index: -1;
    animation: gradientShift 4s ease infinite;
    filter: blur(8px);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.neon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, 
        rgba(255, 0, 110, 0.3) 0%, 
        rgba(131, 56, 236, 0.2) 40%, 
        transparent 70%);
    filter: blur(40px);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

.frame-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sparkle {
    position: absolute;
    font-size: 2rem;
    animation: sparkleFloat 3s ease-in-out infinite;
}

.sparkle-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 15%;
    right: 15%;
    animation-delay: 0.5s;
}

.sparkle-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 1s;
}

@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

.neon-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.glitch {
    position: relative;
    color: var(--text-white);
    text-shadow: 
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink),
        0 0 30px var(--neon-purple),
        0 0 40px var(--neon-purple);
    animation: glitchText 3s ease-in-out infinite;
}

@keyframes glitchText {
    0%, 90%, 100% { 
        text-shadow: 
            0 0 10px var(--neon-pink),
            0 0 20px var(--neon-pink),
            0 0 30px var(--neon-purple),
            0 0 40px var(--neon-purple);
    }
    5%, 15% {
        text-shadow: 
            -2px 0 5px var(--neon-cyan),
            2px 0 5px var(--neon-pink);
    }
}

.subtitle {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 300;
    color: var(--text-gray);
    text-align: center;
    letter-spacing: 2px;
}

.disco-ball {
    width: 80px;
    height: 80px;
    margin-top: 40px;
    background: 
        linear-gradient(45deg, #ffffff 25%, transparent 25%),
        linear-gradient(-45deg, #ffffff 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ffffff 75%),
        linear-gradient(-45deg, transparent 75%, #ffffff 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
    border-radius: 50%;
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.5),
        inset 0 0 20px rgba(255, 0, 110, 0.3);
    animation: discoSpin 4s linear infinite;
}

@keyframes discoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 0.9rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.arrow-down {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
    transform: rotate(45deg);
}

/* PAGE 2: INVITATION */
.invitation-page {
    background: linear-gradient(to bottom, #16213e 0%, #0f1b2d 100%);
}

.neon-card {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(30px);
    border-radius: 25px;
    padding: 30px 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 0 40px rgba(255, 0, 110, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.5);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, 
        rgba(131, 56, 236, 0.4) 0%, 
        transparent 60%);
    filter: blur(60px);
    pointer-events: none;
}

.profile-section {
    text-align: center;
    margin-bottom: 20px;
}

.profile-frame {
    display: inline-block;
    position: relative;
    padding: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple), var(--neon-blue));
    animation: rotateGradient 3s linear infinite;
}

@keyframes rotateGradient {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--dark-card);
}

.invitation-content {
    position: relative;
    z-index: 1;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.neon-text {
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(255, 0, 110, 0.5));
    animation: neonShimmer 2s ease-in-out infinite;
}

.neon-text.delay-1 {
    animation-delay: 0.3s;
}

@keyframes neonShimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.invite-message {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.details-grid {
    display: grid;
    gap: 12px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border-left: 3px solid var(--neon-cyan);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--neon-pink);
    transform: translateX(5px);
}

.detail-icon {
    font-size: 1.8rem;
    min-width: 40px;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.4;
}

/* PAGE 3: COUNTDOWN */
.countdown-page {
    background: linear-gradient(135deg, #0f1b2d 0%, #1a1a2e 100%);
}

.countdown-wrapper {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.countdown-headline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(6, 255, 165, 0.5);
}

.pulse-text {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.countdown-box {
    background: rgba(10, 10, 20, 0.9);
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--neon-pink), var(--neon-purple), var(--neon-cyan)) 1;
    border-radius: 15px;
    padding: 15px 10px;
    min-width: 70px;
    max-width: 75px;
    position: relative;
    overflow: hidden;
}

.countdown-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 200%; }
}

.countdown-value {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 900;
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(6, 255, 165, 0.6));
    line-height: 1;
}

.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-top: 8px;
}

.countdown-separator {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--neon-pink);
    font-weight: 700;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.3; }
}

/* PAGE 4: MUSIC */
.music-page {
    background: linear-gradient(to bottom, #1a1a2e 0%, #16213e 100%);
}

.music-container {
    width: 90%;
    max-width: 450px;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(30px);
    border-radius: 30px;
    padding: 40px 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.music-headline {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vinyl-player {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto 30px;
}

.vinyl-record {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #1a1a1a 30%, #0a0a0a 31%, #0a0a0a 70%, #1a1a1a 71%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
}

.vinyl-record.spinning {
    animation: vinylSpin 3s linear infinite;
}

@keyframes vinylSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vinyl-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, var(--neon-purple), var(--dark-card));
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(131, 56, 236, 0.5),
        inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.vinyl-grooves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0,
        transparent 2px,
        rgba(255, 255, 255, 0.05) 2px,
        rgba(255, 255, 255, 0.05) 4px
    );
}

.tonearm {
    position: absolute;
    top: 10%;
    right: -10%;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--dark-card), rgba(255, 255, 255, 0.3));
    transform-origin: right center;
    border-radius: 2px;
    transition: transform 0.5s ease;
}

.tonearm::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background: var(--neon-pink);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-pink);
}

.tonearm.playing {
    transform: rotate(-35deg);
}

.track-info {
    text-align: center;
    margin-bottom: 30px;
}

.track-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-white);
}

.track-artist {
    font-size: 1rem;
    color: var(--text-gray);
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.ctrl-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--neon-cyan);
    transform: scale(1.1);
}

.play-btn {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
    border-color: var(--neon-pink);
    background: rgba(255, 0, 110, 0.1);
}

.play-btn:hover {
    background: rgba(255, 0, 110, 0.2);
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}

.progress-section {
    width: 100%;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px var(--neon-pink);
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* PAGE 5: RSVP */
.rsvp-page {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    padding: 30px 20px;
    overflow-y: auto;
}

.rsvp-container {
    width: 90%;
    max-width: 500px;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(30px);
    border-radius: 25px;
    padding: 40px 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.rsvp-headline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 6vw, 2.3rem);
    text-align: center;
    margin-bottom: 35px;
}

.glow-text {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(6, 255, 165, 0.5));
}

.input-group {
    margin-bottom: 25px;
}

.input-group label,
.group-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(6, 255, 165, 0.2);
}

.input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.radio-options-inline {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 140px;
}

.radio-label:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--neon-cyan);
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--neon-pink);
}

.radio-text {
    font-size: 1rem;
    color: var(--text-white);
}

.submit-button {
    width: 100%;
    padding: 18px;
    margin-top: 15px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    border: none;
    border-radius: 50px;
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 0, 110, 0.5);
}

.submit-button:active {
    transform: translateY(0);
}

.button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: buttonShine 3s infinite;
}

@keyframes buttonShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.button-text {
    position: relative;
    z-index: 1;
}

/* PAGE NAVIGATION */
.page-nav {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.nav-dot.active {
    background: var(--neon-cyan);
    border-color: var(--text-white);
    box-shadow: 0 0 15px var(--neon-cyan);
    transform: scale(1.3);
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .countdown-display {
        gap: 5px;
    }
    
    .countdown-box {
        min-width: 60px;
        max-width: 65px;
        padding: 12px 8px;
    }
    
    .countdown-value {
        font-size: 1.8rem;
    }
    
    .countdown-separator {
        font-size: 1.2rem;
    }
    
    .neon-frame,
    .neon-card,
    .music-container,
    .rsvp-container {
        padding: 30px 20px;
    }
}

/* ANIMATIONS */
.animate-in {
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    0% { 
        opacity: 0; 
        transform: scale(0.9); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
    }
}
