/* ============================================
   BACK TO THE DISCO — Fresh Landing Page
   Behance/Pinterest quality storytelling
============================================ */

/* --- Variables --- */
:root {
    --black: #000000;
    --dark: #0a0a0f;
    --white: #ffffff;
    --gray: #888888;
    --pink: #ff2d75;
    --cyan: #00d4ff;
    --purple: #a855f7;
    --orange: #ff6b00;
    --yellow: #ffd700;

    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: var(--font-main);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar {
    width: 0;
}

body {
    scrollbar-width: none;
}

/* --- Scene Base --- */
.scene {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ============================================
   SCENE 1: NIGHT SKY
============================================ */
.scene-sky {
    height: 100vh;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stars */
.stars {
    position: absolute;
    inset: 0;
    opacity: 0.9;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 2px white;
}

.star.twinkle-1 {
    animation: twinkle 2s ease-in-out infinite;
}

.star.twinkle-2 {
    animation: twinkle 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.star.twinkle-3 {
    animation: twinkle 2.5s ease-in-out infinite;
    animation-delay: 1s;
}

.star.twinkle-4 {
    animation: twinkle 3.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

.star.twinkle-5 {
    animation: twinkle 2.8s ease-in-out infinite;
    animation-delay: 0.8s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(255, 255, 255, 1),
                    0 0 12px rgba(255, 255, 255, 0.6),
                    0 0 16px rgba(255, 255, 255, 0.3);
    }
}

/* Shooting Stars */
.shooting-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 20;
}

.shooting-star {
    position: absolute;
    width: 150px;
    height: 2px;
    opacity: 0;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 1) 100%
    );
    border-radius: 50%;
    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.3);
}

.shooting-star:nth-child(1) {
    top: 20%;
    left: 80%;
    animation: shoot1 8s ease-in infinite;
    animation-delay: 1s;
}

.shooting-star:nth-child(2) {
    top: 40%;
    left: 70%;
    animation: shoot2 10s ease-in infinite;
    animation-delay: 4s;
}

.shooting-star:nth-child(3) {
    top: 60%;
    left: 85%;
    animation: shoot3 12s ease-in infinite;
    animation-delay: 7s;
}

@keyframes shoot1 {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(-45deg) scale(1);
    }
    2% {
        opacity: 1;
    }
    15% {
        opacity: 1;
    }
    25% {
        opacity: 0;
        transform: translateX(-400px) translateY(400px) rotate(-45deg) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translateX(-400px) translateY(400px) rotate(-45deg) scale(0.5);
    }
}

@keyframes shoot2 {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(-50deg) scale(1);
    }
    2% {
        opacity: 1;
    }
    12% {
        opacity: 1;
    }
    20% {
        opacity: 0;
        transform: translateX(-500px) translateY(500px) rotate(-50deg) scale(0.4);
    }
    100% {
        opacity: 0;
        transform: translateX(-500px) translateY(500px) rotate(-50deg) scale(0.4);
    }
}

@keyframes shoot3 {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(-40deg) scale(1);
    }
    2% {
        opacity: 1;
    }
    18% {
        opacity: 1;
    }
    28% {
        opacity: 0;
        transform: translateX(-450px) translateY(450px) rotate(-40deg) scale(0.6);
    }
    100% {
        opacity: 0;
        transform: translateX(-450px) translateY(450px) rotate(-40deg) scale(0.6);
    }
}

/* Logo */
.logo-container {
    position: relative;
    z-index: 10;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.main-logo {
    width: min(80vw, 500px);
    height: auto;
}

.logo-subtitle {
    margin-top: 20px;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gray);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    z-index: 10;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--white), transparent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Budapest Silhouette */
.budapest-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    opacity: 0.7;
    pointer-events: none;
}

.budapest-silhouette img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
}

/* ============================================
   SCENE 2: STORYTELLING
============================================ */
.scene-story {
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--black), var(--dark));
    position: relative;
    padding: 100px 20px;
}

.story-flow {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Horizontal separators between blocks */
.neon-separator {
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pink), transparent);
    margin: 80px auto;
    opacity: 0.5;
    transform: scaleX(0);
    /* Animate width */
}

.neon-separator:nth-child(4n+1) {
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.neon-separator:nth-child(4n+3) {
    background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.story-item {
    padding: 20px;
    text-align: center;
}

.story-item .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    filter: blur(10px);
    color: var(--white);
}

.story-item .word em {
    font-style: normal;
    color: var(--cyan);
}

.story-item .word strong {
    font-weight: 500;
    color: var(--pink);
}

.story-item p {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.story-item em {
    font-style: normal;
    color: var(--cyan);
}

.story-item strong {
    font-weight: 500;
    color: var(--pink);
}

.story-item--highlight p {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 400;
}

.story-item--highlight .word {
    color: var(--white);
}

.story-item--climax p {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.story-item--climax .word {
    background: linear-gradient(135deg, var(--pink), var(--orange), var(--yellow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============================================
   SCENE 3: EXPERIENCE
============================================ */
.scene-experience {
    min-height: 100vh;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.retro-grid {
    position: absolute;
    bottom: 0;
    left: -50%;
    right: -50%;
    height: 50%;
    background:
        repeating-linear-gradient(90deg,
            transparent,
            transparent 60px,
            rgba(255, 45, 117, 0.1) 60px,
            rgba(255, 45, 117, 0.1) 62px),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 60px,
            rgba(255, 45, 117, 0.1) 60px,
            rgba(255, 45, 117, 0.1) 62px);
    transform-origin: top center;
    transform: perspective(300px) rotateX(70deg);
    opacity: 0;
}

.experience-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(40px);
}

.experience-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 600;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--pink), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.experience-subtitle {
    font-size: 1rem;
    color: var(--gray);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 48px;
}

.experience-features {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
}

.feature-icon {
    font-size: 2rem;
}

.feature-text {
    font-size: 0.875rem;
    color: var(--white);
    letter-spacing: 0.05em;
}

/* ============================================
   EVENTS INLINE (within storytelling section)
============================================ */
.events-inline {
    max-width: 900px;
    margin: 80px auto;
    width: 100%;
    padding: 0 20px;
}

/* ============================================
   SCENE 4: FOOTER
============================================ */
.scene-footer {
    min-height: 50vh;
    background: linear-gradient(to bottom, var(--dark), var(--black));
    padding: 100px 20px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.events-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
}

.events-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.event-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    opacity: 0;
    transform: translateY(30px);
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--pink);
    transform: translateY(-4px);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    padding: 14px 18px;
    border-radius: 10px;
}

.event-day {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
    color: var(--white);
}

.event-month {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.event-name {
    font-size: 1.25rem;
    font-weight: 500;
}

.event-time {
    font-size: 0.875rem;
    color: var(--gray);
}

.event-action {
    color: var(--pink);
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.3s var(--ease);
}

.event-card:hover .event-action {
    transform: translateX(4px);
}

.event-card--placeholder {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px;
}

.event-coming {
    font-size: 1.5rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    margin-bottom: 12px;
}

.event-card--placeholder p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Full Width Event Card */
.event-card--full {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    gap: 0;
    cursor: pointer;
    transform: none !important;
    text-decoration: none;
    color: inherit;
}

.event-card--full:hover {
    transform: none !important;
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.event-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.event-card--full:hover .event-image img {
    transform: scale(1.05);
}

.event-content-full {
    padding: 24px 32px;
}

.event-grid-layout {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
}

.event-left-col {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
}

.event-right-col {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 32px;
    flex: 1;
}

.event-header-full {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.event-date-badge {
    background: linear-gradient(135deg, var(--pink), var(--orange));
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 45, 117, 0.3);
}

.event-title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-name-large {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.event-time-large {
    color: var(--pink);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-description {
    color: var(--gray);
    line-height: 1.5;
    font-size: 1rem;
    text-align: right;
    max-width: 400px;
    margin: 0;
}

.event-action-full {
    display: flex;
    flex-shrink: 0;
    margin-top: 0;
}

/* Visibility Utilities for this block */
/* Removed mobile-only/desktop-only classes for event card as they are no longer needed */

@media (max-width: 900px) {
    .event-grid-layout {
        flex-direction: column;
        align-items: stretch; /* Ensure children take full width */
        gap: 24px;
    }

    .event-left-col {
        width: 100%;
        gap: 16px;
    }

    .event-right-col {
        width: 100%;
        flex-direction: column;
        align-items: center; /* Center items */
        gap: 24px;
    }

    .event-description {
        text-align: center;
        max-width: 100%;
    }
    
    .event-action-full {
        width: 100%;
        display: block; /* Reset flex */
    }
    
    .btn-rsvp {
        width: 100%;
        text-align: center;
        display: block;
    }

    /* Merged mobile styles from 768px breakpoint */
    .event-card--full {
        max-width: 100%;
    }
    
    .event-header-full {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
    }
    
    .event-date-badge {
        flex-direction: row;
        gap: 10px;
        padding: 8px 16px;
        width: auto;
    }
    
    .event-image {
        height: auto;
        min-height: 200px;
    }

    .event-title-group{
        align-items: center;
    }
}

.btn-rsvp {
    background: var(--pink);
    border: 1px solid var(--pink);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 45, 117, 0.3);
}

.btn-rsvp:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 45, 117, 0.5);
    color: white;
}

/* Footer */
.footer {
    text-align: center;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-social {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-bottom: 24px;
}

.footer-social a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--white);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .event-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .event-date {
        justify-self: center;
    }

    .event-action {
        justify-self: center;
    }

    .experience-features {
        gap: 24px;
    }

    .budapest-silhouette {
        height: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
/* --- Social Sidebar --- */
.social-sidebar {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.social-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s var(--ease);
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.social-icon:hover {
    background: var(--white);
    color: var(--black);
    transform: scale(1.1);
    border-color: var(--white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.social-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

@media (max-width: 768px) {
    .social-sidebar {
        right: 1.5rem;
        bottom: 1.5rem;
        gap: 0.8rem;
    }
    
    .social-icon svg {
        width: 1.25rem;
        height: 1   rem;
    }
}
