/* ============================================ */
/*  MODERN MEDICINE PORTFOLIO - CUSTOM STYLES   */
/* ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary-blue: #1E88E5;
    --dark-blue: #1565C0;
    --nav-blue: #2196F3;
    --accent-blue: #0D47A1;
    --primary-green: #4CAF50;
    --dark-green: #388E3C;
    --light-green: #66BB6A;
    --contact-green: #2ECC40;
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --text-blue: #2196F3;
    --text-light-blue: #42A5F5;
    --text-gray: #607D8B;
    --text-dark: #333333;
    --border-blue: #90CAF9;
    --border-light: #BBDEFB;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --nav-height: 80px;
}

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* ============================================ */
/* HERO SECTION                                  */
/* ============================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-logo {
    margin-bottom: 8px;
}

.hero-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.hero-tagline {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 300;
    color: var(--white);
    margin-bottom: 35px;
    letter-spacing: 1px;
    line-height: 1.1;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    border: 2px solid transparent;
}

.hero-btn:hover {
    background-color: var(--dark-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.hero-btn i {
    font-size: 0.85rem;
    margin-left: 4px;
}

/* ============================================ */
/* MAIN NAVIGATION                               */
/* ============================================ */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.main-nav.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--white);
    border: 1.5px solid var(--border-blue);
    border-radius: 50px;
    padding: 8px 15px 8px 12px;
}

.nav-logo {
    flex-shrink: 0;
}

.nav-logo-icon {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
}

.nav-menu .nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--nav-blue);
    font-size: 0.92rem;
    font-weight: 400;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    color: var(--accent-blue);
    font-weight: 600;
    background-color: rgba(33, 150, 243, 0.08);
}

.contact-us-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-green);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 8px;
}

.contact-us-btn:hover {
    background-color: var(--dark-green);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--nav-blue);
    cursor: pointer;
    padding: 8px;
}

/* ============================================ */
/* SERVICE SECTIONS                              */
/* ============================================ */
.service-section {
    padding: 80px 0;
    background-color: var(--white);
}

.service-card {
    text-align: center;
    padding: 20px 15px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Card Icon */
.card-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.card-icon img {
    height: 65px;
    width: auto;
    transition: var(--transition);
}

.service-card:hover .card-icon img {
    transform: scale(1.05);
}

/* Card Title */
.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--nav-blue);
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

/* Card Image */
.card-image {
    position: relative;
border:none !important;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 24px;
    aspect-ratio: 1279 / 889;

}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.03);
}

/* Play Button Overlay */
.play-btn-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .play-btn-overlay {
    opacity: 1;
}

.play-btn-circle {
    width: 60px;
    height: 60px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.service-card:hover .play-btn-circle {
    transform: scale(1.1);
}

.play-btn-circle i {
    color: var(--nav-blue);
    font-size: 1.2rem;
    margin-left: 3px;
}

/* Card Description */
.card-description {
    font-size: 1rem;
    color: var(--text-light-blue);
    line-height: 1.7;
    max-width: 420px;
    margin: 0 auto;
    font-weight: 400;
}

/* ============================================ */
/* TEAM / CONTACT SECTION                        */
/* ============================================ */
.team-section {
    padding: 80px 0 40px;
    background-color: var(--white);
}

.team-content-wrapper {
    text-align: center;
}

.team-image {
    max-width: 100%;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ============================================ */
/* FOOTER                                        */
/* ============================================ */
.site-footer {
    background-color: var(--white);
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-logo-icon {
    height: 30px;
    width: auto;
}

.footer-text {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    font-size: 1rem;
    font-weight: 600;
    color: var(--nav-blue);
    letter-spacing: 1px;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 400;
}

/* ============================================ */
/* BACK TO TOP BUTTON                            */
/* ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.5);
}

/* ============================================ */
/* SCROLL ANIMATIONS                             */
/* ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-up"].animated {
    transform: translateY(0);
}

/* Stagger delay for columns */
.col-lg-4:nth-child(1) [data-animate],
.col-lg-5:nth-child(1) [data-animate] { transition-delay: 0s; }
.col-lg-4:nth-child(2) [data-animate],
.col-lg-5:nth-child(2) [data-animate] { transition-delay: 0.15s; }
.col-lg-4:nth-child(3) [data-animate] { transition-delay: 0.3s; }

/* ============================================ */
/* RESPONSIVE DESIGN                             */
/* ============================================ */

/* Tablets & Small Desktops */
@media (max-width: 991.98px) {
    :root {
        --nav-height: auto;
    }

    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }

    .hero-logo-img {
        height: 40px;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .nav-pill {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 10px 15px;
        gap: 8px;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 2px;
        padding-top: 5px;
        display: none;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu .nav-link {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    .contact-us-btn {
        margin-left: auto;
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
        order: 2;
    }

    .service-section {
        padding: 60px 0;
    }

    .team-section {
        padding: 60px 0 30px;
    }

    .card-icon img {
        height: 55px;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .play-btn-circle {
        width: 50px;
        height: 50px;
    }

    .play-btn-circle i {
        font-size: 1rem;
    }
}

/* Mobile Phones */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 500px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-logo-img {
        height: 36px;
    }

    .hero-tagline {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }

    .hero-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .nav-pill {
        border-radius: 15px;
        padding: 8px 12px;
    }

    .nav-logo-icon {
        height: 26px;
    }

    .nav-menu .nav-link {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    .contact-us-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    .service-section {
        padding: 40px 0;
    }

    .team-section {
        padding: 40px 0 20px;
    }

    .team-image {
        border-radius: 15px;
    }

    .service-card {
        padding: 15px 10px;
    }

    .card-icon img {
        height: 48px;
    }

    .card-title {
        font-size: 1.1rem;
        margin-bottom: 18px;
    }

    .card-image {
        border-radius: 12px;
        margin-bottom: 18px;
    }

    .card-description {
        font-size: 0.9rem;
    }

    .play-btn-circle {
        width: 45px;
        height: 45px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Very small screens */
@media (max-width: 359.98px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-tagline {
        font-size: 0.7rem;
    }

    .nav-menu .nav-link {
        font-size: 0.72rem;
        padding: 4px 8px;
    }

    .contact-us-btn {
        padding: 6px 14px;
        font-size: 0.72rem;
    }
}
