/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #06b6d4;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
	--bg-gray: #bebebe;
    --border-color: #e5e7eb;
    --gradient-start: #1e3a8a;
    --gradient-end: #3b82f6;
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --secondary-color: #60a5fa;
    --accent-color: #22d3ee;
    --text-dark: #f3f4f6;
    --text-light: #d1d5db;
    --bg-light: #1f2937;
    --bg-white: #111827;
	--bg-gray: #111827;
    --border-color: #374151;
    --gradient-start: #1e40af;
    --gradient-end: #2563eb;
}

/* Dark mode specific adjustments */
[data-theme="dark"] body {
    background: linear-gradient(to bottom, var(--bg-white), var(--bg-light));
}

/* Header background without gradient overlay */
[data-theme="dark"] .header {
    background: url('/images/msparc-3d_with_logos.png');
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #1e3a8a;
}

[data-theme="dark"] .nav {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav.transparent {
    background: rgba(30, 58, 138, 0.9); /* Semi-transparent dark blue for dark mode */
    backdrop-filter: blur(10px);
    box-shadow: none;
}

[data-theme="dark"] .about-content,
[data-theme="dark"] .schedule-container,
[data-theme="dark"] .topic-card,
[data-theme="dark"] .organizer-card {
    background: var(--bg-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .highlight-card {
    background: linear-gradient(135deg, var(--bg-white), var(--bg-light));
    border-color: var(--border-color);
}

[data-theme="dark"] .footer {
    background: #030712;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    /* Remove the white background gradient to fix issue #1 */
    background: var(--bg-light);
}

/* Replace the existing .header class with this */
.header {
    background: url('/images/msparc-3d_with_logos.png');
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #1e3a8a;
    color: white;
    padding: 0;  /* Remove all padding */
    position: relative;
    overflow: hidden;
    min-height: 500px;
    margin-top: 60px;  /* Only keep nav height margin */
    margin-bottom: 0;  /* Remove bottom margin */
    display: flex;
    align-items: center;  /* Center content vertically */
    justify-content: center;
}

.header-content h1 {
    margin-top: clamp(0.75rem, 4.5vw, 3rem);     /* Increase/decrease space from top box */
    margin-bottom: clamp(0.75rem, 4.5vw, 3rem);  /* Increase/decrease space to subtitle */
}


/* Add dark overlay for better text readability (Issue #4) */
.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.05); /* Semi-transparent overlay for better text contrast */
    z-index: 0;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,128C672,107,768,85,864,96C960,107,1056,149,1152,154.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.header.image-loaded::before {
    opacity: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    position: relative;
    z-index: 2; /* Ensure content is above overlay */
}

/* Update header-content positioning */
.header-content {
    text-align: center;
    padding-top: 1rem;  /* Reduced from 3rem */
    position: relative;
    z-index: 2;
    width: 100%;
    /* Add background for better text readability if needed */
    
    padding: 2rem 1rem;
    border-radius: 10px;
    margin-top: 0;  /* Position at top of header */
	max-width: 1800px;  /* Example: limit to 800px */
    margin: 0 auto;    /* Center if width limited */
}

/* Remove any conflicting styles */
.conference-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 1rem;  /* Consistent spacing */
    font-weight: 600;
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 2.2rem;  /* Base size, overridden by inline styles */
    font-weight: 700;
    margin-bottom: 1rem;  /* Consistent spacing */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.3;  /* Normal line height */
}

.subtitle {
    font-size: 1.3rem;  /* Base size, overridden by inline styles */
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 1.5rem;  /* Consistent bottom spacing */
    line-height: 1.5;  /* Normal line height */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.workshop-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
}

/* Smooth theme transitions */
* {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Prevent transition on page load */
.preload * {
    transition: none !important;
}

/* Navigation bar with fixed positioning at top - Fixed Issue #1 */
.nav {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    transition: all 0.3s ease;
}

/* Navigation transparent when at top - Fixed Issue #1 */
.nav.transparent {
    background: rgba(30, 58, 138, 0.9); /* Semi-transparent blue instead of fully transparent */
    backdrop-filter: blur(10px);
    box-shadow: none;
}

/* Fix text colors for light mode when nav is NOT transparent */
.nav:not(.transparent) .nav-brand,
.nav:not(.transparent) .nav-link,
.nav:not(.transparent) .search-toggle,
.nav:not(.transparent) .theme-toggle {
    color: var(--text-dark) !important;
}

.nav:not(.transparent) .nav-toggle span {
    background: var(--text-dark) !important;
}

/* White text when nav is transparent (over header) - Always white on transparent */
.nav.transparent .nav-brand,
.nav.transparent .nav-link,
.nav.transparent .search-toggle,
.nav.transparent .theme-toggle {
    color: white !important;
}

.nav.transparent .nav-toggle span {
    background: white !important;
}

.nav.transparent .theme-toggle {
    border-color: white !important;
}

/* Logo/Brand text on the left */
.nav-brand {
    font-weight: 700;
    font-size: 1rem;
    margin-right: 2rem;
}

/* Navigation list */
.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-grow: 1;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 1.5rem;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
    border-bottom-color: var(--secondary-color);
}

.nav.transparent .nav-link:hover {
    color: var(--accent-color) !important;
    border-bottom-color: var(--accent-color);
}

/* Right side controls */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Enhanced search container - Google-style inline search */
.search-container {
    position: relative;
}

.search-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
}

.search-toggle:hover {
    transform: scale(1.1);
}

.search-icon {
    width: 20px;
    height: 20px;
}

/* Inline search box - positioned lower */
.search-box {
    position: absolute;
    right: 0;
    top: calc(100% + 15px);  /* Changed from 50% - positions below nav bar */
    transform: translateY(0);  /* Remove vertical centering */
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    z-index: 1000;  /* Ensure it's above other elements */
}

.search-box.active {
    width: 250px;
}

.search-input {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);  /* Add shadow for visibility */
}

/* Search dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    width: 300px;
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1001;
}

.search-dropdown.active {
    display: block;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--bg-light);
}

.search-result-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.search-result-item small {
    color: var(--text-light);
}

/* Dark mode search fixes */
[data-theme="dark"] .search-input {
    background: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--border-color);
}

[data-theme="dark"] .search-dropdown {
    background: var(--bg-white);
    border-color: var(--border-color);
}

[data-theme="dark"] .search-result-item {
    color: var(--text-dark);
}

[data-theme="dark"] .search-result-item:hover {
    background: var(--bg-light);
}

[data-theme="dark"] .search-result-item strong {
    color: var(--primary-color);
}

[data-theme="dark"] .search-result-item small {
    color: var(--text-light);
}

/* Highlight search matches */
mark {
    background: #fef08a;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

[data-theme="dark"] mark {
    background: #854d0e;
    color: #fef3c7;
}

/* Theme toggle in nav */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--text-dark);
    border-radius: 30px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.theme-toggle-icon {
    font-size: 1.2rem;
}

/* Section styles - Fixed Issue #3 */
.section {
    padding: 4rem 0;
    scroll-margin-top: 60px;
    animation: fadeInUp 0.8s ease-out;
}

/* First section (About) needs more top margin - Fixed Issue #3 */
#about {
    padding-top: 4rem; /* Increased padding to prevent overlap */
    margin-top: 0; /* Remove the automatic margin */
}

.section:first-of-type {
    margin-top: 0; /* Changed from 60px to 0 */
}

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

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

/* Link styles for better readability */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Dark mode link colors for better readability */
[data-theme="dark"] a {
    color: #60a5fa;
}

[data-theme="dark"] a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* About section */
.about-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-card {
    background: linear-gradient(135deg, var(--bg-white), var(--bg-light));
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Schedule section */
.schedule-container {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.schedule-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
    text-align: center;
    margin: -2rem -2rem 2rem -2rem;
}

.gantt-chart {
    display: grid;
    grid-template-columns: 100px repeat(13, 1fr);
    gap: 2px;
    background: var(--border-color);
    padding: 2px;
    border-radius: 8px;
    margin-top: 1rem;
}

.gantt-header {
    background: var(--primary-color);
    color: white;
    padding: 0.7rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.gantt-time {
    background: var(--bg-light);
    padding: 0.75rem 0.5rem;
    font-weight: 500;
    text-align: center;
    font-size: 0.85rem;
}

.gantt-activity {
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.activity-openclose {
    background: linear-gradient(135deg, #fca5a5, #4444fe);
    color: white;
    font-weight: 500;
}

.activity-keynote {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 500;
}

.activity-presentation {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 500;
}

.activity-break {
    background: linear-gradient(135deg, #aacaf2, #4d77e3);
    color: white;
}

.activity-empty {
    background: var(--bg-white);
}

.gantt-activity:hover:not(.activity-empty) {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Schedule table */
.schedule-table {
    width: 100%;
    margin-top: 2rem;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.schedule-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: left;
}

.schedule-table tbody tr {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.schedule-table tbody tr:hover {
    background: var(--bg-light);
}

.time-badge {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
}

/* Topics section */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.topic-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.topic-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.topic-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    text-align: center;
    line-height: 30px;
    border-radius: 50%;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* Organizers section */
.organizers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.organizer-card {
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Smaller avatars for organizers to fit better */
#organizers .organizer-avatar-image {
    width: 100px;
    height: 100px;
    border-width: 2px;
}

/* Adjust typography for compact view */
#organizers .organizer-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

#organizers .organizer-card p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}


/* Force 2x2 grid on medium screens */
@media (min-width: 768px) and (max-width: 1024px) {
    .organizers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Force 4 columns on larger screens for organizers */
@media (min-width: 1025px) {
    #organizers .organizers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Keep speakers at 3 columns */
#speakers .organizers-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1000px;
}

.organizer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.organizer-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

/* Circular photo avatar styles */
.organizer-avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.organizer-avatar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hover effect */
.organizer-card:hover .organizer-avatar-image {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

/* For non-square images, center the important part */
.organizer-avatar-image img {
    object-position: center top;
}

/* Sponsors Section Styles - New for Issue #5 */
#sponsors {
    padding: 4rem 0;
    background: var(--bg-white);
}

.sponsors-container {
    max-width: 1200px;
    margin: 0 auto;
}

.sponsors-intro {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.sponsor-tier {
    margin-bottom: 3rem;
}

.tier-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.tier-platinum .tier-title {
    color: #8b5cf6;
}

.tier-gold .tier-title {
    color: #f59e0b;
}

.tier-silver .tier-title {
    color: #6b7280;
}

.tier-bronze .tier-title {
    color: #92400e;
}

.sponsor-logos {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.tier-platinum .sponsor-logos {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.tier-gold .sponsor-logos {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.tier-silver .sponsor-logos {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.tier-bronze .sponsor-logos {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.sponsor-placeholder {
    background: linear-gradient(135deg, var(--bg-light), #e5e7eb);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.tier-platinum .sponsor-placeholder {
    height: 150px;
}

.tier-gold .sponsor-placeholder {
    height: 120px;
}

.tier-silver .sponsor-placeholder {
    height: 100px;
}

.tier-bronze .sponsor-placeholder {
    height: 80px;
}

.sponsor-placeholder::before {
    content: 'Logo Space';
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

.sponsor-placeholder:hover {
    transform: scale(1.02);
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.sponsor-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: white;
    margin-top: 3rem;
}

.sponsor-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.sponsor-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.sponsor-cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sponsor-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: var(--accent-color);
    color: white;
}

[data-theme="dark"] #sponsors {
    background: var(--bg-light);
}

[data-theme="dark"] .sponsor-placeholder {
    background: linear-gradient(135deg, #374151, #4b5563);
    border-color: #4b5563;
}

[data-theme="dark"] .sponsor-placeholder:hover {
    background: linear-gradient(135deg, #4b5563, #6b7280);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
}

/* Home link animation styles */
#home-nav-item {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-link {
    font-weight: 600;
    position: relative;
}

.home-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.home-link:hover::before {
    transform: scaleX(1);
}

/* Floating back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .back-to-top {
    background: var(--accent-color);
    color: var(--bg-white);
}

/* TBA Speaker Styles */
.tba-card {
    position: relative;
    opacity: 0.9;
}

.tba-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
    border: 3px dashed var(--secondary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0%, 100% {
        border-color: var(--secondary-color);
        opacity: 0.6;
    }
    50% {
        border-color: var(--accent-color);
        opacity: 1;
    }
}

.tba-icon {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    animation: rotate-slow 8s linear infinite;
}

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

.tba-text {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.tba-card h3 {
    color: var(--text-light);
    font-style: italic;
}

.tba-card::after {
    content: 'Coming Soon';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="dark"] .tba-avatar {
    background: linear-gradient(135deg, #374151, #4b5563);
    border-color: var(--accent-color);
}

[data-theme="dark"] .tba-text {
    color: var(--accent-color);
}

[data-theme="dark"] .tba-card::after {
    background: var(--secondary-color);
}

.tba-card:hover .tba-avatar {
    transform: scale(1.05);
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

[data-theme="dark"] .tba-card:hover .tba-avatar {
    background: linear-gradient(135deg, #1e40af, #2563eb);
}

/* TBA activity in Gantt chart */
.tba-activity {
    background: linear-gradient(135deg, #9ca3af, #6b7280) !important;
    position: relative;
    overflow: hidden;
}

.tba-activity::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.2), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* TBA badge for schedule table */
.tba-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

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

/* Animation utilities */
.fade-in {
    animation: fadeIn 1s ease-out;
}

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

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

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

/* Mobile Navigation Hamburger Menu */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 102;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.nav.transparent .nav-toggle span {
    background: white;
}

.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);
}

/* Add this new wrapper styling BEFORE the @media queries */
.nav-mobile-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .search-box {
        top: calc(100% + 10px);  /* Slightly higher on mobile */
        right: -10px;  /* Slight offset to avoid edge */
    }
    
    .search-box.active {
        width: 200px;  /* Smaller on mobile */
    }
    
    .search-dropdown {
        width: 250px;  /* Smaller dropdown on mobile */
        right: -10px;
    }
	.nav {
        padding: 0 1rem;
		justify-content: space-between; /* Ensure proper spacing */
    }
	
	/* Mobile wrapper takes available space */
    .nav-mobile-wrapper {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 0.5rem; /* Smaller gap on mobile */
    }
    
    .nav-toggle {
        display: block;
		order: -1; /* Ensures it appears first */
    }
    
	/* Reduce brand text size on mobile */
    .nav-brand {
        font-size: 0.75rem; /* Reduced from 0.9rem */
        margin-right: 0; /* Remove right margin on mobile */
        white-space: nowrap; /* Prevent text wrapping */
    }
	
	/* Adjust nav-controls to stay on the right */
    .nav-controls {
        margin-left: auto; /* Push to the right */
    }
	
    .nav-list {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 45%;
        height: calc(100vh - 60px);
        background: var(--bg-gray);
        flex-direction: column;
        padding: 1rem;
        transition: left 0.6s ease;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
	
	/* When there are more than 7 items, use compact spacing */
    .nav-list:has(.nav-item:nth-child(8)) .nav-item {
        margin: 0.5rem 0;
    }
    
    .nav-list:has(.nav-item:nth-child(8)) .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 1rem;
    }
    
    .nav-list.active {
        left: 0;
    }
	
	/* Optional: For even tighter spacing */
    .nav-list.compact .nav-item {
        margin: 0.1rem 0;  /* Minimal gap */
    }
    
    .nav-list.compact .nav-link {
        padding: 0.4rem 0.5rem;  /* Smaller vertical padding */
        font-size: 0.95rem;  /* Slightly smaller text */
    }
    
    .nav-item {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .header {
        margin-top: 60px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .gantt-chart {
        grid-template-columns: 80px repeat(13, minmax(60px, 1fr));
        font-size: 0.75rem;
    }
    
    .schedule-table {
        font-size: 0.9rem;
    }
    
    #home-nav-item {
        order: -1;
    }
    
    .nav-brand {
        font-size: 0.9rem;
    }
    
    /* Search box responsive */
    .search-box.active {
        width: 200px;
    }
    
    .search-dropdown {
        width: 250px;
    }
    
    /* Responsive sponsor grids */
    .tier-platinum .sponsor-logos,
    .tier-gold .sponsor-logos,
    .tier-silver .sponsor-logos,
    .tier-bronze .sponsor-logos {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* For very small screens (phones in portrait) */
@media (max-width: 480px) {
    .nav-brand {
        font-size: 0.65rem; /* Even smaller on very small screens */
        letter-spacing: -0.5px; /* Tighten letter spacing */
    }
    
    /* Hide "@ ICASSP2026" part on very small screens if needed */
    @media (max-width: 360px) {
        .nav-brand {
            font-size: 0.6rem;
        }
    }
}
/* Add this for desktop screens - OUTSIDE of any media queries */
@media (min-width: 769px) {
    .nav-mobile-wrapper {
        display: contents; /* Makes wrapper invisible on desktop */
    }
    
    .nav-toggle {
        display: none; /* Ensure hamburger is hidden on desktop */
    }
}