*, *::before, *::after {
    box-sizing: border-box;
    max-width: 100vw;
}

html, body {
    overflow-x: hidden !important;
    width: 100vw;
}

it doeshtml {
    scroll-behavior: smooth;
}

body, button, input, textarea, select {
    font-family: 'DM Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
}

body {
    margin: 0;
    font-family: sans-serif;
    color: white;
    background: 
        radial-gradient(ellipse 80% 80% at 40% 40%, 
            rgba(88, 11, 127, 0.4) 0%, 
            rgba(88, 11, 127, 0.2) 25%, 
            rgba(88, 11, 127, 0.1) 50%, 
            transparent 70%),
        radial-gradient(ellipse 70% 70% at 60% 60%, 
            rgba(30, 100, 200, 0.3) 0%, 
            rgba(50, 80, 180, 0.15) 30%, 
            rgba(70, 60, 160, 0.08) 50%, 
            transparent 70%),
        radial-gradient(ellipse 60% 60% at 80% 20%, 
            rgba(120, 50, 180, 0.2) 0%, 
            rgba(100, 40, 160, 0.1) 30%, 
            rgba(80, 30, 140, 0.05) 50%, 
            transparent 70%),
        linear-gradient(135deg, 
            #1a1a1a 0%, 
            #1e1e2e 50%, 
            #1a1a1a 100%);
    background-attachment: fixed;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

/* Fixed Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1004;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: auto;
}

.logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.logo img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Menu Button */
.menu-button {
    position: relative;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: auto;
}
.menu-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(.4,2,.6,1);
    transform-origin: center center;
    pointer-events: none;
}
.menu-line:nth-child(1) {
    transform: translate(-50%, -50%) translateY(-4px) rotate(0deg);
}
.menu-line:nth-child(2) {
    transform: translate(-50%, -50%) translateY(4px) rotate(0deg);
}
.menu-button.active .menu-line:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}
.menu-button.active .menu-line:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Full Screen Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.menu-nav li {
    margin: 30px 0;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.3s ease;
}

.menu-overlay.active .menu-nav li {
    transform: translateY(0);
    opacity: 1;
}

.menu-overlay.active .menu-nav li:nth-child(1) { transition-delay: 0.1s; }
.menu-overlay.active .menu-nav li:nth-child(2) { transition-delay: 0.2s; }
.menu-overlay.active .menu-nav li:nth-child(3) { transition-delay: 0.3s; }
.menu-overlay.active .menu-nav li:nth-child(4) { transition-delay: 0.4s; }
.menu-overlay.active .menu-nav li:nth-child(5) { transition-delay: 0.5s; }

.menu-nav a {
    color: white;
    text-decoration: none;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.85;
}
.menu-nav a:hover, .menu-nav a:focus {
    color: #ff6cff;
    opacity: 1;
    text-shadow: none;
}
.menu-disabled {
    color: #aaa !important;
    opacity: 0.5 !important;
    pointer-events: none;
    cursor: not-allowed;
    text-shadow: none !important;
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    pointer-events: none;
}

/* Scroll Sections */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    overscroll-behavior: contain;
}

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

.scroll-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    scroll-margin-top: 0;
    transition: opacity 0.8s ease-in-out;
}

.section-content {
    text-align: center;
    max-width: 800px;
    padding: 0 40px;
    z-index: 10;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* Hero Section Styles */
.main-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 18px;
}

.section-content.visible .main-title {
    transform: translateY(0);
    opacity: 1;
}

.subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 32px;
}

.section-content.visible .subtitle {
    opacity: 1;
    transform: translateY(0);
}

.cta-button {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    margin-bottom: 32px;
    display: inline-block;
    transform: translateY(30px);
    opacity: 0;
    margin-top: 8px;
}

.section-content.visible .cta-button {
    transform: translateY(0);
    opacity: 1;
    transition: all 1s ease 0.6s, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(30px);
    opacity: 0;
    transition: all 1s ease 0.8s;
    z-index: 100;
    /* Enhanced glassmorphic effect */
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    border-radius: 24px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.25);
    /* Remove dark background for more glass look */
}

.section-content.visible .video-modal {
    transform: translate(-50%, -50%) translateY(0);
    opacity: 1;
}

.video-container {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 800px;
    max-width: 90vw;
    /* height: 450px; */
    /* max-height: 50vh; */
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 24px rgba(31, 38, 135, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

/* Ensure the video element itself is rounded and fits container */
#cloudflare-player, .video-container video {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: #000;
    display: block;
    object-fit: contain;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 300;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.video-play-overlay:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-overlay svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Partner Logos */
.partner-logos {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 36px; /* Increased gap for larger logos */
    margin-top: 200px;
    padding: 0 32px;
    max-width: 1600px; /* Increased container width for 1-row fit */
    margin-left: auto;
    margin-right: auto;
}

/* Uniform logo sizing - desktop standard */
.partner-logo {
  max-height: 80px;
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Partner logo sizes now handled by desktop rules and new mobile implementation */

.partner-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Partner logos mobile animation - CALCULATED WIDTH */
.partner-logos-mobile {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 60px;
}

.partner-logos-mobile .logos-track {
  display: flex;
  animation: scroll-partner-logos 35s linear infinite;
  gap: 36px;
}

.partner-logos-mobile .logo-item {
  flex: 0 0 auto;
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Extra spacing before Duke-NUS Centre for Outbreak Preparedness logo */
.partner-logos-mobile .logo-item:nth-child(4),
.partner-logos-mobile .logo-item:nth-child(11) {
  margin-left: 24px;
}

.partner-logos-mobile .partner-logo {
  max-height: 80px;
  height: auto;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* Funders Section */
.funders-section {
  margin-top: 10px;
}

@media (max-width: 1024px) {
  .funders-section {
    margin-top: 5px;
  }
}

@media (max-width: 768px) {
  .funders-section {
    margin-top: 0px;
  }
}

@media (max-width: 480px) {
  .funders-section {
    margin-top: -5px;
  }
}

.funders-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0 0 10px 0;
  font-weight: 400;
}

/* Funders Logos */
.funders-logos {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 36px;
    padding: 0 32px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* Uniform funder logo sizing - desktop standard */
.funder-logo {
  max-height: 80px;
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Funder logo sizes now handled by desktop rules and new mobile implementation */

.funder-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* Funder logos mobile animation - CALCULATED WIDTH */
.funders-logos-mobile {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 20px;
}

.funders-logos-mobile .logos-track {
  display: flex;
  animation: scroll-funder-logos 20s linear infinite;
  gap: 48px;
}

.funders-logos-mobile .logo-item {
  flex: 0 0 auto;
  width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.funders-logos-mobile .funder-logo {
  max-height: 80px;
  height: auto;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

/* Partner logos: 7 logos (140px each) + 7 gaps (36px each) + extra Duke-NUS spacing (24px) = 1256px total */
@keyframes scroll-partner-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-140px * 7 - 36px * 7 - 24px));
  }
}

/* Funder logos: 3 logos (140px each) + 3 gaps (48px each) = 564px total */
@keyframes scroll-funder-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-140px * 3 - 48px * 3));
  }
}

/* Technical Overlays */
.tech-overlays-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-overlay {
    position: absolute;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.8s ease;
    z-index: 100;
    /* Apply backdrop-filter to the parent container */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
}

.tech-overlay.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.overlay-content {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px 28px;
    max-width: 420px;
    min-width: 380px;
    position: relative;
}

.overlay-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(184, 5, 192, 0.1) 0%, 
        rgba(139, 11, 127, 0.05) 50%, 
        rgba(88, 11, 127, 0.1) 100%);
    border-radius: 16px;
    z-index: -1;
}

.overlay-title {
    color: #ffffff;
    font-size: 1.235rem; /* was 0.95rem */
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-align: left;
}

.overlay-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.96rem; /* was 0.8rem */
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

.overlay-text a[href^='mailto:'] {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

/* Connecting Lines */
.connecting-line {
    position: absolute;
    background: linear-gradient(90deg, 
        rgba(184, 5, 192, 0.6) 0%, 
        rgba(184, 5, 192, 0.2) 50%, 
        transparent 100%);
    height: 1px;
    z-index: 10;
}

.line-1 {
    width: 120px;
    top: 50%;
    right: -120px;
    transform: translateY(-50%);
}

.line-2 {
    width: 100px;
    top: 50%;
    left: -100px;
    transform: translateY(-50%) rotate(180deg);
}

.line-3 {
    width: 110px;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

/* Positioning for different overlays */
/* All other overlay rules have been deleted for clarity and to prevent overlap/positioning bugs. */

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    
    .logo img {
        height: 32px;
    }
    
    .menu-button {
        padding: 8px;
    }
    
    .menu-line {
        width: 20px;
        height: 2px;
    }
    
    .menu-nav a {
        font-size: 36px;
    }
    
    .menu-nav li {
        margin: 20px 0;
    }
    
    .section-content {
        padding: 0 20px;
    }
    
    .main-title {
        font-size: 1.9rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .cta-button {
        font-size: 13px;
        padding: 10px 20px;
    }
    
    .video-container {
        width: 90vw;
        height: 250px;
    }
    
    .partner-logos {
        gap: 24px;
        margin-top: 60px;
        flex-wrap: wrap;
        max-width: none;
    }
    
    .partner-logos a {
        display: inline-block;
    }
    
    /* Mobile logo sizing removed - now handled by new mobile implementation */
    
    /* Technical Overlays Mobile - handled by later media queries */
    
    .overlay-content {
        max-width: 360px;
        min-width: 300px;
        padding: 18px 26px;
    }
    
    .overlay-title {
        font-size: 1.17rem; /* was 0.9rem */
    }
    
    .overlay-text {
        font-size: 0.9rem; /* was 0.75rem */
    }
    
    /* Hide connecting lines on mobile for cleaner look */
    .connecting-line {
        display: none;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 15px;
    }
    
    .logo img {
        height: 28px;
    }
    
    .menu-nav a {
        font-size: 28px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .video-container {
        width: 95vw;
        height: 200px;
    }
    
    .video-play-overlay svg {
        width: 40px;
        height: 40px;
    }
    
    .partner-logos {
        gap: 16px;
        margin-top: 48px;
        max-width: 280px;
        flex-wrap: wrap;
    }
    
    .partner-logos a {
        display: inline-block;
        flex: 0 1 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
    
    /* Mobile logo sizing removed - now handled by new mobile implementation */
    
    /* Technical Overlays Mobile - handled by later media queries */
    
    .overlay-content {
        max-width: 340px;
        min-width: 280px;
        padding: 16px 24px;
    }
    
    .overlay-title {
        font-size: 1.17rem; /* was 0.85rem */
        margin-bottom: 8px;
    }
    
    .overlay-text {
        font-size: 0.9rem; /* was 0.75rem */
        line-height: 1.35;
    }
    
    /* Hide connecting lines on mobile for cleaner look */
    .connecting-line {
        display: none;
    }
}

/* Subtle Genomic Analysis System */
.subtle-data-stream {
    font-family: 'Courier New', monospace;
    line-height: 1.2;
    pointer-events: none;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.2);
    z-index: 5;
}

.subtle-genomic-label {
    font-family: 'Courier New', monospace;
    pointer-events: none;
    white-space: nowrap;
    z-index: 5;
}

@keyframes subtleDataStream {
    0% { 
        opacity: 0; 
        transform: translateY(10px); 
        filter: blur(2px);
    }
    30% { 
        opacity: 0.3; 
        transform: translateY(5px); 
        filter: blur(1px);
    }
    70% { 
        opacity: 0.3; 
        transform: translateY(-5px); 
        filter: blur(0px);
    }
    100% { 
        opacity: 0; 
        transform: translateY(-15px); 
        filter: blur(1px);
    }
}

@keyframes subtleLabelAppear {
    0% { 
        opacity: 0; 
        transform: translateY(8px) scale(0.9); 
        filter: blur(1px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        filter: blur(0px);
    }
}

/* Contact Modal Glass Overlay */
.contact-modal {
  position: fixed;
  z-index: 2000;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 0;
}
.contact-modal-content {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
  padding: 32px 36px 28px 36px;
  min-width: 340px;
  max-width: 95vw;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: subtleLabelAppear 0.7s;
}
.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.contact-modal-close:hover {
  opacity: 1;
}
#contactForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
#contactForm label {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 500;
  margin-bottom: 2px;
}
#contactForm input,
#contactForm textarea {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.13);
  color: #fff;
  font-size: 1rem;
  padding: 8px 12px;
  margin-bottom: 2px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
}
#contactForm input:focus,
#contactForm textarea:focus {
  border-color: #b805c0;
  background: rgba(255,255,255,0.18);
}
#contactForm textarea {
  min-height: 80px;
  max-height: 200px;
}
#contactSend {
  margin-top: 10px;
  align-self: flex-end;
}
.form-error {
  color: #ffb3b3;
  font-size: 0.9em;
  min-height: 18px;
  margin-bottom: 2px;
}
.thank-you-message {
  text-align: center;
  color: #fff;
  margin-top: 24px;
}
.contact-modal .cta-button {
  opacity: 1 !important;
  transform: none !important;
  transition: all 0.3s;
  display: inline-block;
}
@media (max-width: 600px) {
  .contact-modal-content {
    min-width: 0;
    max-width: 98vw;
    padding: 8px 2vw 8px 2vw;
  }
  #contactForm {
    gap: 6px;
    margin-top: 8px;
  }
  #contactForm input,
  #contactForm textarea {
    font-size: 0.95rem;
    padding: 5px 6px;
    margin-bottom: 0;
  }
  .contact-modal-close {
    top: 4px;
    right: 6px;
    font-size: 1.3rem;
    z-index: 10;
  }
}

.scroll-section:nth-of-type(3) .main-title {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 18px;
}

.section-content, .main-title, .subtitle, .cta-button, .partner-logos, .tech-overlays-container, .overlay-content {
    position: relative;
    z-index: 300;
}

#bg {
    z-index: 200 !important;
}

.video-modal, .menu-overlay, .contact-modal {
    z-index: 1000;
}

/* Hero section layout for vertical spacing */
.hero-section {
  height: 90vh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-section .section-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  max-width: none; /* Override the 800px constraint for hero section */
  width: 100%;
}
.hero-spacer {
  flex: 1 1 auto;
}
.hero-main-content {
  flex: 0 0 auto;
  margin-top: 50px;
}
.partner-logos,
.partner-logos-outer {
  position: static;
  margin-bottom: 0;
  margin-top: 0;
  padding-bottom: 40px;
}

/* Logo display logic - NEW CLEAN IMPLEMENTATION */
@media (min-width: 1025px) {
  .partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
  }
  .partner-logos-mobile {
    display: none;
  }
  .funders-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
  }
  .funders-logos-mobile {
    display: none;
  }
}

@media (max-width: 1024px) {
  .partner-logos {
    display: none;
  }
  .partner-logos-mobile {
    display: block;
  }
  .funders-logos {
    display: none;
  }
  .funders-logos-mobile {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero-main-content {
    margin-top: 90px;
  }
  .main-title, .subtitle {
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
  }
  /* Mobile max-height removed - now handled by new mobile implementation */
}
@media (max-width: 1024px) {
  /* Mobile max-height removed - now handled by new mobile implementation */
}

.about-overlay {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px 28px;
    margin: 16px 0;
    box-shadow: 0 4px 24px 0 rgba(20, 20, 40, 0.08);
    position: relative;
    max-width: 700px;
    min-width: 280px;
}
.about-overlay .overlay-title {
    font-size: 0.99rem; /* 1.235rem * 0.8 */
}
.about-overlay:first-child {
    margin-top: 100px;
}
.about-overlay a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* --- OVERLAY LAYOUT: Only keep these two blocks at the end of the file --- */

.tech-overlays-container {
    position: fixed !important;
    top: 50% !important;
    left: -10vw !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 20px !important;
    z-index: 300 !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
}
.tech-overlay {
    position: static !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    transition: all 0.8s cubic-bezier(0.4,0,0.2,1) !important;
    z-index: 100 !important;
    margin: 0 !important;
    flex: none !important;
    min-width: 320px !important;
    max-width: 420px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-bottom: 20px !important;
    /* Glassmorphic styles restored */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 16px !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
}
.tech-overlay:last-child {
    margin-bottom: 0 !important;
}

/* Mobile Navigation Arrows */
.overlay-nav-arrows {
    position: fixed !important;
    top: 50% !important;
    left: 0 !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    display: none !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 20px !important;
    z-index: 400 !important;
    pointer-events: none !important;
}

.overlay-nav-arrow {
    width: 48px !important;
    height: 48px !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    pointer-events: auto !important;
    color: white !important;
    font-size: 20px !important;
    user-select: none !important;
}

.overlay-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.05) !important;
}

.overlay-nav-arrow:active {
    transform: scale(0.95) !important;
}

.overlay-nav-arrow.disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* Overlay indicator dots */
.overlay-indicators {
    position: fixed !important;
    bottom: 100px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: none !important;
    flex-direction: row !important;
    gap: 8px !important;
    z-index: 400 !important;
}

.overlay-indicator {
    width: 8px !important;
    height: 8px !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.overlay-indicator.active {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.2) !important;
}

@media (max-width: 1024px) {
    .tech-overlays-container {
        position: fixed !important;
        top: 40% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: auto !important;
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 40px !important;
        gap: 0 !important;
        z-index: 300 !important;
    }
    
    .tech-overlay {
        min-width: 300px !important;
        max-width: 380px !important;
        width: 320px !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        opacity: 0 !important;
        transform: translateX(50px) scale(0.9) !important;
        transition: all 0.5s cubic-bezier(0.4,0,0.2,1) !important;
        margin-bottom: 0 !important;
        pointer-events: none !important;
        display: none !important;
    }
    
    .tech-overlay.active {
        opacity: 1 !important;
        transform: translateX(0) scale(1) !important;
        pointer-events: auto !important;
        display: flex !important;
    }
    
    .overlay-nav-arrows {
        display: flex !important;
        position: fixed !important;
        top: calc(40% + 140px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        justify-content: center !important;
        gap: 40px !important;
        padding: 0 !important;
        width: auto !important;
        right: auto !important;
        pointer-events: none !important;
    }
    
    .overlay-indicators {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .tech-overlays-container {
        padding: 0 20px !important;
        top: 35% !important;
    }
    .tech-overlay {
        min-width: 280px !important;
        max-width: 320px !important;
        width: 300px !important;
    }
    .overlay-content {
        padding: 16px 20px !important;
        min-width: 260px !important;
    }
    .overlay-nav-arrows {
        top: calc(35% + 120px) !important;
        gap: 30px !important;
    }
    .overlay-nav-arrow {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
    }
}

/* Team Page Styles */
.team-main {
    min-height: 100vh;
    background: 
        radial-gradient(ellipse 80% 80% at 40% 40%, 
            rgba(88, 11, 127, 0.4) 0%, 
            rgba(88, 11, 127, 0.2) 25%, 
            rgba(88, 11, 127, 0.1) 50%, 
            transparent 70%),
        radial-gradient(ellipse 70% 70% at 60% 60%, 
            rgba(30, 100, 200, 0.3) 0%, 
            rgba(50, 80, 180, 0.15) 30%, 
            rgba(70, 60, 160, 0.08) 50%, 
            transparent 70%),
        radial-gradient(ellipse 60% 60% at 80% 20%, 
            rgba(120, 50, 180, 0.2) 0%, 
            rgba(100, 40, 160, 0.1) 30%, 
            rgba(80, 30, 140, 0.05) 50%, 
            transparent 70%),
        linear-gradient(135deg, 
            #1a1a1a 0%, 
            #1e1e2e 50%, 
            #1a1a1a 100%);
    background-attachment: fixed;
    padding: 120px 40px 60px 40px;
}

.team-title-container {
    text-align: center;
    margin-bottom: 60px;
}

.team-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 60px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    letter-spacing: 1.8px;
    line-height: 1;
}

.team-grid-container {
    max-width: 1400px;
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    justify-items: center;
}

.team-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 16px;
    max-width: 280px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(184, 5, 192, 0.1) 0%, 
        rgba(139, 11, 127, 0.05) 50%, 
        rgba(88, 11, 127, 0.1) 100%);
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.team-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.team-card-image {
    width: 100%;
    height: 240px;
    border-radius: 16px;
    overflow: hidden;
    background: #b8b8b8;
    margin-bottom: 16px;
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-card-content {
    text-align: center;
}

.team-card-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.team-card-role {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.team-card-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 11.25px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.3;
}

/* Tablet: 3 columns */
@media (max-width: 1024px) {
    .team-main {
        padding: 100px 30px 50px 30px;
    }
    
    .team-title {
        font-size: 48px;
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .team-card {
        max-width: 260px;
    }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .team-main {
        padding: 80px 20px 40px 20px;
    }
    
    .team-title {
        font-size: 36px;
        letter-spacing: 1.2px;
    }
    
    .team-title-container {
        margin-bottom: 40px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .team-card {
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Jobs Container */
.jobs-container {
    max-width: 800px;
    min-width: 800px;
    margin: 60px auto 0 auto;
    padding: 0 40px;
    text-align: left;
    width: 100%;
}

/* Override section-content constraints for jobs page */
.section-content.jobs-container {
    max-width: 800px;
    padding: 0 40px;
}

.jobs-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 32px 0;
    text-align: left;
}

/* Job Cards */
.job-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.job-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

.job-clickable-area {
    cursor: pointer;
}

.job-card.expanded .job-clickable-area {
    cursor: default;
}

.job-header {
    margin-bottom: 20px;
}

.job-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 12px;
}

.job-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

.job-status-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

.job-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-meta-item span {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}

.job-description {
    margin-bottom: 32px;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.job-description-content {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.5;
    text-align: left;
    padding: 20px 0;
}

.job-description-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 24px 0 12px 0;
}

.job-description-content h3:first-child {
    margin-top: 0;
}

.job-description-content p {
    margin: 16px 0;
}

/* Style for bold section headers like "Responsibilities:", "Essential Qualifications:", etc. */
.job-description-content p strong {
    font-weight: 600;
    font-size: 16px;
}

/* Extra spacing for paragraphs that contain section titles */
.job-description-content p:nth-of-type(n+2) {
    margin-top: 24px;
}

/* Style for horizontal rules separating sections */
.job-description-content hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 32px 0 24px 0;
}

/* Specific spacing for section headers added via JavaScript */
.job-description-content p.section-header {
    margin-top: 32px !important;
    margin-bottom: 16px !important;
}

.job-description-content p.section-header strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

/* Additional spacing for paragraphs that follow horizontal rules */
.job-description-content hr + p {
    margin-top: 8px !important;
}

/* Style for lists following headers */
.job-description-content ul {
    margin: 8px 0 16px 0;
    padding-left: 20px;
}

.job-description-content li {
    margin: 6px 0;
}

.job-apply-button {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 32px;
    padding: 8px 16px;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 200px;
    margin-bottom: 16px;
}

.job-apply-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.job-toggle {
    display: flex;
    align-items: center;
}

.job-toggle-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    transition: all 0.3s ease;
}

.job-toggle-button:hover {
    color: rgba(255, 255, 255, 1);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

/* State management for collapsed/expanded views */
.job-card .collapsed-state {
    display: flex;
}

.job-card .expanded-state {
    display: none;
}

.job-card.expanded .collapsed-state {
    display: none;
}

.job-card.expanded .expanded-state {
    display: flex;
}

/* Tablet responsive */
@media (max-width: 1024px) {
    .jobs-container,
    .section-content.jobs-container {
        min-width: auto;
        max-width: none;
        width: calc(100% - 40px);
        margin: 60px 20px 0 20px;
        padding: 0;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .jobs-container,
    .section-content.jobs-container {
        width: calc(100% - 32px);
        margin: 40px 16px 0 16px;
        padding: 0;
    }
    
    .jobs-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .job-card {
        padding: 24px;
        margin-bottom: 20px;
    }
    
    .job-title-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        justify-content: space-between;
    }
    
    .job-title {
        font-size: 18px;
        flex: 1;
    }
    
    /* Hide the status badge on mobile */
    .job-status-badge {
        display: none;
    }
    
    .job-meta {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        flex-wrap: wrap;
    }
    
    .job-meta-item {
        gap: 8px;
    }
    
    .job-apply-button {
        width: 100%;
    }
    
    .job-description-content {
        padding: 16px 0;
    }
}