/* ============================================================
   TRGS 2026 — Complete Responsive Stylesheet
   ============================================================ */

/* ── Global Caution Modal ─────────────────────────────────── */
.caution-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.caution-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.caution-modal-card {
    background: var(--white);
    border-radius: 24px;
    padding: 48px 40px 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.caution-modal-overlay.open .caution-modal-card {
    transform: translateY(0) scale(1);
}

.caution-icon {
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 20px;
    animation: cautionShake 0.5s ease 0.1s both;
}

@keyframes cautionShake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(8deg);
    }

    60% {
        transform: rotate(-5deg);
    }

    80% {
        transform: rotate(3deg);
    }
}

.caution-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.caution-msg {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: 32px;
}

.caution-close {
    min-width: 140px;
}

@media (max-width: 480px) {
    .caution-modal-card {
        padding: 36px 24px 28px;
        border-radius: 18px;
    }
}

/* 1. CSS Variables */
:root {
    --blue-600: #1e40af;
    --blue-700: #1d3fad;
    --green-600: #059669;
    --black: #020617;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --grad-primary: linear-gradient(135deg, var(--blue-600) 0%, var(--green-600) 100%);
    --shadow-premium: 0 30px 80px -15px rgba(0, 0, 0, 0.10), 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --radius-lg: 28px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Prevent any element from causing horizontal scroll */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Three.js Background Canvas — fixed behind all content */
#three-bg {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1;
    pointer-events: none;
    display: block;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

body.loading {
    overflow: hidden !important;
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* 3. Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 5%;
}

.section {
    padding-block: clamp(60px, 10vw, 140px);
}

.bg-light {
    background: var(--gray-50);
}

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

/* 4. Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.4s, padding 0.4s;
}

.glass-nav.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    height: 56px;
    width: auto;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-item {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-700);
    transition: color 0.25s;
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
    color: var(--blue-600);
}

/* Mobile Hamburger — hidden by default */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    width: 32px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: 1100;
    flex-shrink: 0;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--blue-600);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: transform 0.3s, opacity 0.3s, top 0.3s;
}

.mobile-toggle span:nth-child(1) {
    top: 0;
}

.mobile-toggle span:nth-child(2) {
    top: 10px;
}

.mobile-toggle span:nth-child(3) {
    top: 20px;
}

.mobile-toggle.open span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

/* 5. Hero Section */
.hero-section {
    min-height: 100svh;
    display: flex;
    align-items: center;
    gap: 60px;
    padding: clamp(100px, 15vh, 150px) 5% clamp(60px, 10vh, 100px);
}

.hero-content {
    flex: 1 1 50%;
    min-width: 0;
}

.hero-title {
    font-size: clamp(2.6rem, 5.5vw, 5.2rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 22px;
}

.hero-title span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--gray-500);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding-top: 36px;
    border-top: 1px solid var(--gray-100);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gray-900);
}

.stat-lab {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-400);
}

/* Countdown */
.hero-countdown {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 36px;
    border-top: 1px solid var(--gray-100);
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 14px 20px 10px;
    min-width: 80px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.cd-val {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--gray-900);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cd-lab {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-400);
    margin-top: 4px;
}

.cd-sep {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gray-300);
    line-height: 1;
    padding-bottom: 20px;
}

@media (max-width: 640px) {
    .hero-countdown {
        gap: 8px;
    }

    .countdown-unit {
        min-width: 64px;
        padding: 10px 12px 8px;
    }

    .cd-val {
        font-size: 1.7rem;
    }

    .cd-lab {
        font-size: 0.55rem;
    }

    .cd-sep {
        font-size: 1.4rem;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gray-900);
}

.stat-lab {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-400);
}

.hero-section {
    min-height: 100svh;
    display: flex;
    align-items: center;
    gap: 56px;
    padding: clamp(100px, 14vh, 140px) 5% clamp(60px, 10vh, 90px);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1 1 50%;
    min-width: 0;
    z-index: 1;
}

.hero-visual {
    flex: 0 0 46%;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
    position: relative;
}

/* Decorative glow blob behind the GIF frame */
.hero-visual::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at center, rgba(30, 64, 175, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* Hero GIF frame — premium floating card */
.hero-gif-frame {
    width: 100%;
    max-width: 540px;
    position: relative;
    z-index: 1;
    border-radius: 24px;
    /* Gradient border via background-clip trick */
    padding: 3px;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.6) 0%, rgba(5, 150, 105, 0.5) 50%, rgba(30, 64, 175, 0.3) 100%);
    box-shadow:
        0 0 0 1px rgba(30, 64, 175, 0.12),
        0 24px 60px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(30, 64, 175, 0.1);
    animation: heroFloat 5s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0.3deg);
    }

    50% {
        transform: translateY(-10px) rotate(-0.3deg);
    }
}

.hero-gif-inner {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.hero-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 22px;
}

/* Frosted glass shine on top of GIF */
.hero-gif-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.18) 0%,
            rgba(255, 255, 255, 0.04) 35%,
            transparent 60%);
    border-radius: 22px;
    pointer-events: none;
}

/* Floating info chip — bottom of frame */
.hero-gif-chip {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 100px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}

/* Legacy .asset-frame-premium (used on other pages) */
.asset-frame-premium {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4/5;
    background: var(--white);
    padding: 14px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    position: relative;
}

.asset-frame-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 8px);
}

.frame-glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* 6. Badges & Titles */
.elite-badge {
    display: inline-flex;
    padding: 7px 16px;
    background: rgba(30, 64, 175, 0.06);
    border: 1px solid rgba(30, 64, 175, 0.12);
    color: var(--blue-600);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.section-title-elite {
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin-bottom: 50px;
}

/* 7. Objectives Grid */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 20px;
}

.objective-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    transition: transform 0.3s var(--smooth), box-shadow 0.3s;
}

.objective-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.objective-card.highlight-card {
    background: var(--grad-primary);
    border: none;
    color: var(--white);
}

.obj-icon {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--blue-600);
    margin-bottom: 20px;
    line-height: 1;
}

.highlight-card .obj-icon {
    color: rgba(255, 255, 255, 0.7);
}

.objective-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.objective-card p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.65;
}

.highlight-card p,
.highlight-card h3 {
    color: rgba(255, 255, 255, 0.9);
}

/* 8. Featured Card */
.featured-card-elite {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--gray-100);
}

.featured-visual-box {
    min-height: 340px;
}

.featured-visual-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-text-box {
    padding: clamp(30px, 5%, 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.featured-text-box h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.featured-text-box p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* 9. Events Grid */
.pixel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.event-card-premium {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: transform 0.3s var(--smooth), box-shadow 0.3s;
}

.event-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.event-card-premium>img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.card-p {
    padding: 28px 30px 32px;
}

.card-p h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.card-p p {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--green-600);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.card-p p span {
    color: var(--gray-400);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 10. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.25s var(--smooth), box-shadow 0.25s, background 0.25s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(30, 64, 175, 0.18);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(30, 64, 175, 0.26);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-200);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--blue-600);
    color: var(--blue-600);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
}

/* 11. Registration Form */
.glass-form-container {
    max-width: 860px;
    margin-inline: auto;
    background: var(--white);
    padding: clamp(24px, 6vw, 70px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--gray-100);
}

.form-header {
    margin-bottom: 36px;
}

.form-title {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-full {
    grid-column: 1 / -1;
}

.label-elite {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-600);
}

.input-elite {
    width: 100%;
    padding: 14px 16px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--gray-900);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    box-sizing: border-box;
}

.input-elite:focus {
    outline: none;
    border-color: var(--blue-600);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* File input styling */
input[type="file"].input-elite {
    padding: 10px 14px;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 0.88rem;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 14px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* Form action buttons — flexible but never too narrow */
.btn-form {
    flex: 1 1 140px;
    text-align: center;
    justify-content: center;
}

/* 11b. Registration Availability Banner */
.reg-progress-track {
    width: 100%;
    height: 5px;
    background: var(--gray-100);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 24px;
}

.reg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue-600), var(--green-600));
    border-radius: 100px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.reg-stats-bar {
    display: flex;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 36px;
    position: relative;
}

/* Gradient left accent stripe */
.reg-stats-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--blue-600), var(--green-600));
    border-radius: 4px 0 0 4px;
}

.reg-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px 12px;
}

.reg-stat-val {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(135deg, var(--blue-600), var(--green-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Spots left: green accent */
.reg-stat.spots .reg-stat-val {
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reg-stat-lab {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-400);
}

.reg-stat-div {
    width: 1px;
    background: var(--gray-100);
    margin: 12px 0;
    flex-shrink: 0;
}

.reg-stats-loading {
    padding: 20px 24px;
    font-size: 0.82rem;
    color: var(--gray-400);
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .reg-stat-val {
        font-size: 1.5rem;
    }

    .reg-stat {
        padding: 14px 8px;
    }

    .reg-stat-lab {
        font-size: 0.58rem;
        letter-spacing: 1px;
    }
}

/* 12. About Layout */
.about-elite-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-lead {
    font-size: 1.2rem;
    color: var(--gray-600);
    font-weight: 500;
}

.about-text p {
    font-size: 0.98rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-visual .asset-frame-premium {
    max-width: 100%;
}

/* 13. Contact Layout */
.contact-grid-elite {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-list-elite {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 10px;
}

.contact-list-elite p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-list-elite strong {
    color: var(--gray-900);
}

.contact-form-side .form-grid {
    gap: 18px;
}

/* 13a. Coming Soon Layout */
.coming-soon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 60px;
}

.coming-soon-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s var(--smooth), box-shadow 0.3s;
}

.coming-soon-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
}

.cs-icon {
    font-size: 2.8rem;
    line-height: 1;
    margin-bottom: 6px;
}

.coming-soon-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.coming-soon-card>p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.75;
    flex: 1;
}

.cs-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    background: var(--gray-50);
    border: 1.5px dashed var(--gray-300);
    color: var(--gray-500);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: fit-content;
    margin-top: 8px;
}

.cs-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-600);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

.cs-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
}

.cs-cta-bar>p {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
}

@media (max-width: 768px) {
    .coming-soon-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .coming-soon-card {
        padding: 32px 24px;
    }

    .cs-cta-bar {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }
}

/* 13b. Sessions Timeline */
.sessions-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.session-item {
    display: grid;
    grid-template-columns: 90px 40px 1fr;
    gap: 0 20px;
    align-items: flex-start;
}

.session-time {
    padding-top: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: right;
    white-space: nowrap;
}

.session-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.session-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-top: 23px;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

.session-line {
    width: 2px;
    background: var(--gray-100);
    flex: 1;
    min-height: 20px;
}

.session-item:last-child .session-line {
    display: none;
}

.session-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin-bottom: 16px;
    transition: box-shadow 0.3s, transform 0.3s var(--smooth);
}

.session-card:hover {
    box-shadow: var(--shadow-card);
    transform: translateX(4px);
}

.session-track {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.session-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.session-speaker {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--blue-600);
    margin-bottom: 8px;
}

.session-desc {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.65;
}

@media (max-width: 640px) {
    .session-item {
        grid-template-columns: 70px 28px 1fr;
        gap: 0 12px;
    }

    .session-time {
        font-size: 0.7rem;
    }

    .session-card {
        padding: 18px 16px;
    }
}

@media (max-width: 480px) {
    .session-item {
        grid-template-columns: 1fr;
    }

    .session-connector {
        display: none;
    }

    .session-time {
        text-align: left;
        padding-top: 0;
        margin-bottom: 6px;
    }

    .session-card {
        margin-bottom: 12px;
    }
}

/* 13c. Venue Section */
.venue-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.venue-globe-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.venue-globe-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: radial-gradient(ellipse at center, #0d1b2a 0%, #040d18 100%);
    box-shadow: var(--shadow-premium);
    position: relative;
    cursor: grab;
}

.venue-globe-box canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.globe-label {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}

.globe-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff2244;
    animation: pulse-dot 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.globe-hint {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-400);
    letter-spacing: 0.5px;
}

.venue-info {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.venue-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 28px 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    margin-block: 16px 0;
}

.venue-detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.vd-icon {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.venue-detail-item strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.venue-detail-item p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .venue-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .venue-globe-box {
        max-height: 360px;
    }
}

@media (max-width: 640px) {
    .venue-globe-box {
        aspect-ratio: 4/3;
        max-height: 280px;
    }
}

/* 14. Gallery */
.masonry-gallery-elite {
    columns: 3 280px;
    gap: 24px;
}

.gallery-item-premium {
    break-inside: avoid;
    margin-bottom: 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-100);
    box-shadow: var(--shadow-card);
}

.gallery-item-premium img {
    width: 100%;
    display: block;
    transition: transform 0.5s var(--smooth);
}

.gallery-item-premium:hover img {
    transform: scale(1.05);
}

/* 15. Detail Grid */
.detail-grid-elite {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 60px;
    align-items: start;
}

.sidebar-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--gray-100);
    position: sticky;
    top: 100px;
}

.sidebar-meta {
    margin-bottom: 28px;
}

.sidebar-meta label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-400);
    display: block;
    margin-bottom: 8px;
}

.sidebar-meta p {
    font-size: 1.1rem;
    font-weight: 700;
}

.text-sold-out {
    color: #ef4444 !important;
}

.text-success {
    color: var(--green-600) !important;
}

.btn-disabled {
    background: var(--gray-200);
    color: var(--gray-400);
    pointer-events: none;
    box-shadow: none;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-500);
    margin-bottom: 32px;
    transition: color 0.2s;
}

.btn-back:hover {
    color: var(--blue-600);
}

.content-body {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.85;
}

/* 16. Footer */
.site-footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 80px 0 36px;
}

.footer-container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    font-size: 0.9rem;
    max-width: 360px;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact-list p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.82rem;
}

/* 17. Cursor */
#custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--blue-600);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

#cursor-follower {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(30, 64, 175, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

/* 18. Loader */
.loader-container {
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 24px;
    transition: opacity 0.5s;
}

.loader-pill {
    width: 120px;
    height: 3px;
    background: var(--gray-100);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}

.loader-pill::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--grad-primary);
    animation: slide-load 1.4s ease-in-out infinite;
}

@keyframes slide-load {
    0% {
        left: -100%;
    }

    50% {
        left: 0%;
    }

    100% {
        left: 100%;
    }
}

/* 19. App Root */
#app-root {
    min-height: 100vh;
    transition: opacity 0.4s ease;
}

/* 20. Reveal animation — CSS so items always appear even without GSAP */
.reveal {
    animation: fadeUp 0.65s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {

    /* Nav becomes overlay */
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0;
        height: 22px;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 38px;
        transform: translateX(100%);
        transition: transform 0.45s var(--smooth);
        z-index: 1050;
        padding: 40px 24px;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-item {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    /* Hero stacks vertically */
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
        gap: 36px;
        padding-top: clamp(120px, 18vh, 160px);
        padding-bottom: 60px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        margin-inline: auto;
    }

    .hero-stats {
        justify-content: center;
        gap: 24px;
    }

    .hero-visual {
        justify-content: center;
        width: 100%;
        max-width: 500px;
        margin-inline: auto;
        flex: 0 0 auto;
    }

    .hero-gif-frame {
        max-width: 100%;
    }

    /* Objectives: 2 columns */
    .objectives-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Featured card: stack */
    .featured-card-elite {
        grid-template-columns: 1fr;
    }

    .featured-visual-box {
        min-height: auto;
        aspect-ratio: 16/9;
    }

    /* About: stack */
    .about-elite-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Contact: stack */
    .contact-grid-elite {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Detail sidebar: reflow */
    .detail-grid-elite {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar-card {
        position: static;
    }

    /* Footer: 2-col */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

/* --- Landscape Phone / Small Tablet (max 768px) --- */
@media (max-width: 768px) {

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.4rem);
    }

    /* Gallery: 2 cols */
    .masonry-gallery-elite {
        columns: 2 240px;
    }

    /* Events: single col */
    .pixel-grid {
        grid-template-columns: 1fr;
    }

    /* Form: single col */
    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }

    .form-actions {
        flex-direction: column;
    }

    /* Footer: single col */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-about {
        grid-column: auto;
    }

    /* Glass form: less padding */
    .glass-form-container {
        padding: 32px 24px;
    }
}

/* --- Mobile (max 480px) --- */
@media (max-width: 480px) {

    .container {
        padding-inline: 20px;
    }

    .hero-section {
        padding-inline: 20px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 28px;
    }

    /* Objectives: single col */
    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .section-title-elite {
        font-size: 2rem;
    }

    /* Gallery: single col */
    .masonry-gallery-elite {
        columns: 1;
    }

    /* Nav logo smaller */
    .nav-logo {
        height: 36px;
    }
}

/* --- Extra safety: ensure form + objectives collapse by 640px on real devices --- */
@media (max-width: 640px) {

    /* Objectives always single col on phones */
    .objectives-grid {
        grid-template-columns: 1fr !important;
    }

    /* Registration form always single col */
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .field-full {
        grid-column: auto !important;
    }

    /* Buttons stack vertically, full width */
    .form-actions {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .btn-form {
        width: 100%;
        flex: none !important;
    }

    /* Hero countdown wraps gracefully */
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px 24px;
    }

    /* Event grid: single col */
    .pixel-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery: single col */
    .masonry-gallery-elite {
        columns: 1;
    }
}

/* --- 480px: smallest phones --- */
@media (max-width: 480px) {
    .glass-form-container {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .input-elite {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    .form-header {
        margin-bottom: 24px;
    }

    .form-title {
        font-size: 1.4rem;
    }
}