@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Itim&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
    list-style: none;
    border: 0
}
body {
    max-width: 100svw;
    height: 100svh;
    position: relative;
    font-family: "Inter", sans-serif
}
/* ========== Variables ========== */
:root {
    --lightblue: rgb(140, 176, 218);
    --blue: #1E2D77;
    --whiteblue: #EBFBFD;
    --greenblue: #346086;
    --txt: #3D5B92;
}
/* ========== Header/Nav ========== */
.back {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa
}

.header {
    background-color: transparent;
    opacity: .95
}

.logo {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff !important;
    padding-left: 10px;
}

.logo:hover {
    color: #fff !important;
    cursor: default
}

.nav-link {
    font-family: 'Instrument Sans', sans-serif;
    color: #fff !important;
    font-size: 1rem
}

.nav-link:hover {
    color: #00aaff !important
}

/* ========== Hero ========== */
.hero {
    position: relative;
    min-height: 100vh;
    background: url("./hero.jpg") no-repeat center/cover;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: left;
    padding-left: 10%;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 1
}

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

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    animation: fadeInOut 4s infinite
}

.hero-desc {
    margin: 15px 0;
    font-size: 1.1rem;
    color: #cfe8ff
}

.btn-custome {
    background: #33aaff;
    border: 2px solid #33aaff;
    color: #fff;
    padding: 12px 30px;
    border-radius: 40px;
    margin-right: 10px;
    transition: .3s;
    font-size: 1rem
}

.btn-custome:hover {
    background: rgba(0, 0, 50, .5);
    border-color: #cfe8ff;
    color: #fff;
    transform: scale(1.05)
}

/* ========== Keyframes ========== */
@keyframes fadeInOut {
    0% {
        opacity: 0
    }
    25% {
        opacity: 1
    }
    75% {
        opacity: 1
    }
    100% {
        opacity: 0
    }
}

@keyframes slide {
    from {
        transform: translateX(20px);
        opacity: 0
    }
    to {
        transform: translateX(0);
        opacity: 1
    }
}

@keyframes slideUp {
    from {
        transform: translateY(24px);
        opacity: 0
    }
    to {
        transform: translateY(0);
        opacity: 1
    }
}

@keyframes bounce {
    0% {
        transform: translateY(0) scale(1)
    }
    30% {
        transform: translateY(-12px) scale(1.05)
    }
    60% {
        transform: translateY(6px) scale(1.03)
    }
    100% {
        transform: translateY(-8px) scale(1.05)
    }
}

/* ========== Services ========== */
.services {
    text-align: center;
    background-color: var(--lightblue);
    min-height: 100svh;
    height: auto;
    padding: 25px 12px 40px;
}

.services h2,
.services h4 {
    color: var(--blue);
    font-weight: 700
}

.services h2 {
    padding: 10px 0 30px
}

.services-card {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 10px 0 25px;
    flex-wrap: wrap;
    padding-bottom: 30px;
    padding-top: 40px;
}

.ser-card1,
.ser-card2,
.ser-card3,
.ser-card4 {
    background: var(--whiteblue);
    border-radius: 15px;
    width: 300px;
    height: 350px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
    overflow: hidden
}

.services p {
    color: var(--greenblue);
    animation: slide 1.2s ease-out;
    animation-iteration-count: 3;
}

.ser-img1,
.ser-img2,
.ser-img3,
.ser-img4 {
    border: 2px solid var(--blue)
}

.services-card .card img {
    display: block;
    margin: 12px auto 0 !important;
}

.services-btn {
    margin: 20px 0 0;
    border-radius: 15px;
    color: var(--whiteblue);
    background: var(--blue);
    padding: 10px 18px;
    transition: .25s;
    
}

.services-btn:hover {
    background: var(--lightblue);
    border: 2px solid var(--blue);
    color: var(--blue);
    box-shadow: 0 0 10px gray
}

/* ========== About ========== */
#about {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 2rem;
    background: var(--lightblue);
    padding: 24px 16px;
    min-height: 100vh;
    height: auto;
}

#about h2 {
    color: var(--blue);
    font-weight: 700;
    text-align: center;
    padding: 1rem
}

#about .about {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem
}

#about p {
    color: var(--txt);
    opacity: .9;
    width: 60%;
    margin-bottom: 1.5rem
}

#about button {
    padding: 1.1rem;
    border-radius: 50px;
    background: #1E2D77;
    color: #fff;
    font-family: itim;
    border: 2px solid #1E2D77
}

#about button:hover {
    color: #1E2D77;
    background: #8CB0DA
}

#about .contact {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem
}

#about img {
    width: 70%;
    border-radius: 10px
}

#about a {
    color: #3D5B92
}

#about i {
    opacity: .8
}

#about li {
    padding: .25rem
}

.line {
    width: 1px;
    height: 30vh;
    background: #eef3f3
}

/* ========== Doctors ========== */
.doctors {
    background: #346086;
    text-align: center;
    border-radius: 2px;
    padding: 40px 16px 100px;
    min-height: 100svh;
    height: auto;
}

.h3doctor {
    color: #fff;
    margin-bottom: 20px;
    font-size: 33px;
    font-weight: 700
}

.cardsdoctor {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 10px
}

.carddoctor {
    background: #EBFBFD;
    border-radius: 18px;
    width: 280px;
    height: 450px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
    opacity: 0;
    animation: slideUp .8s ease-out forwards;
}

.carddoctor:hover {
    animation: bounce .6s ease;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
    color: #fff
}

.imgdoctor {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 5px var(--greenblue) solid;
    border-radius: 14px;
    margin-bottom: 15px;
    transition: transform .4s ease
}

.carddoctor:hover .imgdoctor {
    transform: scale(1.08) rotate(-1deg)
}

.h5doctor {
    color: #1F3D56;
    margin: 8px 0;
    font-size: 28px
}

.h6doctor {
    color: #346086;
    margin: 14px 0 8px;
    font-size: 20px
}

.pdoctor {
    color: #557896;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 18px
}

/* ========== Footer ========== */
footer {
    background: #06163A;
    text-align: center;
    font-family: "Itim", cursive;
    padding: 1rem
}

footer h3 {
    color: #fff;
    padding: .5rem;
    font-weight: 300
}

footer p {
    color: #8CB0DA;
    padding: .5rem
}

/* ========== Login ========== */
.log {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: #2f5d7d;
    font-family: 'Comic Neue', cursive;
    display: flex;
    justify-content: center;
    align-items: center
}

.login-section {
    background: #2f5d7d;
    color: #fff;
    height: 100vh;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column
}

.login-section h2 {
    font-weight: 700;
    font-size: 40px
}

.login-section p {
    font-size: 24px
}

.login-section img {
    max-width: 80%;
    max-height: 70%;
    border-radius: 15px;
    object-fit: cover
}

.form-control {
    border-radius: 10px;
    padding: 15px;
    font-size: 16px
}

.input-group-text {
    background: #b3c8e7;
    border: none;
    border-radius: 10px
}

.btn-custom {
    background: #0a1b55;
    color: #fff;
    border-radius: 5px;
    padding: 10px 30px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
    display: inline-block;
    margin-top: 10px
}

.btn-custom:hover {
    background: #08163d
}

.signin-link {
    font-size: 14px;
    margin-top: 10px;
    display: block;
    color: #fff
}

.signin-link span {
    color: #0008ff
}

/* ========== Responsive (≤ 768px) ========== */
@media (max-width:768px) {

    /* Nav */
    .navbar-nav {
        background: rgba(12, 6, 95, .8);
        border-radius: 10px;
        padding: 10px 0
    }

    .nav-item {
        margin: 10px 0
    }

    /* Hero */
    .hero {
        padding-left: 5%;
        text-align: center
    }

    .hero-title {
        font-size: 1.8rem
    }

    .hero-desc {
        font-size: 1rem
    }

    .hero-content {
        max-width: 100%
    }

    .hero-content>div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px
    }

    .btn-custome {
        width: auto;
        min-width: 140px;
        margin: 0;
        text-align: center
    }
    /* Services */
    .services {
        padding: 30px 10px
    }

    .services-card {
        flex-direction: column;
        gap: 15px
    }

    .ser-card1,
    .ser-card2,
    .ser-card3,
    .ser-card4 {
        width: 90%;
        height: auto
    }

    .services-card .card img {
        margin: 12px auto 0 !important
    }
    /* About */
    #about {
        flex-direction: column;
        min-height: auto
    }

    #about .about,
    #about .contact {
        width: 100%
    }

    #about p {
        width: 100%;
        text-align: center
    }

    #about img {
        display: none
    }

    .line {
        width: 50%;
        height: 1px;
        margin: 20px auto
    }

    /* Doctors */
    .carddoctor {
        width: 90%;
        height: auto;
        padding: 16px;
        margin-bottom: 22px;
        opacity: 1;
        animation: slideUp .6s ease-out forwards
    }

    .imgdoctor {
        height: 180px
    }

    .h3doctor {
        font-size: 22px
    }

    .h5doctor {
        font-size: 18px
    }

    .h6doctor {
        font-size: 15px
    }

    .pdoctor {
        font-size: 14px
    }

    /* Footer */
    footer p {
        width: 90%;
        margin: 0 auto;
        font-size: 14px
    }

    /* Login */
    .login-section {
        align-items: center;
        text-align: center
    }

    .login-section h2 {
        font-size: 28px
    }

    .login-section p {
        font-size: 18px
    }

    .login-section img {
        display: none
    }
}