/* =========================================================
   ROOT
========================================================= */

:root {

    --red: #ed1c24;
    --red-dark: #c81018;
    --red-light: #fff1f1;

    --blue: #123b91;
    --blue-dark: #092b70;
    --blue-light: #eaf1ff;

    --white: #ffffff;

    --text: #14213d;
    --muted: #667085;

    --bg: #f7faff;
    --border: #e8edf5;

    --shadow:
        0 20px 50px rgba(19, 59, 145, 0.10);

    --shadow-large:
        0 35px 80px rgba(12, 45, 110, 0.18);

    --radius: 22px;

    --transition: all 0.35s ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family: "Plus Jakarta Sans", "Inter", sans-serif;

    background: var(--white);

    color: var(--text);

    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {

    width: min(1180px, 92%);

    margin: auto;
}


/* =========================================================
   PRELOADER
========================================================= */

#preloader {

    position: fixed;

    inset: 0;

    background: var(--white);

    z-index: 9999;

    display: grid;

    place-items: center;

    transition: opacity .5s ease,
                visibility .5s ease;
}

#preloader.hide {

    opacity: 0;
    visibility: hidden;
}

.loader {

    text-align: center;
}

.loader-cross {

    position: relative;

    width: 60px;
    height: 60px;

    margin: auto auto 10px;

    animation: loaderRotate 1.5s infinite ease-in-out;
}

.loader-cross span {

    position: absolute;

    background: var(--red);

    border-radius: 8px;
}

.loader-cross span:first-child {

    width: 60px;
    height: 20px;

    top: 20px;
    left: 0;
}

.loader-cross span:last-child {

    width: 20px;
    height: 60px;

    left: 20px;
    top: 0;
}

.loader p {

    font-size: 22px;

    font-weight: 800;

    color: var(--blue);
}

@keyframes loaderRotate {

    50% {
        transform: rotate(180deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



/* =========================================================
   HEADER
========================================================= */

.header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(255,255,255,.88);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(18,59,145,.06);

    transition: var(--transition);
}

.header.scrolled {

    box-shadow: 0 10px 30px rgba(10,35,80,.08);
}

.nav-container {

    height: 82px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.logo {

    display: flex;

    align-items: center;

    gap: 10px;
}

.logo img {

    width: 54px;
    height: 54px;

    object-fit: contain;

    border-radius: 50%;
}

.logo-text {

    display: flex;

    flex-direction: column;
}

.logo-text strong {

    font-size: 16px;

    line-height: 1.1;

    color: var(--blue);

    font-weight: 800;
}

.logo-text span {

    font-size: 9px;

    margin-top: 2px;

    color: var(--muted);

    font-weight: 700;

    text-transform: uppercase;
}


.navbar {

    display: flex;

    align-items: center;

    gap: 28px;
}

.nav-link {

    position: relative;

    font-size: 13px;

    font-weight: 600;

    color: #333d51;

    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {

    color: var(--red);
}

.nav-link.active::after {

    content: "";

    position: absolute;

    width: 22px;
    height: 2px;

    background: var(--red);

    left: 50%;

    bottom: -10px;

    transform: translateX(-50%);
}


.nav-appointment {

    display: flex;

    align-items: center;

    gap: 10px;

    background: var(--red);

    color: white;

    padding: 14px 20px;

    border-radius: 9px;

    font-size: 12px;

    font-weight: 700;

    box-shadow: 0 10px 25px rgba(237,28,36,.25);

    transition: var(--transition);
}

.nav-appointment:hover {

    background: var(--red-dark);

    transform: translateY(-2px);
}

.mobile-toggle {

    display: none;

    width: 42px;
    height: 42px;

    background: var(--blue-light);

    color: var(--blue);

    border-radius: 10px;

    font-size: 18px;
}



/* =========================================================
   HERO
========================================================= */

.hero {

    min-height: 790px;

    padding-top: 130px;

    position: relative;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 80% 35%,
            rgba(42,104,220,.10),
            transparent 35%
        ),

        linear-gradient(
            135deg,
            #ffffff,
            #f6f9ff
        );
}

.hero-grid {

    position: absolute;

    inset: 0;

    opacity: .3;

    background-image:

        linear-gradient(
            rgba(18,59,145,.035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(18,59,145,.035) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent
    );
}

.hero-container {

    min-height: 630px;

    display: grid;

    grid-template-columns: 1fr 1.15fr;

    align-items: center;

    gap: 20px;
}

.hero-content {

    position: relative;

    z-index: 5;
}

.eyebrow {

    display: flex;

    align-items: center;

    gap: 10px;

    color: var(--red);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.2px;

    margin-bottom: 18px;
}

.eyebrow span {

    width: 28px;
    height: 2px;

    background: var(--red);
}

.hero h1 {

    max-width: 600px;

    font-size: clamp(42px, 5vw, 70px);

    line-height: 1.05;

    letter-spacing: -3px;

    color: var(--blue-dark);

    margin-bottom: 25px;
}

.hero h1 strong {

    display: block;

    color: var(--red);
}

.hero-content > p {

    max-width: 510px;

    color: var(--muted);

    line-height: 1.8;

    font-size: 15px;

    margin-bottom: 30px;
}


.hero-features {

    display: flex;

    gap: 18px;

    padding: 16px;

    max-width: 600px;

    background: rgba(255,255,255,.82);

    border-radius: 18px;

    box-shadow: var(--shadow);

    border: 1px solid rgba(18,59,145,.06);

    margin-bottom: 30px;
}

.hero-feature {

    display: flex;

    align-items: center;

    gap: 10px;

    flex: 1;
}

.feature-icon {

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    background: var(--red-light);

    color: var(--red);

    border-radius: 10px;

    font-size: 16px;
}

.feature-icon.blue {

    background: var(--blue-light);

    color: var(--blue);
}

.hero-feature strong {

    display: block;

    font-size: 11px;

    color: var(--text);
}

.hero-feature span {

    display: block;

    color: var(--muted);

    font-size: 8px;

    margin-top: 3px;
}


.hero-buttons {

    display: flex;

    gap: 14px;
}

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 16px 23px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 700;

    transition: var(--transition);
}

.btn-primary {

    color: white;

    background: var(--red);

    box-shadow: 0 15px 30px rgba(237,28,36,.22);
}

.btn-primary:hover {

    transform: translateY(-3px);

    background: var(--red-dark);

    box-shadow: 0 20px 40px rgba(237,28,36,.28);
}

.btn-secondary {

    background: white;

    color: var(--blue);

    box-shadow: 0 8px 25px rgba(18,59,145,.10);
}

.btn-secondary:hover {

    transform: translateY(-3px);

    color: var(--red);
}



/* =========================================================
   3D HOSPITAL
========================================================= */

.hospital-scene {

    position: relative;

    height: 570px;

    perspective: 1200px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.hospital-glow {

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background: rgba(44,104,218,.12);

    filter: blur(60px);
}

.hospital-building {

    position: relative;

    width: 440px;

    height: 370px;

    transform-style: preserve-3d;

    transform: rotateX(2deg) rotateY(-8deg);

    transition: transform .25s ease;

    z-index: 5;
}

.building-main {

    position: absolute;

    left: 55px;

    top: 25px;

    width: 310px;

    height: 300px;

    border-radius: 8px;

    background:

        linear-gradient(
            90deg,
            #f8fbff,
            #dce8f7
        );

    border: 4px solid #d5dfed;

    box-shadow:

        25px 25px 0 rgba(18,59,145,.12),

        0 40px 60px rgba(18,59,145,.22);

    transform: translateZ(20px);
}

.building-sign {

    position: absolute;

    left: 90px;

    top: -35px;

    width: 130px;

    height: 45px;

    background: white;

    border-radius: 6px;

    display: grid;

    place-items: center;

    box-shadow: 0 8px 20px rgba(0,0,0,.15);

    overflow: hidden;
}

.building-sign img {

    width: 90px;
    height: 40px;

    object-fit: contain;
}

.building-glass {

    position: absolute;

    top: 50px;
    left: 30px;

    width: 250px;
    height: 160px;

    background:

        linear-gradient(
            135deg,
            #1c73b9,
            #092d73
        );

    border: 4px solid #e6f0ff;

    padding: 12px;

    box-shadow: inset 0 0 30px rgba(255,255,255,.12);
}

.glass-row {

    height: 33.333%;

    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 8px;
}

.glass-row span {

    display: block;

    border: 1px solid rgba(255,255,255,.25);

    background: rgba(255,255,255,.12);
}

.hospital-cross {

    position: absolute;

    right: -25px;

    top: 90px;

    width: 75px;
    height: 75px;

    display: grid;

    place-items: center;

    border-radius: 18px;

    background: var(--red);

    color: white;

    font-size: 42px;

    box-shadow:

        0 12px 25px rgba(237,28,36,.3),

        inset 0 3px 0 rgba(255,255,255,.25);

    transform: translateZ(35px);
}

.building-side {

    position: absolute;

    right: 0;

    top: 47px;

    width: 100px;

    height: 280px;

    background: #d1deef;

    transform:

        rotateY(50deg)
        translateZ(-30px);

    transform-origin: left;

    border: 3px solid #becde0;

    padding: 25px 10px;
}

.side-window {

    height: 40px;

    margin-bottom: 18px;

    background: #1760a7;

    border: 3px solid #edf6ff;
}

.hospital-entrance {

    position: absolute;

    bottom: -3px;

    left: 70px;

    width: 250px;

    height: 80px;

    display: flex;

    align-items: flex-end;

    justify-content: center;

    background: #e8eff7;

    border-top: 5px solid var(--red);
}

.entrance-column {

    width: 25px;

    height: 70px;

    background: #c9d7e8;

    box-shadow: inset 3px 0 white;
}

.entrance-door {

    width: 100px;
    height: 65px;

    display: flex;

    gap: 3px;

    background: #0a3b78;

    padding: 3px;
}

.entrance-door div {

    flex: 1;

    background: linear-gradient(
        135deg,
        #5fb2e9,
        #0c508e
    );

    border: 1px solid rgba(255,255,255,.4);
}

.hospital-base {

    position: absolute;

    bottom: -35px;

    left: 0;

    width: 390px;

    height: 35px;

    background: #d3dfec;

    transform: skewX(-15deg);

    box-shadow: 0 15px 20px rgba(18,59,145,.15);
}


/* Ambulance */

.ambulance {

    position: absolute;

    bottom: 45px;

    left: 10px;

    width: 180px;

    height: 80px;

    z-index: 8;

    transform: rotateY(-5deg) rotateZ(-1deg);
}

.ambulance-body {

    position: absolute;

    bottom: 15px;

    width: 180px;

    height: 58px;

    border-radius: 8px 15px 5px 5px;

    background: white;

    border: 3px solid #d5dce5;

    box-shadow: 0 15px 25px rgba(0,0,0,.15);
}

.ambulance-window {

    position: absolute;

    right: 15px;

    top: 8px;

    width: 70px;

    height: 25px;

    background: #1672b8;

    border-radius: 3px;

    border: 2px solid white;
}

.ambulance-logo {

    position: absolute;

    left: 30px;

    top: 8px;

    width: 35px;
    height: 35px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    background: var(--red);

    color: white;
}

.ambulance-stripe {

    position: absolute;

    left: 0;

    bottom: 12px;

    width: 100%;

    height: 7px;

    background: var(--red);
}

.wheel {

    position: absolute;

    bottom: 0;

    width: 30px;
    height: 30px;

    background: #202733;

    border: 6px solid #77808d;

    border-radius: 50%;
}

.wheel-one {
    left: 25px;
}

.wheel-two {
    right: 25px;
}

.ambulance-light {

    position: absolute;

    width: 15px;
    height: 8px;

    background: var(--red);

    border-radius: 5px;

    top: 0;
    left: 70px;

    box-shadow: 0 0 15px var(--red);

    animation: ambulanceLight 1s infinite alternate;
}

@keyframes ambulanceLight {

    to {
        opacity: .35;
    }
}

.ground-shadow {

    position: absolute;

    bottom: 30px;

    width: 550px;
    height: 70px;

    background: rgba(18,59,145,.16);

    filter: blur(25px);

    border-radius: 50%;
}


/* Floating Objects */

.floating-medical {

    position: absolute;

    display: grid;

    place-items: center;

    width: 48px;
    height: 48px;

    border-radius: 14px;

    background: rgba(255,255,255,.8);

    color: var(--blue);

    box-shadow: var(--shadow);

    z-index: 4;

    animation: floatObject 4s ease-in-out infinite;
}

.medical-1 {
    top: 150px;
    right: 30%;
}

.medical-2 {
    top: 360px;
    right: 5%;
    animation-delay: 1s;
}

.medical-3 {
    bottom: 80px;
    right: 38%;
    animation-delay: 2s;
}

@keyframes floatObject {

    0%,100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}



/* =========================================================
   STATS
========================================================= */

.stats-section {

    position: relative;

    z-index: 20;

    margin-top: -35px;
}

.stats-container {

    min-height: 105px;

    display: grid;

    grid-template-columns: repeat(5,1fr);

    background: var(--blue);

    border-radius: 18px;

    color: white;

    box-shadow: 0 20px 50px rgba(18,59,145,.25);

    overflow: hidden;
}

.stat-item {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    padding: 20px;

    position: relative;
}

.stat-item:not(:last-child)::after {

    content: "";

    position: absolute;

    right: 0;

    top: 30%;

    height: 40%;

    width: 1px;

    background: rgba(255,255,255,.2);
}

.stat-icon {

    font-size: 25px;

    opacity: .9;
}

.stat-item strong {

    display: block;

    font-size: 25px;

    line-height: 1;
}

.stat-item span {

    display: block;

    font-size: 10px;

    margin-top: 6px;

    opacity: .7;
}



/* =========================================================
   SECTION
========================================================= */

.section {

    padding: 110px 0;
}

.section-label {

    display: block;

    color: var(--red);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.3px;

    margin-bottom: 12px;
}

.section-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 50px;
}

.section-heading h2,
.about-content h2,
.technology-content h2,
.patient-content h2,
.appointment-content h2 {

    font-size: clamp(32px,4vw,48px);

    line-height: 1.12;

    letter-spacing: -1.8px;

    color: var(--blue-dark);
}

.section-heading h2 span,
.about-content h2 span,
.technology-content h2 span,
.patient-content h2 span,
.appointment-content h2 span {

    color: var(--red);
}

.section-heading p {

    max-width: 540px;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.8;

    margin-top: 14px;
}

.centered {

    display: block;

    text-align: center;
}

.centered p {

    margin: 14px auto 0;
}

.outline-button {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 13px 18px;

    border: 1px solid var(--border);

    border-radius: 9px;

    font-size: 12px;

    font-weight: 700;

    color: var(--blue);

    background: white;

    box-shadow: 0 8px 20px rgba(0,0,0,.05);
}



/* =========================================================
   ABOUT
========================================================= */

.about-section {

    background: white;
}

.about-grid {

    display: grid;

    grid-template-columns: .9fr 1.1fr;

    gap: 100px;

    align-items: center;
}

.about-visual {

    height: 430px;

    position: relative;

    background:

        radial-gradient(
            circle,
            rgba(237,28,36,.08),
            transparent 60%
        );

    border-radius: 40px;
}

.card-main {

    position: absolute;

    left: 60px;
    top: 80px;

    width: 280px;

    min-height: 220px;

    padding: 30px;

    background: white;

    border-radius: 25px;

    box-shadow: var(--shadow-large);

    z-index: 4;

    transform: rotate(-5deg);

    transition: var(--transition);
}

.card-main:hover {

    transform: rotate(0) translateY(-10px);
}

.about-icon {

    width: 65px;
    height: 65px;

    display: grid;

    place-items: center;

    background: var(--red-light);

    color: var(--red);

    border-radius: 18px;

    font-size: 28px;

    margin-bottom: 20px;
}

.card-main strong {

    display: block;

    font-size: 22px;

    color: var(--blue);
}

.card-main p {

    color: var(--muted);

    font-size: 12px;

    line-height: 1.7;

    margin-top: 8px;
}

.about-circle {

    position: absolute;

    border-radius: 50%;

    border: 2px dashed rgba(18,59,145,.15);
}

.circle-one {

    width: 300px;
    height: 300px;

    top: 30px;
    right: 20px;
}

.circle-two {

    width: 190px;
    height: 190px;

    bottom: 10px;
    left: 0;

    border-color: rgba(237,28,36,.15);
}

.experience-card {

    position: absolute;

    right: 10px;

    bottom: 50px;

    padding: 22px;

    display: flex;

    gap: 12px;

    align-items: center;

    background: var(--blue);

    color: white;

    border-radius: 18px;

    box-shadow: var(--shadow);

    z-index: 5;
}

.experience-card strong {

    font-size: 36px;

    color: #fff;
}

.experience-card span {

    font-size: 11px;

    line-height: 1.5;

    opacity: .8;
}

.about-content > p {

    color: var(--muted);

    font-size: 14px;

    line-height: 1.9;

    margin-top: 20px;
}

.check-list {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin: 30px 0;
}

.check-list div {

    font-size: 12px;

    font-weight: 600;

    display: flex;

    gap: 8px;

    align-items: center;
}

.check-list i {

    color: var(--red);
}

.text-link {

    color: var(--red);

    font-size: 13px;

    font-weight: 800;

    display: inline-flex;

    gap: 10px;
}



/* =========================================================
   SERVICES
========================================================= */

.services-section {

    background: var(--bg);
}

.services-grid {

    display: grid;

    grid-template-columns: repeat(5,1fr);

    gap: 15px;
}

.service-card {

    position: relative;

    padding: 28px 22px;

    min-height: 280px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 18px;

    box-shadow: 0 10px 30px rgba(18,59,145,.05);

    overflow: hidden;

    transition: var(--transition);
}

.service-card::before {

    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    border-radius: 50%;

    background: var(--red-light);

    right: -40px;
    top: -40px;
}

.service-card:hover {

    transform: translateY(-10px);

    box-shadow: var(--shadow);

    border-color: rgba(237,28,36,.15);
}

.service-3d {

    position: relative;

    width: 65px;
    height: 65px;

    display: grid;

    place-items: center;

    border-radius: 18px;

    background: linear-gradient(
        145deg,
        #fff,
        #edf2fa
    );

    color: var(--red);

    font-size: 28px;

    box-shadow:

        8px 8px 15px rgba(18,59,145,.10),

        -5px -5px 12px white;

    margin-bottom: 20px;

    transition: var(--transition);
}

.service-card:hover .service-3d {

    transform:
        translateY(-5px)
        rotateY(15deg)
        rotateX(10deg);
}

.service-number {

    position: absolute;

    right: 20px;
    top: 25px;

    color: #dce4f2;

    font-weight: 800;

    font-size: 20px;
}

.service-card h3 {

    font-size: 17px;

    color: var(--blue);

    margin-bottom: 10px;
}

.service-card p {

    color: var(--muted);

    font-size: 11px;

    line-height: 1.7;

    margin-bottom: 20px;
}

.service-card a {

    color: var(--red);

    font-size: 11px;

    font-weight: 800;

    display: flex;

    align-items: center;

    gap: 8px;
}



/* =========================================================
   TECHNOLOGY
========================================================= */

.technology-section {

    background: white;
}

.technology-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 80px;
}

.technology-content > p {

    color: var(--muted);

    line-height: 1.8;

    font-size: 14px;

    max-width: 500px;

    margin: 20px 0;
}

.technology-list {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;
}

.technology-list div {

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 11px;

    font-weight: 700;

    color: #38465d;
}

.technology-list i {

    color: var(--red);
}

.equipment-visual {

    height: 420px;

    position: relative;

    display: grid;

    place-items: center;
}

.equipment-glow {

    position: absolute;

    width: 300px;
    height: 300px;

    background: rgba(18,59,145,.10);

    border-radius: 50%;

    filter: blur(30px);
}

.mri-machine {

    position: relative;

    width: 310px;
    height: 310px;

    transform: rotateY(-15deg) rotateX(5deg);

    transition: transform .5s ease;

    z-index: 3;
}

.equipment-visual:hover .mri-machine {

    transform:
        rotateY(15deg)
        rotateX(-5deg)
        translateY(-10px);
}

.mri-top {

    position: absolute;

    top: 20px;

    width: 270px;
    height: 170px;

    border-radius: 50%;

    background:

        linear-gradient(
            135deg,
            #f4f7fb,
            #bfcde0
        );

    border: 10px solid #d9e2ef;

    box-shadow: 20px 20px 30px rgba(18,59,145,.15);
}

.mri-ring {

    position: absolute;

    top: 55px;
    left: 45px;

    width: 180px;
    height: 180px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:

        linear-gradient(
            145deg,
            #dbe5f1,
            #9bafc8
        );

    border: 12px solid #e8eef6;

    box-shadow: inset 10px 10px 20px rgba(0,0,0,.08);
}

.mri-hole {

    width: 100px;
    height: 100px;

    border-radius: 50%;

    background:

        radial-gradient(
            circle,
            #092c65,
            #1673b7
        );

    box-shadow:
        inset 0 0 30px rgba(0,0,0,.3);
}

.mri-bed {

    position: absolute;

    bottom: 15px;

    left: 90px;

    width: 220px;

    height: 35px;

    border-radius: 8px;

    background: white;

    box-shadow: 0 15px 25px rgba(18,59,145,.18);

    transform: translateZ(30px);
}

.equipment-label {

    position: absolute;

    bottom: 10px;

    right: 20px;

    padding: 13px 17px;

    display: flex;

    gap: 10px;

    align-items: center;

    background: white;

    border-radius: 12px;

    box-shadow: var(--shadow);

    color: var(--blue);

    font-size: 10px;

    font-weight: 700;

    z-index: 5;
}



/* =========================================================
   DEPARTMENTS
========================================================= */

.departments-section {

    background: var(--bg);
}

.departments-grid {

    display: grid;

    grid-template-columns: repeat(4,1fr);

    gap: 16px;

    margin-bottom: 45px;
}

.department-card {

    text-align: center;

    padding: 28px 15px;

    background: white;

    border-radius: 17px;

    border: 1px solid var(--border);

    transition: var(--transition);
}

.department-card:hover {

    transform: translateY(-8px);

    border-color: rgba(237,28,36,.2);

    box-shadow: var(--shadow);
}

.department-icon {

    width: 65px;
    height: 65px;

    margin: auto auto 16px;

    display: grid;

    place-items: center;

    border-radius: 18px;

    background: var(--blue-light);

    color: var(--blue);

    font-size: 25px;

    transition: var(--transition);
}

.department-card:hover .department-icon {

    background: var(--red);

    color: white;

    transform: rotateY(180deg);
}

.department-card h3 {

    font-size: 14px;

    color: var(--blue);

    margin-bottom: 6px;
}

.department-card span {

    color: var(--muted);

    font-size: 9px;
}

.center-button {

    text-align: center;
}



/* =========================================================
   PATIENT PORTAL
========================================================= */

.patient-section {

    background: var(--blue);

    color: white;

    overflow: hidden;
}

.patient-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 100px;
}

.patient-content .section-label {

    color: #ff6a6f;
}

.patient-content h2 {

    color: white;
}

.patient-content > p {

    max-width: 500px;

    color: rgba(255,255,255,.68);

    font-size: 14px;

    line-height: 1.8;

    margin: 20px 0 30px;
}

.portal-features {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin-bottom: 30px;
}

.portal-features div {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 11px;

    font-weight: 600;
}

.portal-features i {

    width: 35px;
    height: 35px;

    display: grid;

    place-items: center;

    background: rgba(255,255,255,.10);

    border-radius: 9px;

    color: #fff;
}

.btn-white {

    background: white;

    color: var(--blue);

    box-shadow: none;
}

.btn-white:hover {

    color: var(--red);

    transform: translateY(-3px);
}


/* Phone */

.phone-visual {

    display: flex;

    justify-content: center;

    perspective: 1000px;
}

.phone {

    width: 260px;
    height: 510px;

    padding: 10px;

    background: #111827;

    border-radius: 38px;

    box-shadow:

        25px 35px 60px rgba(0,0,0,.25),

        inset 2px 2px 4px rgba(255,255,255,.3);

    transform: rotateY(-15deg) rotateZ(3deg);

    transition: .5s ease;
}

.phone:hover {

    transform:
        rotateY(0)
        rotateZ(0)
        translateY(-10px);
}

.phone-screen {

    width: 100%;
    height: 100%;

    border-radius: 29px;

    background: #f5f8fc;

    overflow: hidden;

    padding: 25px 15px;

    color: var(--text);
}

.phone-notch {

    position: absolute;

    width: 80px;
    height: 20px;

    background: #111827;

    border-radius: 0 0 15px 15px;

    left: 50%;

    transform: translateX(-50%);

    z-index: 2;
}

.app-header {

    display: flex;

    justify-content: space-between;

    color: var(--blue);

    font-weight: 800;

    font-size: 14px;

    margin-bottom: 30px;
}

.patient-greeting small {

    display: block;

    font-size: 9px;

    color: var(--muted);
}

.patient-greeting strong {

    display: block;

    font-size: 18px;

    margin-top: 3px;
}

.patient-card {

    margin-top: 20px;

    padding: 16px;

    background: var(--blue);

    color: white;

    border-radius: 14px;
}

.patient-card span,
.patient-card small {

    display: block;

    font-size: 8px;

    opacity: .7;
}

.patient-card strong {

    display: block;

    font-size: 12px;

    margin: 8px 0;
}

.app-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    margin-top: 20px;
}

.app-grid div {

    padding: 15px 8px;

    background: white;

    border-radius: 10px;

    text-align: center;

    box-shadow: 0 5px 15px rgba(18,59,145,.06);
}

.app-grid i {

    display: block;

    color: var(--red);

    margin-bottom: 8px;
}

.app-grid span {

    font-size: 7px;

    font-weight: 700;
}



/* =========================================================
   DOCTORS
========================================================= */

.doctors-section {

    background: white;
}

.doctors-grid {

    display: grid;

    grid-template-columns: repeat(3,1fr);

    gap: 25px;
}

.doctor-card {

    background: white;

    border-radius: 22px;

    overflow: hidden;

    border: 1px solid var(--border);

    box-shadow: 0 10px 30px rgba(18,59,145,.05);

    transition: var(--transition);
}

.doctor-card:hover {

    transform: translateY(-10px);

    box-shadow: var(--shadow);
}

.doctor-image {

    height: 270px;

    display: grid;

    place-items: center;

    position: relative;

    overflow: hidden;

    background:

        radial-gradient(
            circle at center,
            #dfeaff,
            #a9c0e4
        );
}

.doctor-two {

    background:

        radial-gradient(
            circle at center,
            #ffe7ea,
            #e5bfc5
        );
}

.doctor-three {

    background:

        radial-gradient(
            circle at center,
            #dce8ff,
            #aabfe2
        );
}

.doctor-avatar {

    width: 150px;
    height: 150px;

    border-radius: 50%;

    display: grid;

    place-items: center;

    background: #f2f6fc;

    color: var(--blue);

    font-size: 75px;

    box-shadow: 0 20px 40px rgba(18,59,145,.18);

    border: 8px solid rgba(255,255,255,.6);
}

.doctor-avatar.female {

    color: var(--red);
}

.doctor-info {

    padding: 25px;
}

.doctor-info > span {

    color: var(--red);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;
}

.doctor-info h3 {

    color: var(--blue);

    font-size: 19px;

    margin: 7px 0;
}

.doctor-info p {

    color: var(--muted);

    font-size: 11px;
}

.doctor-bottom {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 20px;

    padding-top: 15px;

    border-top: 1px solid var(--border);
}

.rating {

    color: #f6a800;

    font-size: 11px;

    font-weight: 700;
}

.doctor-bottom a {

    color: var(--red);

    font-size: 11px;

    font-weight: 800;
}



/* =========================================================
   APPOINTMENT CTA
========================================================= */

.appointment-section {

    padding: 80px 0;

    background:

        linear-gradient(
            135deg,
            #f6f9ff,
            #eef4ff
        );

    overflow: hidden;
}

.appointment-container {

    min-height: 360px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: white;

    border-radius: 30px;

    box-shadow: var(--shadow);

    overflow: hidden;

    padding-left: 70px;
}

.appointment-content {

    max-width: 550px;
}

.appointment-content p {

    color: var(--muted);

    font-size: 14px;

    margin: 20px 0 25px;

    line-height: 1.7;
}

.appointment-doctor {

    height: 360px;

    width: 400px;

    display: flex;

    align-items: flex-end;

    justify-content: center;

    background:

        radial-gradient(
            circle at center,
            rgba(237,28,36,.08),
            transparent 60%
        );
}


/* CSS 3D Doctor */

.doctor-3d {

    position: relative;

    width: 240px;

    height: 340px;
}

.doctor-head {

    position: absolute;

    top: 20px;
    left: 75px;

    width: 90px;
    height: 100px;

    border-radius: 45% 45% 48% 48%;

    background:

        linear-gradient(
            135deg,
            #f5c7a8,
            #d8946c
        );

    box-shadow: 12px 12px 20px rgba(0,0,0,.12);
}

.doctor-body {

    position: absolute;

    top: 110px;
    left: 30px;

    width: 180px;
    height: 230px;

    background: white;

    border-radius: 70px 70px 15px 15px;

    box-shadow:

        15px 20px 35px rgba(18,59,145,.15);

    border: 3px solid #edf2f8;
}

.doctor-stethoscope {

    position: absolute;

    left: 65px;
    top: 35px;

    color: var(--red);

    font-size: 65px;

    transform: rotate(15deg);
}

.doctor-arm {

    position: absolute;

    width: 50px;
    height: 160px;

    background: white;

    border-radius: 30px;

    top: 130px;

    box-shadow: 5px 10px 15px rgba(18,59,145,.12);
}

.arm-one {

    left: 10px;

    transform: rotate(25deg);
}

.arm-two {

    right: 10px;

    transform: rotate(-25deg);
}



/* =========================================================
   TESTIMONIALS
========================================================= */

.testimonials-section {

    background: var(--bg);
}

.testimonial-slider {

    position: relative;

    max-width: 850px;

    margin: auto;
}

.testimonial-track {

    position: relative;

    min-height: 300px;
}

.testimonial {

    display: none;

    text-align: center;

    background: white;

    padding: 45px 70px;

    border-radius: 25px;

    box-shadow: var(--shadow);

    animation: testimonialFade .4s ease;
}

.testimonial.active {

    display: block;
}

@keyframes testimonialFade {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.patient-avatar {

    width: 60px;
    height: 60px;

    margin: auto auto 15px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--blue-light);

    color: var(--blue);

    font-size: 14px;

    font-weight: 800;
}

.stars {

    color: #ffb000;

    letter-spacing: 4px;

    margin-bottom: 20px;
}

.testimonial p {

    color: #556176;

    font-size: 14px;

    line-height: 1.9;

    max-width: 650px;

    margin: auto auto 20px;
}

.testimonial strong {

    display: block;

    color: var(--blue);

    font-size: 14px;
}

.testimonial span {

    color: var(--muted);

    font-size: 10px;
}

.slider-btn {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: white;

    color: var(--blue);

    box-shadow: var(--shadow);

    z-index: 5;
}

.slider-btn:hover {

    background: var(--red);

    color: white;
}

.previous {

    left: -25px;
}

.next {

    right: -25px;
}

.testimonial-dots {

    display: flex;

    justify-content: center;

    gap: 7px;

    margin-top: 20px;
}

.testimonial-dots span {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #d5dcea;

    transition: .3s;
}

.testimonial-dots span.active {

    width: 25px;

    border-radius: 5px;

    background: var(--red);
}



/* =========================================================
   EMERGENCY
========================================================= */

.emergency-section {

    background: var(--red);

    color: white;

    padding: 25px 0;
}

.emergency-container {

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 30px;
}

.emergency-content {

    display: flex;

    align-items: center;

    gap: 20px;
}

.emergency-icon-large {

    width: 55px;
    height: 55px;

    display: grid;

    place-items: center;

    background: rgba(255,255,255,.14);

    border-radius: 13px;

    font-size: 25px;
}

.emergency-content span {

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1px;
}

.emergency-content h2 {

    font-size: 15px;

    margin-top: 5px;
}

.emergency-number {

    display: flex;

    align-items: center;

    gap: 15px;

    background: white;

    color: var(--red);

    padding: 13px 25px;

    border-radius: 10px;

    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.emergency-number > i {

    font-size: 22px;
}

.emergency-number span {

    display: block;

    font-size: 9px;

    color: var(--muted);
}

.emergency-number strong {

    display: block;

    font-size: 16px;
}



/* =========================================================
   FOOTER
========================================================= */

.footer {

    background: #071f55;

    color: white;

    padding-top: 65px;
}

.footer-grid {

    display: grid;

    grid-template-columns: 1.5fr repeat(4,1fr);

    gap: 40px;

    padding-bottom: 50px;
}

.footer-logo {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;
}

.footer-logo img {

    width: 48px;
    height: 48px;

    border-radius: 50%;
}

.footer-logo strong {

    display: block;

    font-size: 16px;

    font-weight: 800;
}

.footer-logo span {

    display: block;

    font-size: 9px;

    margin-top: 2px;

    color: rgba(255,255,255,.65);
}

.footer-about p {

    max-width: 250px;

    color: rgba(255,255,255,.55);

    font-size: 11px;

    line-height: 1.8;

    margin-bottom: 20px;
}

.social-links {

    display: flex;

    gap: 8px;
}

.social-links a {

    width: 32px;
    height: 32px;

    display: grid;

    place-items: center;

    border-radius: 8px;

    background: rgba(255,255,255,.08);

    font-size: 12px;

    transition: .3s;
}

.social-links a:hover {

    background: var(--red);
}

.footer-column h3 {

    font-size: 13px;

    margin-bottom: 20px;
}

.footer-column > a {

    display: block;

    color: rgba(255,255,255,.55);

    font-size: 10px;

    margin-bottom: 12px;

    transition: .3s;
}

.footer-column > a:hover {

    color: white;

    transform: translateX(4px);
}

.contact-line {

    display: flex;

    gap: 10px;

    margin-bottom: 14px;

    color: rgba(255,255,255,.55);

    font-size: 10px;

    line-height: 1.6;
}

.contact-line i {

    color: #ff5b61;

    margin-top: 2px;
}

.footer-bottom {

    padding: 18px 0;

    border-top: 1px solid rgba(255,255,255,.08);

    display: flex;

    justify-content: space-between;

    color: rgba(255,255,255,.4);

    font-size: 9px;
}

.footer-bottom div {

    display: flex;

    gap: 20px;
}

.footer-bottom a:hover {

    color: white;
}



/* =========================================================
   MODAL
========================================================= */

.modal-overlay {

    position: fixed;

    inset: 0;

    background: rgba(3,15,40,.65);

    backdrop-filter: blur(8px);

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    z-index: 5000;
}

.modal-overlay.active {

    display: flex;

    animation: modalFade .3s ease;
}

@keyframes modalFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.appointment-modal {

    width: min(700px,100%);

    max-height: 90vh;

    overflow-y: auto;

    background: white;

    border-radius: 25px;

    padding: 35px;

    position: relative;

    box-shadow: 0 30px 100px rgba(0,0,0,.3);

    animation: modalUp .4s ease;
}

@keyframes modalUp {

    from {
        opacity: 0;
        transform: translateY(30px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.modal-close {

    position: absolute;

    top: 20px;
    right: 20px;

    width: 35px;
    height: 35px;

    display: grid;

    place-items: center;

    background: var(--bg);

    color: var(--muted);

    border-radius: 50%;
}

.modal-header {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 30px;
}

.modal-icon {

    width: 55px;
    height: 55px;

    display: grid;

    place-items: center;

    background: var(--red-light);

    color: var(--red);

    border-radius: 15px;

    font-size: 22px;
}

.modal-header span {

    color: var(--red);

    font-size: 9px;

    font-weight: 800;
}

.modal-header h2 {

    color: var(--blue);

    font-size: 24px;
}

.form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.form-group {

    margin-bottom: 18px;
}

.form-group label {

    display: block;

    font-size: 11px;

    color: var(--blue);

    font-weight: 700;

    margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    border: 1px solid var(--border);

    background: #fafcff;

    padding: 13px;

    border-radius: 9px;

    outline: none;

    font-size: 12px;

    color: var(--text);

    transition: .3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color: var(--blue);

    box-shadow: 0 0 0 3px rgba(18,59,145,.08);
}

.form-group textarea {

    resize: vertical;
}

.modal-submit {

    width: 100%;
}



/* =========================================================
   TOAST
========================================================= */

.toast {

    position: fixed;

    right: 25px;
    bottom: 25px;

    width: min(380px,calc(100% - 40px));

    padding: 16px;

    display: flex;

    align-items: center;

    gap: 12px;

    background: white;

    border-left: 4px solid #21a366;

    border-radius: 12px;

    box-shadow: var(--shadow-large);

    z-index: 6000;

    transform: translateX(130%);

    transition: .5s ease;
}

.toast.show {

    transform: translateX(0);
}

.toast-icon {

    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    background: #e8f8ef;

    color: #21a366;

    border-radius: 50%;
}

.toast strong {

    display: block;

    color: var(--blue);

    font-size: 12px;
}

.toast span {

    display: block;

    color: var(--muted);

    font-size: 9px;

    margin-top: 3px;
}



/* =========================================================
   BACK TO TOP
========================================================= */

.back-top {

    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--blue);

    color: white;

    box-shadow: var(--shadow);

    opacity: 0;

    visibility: hidden;

    transform: translateY(20px);

    transition: .3s;

    z-index: 100;
}

.back-top.show {

    opacity: 1;

    visibility: visible;

    transform: none;
}



/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {

    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.visible {

    opacity: 1;

    transform: none;
}



/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1050px) {

    .navbar {

        gap: 15px;
    }

    .hero-container {

        grid-template-columns: 1fr 1fr;
    }

    .hero-features {

        flex-direction: column;
    }

    .services-grid {

        grid-template-columns: repeat(3,1fr);
    }

    .services-grid .service-card:last-child {

        display: none;
    }

    .stats-container {

        grid-template-columns: repeat(3,1fr);
    }

    .stat-item:nth-child(3)::after {

        display: none;
    }

    .stat-item:nth-child(4),
    .stat-item:nth-child(5) {

        display: none;
    }

    .footer-grid {

        grid-template-columns: repeat(3,1fr);
    }
}



@media(max-width:850px) {

    .navbar {

        position: fixed;

        top: 82px;

        right: -100%;

        width: min(320px,85%);

        height: calc(100vh - 82px);

        background: white;

        padding: 30px;

        flex-direction: column;

        align-items: flex-start;

        box-shadow: -20px 20px 50px rgba(0,0,0,.12);

        transition: .4s ease;
    }

    .navbar.open {

        right: 0;
    }

    .nav-link {

        font-size: 15px;
    }

    .nav-appointment {

        width: 100%;

        justify-content: center;
    }

    .mobile-toggle {

        display: block;
    }

    .hero {

        padding-top: 110px;
    }

    .hero-container {

        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-content {

        display: flex;

        flex-direction: column;

        align-items: center;
    }

    .eyebrow {

        justify-content: center;
    }

    .hero-features {

        width: 100%;

        text-align: left;
    }

    .hospital-scene {

        height: 500px;

        transform: scale(.85);
    }

    .about-grid,
    .technology-grid,
    .patient-grid {

        grid-template-columns: 1fr;

        gap: 50px;
    }

    .about-visual {

        max-width: 500px;

        width: 100%;

        margin: auto;
    }

    .technology-content {

        text-align: center;
    }

    .technology-content > p {

        margin-left: auto;
        margin-right: auto;
    }

    .technology-list {

        text-align: left;
    }

    .patient-content {

        text-align: center;
    }

    .patient-content > p {

        margin-left: auto;
        margin-right: auto;
    }

    .patient-grid {

        text-align: center;
    }

    .portal-features {

        text-align: left;
    }

    .doctors-grid {

        grid-template-columns: 1fr 1fr;
    }

    .appointment-container {

        padding: 50px;

        flex-direction: column;

        text-align: center;
    }

    .appointment-doctor {

        display: none;
    }
}



@media(max-width:600px) {

    .nav-container {

        height: 70px;
    }

    .navbar {

        top: 70px;

        height: calc(100vh - 70px);
    }

    .logo img {

        width: 45px;
        height: 45px;
    }

    .logo-text strong {

        font-size: 20px;
    }

    .hero {

        min-height: auto;

        padding-bottom: 50px;
    }

    .hero h1 {

        font-size: 42px;

        letter-spacing: -2px;
    }

    .hero-features {

        padding: 12px;
    }

    .hero-buttons {

        width: 100%;

        flex-direction: column;
    }

    .btn {

        width: 100%;
    }

    .hospital-scene {

        transform: scale(.65);

        margin-top: -30px;

        margin-bottom: -50px;

        height: 430px;
    }

    .floating-medical {

        display: none;
    }

    .stats-section {

        margin-top: 0;

        padding: 0 15px;
    }

    .stats-container {

        grid-template-columns: 1fr 1fr;

        border-radius: 15px;
    }

    .stat-item {

        padding: 18px 10px;

        justify-content: flex-start;
    }

    .stat-item:nth-child(3) {

        display: flex;
    }

    .stat-item:nth-child(3)::after {

        display: block;
    }

    .stat-item:nth-child(4),
    .stat-item:nth-child(5) {

        display: none;
    }

    .stat-item strong {

        font-size: 19px;
    }

    .stat-icon {

        font-size: 18px;
    }

    .section {

        padding: 75px 0;
    }

    .section-heading {

        display: block;

        text-align: center;
    }

    .section-heading .outline-button {

        margin-top: 25px;
    }

    .services-grid {

        grid-template-columns: 1fr;
    }

    .services-grid .service-card:last-child {

        display: block;
    }

    .departments-grid {

        grid-template-columns: 1fr 1fr;
    }

    .check-list,
    .technology-list,
    .portal-features {

        grid-template-columns: 1fr;
    }

    .doctors-grid {

        grid-template-columns: 1fr;
    }

    .appointment-container {

        padding: 35px 25px;
    }

    .testimonial {

        padding: 35px 25px;
    }

    .slider-btn {

        width: 35px;
        height: 35px;
    }

    .previous {

        left: -10px;
    }

    .next {

        right: -10px;
    }

    .emergency-container {

        flex-direction: column;

        text-align: center;
    }

    .emergency-content {

        flex-direction: column;
    }

    .emergency-number {

        width: 100%;

        justify-content: center;
    }

    .footer-grid {

        grid-template-columns: 1fr 1fr;
    }

    .footer-about {

        grid-column: 1/-1;
    }

    .footer-bottom {

        flex-direction: column;

        gap: 15px;

        text-align: center;
    }

    .footer-bottom div {

        justify-content: center;
    }

    .form-row {

        grid-template-columns: 1fr;
    }

    .appointment-modal {

        padding: 25px 20px;
    }
}


@media(max-width:400px) {

    .departments-grid {

        grid-template-columns: 1fr;
    }

    .hospital-scene {

        transform: scale(.55);
    }

    .footer-grid {

        grid-template-columns: 1fr;
    }
}