@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

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

:root {
    --primary: #ffffff;
    --accent: #ff0040;
    --accent-glow: #ff0040;
    --bg-dark: #2d2d30; /* Much lighter from #0a0a0a */
    --bg-darker: #252526; /* Much lighter from #000000 */
    --glass: rgba(255, 255, 255, 0.15); /* Much more visible */
    --glass-border: rgba(255, 255, 255, 0.25); /* Much more visible */
    --text-dim: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.65);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --transition-speed: 0.4s; /* Added for smooth theme transition */

    --speaker-image-size: 240px;
}

/* Light Mode Colors */
[data-theme="light"] {
    --primary: #1a1a1a;
    --secondary: #2d2d2d;
    --accent: #667eea;
    --accent-hover: #5568d3;
    --accent-glow: rgba(102, 126, 234, 0.2);
    --bg-dark: #ffffff;
    --bg-darker: #f8f9fa;
    --bg-darkest: #f0f1f3;
    --glass: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-dim: rgba(0, 0, 0, 0.8);
    --text-muted: rgba(0, 0, 0, 0.6);
    --shadow: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(0, 0, 0, 0.02);
}

/* Apply transitions to all theme-dependent properties */
body,
nav,
.hero,
.about,
.speakers,
.countdown,
.venue,
footer,
.card,
.speaker-card,
.why-card,
.timer-block,
.address-card,
.venue-map,
.speaker-modal,
.modern-carousel-container {
    transition: background var(--transition-speed) ease,
    color var(--transition-speed) ease,
    border-color var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

/* Theme Toggle Button Styles */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--glass);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.theme-toggle:hover {
    border-color: var(--accent);
    transform: scale(1.05);
}

.theme-toggle-slider {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    transition: transform var(--transition-speed) cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 2px 8px var(--accent-glow);
}

[data-theme="light"] .theme-toggle-slider {
    transform: translateX(28px);
}

/* Light mode specific adjustments */
[data-theme="light"] .bg-animation {
    background: radial-gradient(ellipse at top, #e0e7ff 0%, #f0f1f3 100%);
}

[data-theme="light"] .glow-orb {
    opacity: 0.2;
}

[data-theme="light"] .scroll-indicator::before {
    background: transparent;
}

[data-theme="light"] .scroll-indicator::after {
    border-color: var(--text-dim);
    background: var(--text-dim);
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .cta-button {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

[data-theme="light"] .speaker-image,
[data-theme="light"] .modern-carousel-image {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .speaker-modal-overlay {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

[data-theme="light"] .timer-block:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Improve text contrast in light mode */
[data-theme="light"] .about-description,
[data-theme="light"] .speaker-bio,
[data-theme="light"] .card-description,
[data-theme="light"] .why-card-body {
    color: var(--text-dim);
}

body {
    font-family: Ubuntu, sans-serif;
    background: var(--bg-dark);
    color: var(--primary);
    overflow-x: hidden;
    cursor: default;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
}

a {
    color: var(--primary);
    text-decoration: none;
    text-decoration-skip-ink: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 1px;
    transition: background-size 0.3s ease, color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--primary);
    background-size: 100% 2px;
}


/* Animated Background */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

@media screen and (max-width: 600px) {
    .glow-orb {
        width: 100%;
        height: 100%;
    }
}

.orb1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.orb2 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: -300px;
    right: -300px;
    animation-delay: 10s;
}

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

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0px;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: linear-gradient(to bottom, rgba(196, 201, 255, 0.7), transparent);
    transition: all 0.3s ease;
}

[data-theme="dark"] nav {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.2); /* More transparent for glass effect */
    backdrop-filter: blur(20px);
    padding: 5px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.logo {
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    position: relative;
    filter: drop-shadow(5px 5px 10px #ff6b6b);

    img {
        width: 80px;
        height: 50px;
        margin: 0;
        padding: 0;
    }
}

.logo::after {
    display: none;
}

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

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
    background-image: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
    animation: fadeInUp 1s ease;
}

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

.hero-title {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -3px;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    font-weight: bold;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 0, 64, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 0, 64, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.scroll-indicator.hide {
    opacity: 0;
    pointer-events: none;
}

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

.scroll-indicator::before {
    content: '';
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-dim);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 4px;
    height: 10px;
    background: var(--text-dim);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-dot 2s infinite;
}

@keyframes scroll-dot {
    0%, 100% {
        top: 10px;
        opacity: 1;
    }
    50% {
        top: 25px;
        opacity: 0.3;
    }
}

section {
    padding: 5rem 1rem;
}

.hero,
.about,
.sponsors,
.session-preview,
#why-jdc {
    max-width: 1200px;
}

.speakers,
#our-team {
    max-width: 1400px;
}

/* About Section */
.about {
    margin: 0 auto;
    display: flex;
    width: 100%;
}

.about-content {
    display: flex;
    gap: 80px;
    align-items: center;
    max-width: 45rem;
}

.about-text {
    animation: fadeInLeft 1s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.section-subtitle {
    font-size: 2rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-muted)
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 30px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dim);
}
.about-description p {
    margin-bottom: 1rem;
}

/* Gallery Section */
#gallery {
    position: relative;
    text-align: center;
    width: 90rem;
}

@media screen and (max-width: 90rem) {
    #gallery {
        width: 100%;
    }
}

.gallery-header {
    margin-bottom: 4rem;
}

.image-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    padding: 0 20px;
}

.carousel-button {
    pointer-events: all;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--glass-border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--accent);
    transform: scale(1.2);
}


/* Speakers Section */
.speakers {
    margin: 0 auto;
}

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

.speakers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.speakers-grid > .speaker-card {
    flex: 0 0 var(--speaker-image-size);
}

.speaker-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    width: var(--speaker-image-size);
}

.speaker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #ff6b6b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.speaker-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.speaker-card:hover .speaker-image {
    transform: scale(1.05);
}

.speaker-info {
    padding: 1rem;
    text-align: center;
}

.speaker-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.speaker-company {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.speaker-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dim);
}

/* Speaker Modal Styles */
.speaker-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.speaker-modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.speaker-modal {
    background: var(--bg-darker);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);

    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */

    ::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
}

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

.speaker-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.speaker-modal-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

.speaker-modal-close::before,
.speaker-modal-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--primary);
}

.speaker-modal-close:hover::before,
.speaker-modal-close:hover::after {
    background: #ffffff;
}

.speaker-modal-close::before {
    transform: rotate(45deg);
}

.speaker-modal-close::after {
    transform: rotate(-45deg);
}

.speaker-modal-content {
    padding: 40px;
}

.speaker-modal-header {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
}

.speaker-modal-image {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    object-fit: cover;
    /* --- CHANGE APPLIED HERE --- */
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(255, 0, 64, 0.2);
}

.speaker-modal-info {
    flex: 1;
}

.speaker-modal-name {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.speaker-modal-title {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.speaker-modal-company {
    font-size: 1rem;
    color: var(--text-dim);
}

.speaker-modal-bio {
    margin-bottom: 30px;
}

.speaker-modal-bio h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.speaker-modal-bio h3::before {
    content: '';
    width: 30px;
    height: 3px;
    background: var(--accent);
}

.speaker-modal-bio p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dim);
}

.speaker-detail-item {
    background: var(--glass);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.speaker-detail-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 8px;
}

.speaker-detail-value {
    font-size: 1rem;
    color: var(--primary);
}

/* Scrollbar styling for modal */
.speaker-modal::-webkit-scrollbar {
    width: 8px;
}

.speaker-modal::-webkit-scrollbar-track {
    background: var(--glass);
    border-radius: 4px;
}

/* --- CHANGES APPLIED HERE --- */
.speaker-modal::-webkit-scrollbar-thumb {
    background: var(--text-dim);
    border-radius: 4px;
}

.speaker-modal::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

@media screen and (max-width: 650px) {
    .speakers-grid {
        gap: 1rem;
    }

    .speakers-grid > .speaker-card {
        flex: 1 1 150px;
    }

    .speaker-card {
        max-width: 180px;
    }

    .speaker-name {
        font-size: 1rem;
    }

    .speaker-company {
        font-size: 0.85rem;
    }
}

/* Why JDC Section - Card Layout */
#why-jdc {
    margin: 0 auto;
    text-align: left;
}

#why-jdc .section-title.gradient-text {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    background: none;
    -webkit-text-fill-color: unset;
    color: #fff;
}

#why-jdc .section-title.gradient-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: #CF0060;
    border-radius: 2px;
}

.why-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.why-card {
    background: rgba(108, 118, 180, 0.55);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    z-index: 1;
    flex-grow: 1;
    flex-basis: 0;
    min-width: 300px;
    min-height: 150px;
}

.why-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.why-card:hover::before {
    opacity: 1;
}

.why-card-title {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 1rem;
}

.why-card-body {
    font-size: 1rem;
    color: #e7ecff;
    line-height: 1.6;
    margin: 0;
}

/* Countdown Section */
.countdown {
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    position: relative;
    overflow: hidden;
    width: 100%;
}

.countdown::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 0, 64, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.countdown-content {
    position: relative;
    z-index: 10;
}

.countdown-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 60px;
}

.timer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 60px;
}

.timer-block {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex-grow: 1;
    flex-basis: 0;
    min-width: 150px;
    text-align: center;
}

.timer-block:hover {
    transform: scale(1.03);
    background: rgba(255, 0, 64, 0.1);
    border-color: var(--accent);
}

.timer-number {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
}

.timer-label {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.event-date {
    font-size: 2rem;
    color: var(--text-dim);
    margin-bottom: 40px;
}

/* Venue Section */
.venue {
    margin: 5rem auto 0 auto;
}

.venue-content {
    display: flex;
    gap: 80px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 90vw;
}

.venue-info,
.venue-map {
    flex-grow: 1;
    flex-basis: 0;
    max-width: 40%;
}

.venue-info {
    order: 2;
}

.venue-map {
    order: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 515px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
}

.venue-map iframe {
    width: 100%;
    height: 100%;
}

.venue-info .about-description {
    background: var(--glass);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.address-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
}

.address-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.address-card p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Our Team Section */
#our-team {
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.our-team-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--accent), var(--primary) 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.our-team-subtitle {
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-bottom: 48px;
    font-weight: 500;
}

.team-grid {
    /* Switched from CSS Grid to Flexbox to center-align the last row */
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center; /* Ensures the last row is centered */
    /*align-items: stretch;*/
}

/* Ensure consistent responsive sizing for team cards inside flex container */
.team-grid > .team-card {
    flex: 1 1 220px; /* target ~220px width, allow wrapping */
    max-width: 360px; /* prevent cards from stretching too wide on large screens */
}

.team-card {
    background: var(--glass);
    border: 1.5px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.10);
    padding: 36px 18px 28px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.18s, box-shadow 0.18s;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 32px 0 rgba(255, 0, 64, 0.10);
}

.team-img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent);
    margin-bottom: 18px;
    background: var(--bg-darker);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.team-name {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.team-role {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0;
}

.team-socials {
    margin-top: 14px;
    display: flex;
    gap: 14px;
}

.team-socials a {
    color: var(--accent);
    font-size: 1.2rem;
    transition: color 0.2s;
    background-image: none;
}

.team-socials a:hover {
    color: var(--primary);
}

@media (max-width: 700px) {
    #our-team {
        padding: 60px 16px 40px 16px;
    }

    .team-grid {
        gap: 24px;
    }

    .our-team-title {
        font-size: 2rem;
    }
}

/* ============================================
   SESSION PREVIEW SECTION (For main page)
   ============================================ */

#session {
    margin: 0 auto;
    position: relative;
    width: 100%;
}
#session h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.session-preview-content {
    text-align: center;
    padding: 4rem 0;
}

.session-preview .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.session-preview .section-subtitle {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--text-dim);
    line-height: 1.8;
}

.session-preview .btn-primary {
    display: block;
    margin: 2rem auto 0;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 0, 64, 0.3);
    max-width: 250px;
    text-align: center;
}

.session-preview .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 0, 64, 0.4);
}

.session-preview .section-background {
    background: rgb(248, 242, 228);
}

.session-preview-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-description {
    color: var(--text-dim);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 1rem auto 0;
    line-height: 1.8;
}

/* See more button inside session preview header */
.see-more-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 18px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--glass);
    transition: all 0.25s ease;
}
.see-more-btn:hover {
    border-color: var(--accent);
    color: white;
    background: var(--accent);
    transform: translateY(-1px);
}

/* Make excerpt more compact in preview cards */
.session-preview .session-preview-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Session preview grid (compact) */
.session-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Compact cards inside session preview */
.session-preview .session-preview-card {
    padding: 1.25rem;
}

.session-preview-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.session-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.session-preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--shadow);
    border-color: var(--accent);
}

.session-preview-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(102, 126, 234, 0.15);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.session-preview-time {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.preview-time {
    font-weight: 700;
    color: var(--accent);
}

.preview-duration {
    opacity: 0.8;
}

.session-preview-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.session-preview-excerpt {
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.session-preview-speaker {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.preview-speaker-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.preview-speaker-name {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.preview-speaker-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CTA Section */
.session-preview-cta {
    text-align: center;
    margin-top: 3rem;
}

.session-preview-cta .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 18px 40px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.session-preview-cta .cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

.cta-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    #session {
        padding: 80px 20px;
    }

    .session-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .session-preview-card {
        padding: 1.5rem;
    }

    .session-preview-title {
        font-size: 1.2rem;
    }

    .carousel-slide img {
        height: 300px;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .session-preview-speaker {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- UPDATED FOOTER CSS --- */
footer {
    background-color: var(--bg-dark);
    padding: 2.5rem 50px;
    margin-top: auto;
    width: 100%;
    position: relative;
}

/* Adds the decorative gradient line at the top */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* This is the main wrapper created by your JS */
.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;

    /* CHANGE: This section is updated for centering */
    display: flex;
    flex-direction: column; /* Stacks the items vertically */
    justify-content: center; /* Centers the stack horizontally */
    align-items: center; /* Aligns items in the center */
    gap: 1.5rem; /* Space between social links and copyright */
}

.social-links {
    display: flex;
    gap: 1rem;
}

/* Styling for the social link "pill" buttons */
.social-link {
    color: var(--text-dim);
    background-color: transparent;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 50px; /* Creates the pill shape */
    transition: all 0.3s ease-in-out;
    background-image: none;

    /* Required for the hover effect */
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Copied hover sweep from .cta-button to ensure consistency and fix broken effect */
footer .social-link {
    z-index: 0;
}

footer .social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

footer .social-link:hover::before {
    left: 100%;
}

footer .social-link:hover {
    color: var(--primary);
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.copyright {
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 992px) {
    .countdown-title {
        font-size: 2.5rem;
    }

    .timer-number {
        font-size: 3rem;
    }

    .event-date {
        font-size: 1.5rem;
    }

    .venue-content {
        flex-grow: 1;
    }

    .venue-info {
        order: 1;
    }

    .venue-map {
        order: 2;
        height: 400px;
    }
}

@media screen and (max-width: 850px) {
    .venue-content {
        width: 100%;
    }

    .venue-info,
    .venue-map {
        flex-grow: 1;
        flex-basis: 0;
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-content {
        padding: 0 16px;
        position: static; /* Let nav be the positioned container so dropdown can span viewport */
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 12px);
        left: 16px;
        right: 16px;
        width: calc(100vw - 32px);
        background: rgba(37, 37, 38, 0.9);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55);
        padding: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px) scale(0.98) translateZ(0);
        transform-origin: top center;
        transition: opacity 260ms cubic-bezier(0.22, 1, 0.36, 1), transform 260ms cubic-bezier(0.22, 1, 0.36, 1), visibility 260ms;
        will-change: opacity, transform;
        backface-visibility: hidden;
        z-index: 1000;
    }

    .nav-links::before {
        content: '';
        position: absolute;
        top: -8px;
        right: 18px;
        width: 16px;
        height: 16px;
        background: rgba(37, 37, 38, 0.85);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        transform: rotate(45deg) translateY(-2px) scale(0.98);
        opacity: 0;
        transition: opacity 260ms cubic-bezier(0.22, 1, 0.36, 1), transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
        will-change: opacity, transform;
        z-index: -1;
    }

    .nav-links.active::before {
        opacity: 1;
        transform: rotate(45deg) translateY(0) scale(1);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .nav-links a {
        font-size: 1rem;
        padding: 12px 16px;
        border-radius: 10px;
        text-align: left;
        width: 100%;
        /*min-height: 50px;*/
        line-height: 30px;
        display: block;
        color: var(--text-dim);
        background-color: rgba(255, 255, 255, 0.06);
        transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        background-color: rgba(255, 255, 255, 0.12);
        color: var(--primary);
    }

    .nav-links a:active {
        transform: scale(0.99);
    }

    .nav-links a.active,
    .nav-links a[aria-current="page"] {
        background: linear-gradient(to right, #6610f2, #fd7e14);
        color: #fff;
    }

    .nav-links a:focus-visible {
        outline: none;
        box-shadow: 0 0 0 2px var(--accent);
    }

    .nav-links a::after {
        display: none;
    }

    /* Light theme overrides for mobile menu items */
    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(0, 0, 0, 0.08);
    }

    [data-theme="light"] .nav-links a {
        background-color: rgba(0, 0, 0, 0.04);
    }

    [data-theme="light"] .nav-links a:hover,
    [data-theme="light"] .nav-links a:focus {
        background-color: rgba(0, 0, 0, 0.08);
        color: var(--primary);
    }

    [data-theme="light"] .nav-links::before {
        background: rgba(255, 255, 255, 0.9);
        border-top-color: rgba(0, 0, 0, 0.08);
        border-left-color: rgba(0, 0, 0, 0.08);
    }

    body.menu-open {
        overflow: hidden;
    }

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

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

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

    /* Speaker Modal */
    .speaker-modal {
        width: 95%;
        max-height: 90vh;
    }

    .speaker-modal-content {
        padding: 25px;
    }

    .speaker-modal-header {
        flex-direction: column;
        text-align: center;
    }

    .speaker-modal-image {
        width: 120px;
        height: 120px;
    }

    .speaker-modal-name {
        font-size: 1.5rem;
    }

    /* Countdown */
    .countdown {
        padding: 80px 20px;
    }

    .timer-number {
        font-size: 2.5rem;
    }

    .timer-label {
        font-size: 0.8rem;
    }

    /* Venue */
    .venue {
        padding: 80px 20px;
    }

    /* Footer */
    footer {
        padding: 2rem 25px;
    }
}


/* Fade-in animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.back-to-top:hover {
    transform: scale(1.1) translateY(-3px);
}

/* Enhanced loader */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: #1e1e1e;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-logo::before {
    content: '{ }';
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s ease-in-out infinite;
}

.loader-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 2rem 0 1rem;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

.loader-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Keyboard navigation focus */
body.keyboard-nav *:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Ripple animation */
@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Mobile menu overlay */
body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4); /* Darken the background slightly */
    z-index: 998; /* Below nav-links but above content */
    animation: fadeIn 0.3s ease;
}

[data-theme="light"] #why-jdc .section-title.gradient-text {
    color: #000;
}

/* Sponsors Section */
#sponsors {
    margin: 0 auto;
    text-align: center;
}

.sponsors-header {
    margin-bottom: 60px;
    font-size: 2rem;
    font-weight: 700;
}

/* Horizontal flex layout */
.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

/* Rounded rectangle sponsor card */
.sponsor-card {
    background: #ffffff; /* white background */
    border-radius: 20px; /* rounded corners */
    padding: 40px 60px; /* bigger card */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    min-width: 300px;
    max-width: 400px;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.sponsor-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(255, 0, 100, 0.5),
    0 0 50px rgba(255, 0, 100, 0.4);
    transform: translateY(-8px);
}

[data-theme="dark"] .sponsor-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25),
            0 0 30px rgba(0, 255, 208, 0.5),
            0 0 50px rgba(58, 250, 170, 0.4);
}

/* Logo styling */
.sponsor-logo {
    object-fit: contain;
}

[data-theme="dark"] .session-preview .section-background {
    background: #2c2c2c;
}


/* Inline see more link inside preview abstract */
.inline-see-more {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.inline-see-more:hover,
.inline-see-more:focus-visible {
    color: var(--accent-hover);
    text-decoration: underline;
}
