/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



:root {
    --primary-red: #e62b1e;
    --secondary-red: #ff4136;
    --dark-bg: #0a0a0a;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --white: #ffffff;
    --black: #000000;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: rgba(255, 255, 255, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-red), var(--secondary-red));
    --gradient-dark: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Replace the existing body rule */
body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh; /* Ensure body is at least full height */
    display: grid; /* Use Grid for the main layout */
    grid-template-rows: auto 1fr auto; /* Header, Main Content (stretches), Footer */
}

/* Add this new rule for the page container */
#page-container {
    flex: 1;
    width: 100%;
}
body, html, .page, .navigation, .nav-link, .nav-logo-img, .ticket-btn, button, input, select, textarea {
    cursor: auto !important;
}
/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.tedx-logo-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.loading-logo-img {
    height: 60px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% {
        opacity: 0.8;
        filter: brightness(1);
    }
    100% {
        opacity: 1;
        filter: brightness(1.2);
    }
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loading-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    border-radius: 2px;
    animation: loadingProgress 2s ease-out forwards;
}

.loading-text {
    color: var(--medium-gray);
    font-size: 1rem;
}

/* Animated Cursor - Theme Based */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary-red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease-out;
    mix-blend-mode: difference;
}

.custom-cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px solid rgba(230, 43, 30, 0.3);
    border-radius: 50%;
    animation: cursorPulse 2s infinite;
}

.custom-cursor.cursor-hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--secondary-red);
    mix-blend-mode: exclusion;
}

.custom-cursor.cursor-click {
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--white);
}

.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--primary-red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0.7;
    transition: all 0.15s ease-out;
}

@keyframes cursorPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
}

/* Path-themed cursor states */
.custom-cursor.path-mode {
    background: linear-gradient(45deg, var(--primary-red), var(--secondary-red));
}

.custom-cursor.path-mode::before {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: auto;
    height: auto;
    border: none;
    animation: none;
}

/* Hide default cursor on interactive elements */
a, button, input, textarea, select {
    cursor: none;
}

/* Page System */
/* Replace the .page and .page.active rules with these */
/* Replace .page and .page.active rules */
/* Page System */
.page {
    display: none; /* Hide all pages by default */
}

.page.active {
    display: block; /* Show only the active page */
    animation: fadeInPage 0.5s ease-out;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page.slide-in-right {
    transform: translateX(100%);
}

/* Particles Background */
/* Animated Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* The Path Less Traveled - SVG Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'%3E%3Cdefs%3E%3ClinearGradient id='pathGrad' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%23e62b1e;stop-opacity:0.4'/%3E%3Cstop offset='100%25' style='stop-color:%23e62b1e;stop-opacity:0.1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 600 Q200 400 400 500 T800 350 Q1000 300 1200 400' stroke='url(%23pathGrad)' stroke-width='2' fill='none' opacity='0.6'/%3E%3Cpath d='M0 650 Q300 450 600 550 T1200 450' stroke='%23e62b1e' stroke-width='1' fill='none' opacity='0.3' stroke-dasharray='10,5'/%3E%3Cpath d='M200 700 Q500 500 800 600 Q1000 550 1200 500' stroke='%23e62b1e' stroke-width='1.5' fill='none' opacity='0.4'/%3E%3Ccircle cx='100' cy='580' r='3' fill='%23e62b1e' opacity='0.5'%3E%3Canimate attributeName='opacity' values='0.3;0.8;0.3' dur='3s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='400' cy='480' r='2' fill='%23e62b1e' opacity='0.4'%3E%3Canimate attributeName='opacity' values='0.2;0.7;0.2' dur='4s' repeatCount='indefinite'/%3E%3C/circle%3E%3Ccircle cx='750' cy='380' r='2.5' fill='%23e62b1e' opacity='0.6'%3E%3Canimate attributeName='opacity' values='0.4;0.9;0.4' dur='5s' repeatCount='indefinite'/%3E%3C/circle%3E%3Cpath d='M50 550 L80 520 L110 550 L140 520' stroke='%23e62b1e' stroke-width='1' fill='none' opacity='0.3'/%3E%3Cpath d='M350 460 L380 430 L410 460 L440 430' stroke='%23e62b1e' stroke-width='1' fill='none' opacity='0.3'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    animation: pathFlow 15s ease-in-out infinite;
}

@keyframes pathFlow {
    0%, 100% {
        transform: scale(1) translateX(0);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05) translateX(-20px);
        opacity: 1;
    }
}

/* Journey Milestones */
.journey-milestones {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.milestone {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
    opacity: 0.4;
    animation: milestoneGlow 4s ease-in-out infinite;
}

.milestone::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    opacity: 0.3;
    animation: ripple 3s ease-out infinite;
}

.milestone:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.milestone:nth-child(2) {
    top: 45%;
    left: 35%;
    animation-delay: 1.5s;
}

.milestone:nth-child(3) {
    top: 35%;
    left: 60%;
    animation-delay: 3s;
}

.milestone:nth-child(4) {
    top: 60%;
    left: 80%;
    animation-delay: 4.5s;
}

.milestone:nth-child(5) {
    top: 70%;
    left: 25%;
    animation-delay: 6s;
}

@keyframes milestoneGlow {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Branching Paths */
.branching-paths {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Cpath d='M50 300 Q200 250 350 300 Q500 350 650 250 Q750 200 800 250' stroke='%23e62b1e' stroke-width='1' fill='none' opacity='0.2' stroke-dasharray='5,10'/%3E%3Cpath d='M100 400 Q250 350 400 450 Q550 550 700 400' stroke='%23e62b1e' stroke-width='1' fill='none' opacity='0.15' stroke-dasharray='8,6'/%3E%3Cpath d='M150 200 Q300 150 450 250 Q600 350 750 200' stroke='%23e62b1e' stroke-width='1' fill='none' opacity='0.18' stroke-dasharray='3,7'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    animation: pathShift 25s ease-in-out infinite;
}

@keyframes pathShift {
    0%, 100% {
        transform: translateX(0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translateX(-30px) scale(1.02);
        opacity: 0.8;
    }
    66% {
        transform: translateX(30px) scale(0.98);
        opacity: 0.7;
    }
}

/* Footsteps on Path */
.footsteps {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.footstep {
    position: absolute;
    width: 4px;
    height: 12px;
    background: var(--primary-red);
    border-radius: 2px;
    opacity: 0;
    animation: footstepAppear 2s ease-in-out infinite;
}

.footstep:nth-child(1) {
    top: 40%;
    left: 20%;
    transform: rotate(-15deg);
    animation-delay: 0s;
}

.footstep:nth-child(2) {
    top: 42%;
    left: 25%;
    transform: rotate(15deg);
    animation-delay: 0.3s;
}

.footstep:nth-child(3) {
    top: 44%;
    left: 30%;
    transform: rotate(-10deg);
    animation-delay: 0.6s;
}

.footstep:nth-child(4) {
    top: 46%;
    left: 35%;
    transform: rotate(20deg);
    animation-delay: 0.9s;
}

.footstep:nth-child(5) {
    top: 48%;
    left: 40%;
    transform: rotate(-5deg);
    animation-delay: 1.2s;
}

@keyframes footstepAppear {
    0%, 80% {
        opacity: 0;
        transform: scale(0.5) rotate(var(--rotation, 0deg));
    }
    10%, 70% {
        opacity: 0.6;
        transform: scale(1) rotate(var(--rotation, 0deg));
    }
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(var(--rotation, 0deg));
    }
}

/* Mountain Silhouettes - Representing Challenges */
.mountain-silhouettes {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    z-index: -3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300'%3E%3Cpath d='M0 300 L200 200 L400 250 L600 150 L800 200 L1000 100 L1200 180 L1200 300 Z' fill='%23111111' opacity='0.8'/%3E%3Cpath d='M0 300 L150 220 L350 280 L550 180 L750 230 L950 130 L1200 200 L1200 300 Z' fill='%231a1a1a' opacity='0.6'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    animation: mountainParallax 20s ease-in-out infinite;
}

@keyframes mountainParallax {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-20px);
    }
}

/* Stars - Dreams and Aspirations */
.stars-field {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    background-image: 
        radial-gradient(2px 2px at 100px 150px, var(--primary-red), transparent),
        radial-gradient(1px 1px at 300px 80px, var(--primary-red), transparent),
        radial-gradient(1px 1px at 500px 200px, var(--primary-red), transparent),
        radial-gradient(2px 2px at 700px 120px, var(--primary-red), transparent),
        radial-gradient(1px 1px at 900px 250px, var(--primary-red), transparent),
        radial-gradient(1px 1px at 1100px 180px, var(--primary-red), transparent);
    animation: starsShimmer 8s ease-in-out infinite;
}

@keyframes starsShimmer {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 -1rem 0 3rem;
    transition: all 0.3s ease;
}

.navigation.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(30px);
}

.navigation.hidden {
    transform: translateY(-100%);
}

.nav-logo {
    position: absolute;
    left: 2rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 35px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0 4rem 0 12rem;
    gap: 3rem;
}


.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* Page Containers */
.page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 40px var(--shadow-dark);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tedx-logo .logo-img {
    height: 60px;
    margin-bottom: 1rem;
}

.login-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--primary-red);
    font-size: 1.2rem;
    font-weight: 500;
}

/* Form Styles */
.login-form,
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group,
.form-group {
    position: relative;
}

.input-container {
    position: relative;
}

.input-container input,
.input-container select,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 0 0.5rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-container label,
.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: var(--medium-gray);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-container input:focus + label,
.input-container input:valid + label,
.input-container select:focus + label,
.input-container select:valid + label,
.form-group input:focus + label,
.form-group input:valid + label,
.form-group select:focus + label,
.form-group select:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: var(--primary-red);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
}

.input-container input:focus ~ .input-line,
.input-container select:focus ~ .input-line {
    width: 100%;
}

/* Buttons */
.login-btn,
.submit-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.login-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 43, 30, 0.3);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.login-btn:hover .btn-icon,
.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--medium-gray);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
    width: 100%;
    margin-top: 0;
    background-size: cover;
    background-position: center;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    padding: 2rem 1rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 80px;
        min-height: calc(100vh - 80px);
    }
    
    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    .hero-theme {
        font-size: 1.5rem !important;
    }

    .hero-description {
        font-size: 1rem !important;
        line-height: 1.6;
        padding: 0 1rem;
    }
    
    .countdown {
        padding: 1rem;
        gap: 1rem;
    }

    .countdown-item {
        min-width: auto;
        padding: 0.5rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        text-align: center;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-theme {
        font-size: 1.2rem !important;
    }
    
    .hero-description {
        font-size: 0.9rem !important;
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-title .ted-text {
    color: var(--white);
}

.hero-title .x-text {
    color: var(--primary-red);
}

.hero-theme {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-red);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--light-gray);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}


/* Statistics */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 2rem 0;
    position: static; /* Ensure static positioning */
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-red);
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--medium-gray);
    margin-top: 0.5rem;
}

/* Countdown */
.countdown-container {
    width: 100%;
    display: flex;
    justify-content: center;
    position: static; /* Changed from relative to static */
    padding: 2rem 0;
    backdrop-filter: blur(10px);
    margin: 2rem 0;
}

.countdown {
    display: flex;
    gap: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
}

.countdown-item {
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    display: block;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .page-title {
        font-size: 2.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-theme {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .countdown {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .countdown-item {
        min-width: 60px;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.8rem;
    }

    .login-glass {
        padding: 2rem;
        margin: 1rem;
    }

    .navigation {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-theme {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .countdown {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .nav-logo-img {
        height: 40px;
    }
}

/* Scroll reveal animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Glass morphism effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

.glass-effect:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Enhanced Smooth scroll behavior with theme matching */
html {
    scroll-behavior: smooth;
}

.page {
    scroll-behavior: smooth;
}

/* Custom scrollbar styling to match theme */
html {
    scroll-behavior: smooth; /* Enables smooth scrolling for all anchor links */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: var(--primary-red) #0a0a0a; /* For Firefox */
}

/* For Chrome, Safari, and Edge */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: #0a0a0a; /* Black track */
}

body::-webkit-scrollbar-thumb {
    background-color: var(--primary-red); /* Red thumb */
    border-radius: 20px;
    border: 3px solid #0a0a0a; /* Creates a padding effect */
}

body::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-red); /* Lighter red on hover */
}

/* For Firefox */
.page {
    scrollbar-width: thin;
    scrollbar-color: #e62b1e rgba(20, 20, 20, 0.3);
}

/* Contact Form Text Visibility Fix - Ultimate Override */
.contact-form input,
.contact-form select,
.contact-form textarea,
#contact-form input,
#contact-form select,
#contact-form textarea,
.form-group input,
.form-group select,
.form-group textarea {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    -webkit-text-fill-color: #ffffff !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
}

.contact-form input:focus,
.contact-form select:focus, 
.contact-form textarea:focus,
#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #e62b1e !important;
    -webkit-text-fill-color: #ffffff !important;
    outline: none !important;
    box-shadow: 0 0 20px rgba(230, 43, 30, 0.2) !important;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
#contact-form input::placeholder,
#contact-form textarea::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

.contact-form select option,
#contact-form select option,
.form-group select option {
    color: #ffffff !important;
    background: #1a1a1a !important;
}

/* Contact page description text fix */
.contact-description,
.contact-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Gallery Section Styles */
/* Gallery Page - Corrected CSS Fixes */

/* Gallery Container */
.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.gallery-title {
    padding-top: 100px; /* pushes it below navbar */
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #e62b1e, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Gallery Navigation - Fix overlapping */
.gallery-navigation {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.gallery-nav-link {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.gallery-nav-link:hover,
.gallery-nav-link.active {
    border-color: #e62b1e;
    background: rgba(230, 43, 30, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 43, 30, 0.3);
}

/* Gallery Content Containers - Fix the main issue */
.gallery-content {
    display: none;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    position: relative;
    clear: both;
}

.gallery-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Sections - Prevent overlapping */
.gallery-section {
    margin-bottom: 80px;
    width: 100%;
    clear: both;
    position: relative;
}

/* Video Section */
.gallery-video-section {
    margin-bottom: 80px;
    text-align: center;
    width: 100%;
    clear: both;
}

.gallery-highlight-video {
    width: 100%;
    max-width: 900px;
    height: 500px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(230, 43, 30, 0.3);
}

/* Gallery Grid Layouts - Fix overlapping grids */
.gallery-grid {
    width: 100%;
    position: relative;
    clear: both;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    align-items: start;
    width: 100%;
    margin-bottom: 40px;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    margin-bottom: 40px;
}

/* Gallery Items */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    margin: 0;
    float: none;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(230, 43, 30, 0.2);
    border-color: rgba(230, 43, 30, 0.3);
}

.gallery-photo {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-photo {
    transform: scale(1.05);
}

/* Gallery Placeholder */
.gallery-placeholder {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(230, 43, 30, 0.1), rgba(255, 107, 107, 0.1));
    border: 2px dashed rgba(230, 43, 30, 0.3);
}

.placeholder-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: rgba(230, 43, 30, 0.5);
}

.placeholder-content p {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Gallery Controls */
.gallery-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 50px 0;
    width: 100%;
    clear: both;
}

.gallery-prev,
.gallery-next {
    padding: 12px 25px;
    background: linear-gradient(135deg, #e62b1e, #ff6b6b);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.gallery-prev:hover,
.gallery-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 43, 30, 0.4);
}

/* Videos Section */
.videos-section {
    margin-top: 100px;
    width: 100%;
    clear: both;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #fff;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
    width: 100%;
}

.video-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(230, 43, 30, 0.2);
    border-color: rgba(230, 43, 30, 0.3);
}

.video-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-item h3 {
    padding: 20px 25px 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    margin: 0;
}

.video-item p {
    padding: 0 25px 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-container {
        padding: 20px 15px;
    }

    .gallery-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .gallery-navigation {
        gap: 15px;
        margin-bottom: 40px;
    }

    .gallery-nav-link {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .gallery-highlight-video {
        height: 300px;
    }

    .masonry-grid,
    .compact-grid,
    .grid-layout {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-photo,
    .gallery-placeholder {
        height: 200px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 2rem;
    }

    .gallery-navigation {
        flex-direction: column;
        align-items: center;
    }

    .gallery-nav-link {
        width: 200px;
        text-align: center;
    }

    .masonry-grid,
    .compact-grid,
    .grid-layout {
        grid-template-columns: 1fr;
    }

    .gallery-highlight-video {
        height: 250px;
    }
}

/* Clear floats and prevent layout issues */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Ensure proper stacking */
.gallery-container * {
    position: relative;
    z-index: 1;
}
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    aspect-ratio: 16/9;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.gallery-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-photo {
    transform: scale(1.1);
}

.gallery-video-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.gallery-highlight-video {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 1rem;
        gap: 1rem;
    }
    
    .gallery-video-section {
        padding: 0 1rem;
    }
}

/* TEDx Footer Theme */
/* filepath: c:\Users\hp\OneDrive\Desktop\Finals\TedXFin\TEDXNM\TedXNM\tedx\styles\main.css */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--white);
    line-height: 1.6;
    display: flex; /* Changed from grid */
    flex-direction: column; /* Added */
    min-height: 100vh;
}

/* TEDx Footer Theme */
/* Replace the .site-footer rule */
.site-footer {
    width: 100%;
    background: #121212;
    color: #e0e0e0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    border-top: 1px solid var(--glass-border);
}

.footer-top {
    padding: 1rem 2rem;
    border-bottom: 1px solid #2a2a2a;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-red);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-list li {
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-list a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: var(--primary-red);
}

.footer-list i {
    margin-top: 4px;
    color: var(--primary-red);
}

.footer-bottom {
    background: #0a0a0a;
    padding: 0.5rem 2rem;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.footer-social a {
    color: #e0e0e0;
    font-size: 0.9rem;
    width: 25px;
    height: 25px;
    border: 1px solid #333;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
    transform: translateY(-3px);
}

.footer-copyright {
    font-size: 0.7rem;
    color: #888;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        padding: 2rem 1.5rem;
    }
}

/* Coming Soon Section */
.coming-soon {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-red);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    margin: 4rem auto;
    max-width: 1000px;
    box-shadow: 0 10px 30px rgba(230, 43, 30, 0.2);
    position: relative;
    overflow: hidden;
}

.coming-soon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-red) 0%, transparent 70%);
    opacity: 0.1;
    animation: glowPulse 4s ease-in-out infinite;
}

.coming-soon h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.coming-soon p {
    font-size: 1.2rem;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 2rem;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

/* Sponsor Gallery Styles */
.past-sponsors-section {
    margin-top: 4rem;
    text-align: center;
}

.sponsor-gallery-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.sponsor-tab {
    background: var(--glass-bg);
    border: none;
    color: var(--primary-red);
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.sponsor-tab.active,
.sponsor-tab:hover {
    background: var(--primary-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 43, 30, 0.3);
}

.sponsor-gallery-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin: 3rem auto;
    max-width: 1400px;
    padding: 0 2rem;
}

.sponsor-gallery-grid.active {
    display: grid;
}

/* Style for items that need to be centered in the last row */
.sponsor-gallery-grid > *:last-child:nth-child(3n-1) {
    grid-column-end: -2;
}

.sponsor-gallery-grid > *:last-child:nth-child(3n-2) {
    grid-column: 2 / 3;
}

.sponsor-gallery-grid.active {
    display: grid;
    animation: fadeIn 0.8s ease-out;
}

.sponsor-gallery-item {
    aspect-ratio: 16/9; /* Or 1/1 for square logos */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 0; /* Reduced padding */
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.sponsor-gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.sponsor-gallery-item:hover::before {
    transform: translateX(100%);
}

.sponsor-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.sponsor-photo {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: brightness(1) contrast(1.05);
    font-family: 'Space Grotesk', sans-serif; /* Match font with other elements */
}

/* Add consistent font styling to any text within sponsor items */
.sponsor-gallery-item * {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    color: var(--white);
}

.sponsor-gallery-item:hover .sponsor-photo {
    transform: scale(1.1);
    filter: brightness(1.1) contrast(1.2);
    mix-blend-mode: normal;
}

/* Add reflection effect */
.sponsor-gallery-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.sponsor-gallery-item:hover::after {
    transform: translateY(0);
}

.sponsor-year-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-red);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .sponsor-gallery-item {
        width: 150px;
        height: 120px;
    }
}

.footer-social {
    display: flex;
    gap: 18px;
    padding: 8px 0;
}

.footer-social a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.footer-bottom {
    text-align: bottom ;
    padding: 18px 0 8px 0;
    font-size: 0.95rem;
    color: #bbb;
    background: #161616;
    margin-top: 0;
    border-top: 1px solid #222;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-grid {
        flex-direction: column;
        gap: 18px;
        padding: 0 12px;
    }
    .footer-col {
        min-width: 0;
    }
}
@media (max-width: 768px) {
    .sponsor-gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
    }
    
    /* Adjust last item centering for mobile */
    .sponsor-gallery-grid > *:last-child {
        grid-column: 1 / -1;
    }
}
.gallery-item:nth-child(1) { animation: galleryItemFloat 8s ease-in-out infinite; animation-delay: 0s; }
.gallery-item:nth-child(2) { animation: galleryItemFloat 8s ease-in-out infinite; animation-delay: 1s; }
.gallery-item:nth-child(3) { animation: galleryItemFloat 8s ease-in-out infinite; animation-delay: 2s; }
.gallery-item:nth-child(4) { animation: galleryItemFloat 8s ease-in-out infinite; animation-delay: 3s; }
.gallery-item:nth-child(5) { animation: galleryItemFloat 8s ease-in-out infinite; animation-delay: 1.5s; }
.gallery-item:nth-child(6) { animation: galleryItemFloat 8s ease-in-out infinite; animation-delay: 2.5s; }

.gallery-content.active .gallery-item {
    animation: fadeInUp 0.8s ease-out forwards;
}

.gallery-content.active .gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-content.active .gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-content.active .gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-content.active .gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-content.active .gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-content.active .gallery-item:nth-child(6) { animation-delay: 0.6s; }

/* Gallery Carousel */
.gallery-carousel {
    position: relative;
    margin: 2rem 0;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 1rem 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s ease;
    z-index: 10;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.9);
}

.carousel-control.prev {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.carousel-control.next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

/* Gallery Grid Section */
.gallery-grid-section {
    margin: 3rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Creates 4 equal columns */
    gap: 1.5rem; /* Sets the gap between photos */
    padding: 0 1rem;
}
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For small mobile phones, switch to 1 column */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-photo {
    transform: scale(1.1);
}

/* Hexagonal Grid */
.hexagonal-wrapper {
    position: relative;
    flex-grow: 1;
    margin: 3rem auto;
    max-width: 100%;
    max-height: 800px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-gap: 30px;
    justify-items: center;
    align-items: center;
    background-color: rgba(38, 38, 38, 0.3);
    padding: 2rem;
    border-radius: 15px;
}

.hexagonal-wrapper img {
    z-index: 1;
    grid-column: span 2;
    max-width: 100%;
    margin-bottom: -52%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: scale(1);
    transition: all 0.25s;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.hexagonal-wrapper img:nth-child(7n + 1) {
    grid-column: 2 / span 2;
}

.hexagonal-wrapper img:hover {
    z-index: 2;
    transform: scale(2);
}

/* YouTube Videos Section */
.youtube-videos-section {
    margin: 4rem 0;
}

.youtube-videos-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.video-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.video-item h3 {
    color: var(--primary-red);
    font-size: 1.2rem;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.video-item p {
    color: var(--light-gray);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}
.gallery-container {
    background: transparent;
}
/* PASTE THIS ENTIRE BLOCK AT THE END OF MAIN.CSS */

/* PASTE THIS ENTIRE BLOCK AT THE END OF MAIN.CSS */

/* Hero Image Banner Section */
.hero-image-banner {
    position: relative;
    width: 100%;
    margin-top: 80px;
    overflow: hidden;
    line-height: 0;
}

.hero-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media screen and (max-width: 768px) {
    .hero-image-banner {
        margin-top: 80px;
        height: auto;
    }
    
    .hero-main-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        max-height: none;
    }
}

/* Adjustments for the hero-section (which now holds the timer) */
#home-page .hero-section {
    min-height: auto; /* Ensures the section only takes up the space it needs */
    padding: 5rem 2rem; /* Adds significant vertical space to create a distinct section below the image */
}

/* Stats Section Positioning */
.stats-section {
    position: relative;
    z-index: 2;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin: 0;
    padding: 1rem;
}

@media screen and (max-width: 768px) {
    .stats-section {
        width: 95%;
        padding: 1rem;
        margin: 1rem auto;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
}   


.theme-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.theme-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.theme-header {
    margin-bottom: 2rem;
}

.theme-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.theme-subtitle {
    font-size: 1.8rem;
    color: var(--white);
    font-weight: 300;
}

.theme-description {
    line-height: 1.8;
}

.theme-text {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Theme Section Responsive Styles */
@media (max-width: 768px) {
    .theme-hero-section {
        padding: 4rem 1.5rem;
    }

    .theme-title {
        font-size: 2.5rem;
    }

    .theme-subtitle {
        font-size: 1.5rem;
    }

    .theme-text {
        font-size: 1rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .theme-hero-section {
        padding: 3rem 1rem;
    }

    .theme-title {
        font-size: 2rem;
    }

    .theme-subtitle {
        font-size: 1.3rem;
    }
}

/* Speaker Year Navigation Mobile Styles */
@media (max-width: 768px) {
    .speaker-year-navigation {
        padding: 1rem;
    }

    .year-tabs {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .year-tab {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .year-tab:hover,
    .year-tab.active {
        background: var(--primary-red);
        transform: translateY(-2px);
    }
}

