/* ========================================
   HERO ADVANCED ABSTRACT BACKGROUND
   ----------------------------------------
   Theme: Medical & Wellness, DNA, Nature
   Palette: Deep Green, Vibrant Orange, Soft Sage
   ======================================== */

.hero-dna-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, #ffffff 0%, #f4fcf4 90%);
    overflow: hidden;
}

/* Organic blobs moving */
.hero-dna-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blob-float 20s infinite alternate ease-in-out;
}

.hero-dna-blob:nth-child(1) {
    width: 600px;
    height: 600px;
    background: #eef7eb;
    /* Primary-100 (Light Green) */
    top: -100px;
    right: -100px;
    animation-duration: 25s;
}

.hero-dna-blob:nth-child(2) {
    width: 500px;
    height: 500px;
    background: #dcebd6;
    /* Primary-200 (Sage Green Light) */
    bottom: -50px;
    left: -50px;
    animation-duration: 30s;
    animation-delay: -5s;
}

.hero-dna-blob:nth-child(3) {
    width: 400px;
    height: 400px;
    background: #fff8f1;
    /* Secondary-50 (Very Light Orange) */
    top: 40%;
    left: 40%;
    animation-duration: 28s;
    animation-delay: -10s;
}

/* DNA Helix Pattern Simulation using SVG Background */
/* Updated fill color to Soft Sage (#9fb294) */
.hero-dna-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239fb294' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
    animation: pattern-slide 120s linear infinite;
}

/* Floating Elements (Simulating Molecules) */
.molecule {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    animation: molecule-float 15s infinite ease-in-out;
}

.molecule::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    /* Gradient: Orange (#df8236) to Deep Green (#5b8145) */
    background: linear-gradient(135deg, #df8236, #5b8145);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
}

.molecule:nth-child(4) {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.molecule:nth-child(5) {
    width: 50px;
    height: 50px;
    bottom: 30%;
    left: 10%;
    animation-delay: -5s;
}

.molecule:nth-child(6) {
    width: 40px;
    height: 40px;
    top: 15%;
    left: 20%;
    animation-delay: -10s;
}

.molecule:nth-child(7) {
    width: 60px;
    height: 60px;
    bottom: 15%;
    right: 25%;
    animation-delay: -7s;
}

/* DNA Strain SVG Animation (Abstract Line) */
/* Stroke color updated to Deep Green (#5b8145) */
.dna-strand {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='800' height='800' viewBox='0 0 800 800' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%235b8145' stroke-width='1.5' stroke-opacity='0.2'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126 598 79 414 -17 218 173 120 422 -41 385 242 195 442 5 726 198 834 475 888 775 793 726 590 537 357 513 145 619 459 293 255'/%3E%3Cpath d='M715 868L193 833 -1 685 141 578 78 770 198 902 467 925 769 825 683 585 540 379 618 185 709 380 432 236 -19 122 177 -87 400 -7 405 230 460 523 711 630 839 494 819 231 694 54 361 -46 220 188 126 319'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    opacity: 0.8;
    animation: strand-pulse 10s infinite alternate ease-in-out;
}

/* Animations Keyframes (unchanged) */
@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

@keyframes pattern-slide {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100% 100%;
    }
}

@keyframes molecule-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes strand-pulse {
    0% {
        transform: scale(1) translateX(0);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.05) translateX(-20px);
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .dna-strand {
        opacity: 0.3;
        width: 100%;
        background-position: center;
    }

    .hero-dna-blob {
        opacity: 0.4;
    }
}