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: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
}

.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: 1001;
}
.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: -1;
}

/* 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 */
}

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

.audio-button {
    padding: 10px 20px;
    font-size: 12px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    transform: translateY(30px);
    opacity: 0;
}

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

.audio-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

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

.partner-logo {
    height: 144px; /* 1.5x original 96px */
    width: auto;
    opacity: 0.9;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    object-fit: contain;
    display: block;
}

@media (max-width: 1024px) {
    .partner-logo {
        height: 110px;
    }
    .partner-logos {
        gap: 28px;
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    .partner-logos {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 28px 20px;
        max-width: 600px;
        margin-top: 60px;
        padding: 0 10px;
    }
    .partner-logos a {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .partner-logo {
        height: 80px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .partner-logos {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
        gap: 16px 8px;
        max-width: 320px;
        margin-top: 36px;
        padding: 0 4px;
    }
    .partner-logo {
        height: 58px;
        width: 100%;
    }
}

/* 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: 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.8rem;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

/* 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 */
#overlay1 {
    top: 20%;
    right: 15%;
}

#overlay2 {
    top: 60%;
    left: 10%;
}

#overlay3 {
    bottom: 15%;
    right: 20%;
}

/* 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;
    }
    
    .audio-button {
        font-size: 11px;
        padding: 8px 16px;
    }
    
    .partner-logos {
        gap: 24px;
        margin-top: 60px;
        flex-wrap: wrap;
        max-width: none;
    }
    
    .partner-logos a {
        display: inline-block;
    }
    
    .partner-logo {
        height: 67px;
    }
    
    /* Technical Overlays Mobile */
    .tech-overlays-container {
        height: auto;
        min-height: 80vh;
        flex-direction: column;
        padding: 40px 20px;
    }
    
    .overlay-content {
        max-width: 360px;
        min-width: 300px;
        padding: 18px 26px;
    }
    
    .overlay-title {
        font-size: 0.9rem;
    }
    
    .overlay-text {
        font-size: 0.75rem;
    }
    
    /* Adjust positioning for tablet */
    #overlay1 {
        top: 10%;
        right: 10%;
    }
    
    #overlay2 {
        top: 50%;
        left: 5%;
    }
    
    #overlay3 {
        bottom: 10%;
        right: 10%;
    }
    
    /* Shorter connecting lines */
    .line-1 {
        width: 80px;
        right: -80px;
    }
    
    .line-2 {
        width: 70px;
        left: -70px;
    }
    
    .line-3 {
        width: 60px;
        bottom: -30px;
    }
    
    /* 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;
    }
    
    .audio-button {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .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);
    }
    
    .partner-logo {
        height: 58px;
        width: 100%;
    }
    
    /* Technical Overlays Mobile */
    .tech-overlays-container {
        height: auto;
        min-height: 70vh;
        padding: 20px 15px;
    }
    
    .overlay-content {
        max-width: 340px;
        min-width: 280px;
        padding: 16px 24px;
    }
    
    .overlay-title {
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .overlay-text {
        font-size: 0.75rem;
        line-height: 1.35;
    }
    
    /* Center overlays on mobile */
    #overlay1, #overlay2, #overlay3 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 20px auto;
    }
    
    /* 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: 18px 8vw 18px 8vw;
  }
  #contactForm input,
  #contactForm textarea {
    font-size: 0.98rem;
    padding: 7px 8px;
  }
  .contact-modal-close {
    top: 8px;
    right: 10px;
    font-size: 1.5rem;
  }
}

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