/* ============================================ */
/*  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: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    padding: 12px 0;
    box-shadow: 0 4px 20px 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(--primary-green);
    border: 1.5px solid var(--dark-green);
    border-radius: 50px;
    padding: 8px 15px 8px 12px;
}

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

.nav-logo-icon {
    height: 40px;
    width: 30px;
    background-color: var(--white);
    padding: 4px;
    border-radius: 16px;
}

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

.nav-menu .nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--white);
    font-size: 1.35rem;
    /* كان 0.92rem - أصبح أكبر */
    font-weight: 550;
    border-radius: 24px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    padding: 6px 24px;
    color: var(--accent-blue);
    font-weight: 650;
    background-color: var(--white);
}

.contact-us-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    /* تغيير إلى أبيض */
    color: var(--primary-green) !important;
    /* لون النص أخضر (أو يمكنك تغييره) */
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 1.1rem;
    /* تكبير الخط (كان 1rem) */
    font-weight: 600;
    /* تكبير الوزن (كان 500) */
    white-space: nowrap;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 8px;
}

.contact-us-btn:hover {
    background-color: var(--white);
    /* خلفية بيضاء */
    color: var(--accent-blue);
    /* لون النص أزرق */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Mobile-toggle removed - nav is always open */

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

.service-card {
    text-align: center;
    padding: 20px 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
}

/* 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-top: 1rem;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

/* Card Image */
.card-image {
    position: relative;
    border: none !important;
    border-radius: 16px;
    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.3);
    opacity: 0;
    pointer-events: none;
    transition: background 0.2s;
}

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

.play-btn-circle {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    color: #0d6efd;
    font-size: 24px;
    transition: transform 0.2s;
}

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

.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: 50px 0 30px;
    /* كان 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-wrapper img {
    max-height: 60px;
    width: auto;
}

.footer-logo-icon {
    height: 50px;
    width: 250px;
}

.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: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99;
}

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

.back-to-top:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
}

/* ============================================ */
/* 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: flex;
    }

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

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

    .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;
    }

    /* Mobile nav - always open, no sidebar */
    .nav-pill {
        border-radius: 15px;
        padding: 8px 10px;
        flex-wrap: wrap;
    }

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

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

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

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

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

    /* Force uniform card sizing on mobile */
    .service-section .row>[class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .service-card {
        padding: 10px 6px;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .card-description {
        flex-grow: 1;
    }

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

    .card-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
        margin-top: 0.5rem;
    }

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

    .card-description {
        font-size: 0.75rem;
        line-height: 1.5;
    }

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

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

    .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.65rem;
        padding: 3px 6px;
    }

    .contact-us-btn {
        padding: 5px 10px;
        font-size: 0.65rem;
    }

    /* Force uniform card sizing on very small screens */
    .service-section .row>[class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .service-card {
        padding: 8px 4px;
    }

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

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




/* ============================================ */
/* HERO LANDING PAGE (ADDED)                    */
/* ============================================ */
.hero-landing {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #33cc33 0%, #1fa81e 60%, #178016 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Decorative circles */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25) !important;
    pointer-events: none;
    animation: floatCircle 12s infinite alternate ease-in-out;
}

.deco-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -80px;
}

.deco-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
    animation-duration: 15s;
}

.deco-circle:nth-child(3) {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 5%;
    animation-duration: 9s;
    animation-delay: 2s;
}

.deco-circle:nth-child(4) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 5%;
    animation-duration: 7s;
}

@keyframes floatCircle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 1;
    }
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.hero-central-text {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.hero-central-text span {
    display: block;
}

.hero-central-text span:first-child {
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 1;
}

.floating-words {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-word {
    position: absolute;
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.float-word:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #1fa81e;
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Positions for the 8 words */
.word-1 {
    top: -50%;
    left: 50%;
}

.word-2 {
    top: -40%;
    left: 80%;
}

.word-3 {
    top: 125%;
    left: 92%;
}

.word-4 {
    top: 150%;
    left: 75%;
}

.word-5 {
    top: 160%;
    left: 50%;
}

.word-6 {
    top: 150%;
    left: 25%;
}

.word-7 {
    top: 30%;
    left: 8%;
}

.word-8 {
    top: -40%;
    left: 20%;
}

/* Scroll-down indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    cursor: pointer;
}

.scroll-down span {
    display: block;
    width: 30px;
    height: 30px;
    border-bottom: 3px solid #fff;
    border-right: 3px solid #fff;
    transform: rotate(45deg);
    margin: -10px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: rotate(45deg) translate(0, 0);
    }

    40% {
        transform: rotate(45deg) translate(10px, 10px);
    }

    60% {
        transform: rotate(45deg) translate(5px, 5px);
    }
}

@media (max-width: 767px) {

    .floating-words {
        position: absolute;
        inset: 0;
        pointer-events: none;
    }

    .float-word {
        position: absolute;
        transform: translate(-50%, -50%);
        font-size: 0.72rem;
        padding: 7px 12px;
        white-space: nowrap;
        border-radius: 30px;
    }

    /* ===== أعلى ===== */

    .word-1 {
        top: -20%;
        left: 35%;
    }

    .word-2 {
        top: -40%;
        left: 50%;
    }

    .word-3 {
        top: -20%;
        left: 65%;
    }

    /* ===== الجوانب (بعيدة عن النص) ===== */

    .word-4 {
        top: -0%;
        left: 80%;
    }

    .word-5 {
        top: 100%;
        left: 15%;
    }

    /* ===== أسفل ===== */

    .word-6 {
        top: 120%;
        left: 35%;
    }

    .word-7 {
        top: 140%;
        left: 50%;
    }

    .word-8 {
        top: 120%;
        left: 65%;
    }

    /* تحسين النص الأوسط */

    .hero-central-text {
        max-width: 85%;
        margin: auto;
        line-height: 1.35;
        position: relative;
        z-index: 2;
    }



    /* Scroll down indicator */
    .scroll-down {
        bottom: 20px;
    }

    .scroll-down span {
        width: 22px;
        height: 22px;
        border-width: 2px;
    }
}

/* Extra small phones */
@media (max-width: 400px) {
    .hero-central-text {
        font-size: clamp(1.3rem, 7vw, 1.8rem);
        letter-spacing: 0.5px;
    }

    .float-word {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .floating-words {
        gap: 8px;
        margin-top: 30px;
    }
}