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

:root {
    --white: #FFFFFF;
    --black: #000000;
    --red: #E31B23;
    --neon-red: #FF1744;
    --dark-grey: #1A1A1A;
    --light-grey: #666666;
    --bg-grey: #F5F5F5;
}

body {
    font-family: 'Inter', 'Manrope', sans-serif;
    background-color: var(--white);
    color: var(--black);
    overflow-x: hidden;
    position: relative;
    line-height: 1.4;
    width: 100%;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

#root {
    position: relative;
    z-index: 1;
}

#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
}

/* Header */
.header {
    padding: 40px 60px;
    position: relative;
    z-index: 10;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.fest-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 72px;
    line-height: 1;
    letter-spacing: -2px;
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.tron-text {
    color: var(--red);
    font-size: 80px;
}

.fest-text {
    color: var(--black);
}

.year-text {
    color: var(--black);
    font-size: 60px;
    margin-left: 0;
}

.date-location {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--black);
}

/* Hero Section */
.hero {
    padding: 60px 60px 40px;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
}

.main-headline {
    font-family: 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 96px;
    line-height: 1.1;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
    letter-spacing: 0;
}

.headline-text {
    letter-spacing: 0;
    margin-right: 30px;
}

.headline-tron {
    letter-spacing: 0;
    margin: 0 15px;
}

.headline-text {
    color: var(--black);
}

.headline-tron {
    color: var(--red);
    font-size: 120px;
    transform: translateY(-8px);
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
}

.subheadline {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: var(--light-grey);
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.6;
}

.cta-section {
    position: relative;
    margin: 40px 0 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.floating-elements {
    display: flex;
    gap: 15px;
    position: relative;
}

.floating-badge {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 8px 16px;
    background: var(--bg-grey);
    border: 2px solid var(--black);
    color: var(--black);
    letter-spacing: 1px;
    animation: float 3s ease-in-out infinite;
}

.floating-badge:nth-child(2) {
    animation-delay: 1.5s;
}

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

.cta-button {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 24px;
    padding: 20px 50px;
    background: var(--red);
    color: var(--white);
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
    box-shadow: 8px 8px 0 var(--black);
}

.cta-button:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--black);
    background: var(--neon-red);
}

.partners {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.partner-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--light-grey);
    letter-spacing: 1px;
}

/* Scroll Down Button */
.scroll-down-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--black);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.scroll-down-button:hover {
    transform: translateX(-50%) translateY(5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    background: var(--dark-grey);
}

.scroll-arrow {
    font-size: 24px;
    font-weight: 900;
    animation: bounce 2s infinite;
    color: var(--white);
    line-height: 1;
}

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

/* Statistics Bar */
.stats-bar {
    background: var(--black);
    color: var(--white);
    padding: 35px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    margin-top: 40px;
    border-radius: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-family: 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 56px;
    line-height: 1;
    color: var(--white);
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--red);
}

.stat-separator {
    width: 2px;
    height: 80px;
    align-self: center;
    background: var(--red);
}

/* Fest range countdown — local 20:00 on end day (event-period.js) */
.stat-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 0 1 auto;
}

.stat-countdown-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--red);
    text-transform: uppercase;
}

.stat-countdown-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    flex-wrap: nowrap;
}

.stat-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 38px;
}

.stat-countdown-value {
    font-family: 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 42px;
    line-height: 1;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}

.stat-countdown-sublabel {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
}

.stat-countdown-colon {
    font-family: 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 34px;
    line-height: 1;
    color: var(--white);
    padding-bottom: 16px;
    opacity: 0.85;
    user-select: none;
}

/* About Festival Section */
.about-section {
    padding: 100px 60px;
    position: relative;
    z-index: 10;
    background: var(--white);
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
}

.about-item {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.about-item.reverse {
    grid-template-columns: 400px 1fr;
}

.about-item.reverse .about-text {
    order: 2;
}

.about-item.reverse .about-image-wrapper {
    order: 1;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-subtitle {
    font-family: 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 36px;
    color: var(--black);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.about-paragraph {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark-grey);
    font-weight: 400;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: visible;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 4px solid var(--black);
    box-shadow: 12px 12px 0 var(--red);
    transform: rotate(3deg);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.about-item.reverse .about-image {
    transform: rotate(-3deg);
}

.about-image-wrapper:hover .about-image {
    transform: rotate(0deg) scale(1.05);
    z-index: 2;
}

.about-item.reverse .about-image-wrapper:hover .about-image {
    transform: rotate(0deg) scale(1.05);
}

/* Gallery Section */
.gallery-section {
    padding: 100px 60px;
    position: relative;
    z-index: 10;
    background: var(--white);
}

.section-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 48px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.title-underline {
    width: 200px;
    height: 8px;
    background: var(--red);
    margin-top: 5px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 3px solid var(--black);
}

.gallery-item.large-item {
    grid-row: span 2;
}

.gallery-item.large-item:first-child {
    grid-column: 1 / 3;
}

.gallery-item.large-item:nth-child(2) {
    grid-column: 3 / 5;
}

.gallery-item.small-item:first-of-type {
    grid-column: 5;
    grid-row: 1 / 2;
}

.gallery-item.small-item:nth-of-type(2) {
    grid-column: 5;
    grid-row: 2 / 3;
}

.gallery-item.small-item:nth-of-type(3) {
    grid-column: 1;
    grid-row: 3;
}

.gallery-item.small-item:nth-of-type(4) {
    grid-column: 2;
    grid-row: 3;
}

.gallery-item.small-item:nth-of-type(5) {
    grid-column: 3 / 6;
    grid-row: 3;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, var(--dark-grey) 0%, var(--black) 100%);
    position: relative;
    overflow: hidden;
}

.photo-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(227, 27, 35, 0.1);
    z-index: 1;
    pointer-events: none;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.photo-1 {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.photo-2 {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.photo-3 {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
}

.photo-4 {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.photo-5 {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

/* Video Section */
.video-section {
    padding: 100px 60px;
    background: var(--bg-grey);
    position: relative;
    z-index: 10;
}

.video-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.video-thumbnail {
    flex: 0 0 280px;
    position: relative;
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.video-thumbnail:nth-child(2) {
    transform: rotate(1deg) translateY(-20px);
}

.video-thumbnail:nth-child(3) {
    transform: rotate(-0.5deg) translateY(10px);
}

.video-thumbnail:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 5;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: linear-gradient(135deg, var(--dark-grey) 0%, var(--black) 100%);
    border: 4px solid var(--black);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.play-button {
    width: 80px;
    height: 80px;
    background: var(--red);
    border-radius: 50%;
    position: relative;
    z-index: 3;
    box-shadow: 0 0 0 10px rgba(227, 27, 35, 0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-placeholder:hover .play-button {
    opacity: 0.9;
}

.play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 24px solid var(--white);
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
}

.video-caption {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
    letter-spacing: 1px;
    color: var(--black);
}

/* Schedule Section */
.schedule-section {
    padding: 80px 60px;
    position: relative;
    z-index: 10;
    background: var(--white);
}

.schedule-block {
    max-width: 600px;
    margin: 0 auto;
    border: 4px solid var(--black);
    padding: 40px;
    background: var(--white);
    box-shadow: 12px 12px 0 var(--red);
}

.schedule-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 900;
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--black);
    letter-spacing: -1px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 2px solid var(--bg-grey);
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--red);
    min-width: 80px;
}

.schedule-event {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--black);
}

.schedule-cta {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    padding-top: 30px;
    border-top: 2px solid var(--bg-grey);
}

/* Footer */
.footer {
    position: relative;
    z-index: 10;
    background: var(--white);
}

.footer-line {
    height: 6px;
    background: var(--red);
    width: 100%;
}

.footer-content {
    padding: 50px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-link {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: var(--black);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--red);
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--red);
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid var(--red);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.social-icon:hover {
    background: var(--red);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-headline {
        font-size: 72px;
    }
    
    .headline-tron {
        font-size: 90px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-item.large-item:first-child {
        grid-column: 1 / 2;
    }
    
    .gallery-item.large-item:nth-child(2) {
        grid-column: 2 / 4;
    }
    
    .gallery-item.small-item:first-of-type {
        grid-column: 1;
        grid-row: 2;
    }
    
    .gallery-item.small-item:nth-of-type(2) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .gallery-item.small-item:nth-of-type(3) {
        grid-column: 3;
        grid-row: 2;
    }
    
    .gallery-item.small-item:nth-of-type(4) {
        grid-column: 1;
        grid-row: 3;
    }
    
    .gallery-item.small-item:nth-of-type(5) {
        grid-column: 2 / 4;
        grid-row: 3;
    }
    
    .about-item {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }
    
    .about-item.reverse {
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    #root {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .header {
        padding: 20px 20px;
        width: 100%;
        max-width: 100vw;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .fest-title {
        font-size: 42px;
        gap: 12px;
    }
    
    .tron-text {
        font-size: 50px;
    }
    
    .year-text {
        font-size: 36px;
    }
    
    .date-location {
        font-size: 14px;
    }
    
    .hero {
        padding: 30px 20px 40px;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
    }
    
    .main-headline {
        font-size: 36px;
        gap: 0;
        margin-bottom: 20px;
    }
    
    .headline-text {
        margin-right: 15px;
        font-size: 36px;
    }
    
    .headline-tron {
        font-size: 48px;
        margin: 0 10px;
    }
    
    .subheadline {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .cta-section {
        margin: 30px 0 20px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .cta-button {
        font-size: 18px;
        padding: 16px 40px;
        width: 100%;
        max-width: 300px;
    }
    
    .floating-elements {
        width: 100%;
        justify-content: center;
    }
    
    .partners {
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }
    
    .stats-bar {
        padding: 30px 20px;
        gap: 15px;
        width: 100%;
        max-width: 100vw;
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 0 0 auto;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .stat-separator {
        height: 40px;
    }

    .stat-countdown-value {
        font-size: 28px;
    }

    .stat-countdown-colon {
        font-size: 24px;
        padding-bottom: 10px;
    }

    .stat-countdown-unit {
        min-width: 30px;
    }

    .stat-countdown-heading {
        font-size: 10px;
    }
    
    .about-section,
    .gallery-section,
    .video-section,
    .schedule-section {
        padding: 40px 20px;
        width: 100%;
        max-width: 100vw;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .title-underline {
        width: 150px;
    }
    
    .about-content {
        width: 100%;
        max-width: 100%;
    }
    
    .about-item {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
        width: 100%;
    }
    
    .about-item.reverse {
        grid-template-columns: 1fr;
    }
    
    .about-item.reverse .about-text {
        order: 1;
    }
    
    .about-item.reverse .about-image-wrapper {
        order: 2;
    }
    
    .about-image {
        transform: rotate(2deg);
    }
    
    .about-item.reverse .about-image {
        transform: rotate(-2deg);
    }
    
    .about-subtitle {
        font-size: 24px;
    }
    
    .about-paragraph {
        font-size: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    .gallery-item {
        grid-column: 1 !important;
        grid-row: auto !important;
        width: 100%;
    }
    
    .video-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .video-thumbnail {
        flex: 0 0 auto;
        width: 100%;
        max-width: 250px;
        transform: none !important;
    }
    
    .video-thumbnail:nth-child(2),
    .video-thumbnail:nth-child(3) {
        transform: none !important;
    }
    
    .schedule-block {
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .schedule-title {
        font-size: 24px;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px 0;
    }
    
    .schedule-time {
        min-width: auto;
    }
    
    .schedule-cta {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .schedule-cta .cta-button {
        width: 100%;
        max-width: 100%;
    }
    
    .footer-line {
        height: 4px;
    }
    
    .footer-content {
        padding: 20px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    .footer-links {
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .footer-link {
        font-size: 12px;
    }
    
    .social-icons {
        flex-direction: row;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .social-icon {
        font-size: 12px;
        padding: 6px 12px;
        width: auto;
        text-align: center;
    }
    
    .scroll-down-button {
        bottom: 15px;
        width: 50px;
        height: 50px;
        display: flex !important;
        z-index: 1000;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        opacity: 1 !important;
    }
    
    .scroll-arrow {
        font-size: 22px;
    }
}
