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

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: #000000;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Ensure images scale properly on mobile */
img {
    max-width: 100%;
    height: auto;
}

/* Bio-AI Background Animation */
.bio-ai-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    overflow: hidden;
}

/* Cell membrane patterns */
.membrane {
    position: absolute;
    border-radius: 50%;
    border: 1px solid #1a365d;
    animation: membrane-pulse 12s ease-in-out infinite;
}

.membrane-1 {
    width: 400px;
    height: 400px;
    top: -10%;
    left: -5%;
    animation-delay: 0s;
    border-width: 2px;
}

.membrane-2 {
    width: 300px;
    height: 300px;
    top: 30%;
    right: -8%;
    animation-delay: 4s;
}

.membrane-3 {
    width: 250px;
    height: 250px;
    bottom: -5%;
    left: 20%;
    animation-delay: 8s;
}

/* Circuit-like elements */
.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent 0%, #1a365d 50%, transparent 100%);
    animation: circuit-flow 8s linear infinite;
}

.circuit-horizontal {
    height: 2px;
    width: 200px;
}

.circuit-vertical {
    width: 2px;
    height: 150px;
}

.circuit-1 {
    top: 25%;
    left: 10%;
    animation-delay: 0s;
}

.circuit-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.circuit-3 {
    bottom: 30%;
    left: 30%;
    transform: rotate(45deg);
    animation-delay: 4s;
}

.circuit-4 {
    top: 40%;
    left: 60%;
    animation-delay: 6s;
}

/* Neural network nodes */
.neural-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #1a365d;
    border-radius: 50%;
    animation: neural-pulse 4s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(26, 54, 93, 0.5);
}

.neural-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, #1a365d 0%, transparent 50%, #1a365d 100%);
    animation: data-flow 6s linear infinite;
    opacity: 0.8;
}

/* Neural network layout */
.neural-1 {
    top: 20%;
    left: 25%;
    animation-delay: 0s;
}

.neural-2 {
    top: 35%;
    left: 45%;
    animation-delay: 1s;
}

.neural-3 {
    top: 50%;
    left: 30%;
    animation-delay: 2s;
}

.neural-4 {
    top: 65%;
    left: 50%;
    animation-delay: 3s;
}

.neural-5 {
    top: 30%;
    right: 25%;
    animation-delay: 1.5s;
}

.neural-6 {
    top: 55%;
    right: 35%;
    animation-delay: 2.5s;
}

.connection-1 {
    top: 20%;
    left: 25%;
    width: 180px;
    transform: rotate(25deg);
    animation-delay: 0.5s;
}

.connection-2 {
    top: 35%;
    left: 45%;
    width: 120px;
    transform: rotate(-30deg);
    animation-delay: 1.5s;
}

.connection-3 {
    top: 50%;
    left: 30%;
    width: 150px;
    transform: rotate(45deg);
    animation-delay: 2.5s;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    margin-bottom: 80px;
    overflow: visible;
}

.header-bar {
    background-color: #e8f4f8;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
    padding: 12px 25px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(26, 54, 93, 0.1);
    border: 1px solid rgba(26, 54, 93, 0.1);
    flex-wrap: nowrap;
    overflow: visible;
    position: relative;
}

.logo-small img {
    height: 45px;
    width: auto;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

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

.navigation {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    color: #1a365d;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #1a365d;
    color: #ffffff;
}

.nav-link.active {
    background-color: #1a365d;
    color: #ffffff;
}

.nav-link.contact-highlight {
    background-color: #1a365d;
    color: #ffffff;
    border-radius: 20px;
    padding: 8px 20px;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
    z-index: 10000;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

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

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    margin-top: 0;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.15);
    border: 1px solid rgba(26, 54, 93, 0.1);
    min-width: 220px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 10000;
    pointer-events: none;
}

@media (min-width: 769px) {
    .dropdown {
        display: inline-flex;
    }
    
    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%) translateY(0);
        margin-left: 0;
    }
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    pointer-events: auto;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    margin-top: 0;
}

.dropdown-item {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    color: #1a365d;
    text-decoration: none;
    font-size: 15px;
    padding: 12px 20px;
    transition: all 0.2s ease;
    text-align: center;
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
    background-color: #1a365d;
    color: #ffffff;
}

.dropdown-item.active {
    background-color: #1a365d;
    color: #ffffff;
    font-weight: 700;
}

/* Main content styles */
main {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

.hero-section {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.main-logo {
    margin-bottom: 0px;
}

.main-logo img {
    height: 350px;
    width: auto;
    transition: transform 0.3s ease;
}

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

.tagline {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    line-height: 1.3;
    color: #1a365d;
    letter-spacing: -0.01em;
    animation: fadeInUp 1s ease-out;
    white-space: nowrap;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a365d;
    background: #e8f4f8;
    border: 2px solid rgba(26, 54, 93, 0.1);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.1);
    animation: fadeInUp 1.2s ease-out;
    animation-delay: 0.3s;
    opacity: 0;
    animation-fill-mode: forwards;
}

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

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.2);
    background: #d4eef5;
    border-color: rgba(26, 54, 93, 0.2);
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes membrane-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.6;
    }
}

@keyframes circuit-flow {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: 200px 0;
    }
}

@keyframes neural-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes data-flow {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }

    100% {
        opacity: 0;
        transform: scaleX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .header-bar {
        margin: 0 10px;
        padding: 8px 12px;
        flex-wrap: nowrap;
    }

    .logo-small img {
        height: 32px;
        flex-shrink: 0;
    }

    .navigation {
        gap: 4px;
        flex-wrap: nowrap;
        flex-shrink: 1;
        justify-content: flex-end;
        margin-top: 0;
    }

    .nav-link {
        font-size: 11px;
        padding: 6px 8px;
        min-height: auto;
        white-space: nowrap;
        display: flex;
        align-items: center;
    }

    .dropdown-toggle {
        font-size: 11px;
        padding: 6px 8px;
        gap: 4px;
    }

    .dropdown-arrow {
        width: 10px;
        height: 6px;
    }

    .dropdown-menu {
        min-width: 180px;
        left: auto;
        right: 0;
        transform: translateX(0) translateY(0);
        margin-top: 0;
        z-index: 10000;
        position: absolute;
        pointer-events: none;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu,
    .dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0) translateY(0);
        pointer-events: auto;
        margin-top: 0;
    }

    .dropdown-item {
        font-size: 13px;
        padding: 10px 16px;
    }

    .tagline {
        font-size: clamp(1.2rem, 6vw, 1.8rem);
        white-space: normal;
        text-align: center;
    }

    .main-logo img {
        height: 200px;
        max-width: 90%;
    }

    .cta-button {
        font-size: 1rem;
        padding: 12px 24px;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
}

@media (max-width: 480px) {
    .header-bar {
        margin: 0 8px;
        padding: 6px 10px;
        flex-wrap: nowrap;
    }

    .logo-small img {
        height: 28px;
        flex-shrink: 0;
    }

    .navigation {
        gap: 3px;
        flex-wrap: nowrap;
        flex-shrink: 1;
    }

    .nav-link {
        font-size: 10px;
        padding: 5px 6px;
        min-height: auto;
        white-space: nowrap;
    }

    .dropdown-toggle {
        font-size: 10px;
        padding: 5px 6px;
        gap: 3px;
    }

    .dropdown-arrow {
        width: 8px;
        height: 5px;
    }

    .dropdown-menu {
        min-width: 160px;
        left: auto;
        right: 0;
        transform: translateX(0) translateY(0);
        margin-top: 0;
        z-index: 10000;
        position: absolute;
        pointer-events: none;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu,
    .dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0) translateY(0);
        pointer-events: auto;
        margin-top: 0;
    }

    .dropdown-item {
        font-size: 12px;
        padding: 10px 14px;
    }

    .contact-highlight {
        padding: 5px 8px;
    }

    .hero-section {
        padding: 0 15px;
    }

    .main-logo img {
        height: 150px;
    }

    .tagline {
        font-size: clamp(1rem, 5vw, 1.5rem);
    }
}

/* About Section */
.about-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: transparent;
    backdrop-filter: blur(2px);
    padding: 40px 20px;
    padding-top: 140px;
    margin-top: 0px;
}

@media (max-width: 768px) {
    .about-section {
        padding-top: 100px;
        padding: 20px 15px;
        margin-top: 80px;
    }

    .about-content {
        padding: 25px;
    }

    .about-details {
        flex-direction: column;
        gap: 30px;
    }

    .about-image {
        flex: 1 1 auto;
        width: 100%;
    }

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

    .about-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding-top: 90px;
        padding: 15px 10px;
    }

    .about-content {
        padding: 20px;
    }
}

.about-content {
    text-align: center;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    margin-bottom: 50px;
    position: relative;
}

.section-divider {
    width: 100%;
    max-width: 500px;
    height: 2px;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(26, 54, 93, 0.6) 25%,
            rgba(0, 188, 212, 0.8) 50%,
            rgba(26, 54, 93, 0.6) 75%,
            transparent 100%);
    margin-top: 0;
    margin-bottom: 50px;
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 4.5s;
}

.typing-text-hidden {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    color: #1a365d;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    visibility: hidden;
    height: auto;
}

.typing-text {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
}

.about-details {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 4.5s;
}

.about-image {
    flex: 0 0 400px;
}

/* Double Helix Animation */
.double-helix-container {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    overflow: visible;
}

.helix-wrapper {
    position: relative;
    width: 200px;
    height: 120%;
    transform-style: preserve-3d;
    animation: helix-rotate 10s linear infinite;
}

@keyframes helix-rotate {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

.base-pair {
    position: absolute;
    width: 100%;
    height: 4px;
    top: calc(8.33% * var(--position));
    left: 0;
    transform-style: preserve-3d;
    transform: rotateY(calc(30deg * var(--position)));
}

.base-pair::before,
.base-pair::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.9), rgba(26, 54, 93, 0.9));
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.6);
    animation: nucleotide-pulse 2s ease-in-out infinite;
}

.base-pair::before {
    left: 0;
    transform: translateX(-50%) translateZ(80px);
    animation-delay: calc(0.1s * var(--position));
}

.base-pair::after {
    right: 0;
    transform: translateX(50%) translateZ(-80px);
    animation-delay: calc(0.1s * var(--position) + 0.5s);
}

@keyframes nucleotide-pulse {

    0%,
    100% {
        transform: translateX(-50%) translateZ(80px) scale(1);
        box-shadow: 0 0 20px rgba(0, 188, 212, 0.6);
    }

    50% {
        transform: translateX(-50%) translateZ(80px) scale(1.2);
        box-shadow: 0 0 30px rgba(0, 188, 212, 0.9);
    }
}

/* Connecting line between nucleotides */
.base-pair {
    background: linear-gradient(90deg,
            rgba(0, 188, 212, 0.3) 0%,
            rgba(0, 188, 212, 0.6) 50%,
            rgba(0, 188, 212, 0.3) 100%);
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text p {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #1a365d;
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.section-title {
    font-family: 'Telegraf', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    color: #1a365d;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.typing-text {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    color: #1a365d;
    line-height: 1.6;
    margin: 0 auto;
    opacity: 0;
    animation: typing 3s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes typing {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Highlight styles for key terms */
.typing-text .highlight {
    color: #00bcd4 !important;
    font-weight: 600 !important;
}

/* Team Section */
.team-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    backdrop-filter: blur(2px);
    padding: 40px 20px;
    margin-top: 80px;
}

.team-content {
    text-align: center;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    opacity: 0;
    animation: scaleIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.team-description {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    color: #1a365d;
    margin-top: 20px;
}

/* Board of Directors Section */
.board-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    backdrop-filter: blur(2px);
    padding: 40px 20px;
    margin-top: 80px;
}

.board-content {
    text-align: center;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    opacity: 0;
    animation: scaleIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.board-description {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    color: #1a365d;
    margin-top: 20px;
}

.board-members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.board-member-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .board-section {
        padding-top: 100px;
        padding: 20px 15px;
    }

    .board-members-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .board-member-card:nth-child(3) {
        grid-column: 1;
        max-width: 100%;
    }

    .board-member-card {
        padding: 20px;
    }

    .member-photo-placeholder {
        width: 100px;
        height: 100px;
    }

    .member-name {
        font-size: 1.3rem;
    }

    .member-bio {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .board-member-card {
        padding: 15px;
    }

    .member-photo-placeholder {
        width: 80px;
        height: 80px;
    }
}

.board-member-card {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(26, 54, 93, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
    animation-delay: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.board-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.15);
}

.member-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(26, 54, 93, 0.1));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(26, 54, 93, 0.2);
    overflow: hidden;
}

.member-photo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
    border-radius: 50%;
}

.member-name {
    font-family: 'Telegraf', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 8px;
}

.member-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #00bcd4;
    font-weight: 600;
    margin-bottom: 15px;
}

.member-bio {
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    color: #2d5a87;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 15px;
    flex-grow: 1;
}

.member-bio:last-child {
    margin-bottom: 0;
}

/* BioQuery Section */
.bioquery-section {
    min-height: 100vh;
    padding: 140px 20px 60px;
    background: linear-gradient(to bottom, #fdfcfe, #fefefe, #fcfffe);
    position: relative;
    overflow: hidden;
}

.bioquery-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 40%, rgba(236, 72, 153, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 70% 60%, rgba(16, 185, 129, 0.12) 0%, transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 20% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 20%),
        radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.1) 0%, transparent 20%);
    animation: float-background 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes float-background {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(3%, 3%) rotate(120deg);
    }

    66% {
        transform: translate(-3%, -2%) rotate(240deg);
    }
}

.bioquery-section>* {
    position: relative;
    z-index: 1;
}

/* Pipeline Diagram */
.pipeline-container {
    max-width: 1400px;
    margin: 0 auto 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 20px;
}

.ai-powered-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 20px 20px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(236, 72, 153, 0.05));
    border: 2px dashed rgba(16, 185, 129, 0.3);
    margin-top: 20px;
    margin-bottom: 20px;
}

.ai-powered-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.ai-powered-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 120px;
    max-width: 140px;
    position: relative;
}

.user-label {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
    white-space: nowrap;
}

.pipeline-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pipeline-icon.pink {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.5);
    color: #ec4899;
}

.pipeline-icon.green {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.5);
    color: #10b981;
}

.pipeline-step:hover .pipeline-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.pipeline-step:hover .pipeline-icon.green {
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.pipeline-label {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
    line-height: 1.3;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pipeline-arrow {
    font-size: 2rem;
    color: #cbd5e1;
    font-weight: 300;
    margin: 0 -10px;
    align-self: center;
    line-height: 1;
}

@media (max-width: 1200px) {
    .pipeline-container {
        gap: 15px;
    }

    .pipeline-step {
        min-width: 100px;
        max-width: 120px;
    }

    .pipeline-icon {
        width: 70px;
        height: 70px;
    }

    .pipeline-label {
        font-size: 0.85rem;
    }

    .pipeline-arrow {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .pipeline-container {
        flex-direction: column;
        gap: 20px;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
        margin: -10px 0;
    }

    .ai-powered-group {
        flex-direction: column;
    }

    .ai-powered-steps {
        flex-direction: column;
    }
}

.bioquery-hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out;
}

.bioquery-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(167, 139, 250, 0.2));
    border: 2px solid rgba(236, 72, 153, 0.6);
    border-radius: 50px;
    color: #ec4899;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 30px;
    animation: pulse-pink 2s ease-in-out infinite;
}

@keyframes pulse-pink {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
    }
}

.bioquery-title {
    font-family: 'Telegraf', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ec4899, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bioquery-subtitle {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #475569;
    margin-bottom: 20px;
    font-weight: 400;
}

.bioquery-tagline {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #64748b;
    margin-bottom: 40px;
    font-weight: 500;
    font-style: italic;
}

.bioquery-cta {
    margin-top: 40px;
}

.bioquery-button {
    display: inline-block;
    padding: 18px 40px;
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
    cursor: pointer;
}

.bioquery-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.6);
}

.bioquery-features {
    max-width: 1200px;
    margin: 0 auto 100px;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 40px 30px;
    border-radius: 16px;
    border: 2px solid rgba(236, 72, 153, 0.3);
    transition: all 0.4s ease;
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
    backdrop-filter: blur(10px);
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
    border-color: rgba(236, 72, 153, 0.3);
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
    border-color: rgba(16, 185, 129, 0.3);
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
    border-color: rgba(236, 72, 153, 0.3);
}

.feature-card:nth-child(4) {
    animation-delay: 0.4s;
    border-color: rgba(16, 185, 129, 0.3);
}

.feature-card:nth-child(odd):hover {
    transform: translateY(-8px);
    border-color: rgba(236, 72, 153, 0.8);
    box-shadow: 0 12px 40px rgba(236, 72, 153, 0.3);
}

.feature-card:nth-child(even):hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.8);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card:nth-child(odd) .feature-icon {
    background: rgba(236, 72, 153, 0.15);
}

.feature-card:nth-child(even) .feature-icon {
    background: rgba(16, 185, 129, 0.15);
}

.feature-card:nth-child(odd) .feature-icon svg {
    stroke: #ec4899;
    fill: #ec4899;
}

.feature-card:nth-child(even) .feature-icon svg {
    stroke: #10b981;
    fill: #10b981;
}

.feature-card h3 {
    font-family: 'Telegraf', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.feature-card p {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #475569;
    line-height: 1.7;
}

.bioquery-section .section-title {
    background: linear-gradient(135deg, #ec4899, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Services Section */
.services-section {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: transparent;
    backdrop-filter: blur(2px);
    padding: 40px 20px;
    padding-top: 90px;
    margin-top: 0;
}

.services-content {
    text-align: center;
    max-width: 1200px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 12px;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(26, 54, 93, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    animation: scaleIn 0.6s ease-out forwards;
}

.service-card:nth-child(1) {
    animation-delay: 0.2s;
}

.service-card:nth-child(2) {
    animation-delay: 0.4s;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(26, 54, 93, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 188, 212, 0.3);
}

.service-card h3 {
    font-family: 'Telegraf', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 15px;
}

.service-card p {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #1a365d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    color: #2d5a87;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    transition: all 0.2s ease;
}

.service-features li:hover {
    color: #1a365d;
    padding-left: 25px;
}

.service-features li::before {
    content: "•";
    color: #00bcd4;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-intro {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #1a365d;
    line-height: 1.7;
    margin-bottom: 30px;
    font-weight: 400;
}

.service-subtitle {
    font-family: 'Telegraf', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a365d;
    margin-top: 30px;
    margin-bottom: 20px;
}

.service-category {
    font-family: 'Telegraf', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #2d5a87;
    margin-top: 25px;
    margin-bottom: 12px;
}

.service-card .service-features li strong {
    color: #1a365d;
    font-weight: 600;
}

/* New structure for CRO Services page */
.services-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 40px;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.main-category {
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .services-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .main-category {
        margin-bottom: 0;
    }
    
    .main-category-title {
        font-size: 1.6rem;
    }
}

.main-category-title {
    font-family: 'Telegraf', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 30px;
    text-align: left;
}

.subcategory-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(26, 54, 93, 0.15);
    margin-bottom: 20px;
}

.subcategory-title {
    font-family: 'Telegraf', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(26, 54, 93, 0.1);
}

.subcategory-title.collapsible {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.2s ease;
    text-align: left;
}

.subcategory-title.collapsible span {
    text-align: left;
    flex: 1;
}

.subcategory-title.collapsible:hover {
    color: #00bcd4;
}

.collapse-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
    color: #1a365d;
}

.subcategory-title.collapsible:hover .collapse-icon {
    color: #00bcd4;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.subcategory-card .service-features {
    margin-top: 15px;
    list-style: none;
}

.subcategory-card .service-features li {
    margin-bottom: 10px;
    line-height: 1.6;
    padding-left: 0;
    font-size: 0.9rem;
    list-style: none;
}

.subcategory-card .service-features li::before {
    display: none;
    content: none;
}

.subcategory-card .service-features li strong {
    color: #1a365d;
    font-weight: 600;
    font-size: 0.95rem;
}


.services-section .section-title {
    margin-bottom: 50px;
    text-align: center;
    color: #1a365d;
}

@media (max-width: 768px) {
    .services-section {
        padding-top: 100px;
        padding: 20px 15px;
        margin-top: 80px;
    }

    .services-wrapper {
        padding-top: 20px;
    }

    .main-category-title {
        font-size: 1.8rem;
    }
    
    .subcategory-title {
        font-size: 1.1rem;
    }
    
    .subcategory-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .main-category {
        margin-bottom: 40px;
    }

    .services-content {
        gap: 30px;
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .services-section {
        padding-top: 90px;
        padding: 15px 10px;
    }

    .subcategory-card {
        padding: 15px;
    }

    .subcategory-title {
        font-size: 1rem;
    }

    .subcategory-card .service-features li {
        font-size: 0.85rem;
    }
}

/* Contact Section */
.contact-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: transparent;
    backdrop-filter: blur(2px);
    padding: 40px 20px;
    padding-top: 140px;
    margin-top: 0px;
}

.contact-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.contact-section .section-title {
    text-align: center;
}

.contact-intro {
    font-family: 'Manrope', sans-serif;
    font-size: 1.15rem;
    color: #1a365d;
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.5s;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-info-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 54, 93, 0.1);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(26, 54, 93, 0.08);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.7s;
    height: fit-content;
}

.contact-info-card h3 {
    font-family: 'Telegraf', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(26, 54, 93, 0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(26, 54, 93, 0.08);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.1), rgba(26, 54, 93, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a365d;
}

.contact-item-content {
    flex: 1;
}

.contact-item-content strong {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.contact-item-content a {
    font-family: 'Manrope', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a365d;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.contact-item-content a:hover {
    color: #2c5282;
}

.contact-form-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 54, 93, 0.1);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(26, 54, 93, 0.08);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.9s;
}

.contact-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #1a365d;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a365d;
    box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.1);
    background-color: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    font-family: 'Manrope', sans-serif;
}

.submit-button {
    width: 100%;
    padding: 16px 32px;
    font-family: 'Manrope', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #1a365d;
    border: 2px solid #1a365d;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.submit-button svg {
    transition: transform 0.3s ease;
}

.submit-button:hover {
    background-color: #2c5282;
    border-color: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 54, 93, 0.25);
}

.submit-button:hover svg {
    transform: translateX(4px);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

.form-message {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    animation: fadeInUp 0.3s ease-out;
}

.form-message-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.form-message-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

@media (max-width: 968px) {
    .contact-details {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding-top: 100px;
        padding: 20px 15px;
        margin-top: 80px;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 20px;
    }

    .contact-info-card h3 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .contact-item {
        gap: 15px;
        margin-bottom: 20px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .submit-button {
        padding: 14px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding-top: 90px;
        padding: 15px 10px;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 15px;
    }

    .contact-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}
    
    .contact-info-card h3 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        gap: 15px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
}