@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
    --primary-color: #0b3d91;
    --primary-dark: #062356;
    --secondary-color: #00bfa5;
    --whatsapp-color: #25d366;
    --call-color: #1976d2;
    --text-color: #1e293b;
    /* Deeper black for maximum legibility */
    --text-light: #475569;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --warning-bg: #fff1f2;
    --warning-border: #fecdd3;
    --warning-text: #be123c;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 50px rgba(0, 0, 0, 0.12);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    direction: rtl;
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 18px;
    /* Sharp and clear base size */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.2px;
}

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    color: var(--primary-color);
    line-height: 1.4;
    font-weight: 800 !important;
    /* Extremely bold for clarity */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    border-radius: 50px;
    /* Modern rounded pills feel more dynamic and premium */
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    gap: 12px;
    width: 100%;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

@media (min-width: 768px) {
    .btn {
        width: auto;
    }
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp {
    background-color: var(--whatsapp-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 211, 102, 0.39);
}

.btn-call {
    background-color: var(--call-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(52, 152, 219, 0.39);
}

.section-cta {
    text-align: center;
    margin: 40px auto 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

@media (min-width: 768px) {
    .section-cta {
        flex-direction: row;
        justify-content: center;
    }
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(5deg);
}

.specialist-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(46, 204, 113, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #e6fdf0;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 30px;
    border: 1px solid rgba(46, 204, 113, 0.4);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    animation: fadeInDown 0.8s ease-out;
}

/* Modern Header / Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
}

.logo img.logo-img {
    height: 95px;
    width: auto;
    max-width: 100%;
    display: block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.logo img.logo-img:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

@media (max-width: 768px) {
    .logo img.logo-img {
        height: 75px;
    }

    .navbar {
        padding: 10px 0;
    }
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: white;
    padding: 20px;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.mobile-menu.active {
    display: flex;
}

@media (max-width: 900px) {

    .nav-links,
    .nav-contact {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

@media (min-width: 901px) {
    .mobile-menu {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    position: relative;
    text-align: right;
    padding-top: 200px;
    padding-bottom: 160px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('./assets/images/premium_hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient fading from deep primary color on the right to somewhat transparent on the left */
    background: linear-gradient(90deg, rgba(6, 35, 86, 0.96) 0%, rgba(11, 61, 145, 0.85) 45%, rgba(11, 61, 145, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 15px;
    font-weight: 900 !important;
    color: #ffffff;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    color: #00f0cd;
    font-weight: 900 !important;
    font-size: 2.2rem;
    margin-bottom: 30px;
    line-height: 1.5;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: #f1f5f9;
    margin-bottom: 40px;
    line-height: 1.9;
    background: rgba(255, 255, 255, 0.06);
    padding: 25px 30px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-subheadline p {
    margin-bottom: 20px;
}

.highlight-action {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 107, 107, 0.12);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 107, 0.25);
    width: fit-content;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff6b6b;
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    animation: pulse 2s infinite;
}

.highlight-text {
    color: #ff8787;
    font-size: 1.25rem;
    font-weight: 800;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-features {
    display: flex;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.h-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #e2e8f0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.h-feature i {
    color: var(--secondary-color);
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .hero-bg {
        background-position: center right;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(6, 35, 86, 0.7) 0%, rgba(11, 61, 145, 0.98) 100%);
    }

    .hero-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 767px) {
    .hero {
        text-align: center;
        padding-top: 140px;
        padding-bottom: 120px;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-subtitle {
        font-size: 1.6rem !important;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-subheadline {
        padding: 20px;
        text-align: center;
    }

    .highlight-action {
        margin: 0 auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }
}

/* Reassurance Section */
.reassurance {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    margin: -80px auto 60px auto;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-lg);
    text-align: center;
    padding: 50px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 1000px;
    width: calc(100% - 40px);
}

.reassurance p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.highlight-box {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
}

/* About Doctor */
.about-doctor {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .about-doctor {
        grid-template-columns: 1fr 1fr;
    }

    .doctor-img-container {
        order: 2;
    }

    .doctor-content {
        order: 1;
    }
}

.doctor-img-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.section-badge {
    display: inline-block;
    background: rgba(46, 204, 113, 0.15);
    color: var(--secondary-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.doctor-content h2 {
    font-size: 2.4rem;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .doctor-content h2 {
        font-size: 1.8rem;
    }
}

.doctor-content .title {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 600px) {
    .expertise-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.expertise-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.expertise-item i {
    color: var(--primary-color);
    background: var(--bg-light);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.expertise-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.expertise-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.4;
    margin: 0;
}

.availability-warning {
    background: var(--warning-bg);
    padding: 15px 20px;
    border-radius: 10px;
    border-right: 4px solid var(--warning-border);
    margin-top: 30px;
}

.availability-warning p {
    margin: 0;
}

/* Why Choose Us */
.why-choose {
    text-align: center;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: right;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(11, 61, 145, 0.1);
}

.feature-card i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* Symptoms Warning */
.symptoms {
    background-color: var(--warning-bg);
    border-radius: 20px;
}

.warning-box {
    border: 2px solid var(--warning-border);
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
    color: var(--warning-text);
    font-weight: 700;
    text-align: center;
}

/* Process Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    border-top: 6px solid var(--primary-color);
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-number {
    position: absolute;
    top: -20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

/* Modern Devices Section */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.device-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.device-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.device-image {
    height: 280px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.device-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.device-card:hover .device-image img {
    transform: scale(1.08);
}

.device-info {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    background: white;
}

.device-info h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.device-info p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.faq-question {
    width: 100%;
    text-align: right;
    padding: 25px;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    margin-bottom: 15px;
}

.faq-question:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px 20px 20px;
    display: none;
    color: var(--text-light);
}

/* Video Modal */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.video-thumb {
    position: relative;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-thumb img {
    width: 100%;
    display: block;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 51, 102, 0.8);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 90%;
    max-width: 800px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: -40px;
    left: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Final CTA */
.final-cta {
    background: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    padding: 80px 20px;
}

.final-cta h2 {
    color: white;
    margin-bottom: 20px;
}

.final-cta p {
    margin-bottom: 40px;
    font-size: 1.2rem;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.review-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.review-item:hover {
    transform: scale(1.02);
}

.review-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #fff;
}

.cta-meta {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Old header styles were moved to .navbar at the top */

footer {
    padding: 60px 20px;
    text-align: center;
    background: #f1f5f9;
}

footer img {
    max-width: 100px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.8;
}