.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 15% 20%, rgba(13, 148, 136, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 85% 75%, rgba(20, 184, 166, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 60% 10%, rgba(245, 158, 11, 0.08) 0%, transparent 45%),
        linear-gradient(165deg, #060a14 0%, #0c1222 35%, #0f1f2e 65%, #0a2830 100%);
}

.hero-hex-grid {
    position: absolute;
    inset: -50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0 L56 16 L56 50 L28 66 L0 50 L0 16 Z' fill='none' stroke='rgba(20,184,166,0.06)' stroke-width='0.8'/%3E%3C/svg%3E");
    background-size: 56px 100px;
    animation: hexDrift 80s linear infinite;
    opacity: 0.9;
}

@keyframes hexDrift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(28px, 50px) rotate(0deg); }
}

.hero-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
    pointer-events: none;
}

.network-lines line {
    stroke: rgba(20, 184, 166, 0.25);
    stroke-width: 1;
    stroke-dasharray: 8 12;
    animation: networkFlow 20s linear infinite;
}

.network-lines line:nth-child(2) { animation-delay: -3s; }
.network-lines line:nth-child(3) { animation-delay: -6s; }
.network-lines line:nth-child(4) { animation-delay: -9s; }
.network-lines line:nth-child(5) { animation-delay: -12s; }
.network-lines line:nth-child(6) { animation-delay: -2s; }
.network-lines line:nth-child(7) { animation-delay: -5s; }
.network-lines line:nth-child(8) { animation-delay: -8s; }
.network-lines line:nth-child(9) { animation-delay: -11s; }

@keyframes networkFlow {
    0% { stroke-dashoffset: 0; opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { stroke-dashoffset: -200; opacity: 0.3; }
}

.network-nodes circle {
    fill: rgba(20, 184, 166, 0.5);
    animation: nodePulse 4s ease-in-out infinite;
}

.network-nodes circle:nth-child(odd) { animation-delay: -2s; }
.network-nodes circle:nth-child(3n) { fill: rgba(245, 158, 11, 0.4); }

@keyframes nodePulse {
    0%, 100% { r: 4; opacity: 0.4; }
    50% { r: 6; opacity: 0.8; }
}

.lab-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.lab-float {
    position: absolute;
    color: rgba(20, 184, 166, 0.55);
    will-change: transform;
    transition: transform 0.15s ease-out;
}

.lab-icon {
    width: 100%;
    height: 100%;
    display: block;
}

.lab-microscope {
    width: 110px;
    height: 110px;
    top: 18%;
    left: 8%;
    color: rgba(20, 184, 166, 0.5);
    animation: floatMicroscope 12s ease-in-out infinite;
}

.lab-scan-ring {
    position: absolute;
    top: 38%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 1px solid rgba(20, 184, 166, 0.4);
    border-radius: 50%;
    animation: scanPulse 3s ease-out infinite;
}

.lab-scan-ring-2 {
    animation-delay: 1.5s;
}

@keyframes scanPulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

@keyframes floatMicroscope {
    0%, 100% { transform: translate(0, 0) rotate(-3deg); }
    50% { transform: translate(12px, -18px) rotate(3deg); }
}

.lab-dna-1 {
    width: 55px;
    height: 85px;
    top: 12%;
    right: 12%;
    color: rgba(20, 184, 166, 0.35);
    animation: dnaFloatA 22s ease-in-out infinite;
}

.lab-dna-2 {
    width: 40px;
    height: 62px;
    bottom: 22%;
    left: 18%;
    color: rgba(245, 158, 11, 0.25);
    animation: dnaFloatB 18s ease-in-out infinite;
}

@keyframes dnaFloatA {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-8px, 12px) rotate(90deg); }
    50% { transform: translate(5px, -10px) rotate(180deg); }
    75% { transform: translate(10px, 8px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes dnaFloatB {
    0% { transform: translate(0, 0) rotate(360deg); }
    50% { transform: translate(12px, -15px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.lab-bacteria-1 {
    width: 72px;
    height: 28px;
    top: 55%;
    left: 5%;
    color: rgba(34, 197, 94, 0.45);
    animation: bacteriaSwim 8s ease-in-out infinite;
}

.lab-bacteria-2 {
    width: 52px;
    height: 52px;
    top: 28%;
    left: 42%;
    color: rgba(74, 222, 128, 0.35);
    animation: bacteriaWiggle 6s ease-in-out infinite;
}

.lab-bacteria-3 {
    width: 58px;
    height: 22px;
    bottom: 18%;
    right: 22%;
    color: rgba(34, 197, 94, 0.4);
    animation: bacteriaSwimTilt 10s ease-in-out infinite reverse;
}

@keyframes bacteriaSwimTilt {
    0%, 100% { transform: translateX(0) rotate(35deg); }
    25% { transform: translateX(25px) rotate(40deg); }
    75% { transform: translateX(-15px) rotate(30deg); }
}

@keyframes bacteriaSwim {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(25px) rotate(5deg); }
    75% { transform: translateX(-15px) rotate(-5deg); }
}

@keyframes bacteriaWiggle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.08) rotate(8deg); }
    75% { transform: scale(0.95) rotate(-8deg); }
}

.lab-cell-1 {
    width: 38px;
    height: 38px;
    top: 42%;
    right: 6%;
    color: rgba(239, 68, 68, 0.4);
    animation: cellFloat 9s ease-in-out infinite;
}

.lab-cell-2 {
    width: 28px;
    height: 28px;
    top: 68%;
    left: 28%;
    color: rgba(248, 113, 113, 0.35);
    animation: cellFloat 11s ease-in-out infinite reverse;
}

.lab-cell-3 {
    width: 22px;
    height: 22px;
    top: 20%;
    left: 62%;
    color: rgba(239, 68, 68, 0.3);
    animation: cellFloat 7s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes cellFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -20px); }
    66% { transform: translate(-10px, 10px); }
}

.lab-flask {
    width: 52px;
    height: 65px;
    bottom: 15%;
    right: 8%;
    color: rgba(20, 184, 166, 0.45);
    animation: flaskBob 7s ease-in-out infinite;
}

@keyframes flaskBob {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.lab-bubble {
    position: absolute;
    background: rgba(20, 184, 166, 0.5);
    border-radius: 50%;
    animation: bubbleRise 3s ease-in infinite;
}

.lab-bubble-1 {
    width: 6px;
    height: 6px;
    bottom: 30%;
    left: 35%;
    animation-delay: 0s;
}

.lab-bubble-2 {
    width: 4px;
    height: 4px;
    bottom: 25%;
    left: 50%;
    animation-delay: 1s;
}

.lab-bubble-3 {
    width: 5px;
    height: 5px;
    bottom: 28%;
    left: 42%;
    animation-delay: 2s;
}

@keyframes bubbleRise {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    100% { transform: translateY(-40px) scale(0.3); opacity: 0; }
}

.lab-molecule-1 {
    width: 70px;
    height: 70px;
    bottom: 35%;
    left: 3%;
    color: rgba(20, 184, 166, 0.3);
    animation: moleculeRotate 20s linear infinite;
}

.lab-molecule-2 {
    width: 50px;
    height: 50px;
    top: 38%;
    right: 28%;
    color: rgba(245, 158, 11, 0.25);
    animation: moleculeRotate 15s linear infinite reverse;
}

@keyframes moleculeRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(20, 184, 166, 0.6);
    border-radius: 50%;
    animation: particleDrift linear infinite;
    box-shadow: 0 0 6px rgba(20, 184, 166, 0.4);
}

.hero-particle:nth-child(3n) {
    background: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.3);
}

.hero-particle:nth-child(5n) {
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
}

@keyframes particleDrift {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-20px) translateX(30px); opacity: 0; }
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, rgba(6, 10, 20, 0.7) 100%);
    pointer-events: none;
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.section {
    position: relative;
    overflow: hidden;
}

.section .container {
    position: relative;
    z-index: 2;
}

.section-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.section-bg-about {
    background:
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(13, 148, 136, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 10% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
}

.section-bg-cell {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(239, 68, 68, 0.12), rgba(239, 68, 68, 0.04) 60%, transparent 70%);
    animation: sectionCellFloat 18s ease-in-out infinite;
}

.section-bg-cell::after {
    content: '';
    position: absolute;
    inset: 25%;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.08);
}

.section-bg-cell-1 {
    width: 180px;
    height: 180px;
    top: 10%;
    left: -40px;
}

.section-bg-cell-2 {
    width: 120px;
    height: 120px;
    bottom: 15%;
    right: 5%;
    animation-delay: -6s;
}

.section-bg-cell-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: 15%;
    animation-delay: -12s;
}

@keyframes sectionCellFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -15px); }
}

.section-bg-expertise {
    background:
        linear-gradient(180deg, rgba(240, 253, 250, 0.5) 0%, transparent 30%),
        radial-gradient(ellipse 50% 40% at 0% 50%, rgba(13, 148, 136, 0.05) 0%, transparent 60%);
}

.section-bg-dna {
    position: absolute;
    width: 90px;
    height: 140px;
    color: rgba(13, 148, 136, 0.07);
    top: 8%;
    right: 3%;
    animation: sectionDnaFloat 30s linear infinite;
}

.section-bg-dna-2 {
    width: 60px;
    height: 95px;
    bottom: 10%;
    left: 5%;
    color: rgba(13, 148, 136, 0.05);
    animation: sectionDnaFloat 40s linear infinite reverse;
}

@keyframes sectionDnaFloat {
    0% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(180deg) translateY(20px); }
    100% { transform: rotate(360deg) translateY(0); }
}

.section-bg-articles {
    background:
        radial-gradient(ellipse 45% 35% at 95% 10%, rgba(13, 148, 136, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 35% 30% at 5% 90%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
}

.section-bg-molecule {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='6' fill='%230d9488'/%3E%3Ccircle cx='20' cy='30' r='4' fill='%230d9488'/%3E%3Ccircle cx='80' cy='30' r='4' fill='%230d9488'/%3E%3Ccircle cx='25' cy='75' r='3' fill='%230d9488'/%3E%3Ccircle cx='78' cy='72' r='3' fill='%230d9488'/%3E%3Cline x1='50' y1='50' x2='20' y2='30' stroke='%230d9488' stroke-width='1.5'/%3E%3Cline x1='50' y1='50' x2='80' y2='30' stroke='%230d9488' stroke-width='1.5'/%3E%3Cline x1='50' y1='50' x2='25' y2='75' stroke='%230d9488' stroke-width='1.5'/%3E%3Cline x1='50' y1='50' x2='78' y2='72' stroke='%230d9488' stroke-width='1.5'/%3E%3C/svg%3E");
    animation: moleculeBgSpin 60s linear infinite;
}

@keyframes moleculeBgSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.section-bg-timeline {
    background:
        radial-gradient(ellipse 50% 40% at 50% 0%, rgba(13, 148, 136, 0.06) 0%, transparent 60%);
}

.section-bg-petri {
    position: absolute;
    width: 280px;
    height: 280px;
    bottom: -80px;
    left: -80px;
    border-radius: 50%;
    border: 2px solid rgba(13, 148, 136, 0.08);
    background: radial-gradient(circle at 40% 40%, rgba(34, 197, 94, 0.06) 0%, transparent 50%);
    animation: petriPulse 8s ease-in-out infinite;
}

.section-bg-petri::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    top: 15%;
    left: 20%;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.05);
    animation: colonyGrow 12s ease-in-out infinite;
}

.section-bg-petri::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 30%;
    bottom: 25%;
    right: 20%;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.04);
    animation: colonyGrow 10s ease-in-out infinite reverse;
}

@keyframes petriPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.03); opacity: 1; }
}

@keyframes colonyGrow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

.article-art {
    background: linear-gradient(145deg, #0c1222 0%, #0f2830 50%, #0a2028 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-art-hematology,
.article-art-biochemistry,
.article-art-quality {
    background: linear-gradient(145deg, #0c1222 0%, #0f2830 50%, #0a2028 100%);
}
.article-art-microbiology {
    background: linear-gradient(160deg, #071714 0%, #0d2822 100%);
}
.article-art-genetics {
    background: linear-gradient(160deg, #110e24 0%, #1c183b 100%);
}

.article-art-cells {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 35%, rgba(239, 68, 68, 0.35) 0%, rgba(239, 68, 68, 0.15) 8%, transparent 9%),
        radial-gradient(circle at 55% 25%, rgba(248, 113, 113, 0.3) 0%, rgba(248, 113, 113, 0.12) 7%, transparent 8%),
        radial-gradient(circle at 75% 55%, rgba(239, 68, 68, 0.28) 0%, rgba(239, 68, 68, 0.1) 9%, transparent 10%),
        radial-gradient(circle at 35% 70%, rgba(248, 113, 113, 0.25) 0%, transparent 8%),
        radial-gradient(circle at 65% 75%, rgba(239, 68, 68, 0.22) 0%, transparent 7%),
        radial-gradient(circle at 85% 30%, rgba(248, 113, 113, 0.2) 0%, transparent 6%);
    animation: cellsDrift 15s ease-in-out infinite;
}

.article-art-cells::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 19px,
        rgba(20, 184, 166, 0.04) 19px,
        rgba(20, 184, 166, 0.04) 20px
    ),
    repeating-linear-gradient(
        90deg,
        transparent,
        transparent 19px,
        rgba(20, 184, 166, 0.04) 19px,
        rgba(20, 184, 166, 0.04) 20px
    );
}

@keyframes cellsDrift {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.article-art-biochemistry {
    background: linear-gradient(160deg, #0a1628 0%, #0f2035 100%);
}

.article-art-chart {
    position: absolute;
    inset: 24px 24px 40px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(20, 184, 166, 0.2);
}

.article-art-chart::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1px;
    height: 100%;
    background: rgba(20, 184, 166, 0.2);
}

.article-art-biochemistry .article-art-chart {
    background: none;
}

.article-art-biochemistry .article-art-chart::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 16px;
    right: 0;
    height: calc(100% - 16px);
    background:
        linear-gradient(to top, rgba(20, 184, 166, 0.5) 0%, rgba(20, 184, 166, 0.5) 100%) 0% 100% / 14% 45% no-repeat,
        linear-gradient(to top, rgba(245, 158, 11, 0.45) 0%, rgba(245, 158, 11, 0.45) 100%) 18% 100% / 14% 70% no-repeat,
        linear-gradient(to top, rgba(20, 184, 166, 0.4) 0%, rgba(20, 184, 166, 0.4) 100%) 36% 100% / 14% 55% no-repeat,
        linear-gradient(to top, rgba(245, 158, 11, 0.35) 0%, rgba(245, 158, 11, 0.35) 100%) 54% 100% / 14% 85% no-repeat,
        linear-gradient(to top, rgba(20, 184, 166, 0.45) 0%, rgba(20, 184, 166, 0.45) 100%) 72% 100% / 14% 60% no-repeat,
        linear-gradient(to top, rgba(245, 158, 11, 0.4) 0%, rgba(245, 158, 11, 0.4) 100%) 90% 100% / 14% 40% no-repeat;
    border-radius: 4px 4px 0 0;
    animation: chartPulse 4s ease-in-out infinite;
}

@keyframes chartPulse {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; }
}

.article-art-quality {
    background: linear-gradient(145deg, #0c1222 0%, #102a30 100%);
}

.article-art-badge {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 3px solid rgba(245, 158, 11, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgeRotate 20s linear infinite;
}

.article-art-badge::before {
    content: 'ISO';
    font-size: 1.125rem;
    font-weight: 800;
    color: rgba(245, 158, 11, 0.7);
    letter-spacing: 0.05em;
}

.article-art-badge::after {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px dashed rgba(20, 184, 166, 0.25);
    border-radius: 50%;
    animation: badgeRotate 30s linear infinite reverse;
}

@keyframes badgeRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.article-card:hover .article-art-cells {
    animation-duration: 8s;
}

.article-card:hover .article-art-badge {
    border-color: rgba(245, 158, 11, 0.8);
}

.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 40% 60% at 10% 100%, rgba(13, 148, 136, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 30% 40% at 90% 0%, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .lab-microscope {
        width: 80px;
        height: 80px;
        top: 10%;
        left: 4%;
    }

    .lab-dna-1 {
        width: 40px;
        height: 62px;
        right: 5%;
    }

    .lab-flask,
    .lab-molecule-2 {
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .lab-microscope,
    .lab-molecule-1,
    .lab-molecule-2,
    .lab-flask {
        display: none;
    }

    .lab-bacteria-1,
    .lab-bacteria-3 {
        opacity: 0.5;
    }

    .hero-network {
        opacity: 0.2;
    }

    .section-bg-dna,
    .section-bg-petri {
        opacity: 0.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-hex-grid,
    .lab-float,
    .lab-scan-ring,
    .hero-particle,
    .network-lines line,
    .network-nodes circle,
    .section-bg-cell,
    .section-bg-dna,
    .section-bg-molecule,
    .section-bg-petri,
    .article-art-cells,
    .article-art-badge {
        animation: none !important;
    }

    .lab-float {
        transition: none !important;
    }
}
