/* ==========================================
   RESET & BASE
========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --dark-blue: #005b7c;
    --light-blue: #0092d2;
    --white: #ffffff;
    --grey-light: #f4f7fa;
    --grey-mid: #e2eaf0;
    --grey-text: #5a6a78;
    --dark-footer: #0c1c27;
    --dark: #1a2535;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

.container-home{
    max-width: 1180px;
    padding: 120px 0 0 100px;
}

/* ==========================================
   BUTTONS
========================================== */
.btn {
    display: inline-block;
    padding: 13px 34px;
    border-radius: 50px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.93rem;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: all 0.28s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--light-blue);
    color: var(--white);
}
.btn-primary:hover {
    background-color: #007ab8;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 146, 210, 0.32);
}

.btn-ghost {
    background-color: transparent;
    color: rgba(255,255,255,0.88);
    border-color: rgba(255,255,255,0.38);
}
.btn-ghost:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: rgba(255,255,255,0.65);
    transform: translateY(-2px);
}

.btn-white {
    background-color: var(--white);
    color: var(--dark-blue);
    font-weight: 600;
}
.btn-white:hover {
    background-color: var(--grey-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.18);
}

/* ==========================================
   TOPBAR
========================================== */
.topbar {
    width: 100%;
    background-color: var(--dark-footer);
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar span {
    font-size: 0.76rem;
    color: rgba(180,205,220,0.6);
    letter-spacing: 0.3px;
}

.topbar-contact a {
    font-size: 0.76rem;
    color: rgba(180,205,220,0.75);
    text-decoration: none;
    transition: color 0.2s;
}
.topbar-contact a:hover {
    color: var(--light-blue);
}

/* ==========================================
   NAVIGATION
========================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 24px rgba(0,0,0,0.25);
    transition: padding 0.3s;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 90px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.navbar.scrolled .nav-logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-links a {
    color: var(--dark-footer);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.2s;
    display: block;
}
.nav-links a:hover {
    color: var(--white);
    background-color: rgba(255,255,255,0.1);
}

.nav-links .nav-cta a {
    background-color: var(--light-blue);
    color: var(--white);
    padding: 9px 22px;
    border-radius: 50px;
    font-weight: 500;
}
.nav-links .nav-cta a:hover {
    background-color: #007ab8;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ==========================================
   HERO
========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--dark-blue);
    overflow-x: clip;
}

.hero-microscope {
    position: absolute;
    bottom: -150px;
    right: 20%;
    height: 600px;
    width: auto;
    z-index: 4;
    pointer-events: none;
    filter: drop-shadow(0 24px 48px rgba(0, 91, 124, 0.25));
}

/* Dot grid pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Glow orbs */
.hero-glow-1 {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(0, 146, 210, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-glow-2 {
    position: absolute;
    bottom: -80px;
    left: 10%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(0, 91, 124, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Right panel (image area) */
.hero-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44%;
    display: flex;
    align-items: stretch;
}
.hero-panel-inner {
    flex: 1;
    background: linear-gradient(160deg, rgba(0,146,210,0.12) 0%, rgba(0,91,124,0.06) 100%);
    border-left: 1px solid rgba(0,146,210,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 40px 40px 40px;
}

/* Decorative microscope illustration in right panel */
.hero-illustration {
    width: 100%;
    max-width: 320px;
    opacity: 0.12;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 146, 210, 0.18);
    border: 1px solid rgba(0, 146, 210, 0.38);
    color: #80d0f5;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 26px;
}
.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--light-blue);
    border-radius: 50%;
    display: block;
}

.hero h1 {
    font-size: clamp(2.1rem, 3.8vw, 3.3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.18;
    margin-bottom: 22px;
    letter-spacing: -0.5px;
}
.hero h1 .accent { color: var(--light-blue); }

.hero-lead {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.72);
    margin-bottom: 38px;
    max-width: 520px;
    font-weight: 300;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 250px;
    line-height: 0;
    z-index: 3;
    pointer-events: none;
}

.hero-curve svg {
    display: block;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
}

@media (max-width: 900px) {
    .hero-curve { height: 150px; }
}

@media (max-width: 768px) {
    .hero-curve { height: 110px; }
}

/* Scroll cue */
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.35);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
}
.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.35; transform: scaleY(1); }
    50% { opacity: 0.7; transform: scaleY(0.7); }
}

/* ==========================================
   ABOUT SECTION
========================================== */
.section-about {
    padding: 220px 0 108px;
    background-color: var(--white);
}

.section-about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.section-about-content .highlight-pill {
    justify-content: center;
}

.section-about-content .section-body {
    margin-left: auto;
    margin-right: auto;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.two-col.flip {
    direction: rtl;
}
.two-col.flip > * {
    direction: ltr;
}

.eyebrow {
    display: inline-block;
    color: var(--light-blue);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.22;
    margin-bottom: 18px;
}

.section-body {
    color: var(--grey-text);
    font-size: 0.96rem;
    line-height: 1.85;
    margin-bottom: 14px;
}
.section-body:last-of-type {
    margin-bottom: 30px;
}

.highlight-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background-color: #e6f5ff;
    color: var(--dark-blue);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    border-left: 3px solid var(--light-blue);
    line-height: 1.3;
}

/* Image frame with decorative border */
.img-frame {
    position: relative;
}
.img-frame::after {
    content: '';
    position: absolute;
    bottom: -14px;
    right: -14px;
    left: 14px;
    top: 14px;
    /* border: 2px solid rgba(0, 146, 210, 0.22); */
    border-radius: 14px;
    z-index: 0;
    pointer-events: none;
}

.img-box {
    width: 100%;
    border-radius: 12px;
    display: block;
    position: relative;
    z-index: 1;
    overflow: hidden;
}
.img-box-inner {
    width: 100%;
    /* aspect-ratio: 4/3; */
    background: linear-gradient(145deg, #003e56 0%, #005b7c 45%, #0087c4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.img-box-inner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.img-box-inner.tall { aspect-ratio: 3/4; }

.img-placeholder-text {
    color: rgba(255,255,255,0.2);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

/* Floating badge */
.float-badge {
    position: absolute;
    bottom: -18px;
    left: -18px;
    background: var(--white);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}
.float-badge-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--dark-blue), var(--light-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.float-badge-icon svg { width: 20px; height: 20px; fill: white; }
.float-badge-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dark-blue);
}
.float-badge-text span {
    font-size: 0.72rem;
    color: var(--grey-text);
}

/* ==========================================
   FOUNDER SECTION
========================================== */
.section-founder {
    padding: 108px 0;
    background-color: var(--grey-light);
    position: relative;
    overflow: hidden;
}
/* Subtle watermark dots */
.section-founder::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 480px;
    height: 480px;
    background-image: radial-gradient(circle, rgba(0,146,210,0.07) 2px, transparent 2px);
    background-size: 22px 22px;
    pointer-events: none;
    border-radius: 50%;
}

.qualifications-list {
    list-style: none;
    margin: 18px 0 28px;
}
.qualifications-list li {
    padding: 10px 0 10px 18px;
    position: relative;
    color: var(--grey-text);
    font-size: 0.94rem;
    border-bottom: 1px solid var(--grey-mid);
    line-height: 1.5;
}
.qualifications-list li:last-child { border-bottom: none; }
.qualifications-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 7px;
    height: 7px;
    background-color: var(--light-blue);
    border-radius: 50%;
}

/* ==========================================
   PATHOLOGY CTA (dark band)
========================================== */
.section-cta-dark {
    padding-top: 100px;
    background-color: var(--dark-blue);
    background-image: url('images/cells.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-curve-bottom {
    position: relative;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
    margin-top: -1px;
}

.cta-curve-bottom svg {
    display: block;
    width: 100%;
    height: 120px;
    transform: rotateY(180deg);
}
.section-cta-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 5, 15, 0.5);
    pointer-events: none;
    z-index: 1;
}
.section-cta-dark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 350px;
    background: radial-gradient(ellipse, rgba(0,146,210,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.section-cta-dark .container {
    position: relative;
    z-index: 2;
    max-width: 720px;
}
.section-cta-dark h2 {
    font-size: clamp(1.75rem, 2.6vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 18px;
    line-height: 1.2;
}
.section-cta-dark p {
    color: #fff;
    font-size: 0.97rem;
    line-height: 1.88;
    margin-bottom: 36px;
    font-weight: 300;
}

/* ==========================================
   SERVICES SECTION
========================================== */
.section-services {
    padding: 108px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-header h2 {
    font-size: 45px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 14px;
}
.section-header p {
    color: var(--grey-text);
    max-width: 580px;
    margin: 0 auto;
    font-size: 0.96rem;
    line-height: 1.85;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.service-card {
    background-color: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(0, 91, 124, 0.08);
    border: 1px solid var(--grey-mid);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 44px rgba(0, 91, 124, 0.18);
}

.service-card-img {
    height: 214px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}
.service-card-img.histo {
    background-color: #002f42;
}
.service-card-img.cyto {
    background-color: #003e5e;
}

/* Dark gradient overlay over the photo */
.service-card-img-overlay {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(145deg, rgba(0,47,66,0.78) 0%, rgba(0,91,124,0.72) 50%, rgba(0,120,168,0.65) 100%); */
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* Dot texture on top of overlay */
.service-card-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 18px 18px;
    z-index: 1;
}

.service-icon-wrap {
    width: 74px;
    height: 74px;
    background-color: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(4px);
}
.service-icon-wrap svg {
    width: 34px;
    height: 34px;
    fill: white;
}

.service-card-body {
    padding: 28px 30px 32px;
    border-top: 3px solid var(--light-blue);
}
.service-card-body h3 {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 10px;
}
.service-card-body p {
    color: var(--grey-text);
    font-size: 0.91rem;
    line-height: 1.82;
    margin-bottom: 22px;
}

.link-cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--light-blue);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: gap 0.22s, color 0.22s;
}
.link-cta:hover {
    gap: 10px;
    color: var(--dark-blue);
}
.link-cta svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* ==========================================
   FOOTER
========================================== */
.footer {
    background-color: var(--dark-footer);
    background-image: url('images/footer-img.jpg');
    background-size: cover;
    background-position: center;
    padding: 72px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 5, 15, 0.95);
    pointer-events: none;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 52px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo-wrap {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px 16px;
    display: inline-block;
    margin-bottom: 18px;
}
.footer-logo-wrap img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-tagline {
    font-size: 0.87rem;
    color: rgba(180,205,220,0.72);
    line-height: 1.8;
}

.footer-col-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--light-blue);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,146,210,0.25);
}

.footer-nav-list {
    list-style: none;
}
.footer-nav-list a {
    display: block;
    color: rgba(180,205,220,0.75);
    text-decoration: none;
    font-size: 0.89rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: color 0.2s, padding-left 0.2s;
}
.footer-nav-list a:hover {
    color: var(--light-blue);
    padding-left: 8px;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.contact-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(0,146,210,0.14);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.contact-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--light-blue);
}
.contact-text {
    font-size: 0.86rem;
    color: rgba(180,205,220,0.78);
    line-height: 1.75;
}
.contact-text a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-text a:hover { color: var(--light-blue); }

.footer-bottom {
    padding: 22px 0;
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(180,205,220,0.38);
}

/* ==========================================
   SCROLL ANIMATIONS
========================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 900px) {
    .hero-panel { display: none; }
    .float-badge { display: none; }

    .two-col,
    .two-col.flip {
        grid-template-columns: 1fr;
        gap: 44px;
        direction: ltr;
    }
    .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    .navbar { top: 0 !important; }

    .nav-links {
        display: none;
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        background-color: #004d69;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        z-index: 999;
        padding: 12px 0;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { padding: 12px 24px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .nav-links .nav-cta a { margin: 12px 24px; border-radius: 50px; text-align: center; }
    .hamburger { display: flex; }

    .hero { padding: 110px 0 80px; min-height: auto; }
    .hero-microscope { display: none; }
    .section-about, .section-founder, .section-services { padding: 72px 0; }
    .section-cta-dark { padding: 72px 0; }
    .hero-scroll { display: none; }
}
