/* ============================================
   ENHANCED TEDX WEBSITE - MAYA THEME
   Advanced animations, red glows, modern design
   ============================================ */

:root {
    --primary: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #e57373;
    --secondary: #ffffff;
    --dark: #000000;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-light: #1a1a1a;
    --text-light: #d0d0d0;
    --text-muted: #888888;
    --accent: #2a2a2a;
    --glow-strong: 0 0 80px rgba(230, 43, 30, 0.4);
    --glow-medium: 0 0 40px rgba(230, 43, 30, 0.25);
    --glow-soft: 0 0 20px rgba(230, 43, 30, 0.15);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-dark);
    color: var(--secondary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   ANIMATED BACKGROUND WITH RED GLOW
   ============================================ */
.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at top, rgba(230, 43, 30, 0.03), transparent 50%),
                radial-gradient(ellipse at bottom, rgba(230, 43, 30, 0.05), transparent 70%),
                linear-gradient(180deg, var(--bg-darker), var(--bg-dark));
    transition: opacity 0.5s ease-in;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.08;
    animation: float 8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    will-change: transform;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 43, 30, 0.4), transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.glow-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(230, 43, 30, 0.3), transparent 70%);
    bottom: -300px;
    right: -300px;
    animation-delay: 7s;
}

.glow-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(179, 18, 23, 0.35), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 40px) scale(0.9); }
}

.particle-field {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(211, 47, 47, 0.12), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(211, 47, 47, 0.08), transparent);
    background-size: 200% 200%;
    animation: particles 30s linear infinite;
    will-change: background-position;
}

@keyframes particles {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* ============================================
   ENHANCED PRELOADER
   ============================================ */
#preloader {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

#preloader * {
    text-shadow: none !important;
    box-shadow: none !important;
    filter: none !important;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

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

.maya-logo {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.logo-ring {
    position: absolute;
    inset: 0;
    border: 2px solid;
    border-radius: 50%;
    border-color: var(--primary) transparent var(--primary) transparent;
    animation: spin 3s linear infinite;
    will-change: transform;
}

.logo-ring:nth-child(1) {
    animation-duration: 0.8s;
    opacity: 0.3;
}

.logo-ring:nth-child(2) {
    animation-duration: 1s;
    animation-direction: reverse;
    opacity: 0.5;
    inset: 10px;
}

.logo-ring:nth-child(3) {
    animation-duration: 1.2s;
    opacity: 0.7;
    inset: 20px;
}

@media (max-width: 768px) {
    .logo-ring {
        border-width: 1px;
    }
    
    .maya-logo {
        width: 120px;
        height: 120px;
    }
    
    .tedx-text {
        font-size: 24px;
    }
    
    .loading-text {
        font-size: 20px;
    }
}@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tedx-text {
    font-size: 32px;
    font-weight: 900;
    color: var(--secondary);
    text-shadow: 0 0 30px rgba(230, 43, 30, 0.6);
}

.x-red {
    color: var(--primary);
}

.loading-text {
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 25px;
    color: var(--secondary);
    text-shadow: none !important;
    filter: none !important;
}

.maya-word {
    display: inline-block;
    animation: pulse 1.2s ease-in-out infinite;
    text-shadow: none !important;
    filter: none !important;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.03); }
}

.loading-dots span {
    display: inline-block;
    animation: dot-blink 0.9s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes dot-blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    animation: progress 1.2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.5);
}

@keyframes progress {
    0% { width: 0%; }
    60% { width: 80%; }
    100% { width: 100%; }
}

/* ============================================
   PAGE TRANSITION
   ============================================ */
#page-transition {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.95), rgba(10, 10, 10, 0.98));
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), visibility 0.3s;
    pointer-events: none;
}

#page-transition.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ============================================
   NAVIGATION
   ============================================ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.2);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s var(--ease-smooth);
    will-change: background, box-shadow;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

#header.scrolled {
    background: rgba(10, 10, 10, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.logo-link {
    text-decoration: none;
}

.logo {
    display: inline-block;
    line-height: 1;
}

.logo-ted {
    font-size: 36px;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: -1px;
    display: inline-block;
    vertical-align: baseline;
}

.logo-x {
    color: var(--primary);
    font-size: 24px;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(211, 47, 47, 0.5);
    display: inline-block;
    vertical-align: super;
    line-height: 0;
    margin-left: -3px;
}

.logo-subtitle {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

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

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s var(--ease-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0 !important;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width 0.25s var(--ease-out);
    box-shadow: var(--glow-soft);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100% !important;
}

.nav-links a.active {
    color: var(--primary);
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    padding: 12px 28px !important;
    border-radius: 50px;
    color: var(--secondary) !important;
    box-shadow: var(--glow-medium);
    transition: all 0.3s var(--ease-smooth);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-strong);
}

.btn-nav::after {
    display: none;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--secondary);
    transition: all 0.3s;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 150px 0 150px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    filter: grayscale(100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(230, 43, 30, 0.1);
    border: 1px solid rgba(230, 43, 30, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    box-shadow: 0 0 30px rgba(230, 43, 30, 0.2);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
}

.title-line {
    display: block;
    animation: fadeInUp 0.6s var(--ease-out) forwards;
    opacity: 0;
}

.title-line:nth-child(1) {
    animation-delay: 0.05s;
}

.title-line:nth-child(2) {
    animation-delay: 0.15s;
}

.title-line:nth-child(3) {
    animation-delay: 0.25s;
    font-size: 0.6em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.title-line.highlight {
    background: linear-gradient(135deg, #ff6b6b, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(211, 47, 47, 0.8)) brightness(1.3);
    position: relative;
}

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

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 50px;
    line-height: 1.8;
    animation: fadeInUp 0.6s var(--ease-out) 0.3s forwards;
    opacity: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s var(--ease-out) 0.45s forwards;
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 1.5s ease-in-out infinite;
    text-align: center;
    width: max-content;
}

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.25s var(--ease-out);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    z-index: -1;
    transition: transform 0.25s var(--ease-out);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--secondary);
    box-shadow: var(--glow-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-strong);
}

.btn-primary::before {
    transform: scale(1.1);
}

.btn-primary:hover::before {
    transform: scale(1);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid rgba(230, 43, 30, 0.5);
}

.btn-outline:hover {
    background: rgba(230, 43, 30, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--glow-soft);
}

.btn-large {
    padding: 22px 50px;
    font-size: 16px;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(230, 43, 30, 0.02));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(211, 47, 47, 0.1);
    border-radius: 20px;
    transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    will-change: transform;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(211, 47, 47, 0.05);
    border-color: rgba(211, 47, 47, 0.3);
    box-shadow: var(--glow-medium);
}

.stat-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(230, 43, 30, 0.4));
}

.stat-number {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   THEME SECTION
   ============================================ */
.theme-section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    background: rgba(230, 43, 30, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    border: 1px solid rgba(230, 43, 30, 0.2);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.theme-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.theme-intro {
    margin-bottom: 40px;
}

.lead {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.illusion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.illusion-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(211, 47, 47, 0.1);
    border-radius: 15px;
    transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    will-change: transform;
}

.illusion-card:hover {
    transform: translateY(-5px);
    background: rgba(230, 43, 30, 0.05);
    border-color: rgba(230, 43, 30, 0.3);
    box-shadow: var(--glow-soft);
}

.illusion-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

.illusion-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.illusion-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.visual-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.visual-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.frame-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(230, 43, 30, 0.2), transparent);
    mix-blend-mode: multiply;
}

.theme-highlight {
    background: rgba(230, 43, 30, 0.05);
    border-left: 4px solid var(--primary);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.theme-aspects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.aspect-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(230, 43, 30, 0.2);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s var(--ease-out);
}

.aspect-card:hover {
    background: rgba(230, 43, 30, 0.08);
    border-color: rgba(230, 43, 30, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(230, 43, 30, 0.2);
}

.aspect-icon {
    width: 50px;
    height: 50px;
    background: rgba(230, 43, 30, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.3rem;
}

.aspect-card h4 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.aspect-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.theme-conclusion {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

/* ============================================
   WHY ATTEND SECTION
   ============================================ */
.why-attend-section {
    padding: 120px 0;
    background: linear-gradient(180deg, rgba(230, 43, 30, 0.02), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(211, 47, 47, 0.1);
    border-radius: 20px;
    transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease-out);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(230, 43, 30, 0.05);
    border-color: rgba(230, 43, 30, 0.3);
    box-shadow: var(--glow-medium);
}

.feature-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1;
    opacity: 0.3;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 120px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 60px;
    background: rgba(230, 43, 30, 0.05);
    border: 2px solid rgba(230, 43, 30, 0.2);
    border-radius: 30px;
    box-shadow: var(--glow-medium);
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 80px 0 40px;
    background: linear-gradient(180deg, transparent, rgba(230, 43, 30, 0.03));
    border-top: 1px solid rgba(230, 43, 30, 0.1);
}

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

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-ted {
    font-size: 28px;
}

.footer-logo .logo-x {
    font-size: 18px;
    top: -6px;
}

.footer-subtitle {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
}

.footer-desc {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 43, 30, 0.1);
    border: 1px solid rgba(230, 43, 30, 0.2);
    border-radius: 50%;
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--glow-soft);
}

.footer-col h4 {
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-col ul li i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(230, 43, 30, 0.1);
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .theme-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .illusion-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 999;
        padding: 20px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 15px;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links a::after {
        display: none !important;
    }
    
    .mobile-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .main-nav {
        padding: 15px 0;
    }
    
    .logo-ted {
        font-size: 28px;
    }
    
    .logo-x {
        font-size: 20px;
    }
    
    .logo-subtitle {
        font-size: 8px;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: 80vh;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 10px 20px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem) !important;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
        font-size: 14px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .stats-section {
        padding: 60px 0;
    }
    
    .stats-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .stat-card {
        flex: 0 1 calc(50% - 8px);
        max-width: 250px;
    }
    
    .stat-card:nth-child(3) {
        flex: 0 1 250px;
    }
    
    .stat-card {
        padding: 25px 15px;
    }
    
    .stat-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 42px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .theme-section {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-tag {
        font-size: 12px;
        padding: 8px 18px;
    }
    
    .section-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        margin-bottom: 20px;
    }
    
    .section-subtitle {
        font-size: 1.15rem;
    }
    
    .theme-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .theme-visual {
        order: -1;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .theme-highlight {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .theme-aspects {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .aspect-card {
        padding: 20px;
    }
    
    .aspect-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .aspect-card h4 {
        font-size: 1rem;
    }
    
    .aspect-card p {
        font-size: 0.85rem;
    }
    
    .theme-conclusion {
        font-size: 1rem;
        padding-top: 20px;
    }
    
    .illusion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .illusion-card {
        padding: 30px 20px;
    }
    
    .illusion-card h3 {
        font-size: 1.15rem;
    }
    
    .illusion-card p {
        font-size: 0.95rem;
    }
    
    .illusion-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-number {
        font-size: 36px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .feature-card p {
        font-size: 0.85rem;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content {
        padding: 40px 25px;
    }
    
    .cta-content h2 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-col {
        padding: 0 15px;
    }
    
    .footer-logo {
        margin-bottom: 15px;
    }
    
    .footer-logo .logo-ted {
        font-size: 26px;
    }
    
    .footer-logo .logo-x {
        font-size: 18px;
    }
    
    .footer-subtitle {
        font-size: 10px;
    }
    
    .footer-desc {
        font-size: 0.9rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .social-links {
        justify-content: center;
        gap: 12px;
    }
    
    .social-links a {
        width: 50px;
        height: 50px;
    }
    
    .footer-col h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .footer-col ul {
        text-align: center;
    }
    
    .footer-col ul li {
        margin-bottom: 10px;
    }
    
    .footer-col ul li a,
    .footer-col ul li {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 30px;
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .glow-orb {
        display: none;
    }
    
    .particle-field {
        display: none;
    }
    
    .animated-bg {
        background: linear-gradient(180deg, var(--bg-darker), var(--bg-dark));
    }
    
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .reveal {
        transition: all 0.3s var(--ease-out);
    }
    
    /* Speaker cards mobile optimization */
    .speaker-card {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        margin-bottom: 60px !important;
        padding: 0 15px;
    }
    
    .speaker-card h3 {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
        margin-bottom: 10px !important;
    }
    
    .speaker-card p[style*="font-size: 1.2rem"] {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }
    
    .speaker-card p[style*="font-size: 1.1rem"] {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
    }
    
    .speaker-card img {
        max-width: 100%;
        height: auto;
    }
    
    .speaker-card > div:first-child {
        order: 1;
    }
    
    .speaker-card > div:last-child {
        order: 2;
    }
    
    /* Team page mobile optimization */
    .team-photo-wrapper {
        margin-bottom: 50px !important;
        padding: 0 10px !important;
    }
    
    .team-photo-wrapper > div {
        border-radius: 15px !important;
        box-shadow: 0 10px 40px rgba(230, 43, 30, 0.2) !important;
    }
    
    .team-intro-box {
        padding: 25px 20px !important;
    }
    
    .team-intro-box p {
        font-size: 1rem !important;
    }
    
    /* Register page mobile improvements */
    .payment-qr-section {
        padding: 25px 15px !important;
    }
    
    /* Ensure all forms are mobile friendly */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="file"],
    textarea {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}
