/* ========================================
           Import Fonts
        ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Cairo:wght@300;400;600;700;900&display=swap');

/* ========================================
           CSS Variables (From Brand Guidelines)
        ======================================== */
:root {
    /* ... variables ... */
    --primary-color: #09B2AC;

    /* Secondary: Coral Orange - Vibrancy & Action (New) */
    --secondary-color: #FF7450;

    /* Dark Theme: Deep Teal - Luxury & Depth */
    --dark-color: #0A3030;

    /* Backgrounds */
    --background-dark: #1F1F1F;
    --background-light: #F9F9F9;

    /* Accents & Text */
    --accent-color: #F4F0E4;
    /* Soft Cream */
    --stroke-color: #FEFEFE;
    --text-dark: #0A3030;
    --text-light: #FEFEFE;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Sora', 'Cairo', sans-serif;
}

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

body {
    font-family: 'Sora', 'Cairo', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--background-light);
    overflow-x: hidden;
}

body[dir="ltr"] {
    font-family: 'Sora', 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ========================================
           Container
        ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ========================================
           Header + Navbar
        ======================================== */
.header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

/* شعار SVG - Logo SVG */

.logo-svg {
    transition: transform 0.35s ease;
}

.logo-container:hover .logo-svg {
    transform: rotate(8deg) scale(1.02);
}

.logo-svg {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-name {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    text-transform: capitalize;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background: var(--accent-color);
}

/* قائمة الموبايل */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ========================================
           Hero Section
        ======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 116, 80, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* شعار كبير في Hero - Large Logo in Hero */
.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: capitalize;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    opacity: 0.95;
}

.hero-tagline {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 2;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #ff5a30;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 116, 80, 0.4);
}

/* ========================================
           Section عام
        ======================================== */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ========================================
           قسم نبذة عن الشركة - Company Overview
        ======================================== */
.company-overview {
    background: white;
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.overview-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.overview-image img {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    object-fit: contain;
}

.overview-text h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.overview-text p {
    font-size: 1.15rem;
    color: #555;
    line-height: 2;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--accent-color);
    border-radius: 15px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(9, 178, 172, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 600;
}

/* ========================================
           مبادئ الهوية - Identity Principles
        ======================================== */
.identity {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
}

.identity-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.identity-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.identity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.identity-card:hover::before {
    transform: scaleX(1);
}

.identity-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(9, 178, 172, 0.2);
}

.identity-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.identity-icon svg {
    width: 64px !important;
    height: 64px !important;
    filter: drop-shadow(0 4px 12px rgba(9, 178, 172, 0.15));
}

/* إضافة دائرة خارجية للأيقونات */
.identity-icon::before {
    content: '';
    position: absolute;
    width: 85px;
    height: 85px;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: 0.2;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.identity-card:hover .identity-icon::before {
    transform: scale(1.05);
    opacity: 0.35;
}

.identity-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.identity-card p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ========================================
           الرؤية والرسالة - Vision & Mission
        ======================================== */
.vision-mission {
    background: var(--dark-color);
    color: white;
}

.vision-mission .section-title {
    color: white;
}

.vision-mission .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.vm-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.vm-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3.5rem;
    transition: var(--transition);
}

.vm-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
}

.vm-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    width: 85px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-left: auto;
    margin-right: auto;
}

.vm-icon svg {
    width: 64px !important;
    height: 64px !important;
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.2));
}

.vm-icon::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: 0.25;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vm-card:hover .vm-icon::before {
    transform: scale(1.05);
    opacity: 0.4;
}

.vm-card h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.vm-card p {
    font-size: 1.2rem;
    line-height: 2;
    opacity: 0.9;
}

/* ========================================
           قسم الخدمات
        ======================================== */
.services {
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--accent-color);
    padding: 3rem;
    border-radius: 20px;
    transition: var(--transition);
    border-right: 5px solid var(--primary-color);
}

body[dir="ltr"] .service-card {
    border-right: none;
    border-left: 5px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(9, 178, 172, 0.2);
    border-right-color: var(--secondary-color);
}

body[dir="ltr"] .service-card:hover {
    border-left-color: var(--secondary-color);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.service-icon svg {
    width: 56px !important;
    height: 56px !important;
    filter: drop-shadow(0 3px 10px rgba(9, 178, 172, 0.12));
}

.service-icon::before {
    content: '';
    position: absolute;
    width: 70px;
    height: 70px;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: 0.18;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon::before {
    transform: scale(1.05);
    opacity: 0.3;
}

.service-card h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: #666;
    line-height: 1.9;
    font-size: 1.1rem;
    text-align: justify;
}

/* ========================================
           قسم الأطباء
        ======================================== */
.team {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(9, 178, 172, 0.2);
}

.team-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    position: relative;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 2rem;
}

.team-info h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.team-info p {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ========================================
           قسم المعلومات التعريفية - Company Info
        ======================================== */
.company-info {
    background: white;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.info-card {
    background: linear-gradient(135deg, var(--accent-color) 0%, white 100%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(9, 178, 172, 0.15);
}

.info-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-card h3 span {
    font-size: 2.5rem;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li strong {
    color: var(--dark-color);
    font-weight: 700;
}

/* ========================================
           قسم التواصل
        ======================================== */
.contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.contact-item-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.contact-item-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-item-text p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.8;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.success-message {
    background: #4CAF50;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
    display: none;
    font-weight: 600;
}

.error-message {
    background: #f44336;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
    display: none;
    font-weight: 600;
}

/* ========================================
           Footer
        ======================================== */
.footer {
    background: var(--background-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo-svg {
    width: 60px;
    height: 60px;
}

.footer-brand-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
    font-weight: 900;
    text-transform: capitalize;
}

.footer-brand-text p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-description {
    opacity: 0.8;
    line-height: 1.9;
    font-size: 1.05rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-links a svg {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(9, 178, 172, 0.3);
}

.social-links a:hover svg {
    transform: scale(1.1);
}

.footer-section h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 10px;
}

body[dir="ltr"] .footer-links a:hover {
    padding-right: 0;
    padding-left: 10px;
}

.footer-contact p {
    opacity: 0.8;
    line-height: 2;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 1rem;
}

/* ========================================
           Responsive - التصميم المتجاوب
        ======================================== */

/* للشاشات الصغيرة (أقل من 768px) */
@media (max-width: 768px) {
    .nav-right {
        position: fixed;
        right: -100%;
        top: 75px;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        transition: var(--transition);
        gap: 0;
    }

    body[dir="ltr"] .nav-right {
        right: auto;
        left: -100%;
    }

    .nav-right.active {
        right: 0;
    }

    body[dir="ltr"] .nav-right.active {
        left: 0;
    }

    .header {
        padding: 5px 0;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .logo-svg {
        width: 40px;
        height: 40px;
    }

    .logo-name {
        font-size: 1.3rem;
    }

    .logo-name-ar {
        font-size: 0.75rem;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 1rem;
    }

    .lang-switcher {
        margin-top: 1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 0.2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .hero-tagline {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
        line-height: 1.6;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .overview-content,
    .vm-content,
    .contact-wrapper,
    .info-grid,
    .identity-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .identity-card,
    .service-card,
    .team-member {
        padding: 2rem 1.5rem;
    }

    /* تصغير الأيقونات على الموبايل */
    .identity-icon,
    .vm-icon {
        font-size: 3rem;
    }

    /* تحسين النماذج على الموبايل */
    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
        /* يمنع الزووم التلقائي على iOS */
    }
}

/* للشاشات الصغيرة جداً (أقل من 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .overview-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* للشاشات المتوسطة (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* للشاشات الكبيرة (أكبر من 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* ================================
           Interactive & Animation Styles
        ================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    color: var(--primary-color);
}

/* Testimonials Carousel */
.testimonials {
    background: linear-gradient(180deg, #f8f9fa 0%, white 100%);
    padding: 70px 0;
}

.test-carousel {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    transition: transform 0.6s ease;
}

.testimonial-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.testimonial-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(9, 178, 172, 0.06);
}

.testimonial-content p {
    color: #555;
}

.test-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.test-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.test-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.test-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
}

.test-dot.active {
    background: var(--primary-color);
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    right: 24px;
    bottom: 24px;
    background: var(--secondary-color);
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255, 116, 80, 0.25);
    z-index: 2000;
    transition: transform .2s ease;
}

.floating-cta:hover {
    transform: scale(1.06);
}

/* Success animation */
.success-animate {
    animation: pop 0.6s ease;
}

@keyframes pop {
    0% {
        transform: scale(.8);
        opacity: 0
    }

    60% {
        transform: scale(1.05);
        opacity: 1
    }

    100% {
        transform: scale(1);
        opacity: 1
    }
}

/* Reveal on scroll (fade + lift + scale; faster) */
/* ========================================
           Scroll & Interaction Effects
        ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.9, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* تأثيرات hover محسّنة */
.section {
    transition: all 0.3s ease;
}

/* Card Hover Effects */
.overview-card,
.service-card,
.team-member,
.vm-card {
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
    cursor: pointer;
}

.overview-card:hover,
.service-card:hover,
.team-member:hover,
.vm-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(9, 178, 172, 0.25);
}

/* Icon Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.identity-icon,
.vm-icon {
    transition: all 0.3s ease;
}

.identity-card:hover .identity-icon,
.vm-card:hover .vm-icon {
    animation: pulse 1s ease-in-out infinite;
}

/* Scroll Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Button Effects */
.cta-button,
.hero-buttons a,
.contact-form button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cta-button::before,
.hero-buttons a::before,
.contact-form button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before,
.hero-buttons a:hover::before,
.contact-form button:hover::before {
    width: 300px;
    height: 300px;
}

/* Statistics Effect */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.stat-card:hover .stat-number,
.stat-card:hover .stat-label {
    color: white;
}

/* Testimonials Effect */
.testimonial-card {
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(9, 178, 172, 0.2);
}

/* Light parallax effect for hero */
.hero {
    background-attachment: fixed;
    background-size: cover;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
        transform: none;
        opacity: 1;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ========================================
           Partners Section
        ======================================== */
.partners {
    padding: 0 0 30px 0;
    background: transparent;
    margin-top: -30px;
}

.partners .partners-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-top: 12px;
}

.partner-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 50px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(32, 32, 32, 0.04);
    transition: transform .25s ease, filter .25s ease;
    filter: grayscale(100%);
    width: 100%;
    max-width: 350px;
}

.partner-card img {
    max-width: 280px;
    max-height: 140px;
    width: 100%;
    object-fit: contain;
    display: block;
}

.partner-card:hover {
    transform: translateY(-6px);
    filter: grayscale(0);
    box-shadow: 0 10px 25px rgba(9, 178, 172, 0.15);
}

.partner-name,
figcaption {
    display: none !important;
}

/* Mobile adjustments */
@media (max-width: 900px) {
    .partners .partners-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .partners .partners-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .partner-card {
        padding: 25px 30px;
    }

    .partner-card img {
        max-width: 200px;
    }
}

/* Button Ripple Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}


button,
.cta-button,
.hero-buttons a {
    position: relative;
    overflow: hidden;
}

/* ========================================
           New PV Reporting Section
        ======================================== */
.pv-section {
    margin-top: 80px;
    padding: 60px 20px;
    background: var(--dark-color);
    border-radius: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.pv-header h3 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 800;
}

.pv-header h3 svg {
    color: var(--secondary-color);
}

.pv-header p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.pv-toggle-btn {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 18px 45px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(255, 116, 80, 0.3);
}

.pv-panel {
    margin-top: 40px;
    text-align: left;
}

.pv-form-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 850px;
    margin: 0 auto;
}

.pv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.pv-full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: block;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
    width: 100%;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 116, 80, 0.1);
}

.pv-submit-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 18px 60px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
}

.pv-submit-btn:hover {
    background: #0bc9c2;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(9, 178, 172, 0.3);
}

@media (max-width: 768px) {
    .pv-grid {
        grid-template-columns: 1fr;
    }

    .pv-form-card {
        padding: 30px 20px;
    }
}

/* ========================================
           PV Modal Styles
        ======================================== */
.pv-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    /* For modern mobile browsers */
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    padding: 40px 15px;
}

.pv-modal.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

.pv-modal-content {
    background: var(--dark-color);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px auto;
    /* Start from top padding, add bottom margin for full scroll */
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    line-height: 1;
}

.close-modal:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.pv-report-trigger {
    margin-top: 30px;
    text-align: left;
}

.pv-trigger-btn {
    background: rgba(255, 116, 80, 0.15);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    position: relative;
    z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.pv-trigger-btn svg {
    pointer-events: none;
}

.pv-trigger-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 116, 80, 0.2);
}

.pv-trigger-btn:hover svg {
    transform: scale(1.2) rotate(10deg);
}

/* PV CTA Section shortcut */
.pv-cta {
    background: #2D6A4F;
    /* Dark medical green */
    padding: 40px 0;
    text-align: center;
}

.pv-cta-btn {
    background: transparent;
    color: #FF7450;
    /* Orange/Coral from image */
    border: none;
    font-size: 2.2rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.pv-cta-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

@media (max-width: 768px) {
    .pv-cta-btn {
        font-size: 1.5rem;
    }
}