/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Purple-Green Theme (Default) with greyish base */
    --primary-color: #8B5CF6;
    --secondary-color: #10B981;
    --accent-color: #F59E0B;
    --background-color: #E5E5E5;
    --surface-color: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --border-color: #E5E7EB;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #10B981 100%);
    --gradient-secondary: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    --border-radius: 12px;
    --border-radius-large: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Theme palettes */
.theme-ocean {
    --accent: #22d3ee;
    --accent-2: #3b82f6;
    --primary-color: #22d3ee;
    --primary-color-rgb: 34, 211, 238;
    --secondary-color: #3b82f6;
    --secondary-color-rgb: 59, 130, 246;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.theme-sunset {
    --accent: #f97316;
    --accent-2: #ef4444;
    --primary-color: #f97316;
    --primary-color-rgb: 249, 115, 22;
    --secondary-color: #ef4444;
    --secondary-color-rgb: 239, 68, 68;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.theme-forest {
    --accent: #34d399;
    --accent-2: #059669;
    --primary-color: #34d399;
    --primary-color-rgb: 52, 211, 153;
    --secondary-color: #059669;
    --secondary-color-rgb: 5, 150, 105;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.theme-neon {
    --accent: #a78bfa;
    --accent-2: #22d3ee;
    --primary-color: #a78bfa;
    --primary-color-rgb: 167, 139, 250;
    --secondary-color: #22d3ee;
    --secondary-color-rgb: 34, 211, 238;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.theme-rose {
    --accent: #fb7185;
    --accent-2: #f472b6;
    --primary-color: #fb7185;
    --primary-color-rgb: 251, 113, 133;
    --secondary-color: #f472b6;
    --secondary-color-rgb: 244, 114, 182;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.theme-mono-dark {
    --accent: #9ca3af;
    --accent-2: #6b7280;
    --primary-color: #9ca3af;
    --primary-color-rgb: 156, 163, 175;
    --secondary-color: #6b7280;
    --secondary-color-rgb: 107, 114, 128;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Dark mode styles */
.dark-mode {
    --background-color: #0f172a;
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.dark-mode .hero {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.dark-mode .program-card,
.dark-mode .achievement-card,
.dark-mode .contact-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(16, 185, 129, 0.1));
    border-color: rgba(var(--primary-color-rgb), 0.2);
}

.dark-mode .program-card:hover,
.dark-mode .achievement-card:hover,
.dark-mode .contact-card:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(16, 185, 129, 0.15));
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.dark-mode .navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid #334155;
    backdrop-filter: blur(20px);
}

.dark-mode .navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-mode .nav-link {
    color: #f8fafc;
}

.dark-mode .nav-link:hover {
    color: var(--primary-color);
}

.dark-mode .logo-text {
    color: #f8fafc;
}

.dark-mode .mobile-menu {
    background: #1e293b;
    border-color: #334155;
}

.dark-mode .mobile-nav-link {
    color: #f8fafc;
    border-color: #334155;
}

.dark-mode .icon-btn {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.dark-mode .nav-dot {
    background: rgba(248, 250, 252, 0.2);
    border-color: rgba(248, 250, 252, 0.3);
}

.dark-mode .nav-dot:hover {
    background: rgba(248, 250, 252, 0.4);
}

.dark-mode .moving-element {
    opacity: 0.8;
}

.dark-mode .bg-shape {
    opacity: 0.05;
}

.dark-mode .partner-card {
    background: #1e293b;
    border: 1px solid #334155;
}

.dark-mode .partner-logo {
    background: rgba(var(--primary-color-rgb), 0.08);
}

/* Dark mode section backgrounds */
.dark-mode #home {
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%),
        linear-gradient(45deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.9));
}

.dark-mode #about {
    background: 
        linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(245, 158, 11, 0.05) 100%),
        linear-gradient(45deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
}

.dark-mode #programs {
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.07) 0%, rgba(16, 185, 129, 0.04) 100%),
        linear-gradient(45deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
}

.dark-mode #process {
    background: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(139, 92, 246, 0.08) 100%),
        linear-gradient(45deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
}

.dark-mode #faq {
    background: 
        linear-gradient(135deg, rgba(20, 184, 166, 0.07) 0%, rgba(139, 92, 246, 0.05) 100%),
        linear-gradient(45deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
}

.dark-mode #contact {
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(16, 185, 129, 0.06) 100%),
        linear-gradient(45deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    overflow-x: hidden;
    width: 100%;
}

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

/* Color Theme Toggle */
.color-theme-toggle {
    display: none; /* Hide the old toggle */
}

/* Visible Theme Toggle in Navigation */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto; /* This will push the nav-right to the far right */
}

#themeBtn {
    margin-left: 16px; /* Add some space between the mobile menu toggle and theme button */
}

.theme-toggle {
    position: relative;
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.icon-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.icon-btn:hover::before {
    width: 100%;
    height: 100%;
}

.theme-btn:hover {
    border-color: var(--primary-color);
    background: var(--background-color);
}

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

/* Mobile Menu */

/* Section Slide Effects */
.section-slide {
    position: relative;
    overflow: visible;
}

.section-bg-animation {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 1s ease-in-out;
    z-index: 0;
    pointer-events: none;
}

.section-slide.active .section-bg-animation {
    left: 100%;
}

/* Different Section Background Shades */
#home {
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.9));
}

#about {
    background: 
        linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(245, 158, 11, 0.05) 100%),
        linear-gradient(45deg, rgba(248, 248, 248, 0.95), rgba(255, 255, 255, 0.98));
}

#programs {
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.07) 0%, rgba(16, 185, 129, 0.04) 100%),
        linear-gradient(45deg, rgba(252, 252, 252, 0.95), rgba(255, 255, 255, 0.98));
}

#process {
    background: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(139, 92, 246, 0.08) 100%),
        linear-gradient(45deg, rgba(250, 250, 250, 0.95), rgba(255, 255, 255, 0.98));
}

#faq {
    background: 
        linear-gradient(135deg, rgba(20, 184, 166, 0.07) 0%, rgba(139, 92, 246, 0.05) 100%),
        linear-gradient(45deg, rgba(251, 251, 251, 0.95), rgba(255, 255, 255, 0.98));
}

#contact {
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(16, 185, 129, 0.06) 100%),
        linear-gradient(45deg, rgba(249, 249, 249, 0.95), rgba(255, 255, 255, 0.98));
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    height: 70px;
    gap: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
}

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

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

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
}

.mobile-nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    position: relative;
    overflow: visible;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease-out;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-accent {
    background: var(--gradient-secondary);
    color: white;
    border: 2px solid transparent;
}

.btn-accent:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.btn-results {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: white;
    border: 2px solid transparent;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-results:hover {
    background: linear-gradient(135deg, #B91C1C 0%, #991B1B 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

/* Files.html - Results Page Styles */
.results-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 60px;
}

.results-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.3) 0%, transparent 50%);
    z-index: 1;
}

.results-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    justify-content: space-between;
}

/* Blue theme for files.html page */
body.files-page {
    background: linear-gradient(to bottom, #f0f9ff 0%, #e0f2fe 50%, #f8fafc 100%);
    min-height: 100vh;
}

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

.hero-main-content {
    flex: 1;
    max-width: 600px;
}

.hero-main-content .hero-text {
    text-align: left;
}

.latest-results-sidebar {
    flex: 0 0 350px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 80px rgba(30, 64, 175, 0.15), 
                0 8px 32px rgba(59, 130, 246, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 10;
    margin-top: 20px;
}

.latest-results-title {
    text-align: center;
    color: #1e40af;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(30, 64, 175, 0.1);
}

.sidebar-result-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}

.sidebar-result-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.25);
    border-color: rgba(59, 130, 246, 0.3);
}

.sidebar-result-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.sidebar-result-card h4 {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 8px;
}

.sidebar-result-card p {
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.hero-result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.hero-result-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-result-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.25);
    border-color: rgba(59, 130, 246, 0.3);
}

.hero-result-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.hero-result-card h4 {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 8px;
}

.hero-result-card p {
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.result-category, .paper-category {
    background: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
}

.category-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.result-card, .resource-card {
    background: var(--background-color);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.result-card:hover, .resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.featured-result {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.featured-result::before {
    content: "Available Now";
    position: absolute;
    top: 10px;
    right: -30px;
    background: var(--primary-color);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    transform-origin: center;
}

.result-year {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.featured-result:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.3);
    border-color: var(--secondary-color);
}

.result-link, .resource-link, .paper-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.1);
    transition: var(--transition);
    display: inline-block;
    margin-top: 10px;
}

.result-link:hover, .resource-link:hover, .paper-link:hover {
    background: var(--primary-color);
    color: white;
}

.paper-item {
    background: var(--background-color);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.paper-item h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.paper-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .results-grid, .papers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .result-category, .paper-category {
        padding: 20px;
    }
    
    .paper-links {
        justify-content: center;
    }
    
    .results-hero {
        min-height: 70vh;
        padding-top: 100px;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .results-hero .hero-content {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .hero-main-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-main-content .hero-text {
        text-align: center;
    }
    
    .latest-results-sidebar {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin-top: 0;
        padding: 25px;
        border-radius: 20px;
    }
    
    .sidebar-result-card {
        padding: 20px;
        margin-top: 15px;
    }
    
    .latest-results-title {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }
    
    .hero-result-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-result-card {
        padding: 18px;
    }
}

.hero-visual {
    position: relative;
    height: 500px;
    overflow: visible;
}

.bottom-right-image {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 500px;
    height: 340px;
    border-radius: 18px;
    overflow: hidden;
    /* Enhanced blurred edge effect */
    box-shadow: 0 0 30px 18px rgba(0,0,0,0.35);
    z-index: 10;
}

.image-slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide-image.active {
    opacity: 1;
}

.bottom-right-image img {
    max-width: 540px;
    height: auto;
    box-shadow: none;
}

/* Mobile Optimization for Image Slideshow */
@media (max-width: 768px) {
    .hero-visual {
        height: auto;
        min-height: 200px; /* Reduced from 300px since no image */
        display: block;
        position: relative;
        margin-top: 20px; /* Reduced margin */
        padding: 15px; /* Reduced padding */
    }
    
    .bottom-right-image {
        display: none; /* Hide slideshow on mobile devices */
    }
    
    .floating-elements {
        display: none; /* Hide floating elements on mobile for better performance */
    }
    
    .animated-background {
        opacity: 0.3; /* Reduce background animation intensity */
    }
    
    .animated-background .bg-shape {
        opacity: 0.2;
    }
    
    /* Ensure proper stacking order */
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
        align-items: center;
    }
    
    .hero-text {
        order: 1;
        width: 100%;
    }
    
    .hero-visual {
        order: 2;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bottom-right-image {
        max-width: 280px;
        height: 180px;
        margin: 0 auto;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    
    .hero-visual {
        min-height: 220px;
        padding: 15px;
        margin-top: 20px;
    }
    
    .hero-content {
        gap: 25px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .bottom-right-image {
        max-width: 280px;
        height: 180px;
        margin: 15px auto 0 auto;
    }
    
    .hero-content {
        padding: 0 15px;
        gap: 30px;
    }
    
    .hero-visual {
        min-height: 320px;
        padding: 10px 0;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    .slide-image {
        transform: translateZ(0); /* Enable hardware acceleration */
        backface-visibility: hidden;
    }
    
    .image-slideshow {
        will-change: transform; /* Optimize for animations */
    }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: float 20s ease-in-out infinite;
}

/* Light bubbles */
.bubble:nth-child(odd) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(16, 185, 129, 0.1));
}

/* Darker bubbles */
.bubble:nth-child(even) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(16, 185, 129, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Extra dark bubble */
.bubble:nth-child(4) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(16, 185, 129, 0.35));
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.bubble-xs { width: 30px; height: 30px; }
.bubble-sm { width: 50px; height: 50px; }
.bubble-md { width: 80px; height: 80px; }
.bubble-lg { width: 120px; height: 120px; }
.bubble-xl { width: 160px; height: 160px; }

.bubble:nth-child(1) { top: 5%; left: 20%; animation-delay: 0s; }
.bubble:nth-child(2) { top: 8%; right: 20%; animation-delay: -5s; }
.bubble:nth-child(3) { top: 30%; left: 35%; animation-delay: -10s; }
.bubble:nth-child(4) { top: 15%; right: 15%; animation-delay: -15s; }
.bubble:nth-child(5) { top: 45%; left: 25%; animation-delay: -7s; }
.bubble:nth-child(6) { top: 25%; right: 30%; animation-delay: -12s; }
.bubble:nth-child(7) { top: 60%; right: 25%; animation-delay: -18s; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0) translateX(0) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    25% { 
        transform: translateY(-20px) translateX(3px) scale(1.05) rotate(5deg);
        opacity: 0.9;
    }
    50% { 
        transform: translateY(-40px) translateX(-3px) scale(0.95) rotate(-5deg);
        opacity: 1;
    }
    75% { 
        transform: translateY(-20px) translateX(4px) scale(1.05) rotate(3deg);
        opacity: 0.9;
    }
}

/* Background Animated Shapes */
.animated-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}


.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: morphShape 10s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    top: 10%;
    left: 80%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--gradient-secondary);
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    top: 60%;
    right: 20%;
    animation-delay: 4s;
}

@keyframes moveRightLoop {
    0% { 
        left: -10%; 
        transform: translateY(0px); 
    }
    25% { 
        left: 25%; 
        transform: translateY(-10px); 
    }
    50% { 
        left: 50%; 
        transform: translateY(5px); 
    }
    75% { 
        left: 75%; 
        transform: translateY(-5px); 
    }
    100% { 
        left: 110%; 
        transform: translateY(0px); 
    }
}

@keyframes moveLeftLoop {
    0% { 
        right: -10%; 
        transform: translateY(0px) scaleX(-1); 
    }
    25% { 
        right: 25%; 
        transform: translateY(-8px) scaleX(-1); 
    }
    50% { 
        right: 50%; 
        transform: translateY(3px) scaleX(-1); 
    }
    75% { 
        right: 75%; 
        transform: translateY(-3px) scaleX(-1); 
    }
    100% { 
        right: 110%; 
        transform: translateY(0px) scaleX(-1); 
    }
}

@keyframes flyAround {
    0% { 
        right: -8%; 
        top: 15%; 
        transform: rotate(0deg); 
    }
    25% { 
        right: 70%; 
        top: 10%; 
        transform: rotate(90deg); 
    }
    50% { 
        right: 80%; 
        top: 40%; 
        transform: rotate(180deg); 
    }
    75% { 
        right: 30%; 
        top: 50%; 
        transform: rotate(270deg); 
    }
    100% { 
        right: -8%; 
        top: 15%; 
        transform: rotate(360deg); 
    }
}

@keyframes orbit {
    0% { 
        left: -8%; 
        top: 5%; 
        transform: rotate(0deg) translateX(100px) rotate(0deg); 
    }
    100% { 
        left: -8%; 
        top: 5%; 
        transform: rotate(360deg) translateX(100px) rotate(-360deg); 
    }
}

@keyframes rocketLaunch {
    0% { 
        bottom: 20%; 
        left: -6%; 
        transform: rotate(45deg); 
    }
    50% { 
        bottom: 70%; 
        left: 30%; 
        transform: rotate(45deg) scale(0.8); 
    }
    100% { 
        bottom: 20%; 
        left: -6%; 
        transform: rotate(45deg); 
    }
}

@keyframes bounce {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-20px) rotate(5deg); 
    }
    50% { 
        transform: translateY(-10px) rotate(-3deg); 
    }
    75% { 
        transform: translateY(-15px) rotate(2deg); 
    }
}

@keyframes morphShape {
    0%, 100% { 
        border-radius: 50%; 
        transform: scale(1) rotate(0deg); 
    }
    25% { 
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; 
        transform: scale(1.1) rotate(90deg); 
    }
    50% { 
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; 
        transform: scale(0.9) rotate(180deg); 
    }
    75% { 
        border-radius: 40% 60% 60% 40% / 60% 40% 40% 60%; 
        transform: scale(1.05) rotate(270deg); 
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--surface-color);
}

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

.about-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.about-mission h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.mission-points {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mission-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.mission-icon {
    font-size: 1.5rem;
    margin-top: 4px;
}

.achievement-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.achievement-card {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.25), rgba(var(--secondary-color-rgb), 0.2));
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(var(--primary-color-rgb), 0.15);
    border-left: 4px solid var(--primary-color);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: achievementFloat 3.5s ease-in-out infinite;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.38), rgba(var(--secondary-color-rgb), 0.34));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.achievement-card:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.12);
}

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

.achievement-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* Programs Section */
.programs {
    padding: 100px 0;
}

.programs-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

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

.category-title {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.program-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.program-card {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.15), rgba(var(--secondary-color-rgb), 0.1));
    padding: 30px 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    animation: cardFloat 3s ease-in-out infinite;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.4), rgba(var(--secondary-color-rgb), 0.35));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.program-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.program-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(var(--primary-color-rgb), 0.15);
}

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

.program-card:hover::after {
    transform: scaleX(1);
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes cardHoverPulse {
    0% {
        box-shadow: 0 20px 40px rgba(var(--primary-color-rgb), 0.2),
                    0 0 30px rgba(var(--primary-color-rgb), 0.15);
        transform: translateY(-12px) scale(1.03) rotate(1deg);
    }
    50% {
        box-shadow: 0 20px 40px rgba(var(--primary-color-rgb), 0.3),
                    0 0 50px rgba(var(--primary-color-rgb), 0.25);
        transform: translateY(-14px) scale(1.04) rotate(-1deg);
    }
    100% {
        box-shadow: 0 20px 40px rgba(var(--primary-color-rgb), 0.2),
                    0 0 30px rgba(var(--primary-color-rgb), 0.15);
        transform: translateY(-12px) scale(1.03) rotate(1deg);
    }
}

.program-card:hover, .achievement-card:hover, .contact-card:hover {
    animation: cardHoverPulse 2s ease-in-out infinite;
    border-color: rgba(var(--primary-color-rgb), 0.3);
}

.program-card:hover::before, .achievement-card:hover::before, .contact-card:hover::before {
    opacity: 1;
    transform: scale(1.05);
}

.program-card::before, .achievement-card::before, .contact-card::before {
    transform: scale(1);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.program-card.featured {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.program-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.program-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Process Section */
.process {
    padding: 100px 0;
    background: var(--surface-color);
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-end;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--background-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
}

.timeline-content {
    background: var(--background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    max-width: 350px;
    margin: 0 40px;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 40px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 40px;
}

.timeline-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
}

/* FAQ Section */
.faq {
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--background-color);
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.faq-question:hover {
    background: var(--surface-color);
}

.faq-question h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Partners Section */
.partners {
    padding: 100px 0;
    background: 
        linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.9));
}

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

.partner-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
    padding: 40px 30px;
    border-radius: var(--border-radius-large);
    box-shadow: 0 4px 20px rgba(var(--primary-color-rgb), 0.12);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
    backdrop-filter: blur(10px);
}

.partner-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--primary-color-rgb), 0.2);
    border-color: rgba(var(--primary-color-rgb), 0.25);
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.1),
        rgba(var(--secondary-color-rgb), 0.05)
    );
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: all 0.4s ease;
}

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

.partner-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.08),
        rgba(var(--secondary-color-rgb), 0.05)
    );
    border-radius: var(--border-radius);
    transition: all 0.4s ease;
    border: 1px solid rgba(var(--primary-color-rgb), 0.08);
}

.partner-logo img {
    max-height: 80px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%) opacity(0.8);
    transition: all 0.4s ease;
}

.partner-card:hover .partner-logo {
    background: rgba(var(--primary-color-rgb), 0.1);
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.partner-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.partner-card:hover .partner-name {
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--surface-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.contact-card {
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.22), rgba(var(--secondary-color-rgb), 0.18));
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(var(--primary-color-rgb), 0.12);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--secondary-color);
}

.contact-form {
    background: var(--background-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--surface-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--background-color);
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    color: #D1D5DB;
    margin-bottom: 8px;
}

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

.footer-section a {
    color: #D1D5DB;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9CA3AF;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container,
    .nav-container,
    .hero-content {
        padding: 0 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    .hero-visual {
        height: auto;
        min-height: 300px;
        display: block;
        position: relative;
        margin-top: 20px;
        padding: 20px;
        order: 2; /* Move visual below text on mobile */
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline::before {
        left: 30px;
    }

    .timeline-item {
        justify-content: flex-start !important;
    }

    .timeline-icon {
        left: 30px;
        transform: none;
    }

    .timeline-content {
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

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

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .program-cards {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

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

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

    .color-theme-toggle {
        right: -35px;
    }

    .color-theme-toggle:hover {
        right: 0;
    }

    .timeline-content {
        margin-left: 60px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .nav-container {
        padding: 0 10px;
    }

    .hero {
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about,
    .programs,
    .process,
    .faq,
    .contact {
        padding: 60px 0;
    }

    .color-theme-toggle {
        display: none;
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

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

/* STEM Initiatives Page Specific Styles */
.initiatives-hero {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
}

.initiatives {
    padding: 100px 0;
}

.initiative-category {
    margin-bottom: 80px;
}

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

.initiative-card {
    background: var(--background-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.initiative-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

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

.initiative-card.featured {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
    border-color: var(--primary-color);
}

.initiative-card.featured::before {
    height: 6px;
}

.initiative-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    text-align: center;
}

.initiative-card h4 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.initiative-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.initiative-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.feature {
    display: inline-block;
    padding: 6px 12px;
    background: var(--surface-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Impact Statistics */
.impact-stats {
    padding: 80px 0;
    background: var(--surface-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: var(--background-color);
    padding: 40px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Call to Action Section */
.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.cta-section .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.cta-section .btn-secondary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.cta-section .btn-secondary:hover {
    background: var(--surface-color);
}

/* Responsive Design for Initiatives */
@media (max-width: 768px) {
    .initiative-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .initiative-card {
        padding: 30px 20px;
    }
    
    .stat-card {
        padding: 30px 15px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.125rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .initiative-card {
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .initiative-icon {
        font-size: 2.5rem;
    }
}

/* Section Navigation */
.section-nav {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}


.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.4);
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.nav-label {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-dot:hover .nav-label {
    opacity: 1;
}

/* Section Sliding Animations */
.section-slide {
    min-height: 100vh;
    width: 100%;
    position: relative;
    transition: all 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.section-slide.slide-in-up {
    animation: slideInUp 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-slide.slide-in-down {
    animation: slideInDown 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-slide.slide-in-left {
    animation: slideInLeft 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-slide.slide-in-right {
    animation: slideInRight 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Section Background Variations */
.section-slide:nth-child(odd) {
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(var(--primary-color-rgb), 0.12) 100%);
}

.section-slide:nth-child(even) {
    background: linear-gradient(135deg, rgba(var(--secondary-color-rgb), 0.08) 0%, var(--bg-color) 100%);
}

.section-slide:nth-child(3n) {
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(var(--primary-color-rgb), 0.15) 50%, var(--bg-color) 100%);
}

.section-slide:nth-child(4n) {
    background: radial-gradient(ellipse at top, rgba(var(--secondary-color-rgb), 0.18) 0%, var(--bg-color) 70%);
}

.section-slide:nth-child(5n) {
    background: linear-gradient(45deg, var(--bg-color) 0%, rgba(var(--primary-color-rgb), 0.14) 100%);
}

.section-slide:nth-child(6n) {
    background: linear-gradient(225deg, rgba(var(--secondary-color-rgb), 0.10) 0%, var(--bg-color) 60%, rgba(var(--primary-color-rgb), 0.08) 100%);
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Section Transition Effects */
.section-slide.transitioning {
    transform: scale(0.98);
    filter: blur(1px);
    opacity: 0.8;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-slide.active-section {
    transform: scale(1);
    filter: blur(0);
    opacity: 1;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Parallax-like scroll effect for sections */
.section-slide .content {
    transform: translateZ(0);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-slide:not(.active-section) .content {
    transform: translateY(30px);
    opacity: 0.6;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Responsive adjustments for animations */
@media (max-width: 768px) {
    .section-nav {
        display: none;
    }
    
    .moving-element {
        font-size: 1.8rem;
    }
    
    .float-element {
        font-size: 2rem;
    }
    
    .bg-shape {
        width: 100px !important;
        height: 100px !important;
    }
    
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 30px;
    }
    
    .partner-card {
        padding: 30px 20px;
    }
    
    .partner-logo {
        height: 100px;
        padding: 15px;
    }
    
    .partner-logo img {
        max-height: 70px;
        max-width: 140px;
    }
    
    .partner-name {
        font-size: 1rem;
    }
}