/* ====================================
   CSS VARIABLES - Dance Festival Theme
   ==================================== */
:root {
    /* Primary Colors - Light Purple Theme */
    --primary-light: #f3e5f5;
    --primary: #ce93d8;
    --primary-medium: #ba68c8;
    --primary-dark: #9c27b0;
    --primary-darker: #7b1fa2;
    --accent: #ab47bc;
    --accent-dark: #8e24aa;
    --accent-light: #ce93d8;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e0e0e0;
    --gray-300: #bdbdbd;
    --gray-400: #9e9e9e;
    --gray-500: #757575;
    --gray-600: #616161;
    --gray-700: #424242;
    --gray-800: #303030;
    --gray-900: #212121;

    /* Text Colors */
    --text-primary: #2d2d2d;
    --text-secondary: #616161;
    --text-muted: #9e9e9e;
    --text-dark: #1a1a1a;

    /* Background */
    --bg-primary: #ffffff;
    --bg-secondary: #faf8fc;
    --bg-card: #ffffff;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.6);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 64px;
    --spacing-2xl: 96px;
    --spacing-3xl: 128px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Container */
    --container-max: 1400px;
    --container-padding: 24px;
}

/* ====================================
   RESET & BASE STYLES
   ==================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 50%, #ce93d8 100%);
    background-attachment: fixed;
    line-height: var(--line-height-base);
    overflow-x: hidden;
    min-width: 320px;
    -webkit-overflow-scrolling: touch;
}

/* ====================================
   TYPOGRAPHY
   ==================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ====================================
   UTILITIES
   ==================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-family);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.btn-primary {
    background: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(156, 39, 176, 0.3);
}

.btn-primary:hover {
    background: var(--primary-darker);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(156, 39, 176, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.1rem;
}

/* Section Titles */
.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.section-title.align-left {
    text-align: left;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
}

/* ====================================
   HEADER & NAVIGATION
   ==================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 16px rgba(156, 39, 176, 0.1);
    transition: var(--transition-normal);
}

.header.scrolled {
    box-shadow: 0 4px 24px rgba(156, 39, 176, 0.15);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-dark);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-dark);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.nav-cta {
    padding: 10px 24px;
    background: var(--primary-dark);
    color: var(--white);
    border-radius: var(--radius-sm);
}

.nav-link.nav-cta::after {
    display: none;
}

.nav-link.nav-cta:hover {
    background: var(--primary-darker);
    transform: translateY(-2px);
}

/* Mobile Menu Button */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero {
    min-height: 110vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 140px 0 var(--spacing-2xl);
    overflow: hidden;
    margin-top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(243, 229, 245, 0.6) 100%, rgba(206, 147, 216, 0.5) 100%, rgba(186, 104, 200, 0.45) 100%),
        url('../logo/logofest.png') center/cover no-repeat;
    z-index: -1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(243, 229, 245, 0.3) 0%, rgba(243, 229, 245, 0.1) 50%, rgba(243, 229, 245, 0.4) 100%);
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-darker);
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s ease 0.3s backwards;
    font-weight: 500;
}

.hero-date {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 1s ease 0.4s backwards;
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 1s ease 0.5s backwards;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(156, 39, 176, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    min-width: 100px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(156, 39, 176, 0.15);
}

.countdown-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--primary-darker);
    line-height: 1;
}

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

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   STATS SECTION
   ==================================== */
.stats {
    padding: var(--spacing-2xl) 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.stat-card {
    aspect-ratio: 1.2;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: var(--transition-normal);
    cursor: default;
    min-height: 280px;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(156, 39, 176, 0.3);
}

.stat-card-wide {
    grid-column: span 1;
    aspect-ratio: 1.2;
}

.stat-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.stat-value {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.stat-label {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    line-height: 1.4;
}

/* ====================================
   PROGRAM SECTION
   ==================================== */
.program {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.program-card {
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: var(--transition-normal);
    cursor: pointer;
}

.program-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(156, 39, 176, 0.3);
}

.program-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-lg);
}

.program-card-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--white);
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.program-card-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* ====================================
   FUTURE FORMATS SECTION
   ==================================== */
.future-formats {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.format-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.format-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(156, 39, 176, 0.2);
}

.format-image {
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
}

.format-content {
    padding: var(--spacing-lg);
}

.format-title {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.format-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ====================================
   JURY SECTION
   ==================================== */
.jury {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.jury-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.jury-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.jury-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(156, 39, 176, 0.2);
}

.jury-photo {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
}

.jury-info {
    padding: var(--spacing-lg);
}

.jury-name {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.jury-title {
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.jury-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ====================================
   ABOUT SECTION
   ==================================== */
.about {
    padding: var(--spacing-3xl) 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.about-paragraph strong {
    color: var(--primary-dark);
    font-weight: 700;
}

.about-features {
    margin-top: var(--spacing-xl);
    display: grid;
    gap: var(--spacing-md);
}

.about-feature-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.feature-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    min-width: 60px;
}

.feature-text {
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-images {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-md);
    height: 600px;
}

.about-image-large {
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
}

.about-image-small {
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
}

/* ====================================
   GALLERY SECTION
   ==================================== */
.gallery {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.gallery-item {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: 0 4px 16px rgba(156, 39, 176, 0.15);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(156, 39, 176, 0.25);
}

.gallery-item-large {
    grid-column: span 1;
    aspect-ratio: 4/3;
}

.gallery-item-wide {
    grid-column: span 1;
    aspect-ratio: 4/3;
}

.gallery-overlay {
    display: none;
}

.gallery-label {
    display: none;
}

/* Video Section */
.video-section {
    margin-top: var(--spacing-2xl);
}

.video-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.video-card {
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: 0 4px 16px rgba(156, 39, 176, 0.15);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(156, 39, 176, 0.25);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.video-card:hover .video-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
}

.video-play-button {
    position: relative;
    z-index: 2;
    transition: var(--transition-normal);
}

.video-card:hover .video-play-button {
    transform: scale(1.15);
}

.video-caption {
    position: absolute;
    bottom: var(--spacing-md);
    left: 0;
    right: 0;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    z-index: 2;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.video-modal-close:hover {
    transform: scale(1.2);
    color: var(--primary);
}

#videoFrame {
    border: none;
}

/* ====================================
   APPLICATION SECTION
   ==================================== */
.application {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--primary-light) 100%);
}

.application-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
}

.application-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.application-requirements {
    background: var(--primary-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
    border-left: 4px solid var(--primary-dark);
}

.requirements-title {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.requirements-list {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    padding: var(--spacing-xs) 0;
    padding-left: var(--spacing-md);
    position: relative;
    color: var(--text-secondary);
}

.requirements-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--primary-dark);
}

.application-contact {
    margin-top: var(--spacing-lg);
    color: var(--text-secondary);
}

.application-contact p {
    margin-bottom: var(--spacing-xs);
}

/* Form Styles */
.application-form {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(156, 39, 176, 0.12);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-dark);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 300px;
}

select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23616161' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 40px;
}

.form-error {
    display: block;
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: var(--spacing-xs);
    min-height: 20px;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 16px 20px;
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.file-label:hover {
    border-color: var(--primary-dark);
    background: var(--primary-light);
}

.file-icon {
    color: var(--primary-dark);
}

.file-text {
    color: var(--text-secondary);
    font-weight: 500;
}

.file-name {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.btn-submit {
    width: 100%;
    margin-top: var(--spacing-md);
}

.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.form-message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #e57373;
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
    background: var(--primary-darker);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
    margin-bottom: var(--spacing-md);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-logo {
    max-width: 120px;
    height: auto;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-contacts p,
.footer-social {
    margin-bottom: var(--spacing-xs);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-title {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
    font-weight: 700;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Large Tablets */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-card-wide {
        grid-column: span 3;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-images {
        height: 500px;
    }

    .application-content {
        grid-template-columns: 1fr;
    }
}

/* Tablets */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--spacing-xl) var(--spacing-lg);
        gap: var(--spacing-md);
        transition: left var(--transition-normal);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .burger {
        display: flex;
    }

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

    .stat-card-wide {
        grid-column: span 1;
    }

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

    .gallery-item-large {
        grid-column: span 1;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --spacing-xs: 6px;
        --spacing-sm: 12px;
        --spacing-md: 20px;
        --spacing-lg: 32px;
        --spacing-xl: 48px;
        --spacing-2xl: 64px;
        --spacing-3xl: 80px;
        --container-padding: 16px;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Hero Section */
    .hero {
        min-height: 100vh;
        padding: 100px 0 var(--spacing-xl);
    }

    .hero-content {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
        line-height: 1.1;
        margin-bottom: var(--spacing-sm);
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 4vw, 1.2rem);
        margin-bottom: var(--spacing-sm);
    }

    .hero-date {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
        margin-bottom: var(--spacing-md);
    }

    /* Countdown */
    .countdown {
        gap: var(--spacing-xs);
        flex-wrap: wrap;
        justify-content: center;
    }

    .countdown-item {
        min-width: 70px;
        max-width: 80px;
        padding: var(--spacing-sm);
        border-width: 1px;
    }

    .countdown-value {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .countdown-label {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
    }

    .hero-actions .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }

    /* Stats Section */
    .stats {
        padding: var(--spacing-xl) 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .stat-card {
        aspect-ratio: 16/9;
        min-height: auto;
    }

    .stat-card-wide {
        grid-column: span 1;
        aspect-ratio: 16/9;
    }

    .stat-value {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .stat-label {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        letter-spacing: 1px;
    }

    /* Section Titles */
    .section-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: var(--spacing-md);
    }

    .section-subtitle {
        font-size: clamp(0.95rem, 4vw, 1.1rem);
        margin-bottom: var(--spacing-lg);
    }

    /* Program Section */
    .program {
        padding: var(--spacing-xl) 0;
    }

    .program-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .program-card-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .program-card-desc {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
    }

    /* Future Formats */
    .future-formats {
        padding: var(--spacing-xl) 0;
    }

    .formats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    /* Jury Section */
    .jury {
        padding: var(--spacing-xl) 0;
    }

    .jury-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .jury-name {
        font-size: 1.3rem;
    }

    .jury-title {
        font-size: 0.9rem;
    }

    .jury-description {
        font-size: 0.9rem;
    }

    /* About Section */
    .about {
        padding: var(--spacing-xl) 0;
    }

    .about-content {
        gap: var(--spacing-lg);
    }

    .about-images {
        grid-template-columns: 1fr;
        height: auto;
        gap: var(--spacing-sm);
    }

    .about-image-large,
    .about-image-small {
        height: 250px;
    }

    .about-paragraph {
        font-size: 0.95rem;
    }

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

    .feature-text {
        font-size: 0.9rem;
    }

    /* Gallery Section */
    .gallery {
        padding: var(--spacing-xl) 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .gallery-item {
        aspect-ratio: 16/9;
    }

    .gallery-item-large {
        grid-column: span 1;
        aspect-ratio: 16/9;
    }

    .gallery-item-wide {
        grid-column: span 1;
    }

    /* Video Section */
    .video-section {
        margin-top: var(--spacing-lg);
    }

    .video-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .video-caption {
        font-size: 1rem;
        padding: 0 var(--spacing-sm);
    }

    .video-modal-content {
        width: 95%;
    }

    .video-modal-close {
        top: -40px;
        font-size: 2.5rem;
    }

    /* Application Section */
    .application {
        padding: var(--spacing-xl) 0;
    }

    .application-content {
        gap: var(--spacing-lg);
    }

    .application-form {
        padding: var(--spacing-md);
    }

    .form-input,
    .form-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
    }

    .btn-submit {
        padding: 14px 24px;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-info {
        align-items: center;
    }

    .footer-logo {
        max-width: 100px;
    }

    .footer-tagline,
    .footer-contacts p,
    .footer-link {
        font-size: 0.85rem;
    }

    .footer-title {
        font-size: 0.95rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --spacing-xs: 4px;
        --spacing-sm: 10px;
        --spacing-md: 16px;
        --spacing-lg: 28px;
        --spacing-xl: 40px;
        --spacing-2xl: 56px;
        --spacing-3xl: 72px;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        padding: 90px 0 var(--spacing-lg);
    }

    .hero-title {
        font-size: clamp(1.8rem, 12vw, 2.8rem);
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: clamp(0.85rem, 4.5vw, 1rem);
        margin-bottom: 8px;
    }

    .hero-date {
        font-size: clamp(1rem, 5.5vw, 1.3rem);
        margin-bottom: 16px;
    }

    /* Countdown - Extra Small */
    .countdown {
        gap: 6px;
    }

    .countdown-item {
        min-width: 60px;
        max-width: 70px;
        padding: 8px 6px;
    }

    .countdown-value {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }

    .countdown-label {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }

    /* Stats */
    .stat-value {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
    }

    .stat-label {
        font-size: clamp(0.8rem, 4vw, 0.95rem);
    }

    /* Section Titles */
    .section-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }

    .section-subtitle {
        font-size: clamp(0.85rem, 4.5vw, 1rem);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Video */
    .video-play-button svg {
        width: 60px;
        height: 60px;
    }

    .video-caption {
        font-size: 0.9rem;
    }

    /* Form */
    .form-input,
    .form-textarea {
        font-size: 16px;
        padding: 10px 14px;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer-logo {
        max-width: 80px;
    }
}

/* Extra Small Mobile (iPhone SE, small Android) */
@media (max-width: 375px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-title {
        font-size: clamp(1.6rem, 13vw, 2.5rem);
    }

    .countdown {
        gap: 4px;
    }

    .countdown-item {
        min-width: 55px;
        max-width: 65px;
        padding: 6px 4px;
    }

    .countdown-value {
        font-size: clamp(1.2rem, 8vw, 1.6rem);
    }

    .countdown-label {
        font-size: 0.6rem;
    }

    .stat-value {
        font-size: clamp(1.2rem, 8vw, 1.6rem);
    }

    .stat-label {
        font-size: clamp(0.75rem, 4.5vw, 0.9rem);
    }

    .section-title {
        font-size: clamp(1.4rem, 9vw, 1.8rem);
    }

    .video-play-button svg {
        width: 50px;
        height: 50px;
    }
}
