/* ---------- MEDICAL HERO (SCROLL CONTROLLED) ---------- */
.medical-hero {
    position: relative;
    /* Height creates the "scroll track" length */
    height: 350vh;
    width: 100%;
    background: var(--secondary-color);
}

.medical-sticky-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    /* Enable 3D effects */
}

.medical-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-out, transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1), clip-path 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scale(1.1);
    /* Removed brightness filter for brighter background */
    filter: brightness(1);
    clip-path: circle(0% at 50% 50%);
    /* Aperture closed */
    z-index: 1;
}

.hero-image.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    clip-path: circle(150% at 50% 50%);
    /* Aperture open */
}

/* Vignette for cinematic feel */
.medical-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 60%, rgba(10, 14, 39, 0.4) 120%);
    /* Reduced darkness */
    z-index: 4;
    pointer-events: none;
    opacity: 0.4;
    /* Significantly reduced opacity */
}

/* Overlay for Tech/Medical Feel */
.medical-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 60%, var(--secondary-color) 100%);
    /* Lightened gradient */
    z-index: 3;
    pointer-events: none;
    opacity: 0.2;
    /* Significantly reduced opacity */
}





/* ---------- TEXT CONTENT ---------- */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 30px;
}

.hero-text-item {
    display: none;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(15px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-text-item.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.hero-text-item h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* .text-white is standard white */
.text-white {
    color: #ffffff;
}

.text-highlight {
    color: var(--primary-color);
    background: -webkit-linear-gradient(45deg, var(--primary-color), #ffffff 80%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text-item p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.6;
}

/* Hero Action Buttons Scroll Animation */
.hero-action-buttons {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-action-buttons.show {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .medical-hero {
        height: 300vh;
        /* slightly shorter on mobile */
    }

    .hero-text-item h1 {
        font-size: 2.5rem;
    }

    .hero-text-item p {
        font-size: 1.1rem;
    }
}