/* Root Variables */
:root {
    --primary-color: #1a237e;
    --secondary-color: #0d47a1;
    --accent-color: #2196f3;
    --gold-color: #ffd700;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark-overlay: rgba(0, 0, 0, 0.7);
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    direction: rtl;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
}

    .section-title::after {
        content: '';
        display: block;
        width: 80px;
        height: 4px;
        background: var(--accent-color);
        margin: 15px auto;
    }

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

/* Navigation */
.navbar {
    background: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

    .navbar.scrolled {
        background: rgba(26, 35, 126, 0.98);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
    }

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
}

    .navbar-brand i {
        color: var(--gold-color);
        margin-left: 5px;
    }

.nav-link {
    color: var(--white) !important;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gold-color);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after {
        width: 100%;
    }

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.doctor-name {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, var(--gold-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }

    to {
        text-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

.specialty {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.certificate {
    font-size: 1.3rem;
    color: var(--gold-color);
    margin-bottom: 1rem;
}

.experience {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

    .experience i {
        color: var(--gold-color);
    }

.hero-buttons .btn {
    margin: 10px;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

    .hero-buttons .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    text-align: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

    .about-image img {
        width: 100%;
        transition: transform 0.5s ease;
    }

    .about-image:hover img {
        transform: scale(1.05);
    }

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.3);
}

    .experience-badge .years {
        font-size: 2.5rem;
        font-weight: 800;
        display: block;
        color: var(--gold-color);
    }

.certificates {
    margin-top: 2rem;
}

.cert-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 15px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .cert-item:hover {
        transform: translateX(-10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .cert-item i {
        font-size: 2rem;
        color: var(--accent-color);
        margin-left: 15px;
    }

/* Services Section */
.services-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

    .services-section .section-title {
        color: var(--white);
    }

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .service-card:hover::before {
        opacity: 1;
    }

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

        .service-card:hover * {
            color: var(--white);
            position: relative;
            z-index: 1;
        }

    .service-card i {
        font-size: 3rem;
        color: var(--accent-color);
        margin-bottom: 1.5rem;
        transition: all 0.3s ease;
    }

    .service-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

/* Cases Section */
.cases-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.case-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.comparison-slider {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.before-image, .after-image {
    position: relative;
}

    .before-image img, .after-image img {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    overflow: hidden;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.label {
    position: absolute;
    top: 20px;
    padding: 8px 20px;
    border-radius: 25px;
    color: var(--white);
    font-weight: bold;
}

.label-before {
    right: 20px;
    background: rgba(244, 67, 54, 0.8);
}

.label-after {
    left: 20px;
    background: rgba(76, 175, 80, 0.8);
}

.case-info {
    padding: 25px;
}

    .case-info h3 {
        color: var(--primary-color);
        margin-bottom: 10px;
    }

.case-year {
    display: inline-block;
    padding: 5px 15px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Statistics Section */
.statistics-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

    .stat-card:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.2);
    }

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--white);
    font-size: 1.2rem;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--white);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 15px;
    transition: all 0.3s ease;
}

    .contact-item:hover {
        transform: translateX(-10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .contact-item i {
        font-size: 2rem;
        color: var(--accent-color);
        margin-left: 20px;
        margin-top: 5px;
    }

.map-container {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

.map-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

    .map-placeholder i {
        font-size: 4rem;
        margin-bottom: 20px;
    }

/* Footer */
.footer-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

    .footer-section h3 {
        margin-bottom: 20px;
        color: var(--gold-color);
    }

    .footer-section ul {
        list-style: none;
        padding: 0;
    }

        .footer-section ul li {
            margin-bottom: 10px;
        }

            .footer-section ul li a {
                color: var(--white);
                text-decoration: none;
                transition: color 0.3s ease;
            }

                .footer-section ul li a:hover {
                    color: var(--gold-color);
                }

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--white);
    margin-left: 10px;
    transition: all 0.3s ease;
}

    .social-links a:hover {
        background: var(--accent-color);
        transform: translateY(-5px);
    }

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .doctor-name {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 120px 0;
    }
}


/* About Page Styles */
.about-hero {
    height: 50vh;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.doctor-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 15px;
    text-align: center;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 35, 126, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(26, 35, 126, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(26, 35, 126, 0);
    }
}

.stats-row {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

/* Qualifications Section */
.qualifications-section {
    padding: 80px 0;
}

.qualification-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

    .qualification-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

.qual-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

    .timeline::before {
        content: '';
        position: absolute;
        right: 50%;
        top: 0;
        bottom: 0;
        width: 2px;
        background: var(--accent-color);
    }

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px var(--accent-color);
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-year {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Services Page Styles */
.services-hero {
    height: 50vh;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    position: relative;
    display: flex;
    align-items: center;
}

.detailed-services {
    padding: 80px 0;
}

.service-detail-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    .service-detail-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }

.service-icon-wrapper {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    color: var(--white);
}

    .service-icon-wrapper i {
        font-size: 4rem;
        margin-bottom: 20px;
    }

.service-price {
    font-size: 1.2rem;
    color: var(--gold-color);
    font-weight: bold;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: var(--light-bg);
    border-radius: 8px;
}

    .detail-item i {
        color: #4caf50;
        margin-left: 10px;
    }

/* Cases Page Styles */
.cases-hero {
    height: 50vh;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    position: relative;
    display: flex;
    align-items: center;
}

.filter-section {
    padding: 30px 0;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 70px;
    z-index: 10;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .filter-btn.active,
    .filter-btn:hover {
        background: var(--primary-color);
        color: var(--white);
    }

.comparison-container {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.before-after-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.before-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    clip-path: inset(0 50% 0 0);
}

.labels {
    position: absolute;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.label {
    padding: 8px 20px;
    border-radius: 25px;
    color: var(--white);
    font-weight: bold;
}

.label-before {
    background: rgba(244, 67, 54, 0.8);
}

.label-after {
    background: rgba(76, 175, 80, 0.8);
}

/* Contact Page Styles */
.contact-hero {
    height: 40vh;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    position: relative;
    display: flex;
    align-items: center;
}

.contact-main-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.info-card {
    display: flex;
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    .info-card:hover {
        transform: translateX(-10px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

.info-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-left: 20px;
    width: 60px;
    height: 60px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form .form-control {
    border-radius: 10px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

    .contact-form .form-control:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
    }

.map-wrapper {
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    position: relative;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    color: var(--white);
}

    .map-content i {
        font-size: 4rem;
        margin-bottom: 20px;
        color: var(--gold-color);
    }

.emergency-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.emergency-card {
    color: var(--white);
}

    .emergency-card i {
        font-size: 4rem;
        margin-bottom: 20px;
        animation: bounce 2s infinite;
    }

/* ========== PRELOADER ========== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

    .preloader.hidden {
        opacity: 0;
        visibility: hidden;
    }

.loader-eye {
    text-align: center;
    color: white;
}

.eye-outer {
    width: 100px;
    height: 100px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: eyePulse 2s ease-in-out infinite;
}

.eye-inner {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2196f3, #1a237e);
    border-radius: 50%;
    position: relative;
    animation: eyeMove 3s ease-in-out infinite;
}

.pupil {
    width: 15px;
    height: 15px;
    background: #1a237e;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pupilMove 2s ease-in-out infinite;
}

@keyframes eyePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes eyeMove {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

@keyframes pupilMove {
    0%, 100% {
        transform: translate(-50%, -50%);
    }

    25% {
        transform: translate(-30%, -50%);
    }

    75% {
        transform: translate(-70%, -50%);
    }
}

.loader-eye p {
    font-size: 1.2rem;
    margin-top: 20px;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ========== CUSTOM CURSOR ========== */
.custom-cursor {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

.custom-cursor.hover {
    transform: scale(1.5);
    background: rgba(33, 150, 243, 0.1);
    border-color: var(--gold-color);
}

/* ========== ANIMATED BACKGROUND ========== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.03;
    animation: floatCircle 20s ease-in-out infinite;
}

.bg-circle-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: -7s;
}

.bg-circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

.bg-line {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    opacity: 0.05;
    animation: lineFloat 15s ease-in-out infinite;
}

.bg-line-1 {
    left: 20%;
    animation-delay: 0s;
}

.bg-line-2 {
    left: 80%;
    animation-delay: -7.5s;
}

@keyframes floatCircle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(100px, -50px) scale(1.1);
    }

    50% {
        transform: translate(50px, 100px) scale(0.9);
    }

    75% {
        transform: translate(-50px, 50px) scale(1.05);
    }
}

@keyframes lineFloat {
    0%, 100% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(100%);
    }
}

/* ========== FLOATING DOCTOR IMAGE ========== */
.floating-doctor {
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 100;
    pointer-events: none;
}

.doctor-float-container {
    position: relative;
    width: 200px;
    height: 200px;
    animation: floatDoctor 6s ease-in-out infinite;
}

.doctor-float-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.3;
    filter: drop-shadow(0 10px 30px rgba(33, 150, 243, 0.3));
    animation: softGlow 3s ease-in-out infinite;
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 4s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.5s);
}

    .particle:nth-child(1) {
        top: 20%;
        left: 80%;
    }

    .particle:nth-child(2) {
        top: 60%;
        left: 85%;
    }

    .particle:nth-child(3) {
        top: 80%;
        left: 50%;
    }

    .particle:nth-child(4) {
        top: 85%;
        left: 20%;
    }

    .particle:nth-child(5) {
        top: 50%;
        left: 10%;
    }

    .particle:nth-child(6) {
        top: 20%;
        left: 15%;
    }

    .particle:nth-child(7) {
        top: 10%;
        left: 50%;
    }

    .particle:nth-child(8) {
        top: 40%;
        left: 90%;
    }

@keyframes particleFloat {
    0%, 100% {
        opacity: 0;
        transform: translate(0, 0) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translate(-20px, -30px) scale(1.5);
    }
}

@keyframes floatDoctor {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(2deg);
    }

    75% {
        transform: translateY(10px) rotate(-2deg);
    }
}

@keyframes softGlow {
    0%, 100% {
        filter: drop-shadow(0 10px 30px rgba(33, 150, 243, 0.3));
    }

    50% {
        filter: drop-shadow(0 20px 50px rgba(33, 150, 243, 0.6));
    }
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid rgba(33, 150, 243, 0.3);
    border-radius: 50%;
    animation: ringPulse 2s ease-out infinite;
}

@keyframes ringPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* ========== TYPING ANIMATION ========== */
.typing-animation {
    display: inline-block;
}

.cursor-blink {
    animation: blink 1s step-end infinite;
    color: var(--accent-color);
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ========== HERO SECTION ENHANCED ========== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: badgeGlow 2s ease-in-out infinite;
}

    .hero-badge i {
        color: var(--gold-color);
        margin-left: 10px;
        animation: rotate 4s linear infinite;
    }

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(33, 150, 243, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(33, 150, 243, 0.4);
    }
}

.hero-titles {
    margin: 20px 0;
}

.title-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1rem;
    opacity: 0.9;
}

    .title-item i {
        color: var(--gold-color);
        margin-left: 10px;
        font-size: 1.3rem;
    }

/* Experience Circle */
.experience-badge {
    margin: 30px 0;
}

.experience-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.progress-ring-circle {
    fill: none;
    stroke: var(--gold-color);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    animation: drawCircle 2s ease forwards 1s;
}

@keyframes drawCircle {
    to {
        stroke-dashoffset: 0;
    }
}

.experience-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

    .experience-text .years {
        font-size: 2rem;
        font-weight: 800;
        display: block;
        color: var(--gold-color);
    }

    .experience-text .label {
        font-size: 0.9rem;
        display: block;
    }

/* 3D Button */
.btn-3d {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .btn-3d:hover {
        transform: translateY(-3px) rotateX(10deg);
        box-shadow: 0 15px 40px rgba(33, 150, 243, 0.4);
    }

    .btn-3d:active {
        transform: translateY(0) rotateX(0);
    }

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Glass Button */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

    .btn-glass:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .btn-glass::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .btn-glass:hover::before {
        left: 100%;
    }

/* Hero Features */
.hero-features {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
}

    .feature-item i {
        color: #4caf50;
        margin-left: 5px;
        animation: checkBounce 2s ease-in-out infinite;
    }

@keyframes checkBounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Hero Doctor Image */
.hero-doctor-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.image-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient( 45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60% );
    animation: shineEffect 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes shineEffect {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.image-border-animation {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--accent-color), var(--gold-color), var(--accent-color)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-element {
    position: absolute;
    animation: floatElement 4s ease-in-out infinite;
}

.float-1 {
    top: -20px;
    right: 20px;
    animation-delay: 0s;
}

.float-2 {
    bottom: 30px;
    left: -20px;
    animation-delay: -2s;
}

.float-3 {
    top: 50%;
    right: -20px;
    animation-delay: -4s;
}

.float-element i {
    font-size: 2rem;
    color: var(--gold-color);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Mouse Scroll */
.mouse-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

    .scroll-arrows span {
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid rgba(255, 255, 255, 0.5);
        border-bottom: 2px solid rgba(255, 255, 255, 0.5);
        transform: rotate(45deg);
        animation: arrowDown 1.5s ease-in-out infinite;
    }

        .scroll-arrows span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .scroll-arrows span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes arrowDown {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* ========== GLASS CARDS ========== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image-glass {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.image-overlay-glass {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2), rgba(26, 35, 126, 0.3));
}

.cert-item-modern {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    transition: all 0.3s ease;
}

    .cert-item-modern:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: translateX(-10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

.cert-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
}

    .cert-icon i {
        font-size: 1.5rem;
        color: var(--white);
    }

/* ========== NAVIGATION ENHANCED ========== */
.navbar {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand {
    position: relative;
}

    .navbar-brand::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gold-color);
        transition: width 0.3s ease;
    }

    .navbar-brand:hover::after {
        width: 100%;
    }

.nav-link {
    position: relative;
    overflow: hidden;
}

    .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        right: 50%;
        width: 0;
        height: 2px;
        background: var(--gold-color);
        transition: all 0.3s ease;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--gold-color);
        transition: all 0.3s ease;
    }

    .nav-link:hover::before,
    .nav-link:hover::after {
        width: 50%;
    }

/* ========== SECTION HEADER ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(33, 150, 243, 0.1);
    color: var(--accent-color);
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.title-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

    .title-separator span {
        width: 50px;
        height: 2px;
        background: linear-gradient(to right, transparent, var(--accent-color), transparent);
    }

    .title-separator i {
        color: var(--accent-color);
        font-size: 1.5rem;
        animation: pulse 2s ease-in-out infinite;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .floating-doctor {
        display: none;
    }

    .custom-cursor,
    .cursor-dot {
        display: none;
    }

    .hero-section {
        text-align: center;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-doctor-image {
        margin-top: 40px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .glass-card {
        background: rgba(30, 30, 30, 0.7);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .cert-item-modern {
        background: rgba(40, 40, 40, 0.5);
    }

        .cert-item-modern:hover {
            background: rgba(50, 50, 50, 0.8);
        }
}


/* ============ NAVIGATION ============ */
:root {
    --navbar-height: 80px;
    --navbar-height-scrolled: 65px;
}

.navbar {
    height: var(--navbar-height);
    background: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1030;
}

    .navbar.scrolled {
        height: var(--navbar-height-scrolled);
        background: rgba(26, 35, 126, 0.98);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    }

/* Brand / Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 0;
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .brand-logo-fallback i {
        font-size: 1.5rem;
        color: var(--gold-color);
    }

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.brand-specialty {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Nav Links */
.navbar-nav {
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    position: relative;
    padding: 8px 16px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

    .nav-link i {
        font-size: 0.9rem;
        opacity: 0.8;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        color: var(--white) !important;
        background: rgba(255, 255, 255, 0.1);
    }

        .nav-link:hover i {
            opacity: 1;
            transform: scale(1.1);
        }

    .nav-link.active {
        color: var(--white) !important;
        background: rgba(33, 150, 243, 0.3);
    }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            background: var(--gold-color);
            border-radius: 2px;
        }

/* Dropdown */
.dropdown-menu {
    background: rgba(26, 35, 126, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 10px;
    margin-top: 15px;
    min-width: 220px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

    .dropdown-item:hover {
        color: var(--white);
        background: rgba(33, 150, 243, 0.2);
        padding-right: 25px;
    }

/* Navbar Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .theme-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(15deg);
    }

.navbar-phone-btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--accent-color);
    border: none;
    transition: all 0.3s ease;
}

    .navbar-phone-btn:hover {
        background: var(--primary-light);
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(33, 150, 243, 0.3);
    }

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

    .navbar-toggler:focus {
        box-shadow: none;
        background: rgba(255, 255, 255, 0.2);
    }

.toggler-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Breadcrumb */
.breadcrumb-wrapper {
    background: var(--bg-secondary);
    padding: 15px 0;
    margin-top: var(--navbar-height);
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: var(--gray-400);
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar {
        height: auto;
        min-height: 70px;
    }

    .navbar-collapse {
        background: rgba(26, 35, 126, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 20px;
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-actions {
        margin: 15px 0 0 0;
        justify-content: center;
    }

    .nav-link {
        padding: 12px 20px !important;
    }

    .dropdown-menu {
        background: rgba(0, 0, 0, 0.2);
        border: none;
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 575.98px) {
    .brand-name {
        font-size: 0.9rem;
    }

    .brand-specialty {
        font-size: 0.65rem;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .navbar-phone-btn span {
        display: none;
    }
}

:root {
    --primary: #1a237e;
    --primary-dark: #0d1b5e;
    --accent: #2196f3;
    --gold: #ffd700;
    --white: #ffffff;
    --dark: #1a1a2e;
    --gray: #f5f5f5;
    --navbar-h: 75px;
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    overflow-x: hidden;
    background: var(--white);
    color: #333;
    line-height: 1.7;
    padding-top: var(--navbar-h);
}

/* ===== PRELOADER FIXED ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

    #preloader.fade-out {
        opacity: 0;
        visibility: hidden;
    }

.preloader-content {
    text-align: center;
    color: white;
}

.preloader-eye {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    position: relative;
}

    .preloader-eye svg {
        width: 100%;
        height: 100%;
    }

.preloader-title {
    font-family: 'Cairo', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--gold);
}

.preloader-subtitle {
    font-size: 1rem;
    opacity: 0.8;
}

.preloader-bar-wrap {
    width: 200px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    margin: 25px auto 0;
    overflow: hidden;
}

.preloader-bar-fill {
    height: 100%;
    width: 0;
    background: var(--gold);
    border-radius: 3px;
    animation: loadBar 1.8s ease forwards;
}

@keyframes loadBar {
    0% {
        width: 0;
    }

    50% {
        width: 60%;
    }

    100% {
        width: 100%;
    }
}

/* ===== PAGE TRANSITION ===== */
.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: var(--primary);
    z-index: 9999;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

    .page-transition-overlay.active {
        transform: scaleY(1);
        transform-origin: top;
    }

/* ===== NAVBAR ===== */
.navbar {
    height: var(--navbar-h);
    background: rgba(26, 35, 126, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: all var(--transition);
    z-index: 1000;
}

    .navbar.scrolled {
        height: 65px;
        background: rgba(26, 35, 126, 0.98);
        box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    }

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo-wrap {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.navbar.scrolled .brand-logo-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
}

.brand-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-logo-fallback {
    color: var(--gold);
    font-size: 1.5rem;
}

.brand-text {
    line-height: 1.2;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    display: block;
}

.brand-specialty {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.65);
    display: block;
}

.nav-link {
    color: rgba(255,255,255,0.85) !important;
    padding: 8px 15px !important;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    margin: 0 2px;
    white-space: nowrap;
}

    .nav-link i {
        margin-left: 5px;
        font-size: 0.85rem;
    }

    .nav-link:hover, .nav-link.active {
        color: white !important;
        background: rgba(255,255,255,0.12);
    }

    .nav-link.active {
        background: rgba(33,150,243,0.25);
        position: relative;
    }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 50%;
            transform: translateX(-50%);
            width: 18px;
            height: 2px;
            background: var(--gold);
            border-radius: 2px;
        }

.navbar-phone-btn {
    background: var(--accent) !important;
    color: white !important;
    border-radius: 10px !important;
    padding: 10px 18px !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
}

    .navbar-phone-btn:hover {
        background: #1976d2 !important;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(33,150,243,0.3);
    }

.navbar-toggler {
    border: none;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 10px;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

    .navbar-toggler .bar {
        display: block;
        width: 22px;
        height: 2px;
        background: white;
        margin: 5px 0;
        transition: all 0.3s;
    }

/* ===== FOOTER ===== */
.footer {
    background: #0a0e27;
    color: rgba(255,255,255,0.8);
    position: relative;
}

.footer-top {
    padding: 60px 0 40px;
    position: relative;
    z-index: 1;
}

.footer-waves {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

    .footer-waves svg {
        position: relative;
        display: block;
        width: calc(100% + 1.3px);
        height: 60px;
    }

    .footer-waves path {
        fill: var(--white);
    }

.footer-logo-fallback {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-title {
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

    .footer-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 40px;
        height: 2px;
        background: var(--gold);
    }

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 10px;
    }

    .footer-links a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        transition: all 0.3s;
        font-size: 0.9rem;
    }

        .footer-links a:hover {
            color: var(--gold);
            padding-right: 5px;
        }

    .footer-links i {
        font-size: 0.6rem;
        margin-left: 8px;
    }

.footer-contact {
    list-style: none;
    padding: 0;
}

    .footer-contact li {
        display: flex;
        gap: 12px;
        margin-bottom: 15px;
        font-size: 0.9rem;
    }

    .footer-contact i {
        color: var(--accent);
        font-size: 1.1rem;
        margin-top: 3px;
        flex-shrink: 0;
    }

    .footer-contact a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
    }

    .footer-contact strong {
        color: white;
        display: block;
        margin-bottom: 3px;
    }

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-left: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

    .social-icon:hover {
        background: var(--accent);
        transform: translateY(-3px);
        color: white;
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    font-size: 0.85rem;
}

    .footer-bottom a {
        color: rgba(255,255,255,0.6);
        text-decoration: none;
        margin: 0 10px;
    }

/* ===== FLOATING BUTTONS ===== */
.floating-btns {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all var(--transition);
    position: relative;
}

    .float-btn:hover {
        transform: translateY(-5px) scale(1.05);
        color: white;
    }

    .float-btn.whatsapp {
        background: #25d366;
    }

    .float-btn.phone {
        background: var(--accent);
    }

    .float-btn.scroll-top {
        background: var(--primary);
        opacity: 0;
        visibility: hidden;
        transform: translateY(20px);
    }

        .float-btn.scroll-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

    .float-btn .pulse {
        position: absolute;
        inset: -4px;
        border-radius: 50%;
        border: 2px solid currentColor;
        animation: floatPulse 2s infinite;
        opacity: 0;
    }

@keyframes floatPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ===== BREADCRUMB ===== */
.breadcrumb-nav {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item.active {
    color: #888;
}

/* ===== COOKIE ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    background: white;
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 9998;
    display: none;
    align-items: center;
    gap: 15px;
    max-width: 500px;
    animation: slideUp 0.5s ease;
}

    .cookie-banner.show {
        display: flex;
    }

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(26,35,126,0.98);
        border-radius: 15px;
        padding: 15px;
        margin-top: 10px;
    }

    .navbar-phone-btn {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .navbar-brand .brand-specialty {
        display: none;
    }

    .floating-btns {
        bottom: 15px;
        left: 15px;
        gap: 8px;
    }

    .float-btn {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* ============ VIDEO BACKGROUND ============ */
.video-background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    transition: transform 0.1s ease-out, opacity 0.3s ease;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    background: linear-gradient( 135deg, rgba(26, 35, 126, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(13, 71, 161, 0.7) 100% );
    z-index: 1;
}

/* فيديو fallback */
.video-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    z-index: 0;
}

    .video-fallback .bg-circle {
        position: absolute;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(33,150,243,0.3) 0%, transparent 70%);
        animation: floatCircle 20s ease-in-out infinite;
    }

    .video-fallback .bg-circle-1 {
        width: 600px;
        height: 600px;
        top: -100px;
        right: -100px;
    }

    .video-fallback .bg-circle-2 {
        width: 400px;
        height: 400px;
        bottom: -50px;
        left: -50px;
        animation-delay: -7s;
    }

    .video-fallback .bg-circle-3 {
        width: 300px;
        height: 300px;
        top: 40%;
        left: 30%;
        animation-delay: -14s;
    }

@keyframes floatCircle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(80px, -40px) scale(1.1);
    }

    50% {
        transform: translate(40px, 80px) scale(0.9);
    }

    75% {
        transform: translate(-40px, 40px) scale(1.05);
    }
}

/* ============ HERO SECTION WITH VIDEO ============ */
.hero-section-video {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: transparent;
    z-index: 1;
}

    .hero-section-video .hero-overlay {
        display: none; /* الـ overlay موجود في video-overlay */
    }

/* ============ SCROLL INDICATOR ============ */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 2;
}

    .scroll-indicator span {
        display: block;
        font-size: 0.8rem;
        margin-bottom: 10px;
        opacity: 0.7;
        letter-spacing: 2px;
    }

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 13px;
    margin: 0 auto;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(18px);
    }
}

/* ============ SERVICE CARD ENHANCED ============ */
.service-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    height: 100%;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(to left, var(--accent), var(--gold));
        transform: scaleX(0);
        transition: transform 0.4s ease;
    }

    .service-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    }

        .service-card:hover::before {
            transform: scaleX(1);
        }

.service-icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s;
}

.service-card:hover .service-icon-wrap {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 30px rgba(33,150,243,0.3);
}

.service-icon-wrap i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1a1a2e;
    font-weight: 700;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============ ABOUT IMAGE ============ */
.about-image-wrap {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.about-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s;
}

.about-image-wrap:hover .about-img {
    transform: scale(1.05);
}

.about-img-fallback {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #1a237e, #2196f3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 1.5rem;
}

    .about-img-fallback i {
        font-size: 4rem;
        margin-bottom: 15px;
    }

/* ============ CONTACT ENHANCED ============ */
.contact-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(26,35,126,0.1), rgba(33,150,243,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .contact-icon-wrap i {
        font-size: 1.3rem;
        color: var(--accent);
    }

/* ============ STATISTICS ENHANCED ============ */
.statistics-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    position: relative;
}

    .statistics-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        pointer-events: none;
    }

.stat-card {
    text-align: center;
    padding: 35px 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

    .stat-card:hover {
        background: rgba(255,255,255,0.15);
        transform: translateY(-8px);
    }

.stat-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .video-background-wrapper {
        height: 100vh;
    }

    .hero-section-video {
        min-height: 100vh;
    }

    .about-img {
        height: 300px;
    }

    .about-img-fallback {
        height: 300px;
    }

    .stat-number {
        font-size: 2rem;
    }
}


/* ============ VARIABLES ============ */
:root {
    --primary: #1a237e;
    --primary-dark: #0d1b5e;
    --primary-light: #283593;
    --accent: #2196f3;
    --accent-light: #64b5f6;
    --gold: #ffd700;
    --gold-light: #fff176;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #64748b;
    --gray-800: #1e293b;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-xl: 0 30px 80px rgba(0,0,0,0.16);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ VIDEO BACKGROUND ============ */
.video-background-wrapper {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    transition: transform 0.15s ease-out, opacity 0.4s ease;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(13,27,94,0.82) 0%, rgba(0,0,0,0.55) 50%, rgba(13,71,161,0.78) 100%);
}

.video-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: none;
}

    .video-fallback.active {
        display: block;
    }

.fallback-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #1a237e 100%);
}

.fallback-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    animation: fallbackFloat 8s linear infinite;
}

    .fallback-particles span:nth-child(1) {
        top: 10%;
        left: 20%;
        animation-delay: 0s
    }

    .fallback-particles span:nth-child(2) {
        top: 30%;
        left: 70%;
        animation-delay: -2s
    }

    .fallback-particles span:nth-child(3) {
        top: 50%;
        left: 40%;
        animation-delay: -4s
    }

    .fallback-particles span:nth-child(4) {
        top: 70%;
        left: 80%;
        animation-delay: -6s
    }

    .fallback-particles span:nth-child(5) {
        top: 20%;
        left: 50%;
        animation-delay: -1s
    }

    .fallback-particles span:nth-child(6) {
        top: 60%;
        left: 10%;
        animation-delay: -3s
    }

    .fallback-particles span:nth-child(7) {
        top: 80%;
        left: 30%;
        animation-delay: -5s
    }

    .fallback-particles span:nth-child(8) {
        top: 40%;
        left: 90%;
        animation-delay: -7s
    }

@keyframes fallbackFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0
    }

    20% {
        opacity: 1
    }

    80% {
        opacity: 1
    }

    100% {
        transform: translateY(-100vh) scale(0.5);
        opacity: 0
    }
}

/* ============ HERO SECTION ============ */
.hero-section-video {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1;
    padding-top: var(--navbar-h, 75px);
}

.hero-badge-wrapper {
    margin-bottom: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    padding: 10px 22px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%,100% {
        box-shadow: 0 0 0 0 rgba(76,175,80,0.6)
    }

    50% {
        box-shadow: 0 0 0 12px rgba(76,175,80,0)
    }
}

.badge-icon-pulse {
    color: var(--gold);
    animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
    0%,100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.2)
    }
}

/* اسم الدكتور */
.doctor-name {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 15px;
}

.name-greeting {
    display: inline-block;
    font-size: 0.5em;
    font-weight: 400;
    color: var(--gold);
    vertical-align: super;
    margin-left: 5px;
}

.name-main {
    background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* الألقاب */
.hero-titles {
    margin-bottom: 30px;
}

.title-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
}

.title-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .title-icon i {
        color: var(--gold);
        font-size: 0.9rem;
    }

/* دائرة الخبرة */
.experience-badge-wrapper {
    margin-bottom: 35px;
}

.experience-circle {
    position: relative;
    width: 110px;
    height: 110px;
}

    .experience-circle svg {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
    }

.progress-bg {
    fill: none;
    stroke: rgba(255,255,255,0.1);
    stroke-width: 5;
}

.progress-fill {
    fill: none;
    stroke: var(--gold);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 389.56;
    stroke-dashoffset: 389.56;
    animation: fillProgress 2s ease forwards 0.5s;
}

@keyframes fillProgress {
    to {
        stroke-dashoffset: 77.9;
    }
}

.experience-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.years-counter {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.years-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* الأزرار */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: 0 8px 25px rgba(33,150,243,0.3);
}

    .hero-btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(33,150,243,0.45);
        background: #1976d2;
        color: white;
    }

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.hero-btn-primary:hover .btn-shine {
    left: 100%;
}

.hero-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,0.4);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition);
    background: transparent;
}

    .hero-btn-outline:hover {
        background: rgba(255,255,255,0.1);
        border-color: white;
        transform: translateY(-3px);
        color: white;
    }

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* المميزات */
.hero-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

    .feature-item i {
        color: #4caf50;
        font-size: 1rem;
    }

/* صورة الدكتور */
.hero-doctor-wrapper {
    display: flex;
    justify-content: center;
}

.doctor-image-container {
    position: relative;
    width: 380px;
    height: 460px;
}

.doctor-image-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(33,150,243,0.2) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%,100% {
        opacity: 0.5;
        transform: scale(1)
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05)
    }
}

.doctor-main-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 30px;
}

.doctor-image-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(26,35,126,0.5), rgba(33,150,243,0.3));
    border-radius: 30px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255,255,255,0.3);
}

/* عناصر عائمة */
.floating-icon {
    position: absolute;
    z-index: 2;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    animation: floatIcon 5s ease-in-out infinite;
}

    .floating-icon i {
        color: var(--gold);
        font-size: 1rem;
    }

.fi-1 {
    top: 10%;
    right: -10px;
    animation-delay: 0s;
}

.fi-2 {
    bottom: 20%;
    left: -15px;
    animation-delay: -1.5s;
}

.fi-3 {
    top: 40%;
    right: -25px;
    animation-delay: -3s;
}

.fi-4 {
    top: 60%;
    left: -20px;
    animation-delay: -4.5s;
}

@keyframes floatIcon {
    0%,100% {
        transform: translateY(0) rotate(0deg)
    }

    33% {
        transform: translateY(-15px) rotate(5deg)
    }

    66% {
        transform: translateY(8px) rotate(-3deg)
    }
}

/* مؤشر التمرير */
.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 2;
}

    .scroll-indicator span {
        display: block;
        font-size: 0.75rem;
        margin-bottom: 8px;
        opacity: 0.6;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 7px;
    background: white;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0)
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px)
    }
}

/* ============ SERVICES SECTION ============ */
.services-section {
    padding: 100px 0;
    position: relative;
    background: var(--gray-50);
}

.services-bg-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: radial-gradient(circle, #1a237e 1px, transparent 1px);
    background-size: 30px 30px;
}

.service-card {
    background: white;
    border-radius: var(--radius-md);
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid transparent;
    overflow: hidden;
}

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: var(--accent-light);
    }

.service-card-inner {
    padding: 35px 28px;
}

.service-icon-box {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e8f0fe, #d4e4fd);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

    .service-icon-box i {
        font-size: 1.8rem;
        color: var(--accent);
        position: relative;
        z-index: 1;
    }

.icon-glow {
    position: absolute;
    inset: -5px;
    border-radius: 20px;
    background: var(--accent);
    opacity: 0;
    filter: blur(15px);
    transition: opacity var(--transition);
}

.service-card:hover .icon-glow {
    opacity: 0.15;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--gray-800);
}

.service-desc {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

.service-hover-line {
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin-top: 20px;
    transition: width var(--transition);
}

.service-card:hover .service-hover-line {
    width: 50px;
}

/* ============ SECTION HEADER ============ */
.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(33,150,243,0.08);
    color: var(--accent);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.section-title {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 12px;
}

.section-description {
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ============ ABOUT SECTION ============ */
.about-section {
    padding: 100px 0;
    background: white;
}

.about-image-wrapper {
    position: relative;
}

.about-image-box {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.about-img-fallback {
    width: 100%;
    height: 480px;
    background: linear-gradient(135deg, #1a237e, #2196f3);
    display: none;
    align-items: center;
    justify-content: center;
}

.fallback-content {
    text-align: center;
    color: rgba(255,255,255,0.4);
}

    .fallback-content i {
        font-size: 5rem;
        display: block;
        margin-bottom: 10px;
    }

.about-image-border {
    position: absolute;
    inset: 10px;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.2);
    pointer-events: none;
}

.about-experience-card {
    position: absolute;
    bottom: -25px;
    left: -25px;
    background: var(--primary);
    color: white;
    padding: 18px 28px;
    border-radius: 18px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.exp-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.exp-text {
    font-size: 0.85rem;
    opacity: 0.8;
}

.about-text {
    color: var(--gray-600);
    line-height: 1.9;
    margin-bottom: 25px;
}

.about-highlights {
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 14px;
    transition: all var(--transition);
}

    .highlight-item:hover {
        background: #e8f0fe;
        transform: translateX(-5px);
    }

    .highlight-item i {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: var(--accent);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 1rem;
    }

    .highlight-item strong {
        display: block;
        font-size: 0.9rem;
        color: var(--gray-800);
    }

    .highlight-item span {
        font-size: 0.8rem;
        color: var(--gray-600);
    }

.btn-about {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
}

    .btn-about:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        color: white;
    }

/* ============ STATISTICS SECTION ============ */
.statistics-section {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
}

.statistics-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='white' opacity='0.04'/%3E%3C/svg%3E");
}

.stat-card {
    text-align: center;
    padding: 35px 20px;
    position: relative;
    z-index: 1;
}

.stat-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.5rem;
    color: var(--gold);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 5px;
    font-family: 'Cairo', sans-serif;
}

.stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* ============ TESTIMONIALS ============ */
.testimonials-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
    }

.testimonial-stars {
    margin-bottom: 15px;
}

    .testimonial-stars i {
        color: #fbbf24;
        font-size: 0.9rem;
    }

.testimonial-text {
    color: var(--gray-600);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author strong {
    display: block;
    color: var(--gray-800);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* ============ CONTACT SECTION ============ */
.contact-section {
    padding: 100px 0;
    background: white;
}

.contact-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 35px;
    height: 100%;
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

    .contact-card-header i {
        font-size: 1.5rem;
        color: var(--accent);
    }

    .contact-card-header h3 {
        font-size: 1.3rem;
        font-weight: 700;
        margin: 0;
    }

.contact-list-item {
    display: flex;
    gap: 15px;
    margin-bottom: 22px;
    padding: 15px;
    background: white;
    border-radius: 14px;
    transition: all var(--transition);
}

    .contact-list-item:hover {
        transform: translateX(-5px);
        box-shadow: var(--shadow-sm);
    }

.contact-list-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8f0fe, #d4e4fd);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 1.1rem;
}

.contact-list-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-800);
    margin-bottom: 3px;
}

.contact-list-item p, .contact-list-item a {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
    text-decoration: none;
}

.contact-list-item a {
    color: var(--accent);
    font-weight: 600;
}

.btn-contact-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-radius: 50px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    border: none;
    margin-top: 10px;
}

    .btn-contact-call:hover {
        background: #1976d2;
        color: white;
        transform: translateY(-2px);
    }

/* Map Card */
.map-card {
    height: 100%;
    min-height: 350px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #1a237e, #2196f3);
    position: relative;
    overflow: hidden;
}

.map-card-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    color: white;
}

.map-pin {
    animation: mapPinBounce 2s infinite;
    margin-bottom: 15px;
}

    .map-pin i {
        font-size: 2.5rem;
        color: #ff5252;
        filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
    }

@keyframes mapPinBounce {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-15px)
    }
}

.map-main-icon {
    font-size: 4rem;
    color: rgba(255,255,255,0.2);
    margin-bottom: 15px;
}

.map-card-inner h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.map-card-inner p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.btn-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 50px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition);
}

    .btn-map:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        color: var(--primary);
    }

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .hero-section-video {
        min-height: auto;
        padding: 120px 0 60px;
        text-align: center;
    }

    .hero-titles {
        justify-content: center;
    }

    .title-item {
        justify-content: center;
    }

    .experience-badge-wrapper {
        display: flex;
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

    .about-experience-card {
        left: -10px;
        bottom: -15px;
        padding: 12px 20px;
    }

    .about-img, .about-img-fallback {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn-primary, .hero-btn-outline {
        width: 100%;
        justify-content: center;
    }

    .stat-card {
        padding: 25px 10px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* ============ NEWS TICKER (MARQUEE) ============ */
.news-ticker-wrapper {
    position: fixed;
    top: var(--navbar-h, 75px);
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(135deg, #0d1b5e, #1a237e);
    border-bottom: 2px solid var(--gold);
    height: 42px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.navbar.scrolled ~ .news-ticker-wrapper,
.navbar.scrolled + .news-ticker-wrapper {
    top: 65px;
}

.news-ticker {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.ticker-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px;
    background: var(--gold);
    color: #1a237e;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    height: 100%;
    z-index: 2;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    padding-left: 35px;
}

    .ticker-label i {
        animation: tickerIconBounce 1s ease-in-out infinite;
    }

@keyframes tickerIconBounce {
    0%,100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    gap: 50px;
    animation: tickerScroll 25s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    font-weight: 500;
}

    .ticker-item i {
        color: var(--gold);
        font-size: 0.9rem;
    }

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}
/* إيقاف مؤقت عند hover */
.ticker-content:hover .ticker-track {
    animation-play-state: paused;
}

/* تعديل margin للـ hero section بسبب الـ ticker */
.hero-section-video {
    padding-top: calc(var(--navbar-h, 75px) + 42px);
}

/* ============ DOCTOR FRAME (إطار الصورة الأنيق) ============ */
.doctor-frame {
    position: relative;
    display: inline-block;
    padding: 15px;
}

.frame-outer {
    position: relative;
    width: 340px;
    height: 420px;
    background: rgba(255,255,255,0.03);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

    .frame-outer:hover {
        transform: translateY(-10px);
        box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    }

        .frame-outer:hover .frame-glow {
            opacity: 0.6;
        }

/* زوايا الإطار */
.frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 3;
    transition: all 0.5s ease;
}

    .frame-corner::before,
    .frame-corner::after {
        content: '';
        position: absolute;
        background: var(--gold);
        transition: all 0.5s ease;
    }

.frame-corner-tl {
    top: 15px;
    left: 15px;
}

    .frame-corner-tl::before {
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
    }

    .frame-corner-tl::after {
        top: 0;
        left: 0;
        width: 2px;
        height: 100%;
    }

.frame-corner-tr {
    top: 15px;
    right: 15px;
}

    .frame-corner-tr::before {
        top: 0;
        right: 0;
        width: 100%;
        height: 2px;
    }

    .frame-corner-tr::after {
        top: 0;
        right: 0;
        width: 2px;
        height: 100%;
    }

.frame-corner-bl {
    bottom: 15px;
    left: 15px;
}

    .frame-corner-bl::before {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
    }

    .frame-corner-bl::after {
        bottom: 0;
        left: 0;
        width: 2px;
        height: 100%;
    }

.frame-corner-br {
    bottom: 15px;
    right: 15px;
}

    .frame-corner-br::before {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 2px;
    }

    .frame-corner-br::after {
        bottom: 0;
        right: 0;
        width: 2px;
        height: 100%;
    }

.frame-outer:hover .frame-corner::before,
.frame-outer:hover .frame-corner::after {
    box-shadow: 0 0 15px rgba(255,215,0,0.6);
}

/* الإطار الداخلي */
.frame-inner {
    position: absolute;
    inset: 20px;
    border-radius: 22px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.15);
    z-index: 1;
    transition: all 0.5s ease;
}

.frame-outer:hover .frame-inner {
    border-color: rgba(255,215,0,0.4);
}

/* حاوية الصورة */
.frame-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.doctor-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.frame-outer:hover .doctor-main-image {
    transform: scale(1.08);
}

/* تأثير glow */
.frame-glow {
    position: absolute;
    inset: -10px;
    border-radius: 35px;
    background: radial-gradient(ellipse at center, rgba(255,215,0,0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

/* خطوط الإطار المتحركة */
.frame-line {
    position: absolute;
    background: var(--gold);
    z-index: 2;
    opacity: 0;
    transition: all 0.5s ease;
}

.frame-line-top,
.frame-line-bottom {
    height: 2px;
    left: 20%;
    right: 20%;
}

.frame-line-top {
    top: 8px;
}

.frame-line-bottom {
    bottom: 8px;
}

.frame-line-left,
.frame-line-right {
    width: 2px;
    top: 20%;
    bottom: 20%;
}

.frame-line-left {
    left: 8px;
}

.frame-line-right {
    right: 8px;
}

.frame-outer:hover .frame-line {
    opacity: 0.8;
    box-shadow: 0 0 12px rgba(255,215,0,0.5);
}

.frame-outer:hover .frame-line-top,
.frame-outer:hover .frame-line-bottom {
    left: 8px;
    right: 8px;
}

.frame-outer:hover .frame-line-left,
.frame-outer:hover .frame-line-right {
    top: 8px;
    bottom: 8px;
}

/* ============ FLOATING ICONS ENHANCED ============ */
.floating-icon {
    position: absolute;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatIcon 6s ease-in-out infinite;
}

    .floating-icon:hover {
        background: var(--gold);
        border-color: var(--gold);
        transform: scale(1.15) !important;
        box-shadow: 0 15px 40px rgba(255,215,0,0.4);
    }

        .floating-icon:hover i {
            color: #1a237e;
        }

    .floating-icon i {
        font-size: 1.2rem;
        color: var(--gold);
        transition: color 0.3s;
    }

.fi-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.floating-icon:hover .fi-tooltip {
    opacity: 1;
}

.fi-1 {
    top: 5%;
    right: -10px;
    animation-delay: 0s;
}

.fi-2 {
    bottom: 25%;
    left: -15px;
    animation-delay: -1.5s;
}

.fi-3 {
    top: 35%;
    right: -20px;
    animation-delay: -3s;
}

.fi-4 {
    top: 55%;
    left: -20px;
    animation-delay: -4.5s;
}

@keyframes floatIcon {
    0%,100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-18px) rotate(5deg);
    }

    50% {
        transform: translateY(-5px) rotate(0deg);
    }

    75% {
        transform: translateY(-12px) rotate(-3deg);
    }
}

/* ============ DOCTOR NAME PLATE ============ */
.doctor-name-plate {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-align: center;
    z-index: 6;
    border: 2px solid rgba(255,215,0,0.3);
    box-shadow: 0 10px 35px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}

.frame-outer:hover ~ .doctor-name-plate {
    border-color: var(--gold);
    box-shadow: 0 15px 45px rgba(255,215,0,0.25);
    transform: translateX(-50%) translateY(-3px);
}

.plate-text {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
}

.plate-sub {
    display: block;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

/* ============ SCROLL REVEAL EFFECTS ============ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-on-scroll.reveal-left {
        transform: translateX(-40px);
    }

        .reveal-on-scroll.reveal-left.revealed {
            transform: translateX(0);
        }

    .reveal-on-scroll.reveal-right {
        transform: translateX(40px);
    }

        .reveal-on-scroll.reveal-right.revealed {
            transform: translateX(0);
        }

    .reveal-on-scroll.reveal-scale {
        transform: scale(0.9);
    }

        .reveal-on-scroll.reveal-scale.revealed {
            transform: scale(1);
        }

/* ============ PARALLAX LAYERS ============ */
.parallax-layer {
    transition: transform 0.1s linear;
}

/* ============ SMOOTH SCROLL BEHAVIOR ============ */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .ticker-track {
        animation: none;
    }

    .floating-icon {
        animation: none;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .news-ticker-wrapper {
        top: auto;
        position: relative;
        height: 36px;
    }

    .hero-section-video {
        padding-top: var(--navbar-h, 70px);
    }

    .ticker-label {
        font-size: 0.7rem;
        padding: 0 15px;
    }

    .ticker-item {
        font-size: 0.7rem;
    }

    .frame-outer {
        width: 280px;
        height: 350px;
    }

    .doctor-name-plate {
        padding: 10px 22px;
    }

    .plate-text {
        font-size: 0.9rem;
    }

    .floating-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

        .floating-icon i {
            font-size: 1rem;
        }
}

@media (max-width: 576px) {
    .ticker-content {
        display: none;
    }

    .ticker-label {
        clip-path: none;
        padding-right: 15px;
    }

    .frame-outer {
        width: 240px;
        height: 300px;
        border-radius: 22px;
    }

    .frame-inner {
        inset: 15px;
        border-radius: 16px;
    }

    .floating-icon {
        display: none;
    }
}

/* ============ NEWS TICKER - RTL SCROLL RIGHT TO LEFT ============ */
.news-ticker-wrapper {
    position: fixed;
    top: var(--navbar-h, 75px);
    left: 0;
    right: 0;
    z-index: 999;
    background: linear-gradient(135deg, #0d1b5e 0%, #1a237e 50%, #0d1b5e 100%);
    border-bottom: 2px solid var(--gold);
    height: 44px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: top 0.3s ease;
}

.navbar.scrolled ~ .news-ticker-wrapper {
    top: 65px;
}

.news-ticker {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

/* التصنيف الثابت على اليمين */
.ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px 0 35px;
    background: var(--gold);
    color: #1a237e;
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
    height: 100%;
    z-index: 5;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
    flex-shrink: 0;
}

    .ticker-label i {
        animation: tickerIconPulse 1.5s ease-in-out infinite;
        font-size: 0.95rem;
    }

@keyframes tickerIconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.25);
        opacity: 0.7;
    }
}

/* منطقة المحتوى المتحرك */
.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* المسار - النص يتحرك من اليمين إلى اليسار */
.ticker-track {
    display: flex;
    gap: 50px;
    white-space: nowrap;
    /* يبدأ النص من اليمين (خارج الشاشة) */
    transform: translateX(100%);
    /* سرعة بطيئة مناسبة للقراءة: 40 ثانية للنص الكامل */
    animation: tickerScrollRTL 40s linear infinite;
    will-change: transform;
}

/* النص يتحرك من اليمين إلى اليسار */
@keyframes tickerScrollRTL {
    0% {
        /* النص يبدأ خارج الشاشة من اليمين */
        transform: translateX(100%);
    }

    100% {
        /* النص ينتهي خارج الشاشة من اليسار (نصف المسافة لأن المحتوى مكرر) */
        transform: translateX(-50%);
    }
}

/* كل خبر */
.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 0;
    transition: color 0.3s;
    flex-shrink: 0;
    /* ضمان ظهور النص كاملاً */
    min-width: max-content;
}

    .ticker-item i {
        color: var(--gold);
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .ticker-item span {
        letter-spacing: 0.3px;
    }

    /* فاصل بين الأخبار */
    .ticker-item:not(:last-child)::after {
        content: '';
        display: inline-block;
        width: 5px;
        height: 5px;
        background: rgba(255, 215, 0, 0.6);
        border-radius: 50%;
        margin-right: 25px;
        flex-shrink: 0;
    }

/* تأثير hover - توقف مؤقت */
.ticker-content:hover .ticker-track {
    animation-play-state: paused;
}

/* تأثير توهج عند hover */
.ticker-item:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    cursor: default;
}

    .ticker-item:hover i {
        transform: scale(1.2);
        transition: transform 0.3s;
    }

/* تلاشي الأطراف - يمين ويسار */
.ticker-content::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to left, rgba(13, 27, 94, 0.95), transparent);
    z-index: 2;
    pointer-events: none;
}

.ticker-content::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    background: linear-gradient(to right, rgba(13, 27, 94, 0.95), transparent);
    z-index: 2;
    pointer-events: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .news-ticker-wrapper {
        position: relative;
        top: 0;
        height: 38px;
    }

    .ticker-label {
        font-size: 0.7rem;
        padding: 0 12px 0 25px;
        clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
    }

    .ticker-item {
        font-size: 0.7rem;
        gap: 5px;
    }

        .ticker-item:not(:last-child)::after {
            margin-right: 15px;
        }

    .ticker-track {
        animation: tickerScrollRTL 45s linear infinite;
    }
}

@media (max-width: 576px) {
    .news-ticker-wrapper {
        height: 32px;
    }

    .ticker-label {
        font-size: 0.65rem;
        padding: 0 10px;
    }

        .ticker-label span {
            display: none;
        }

    .ticker-label {
        clip-path: none;
        padding-right: 10px;
    }

    .ticker-item {
        font-size: 0.65rem;
    }

        .ticker-item:not(:last-child)::after {
            margin-right: 10px;
        }

    .ticker-track {
        animation: tickerScrollRTL 50s linear infinite;
    }
}

/* طباعة */
@media print {
    .news-ticker-wrapper {
        display: none;
    }
}

/* ============ CASES HERO ============ */
.cases-hero {
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    padding: 120px 0 60px;
    text-align: center;
    color: white;
}

.cases-hero-content h1 {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    margin: 15px 0;
}

.cases-hero-content p {
    opacity: 0.85;
    font-size: 1.1rem;
}

/* ============ FILTER ============ */
.filter-section {
    padding: 20px 0;
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 75px;
    z-index: 50;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

    .filter-btn:hover {
        border-color: #2196f3;
        color: #2196f3;
    }

    .filter-btn.active {
        background: #1a237e;
        border-color: #1a237e;
        color: white;
    }

/* ============ CASES GRID ============ */
.cases-grid-section {
    padding: 50px 0;
    background: #f5f5f5;
}

.case-item {
    transition: all 0.3s;
}

.case-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

    .case-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    }

/* Card Header */
.case-card-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

    .case-card-header h3 {
        font-size: 1.1rem;
        font-weight: 700;
        margin: 0;
        color: #333;
    }

.case-category {
    padding: 5px 14px;
    background: #e8eaf6;
    color: #1a237e;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Comparison Slider */
.comparison-container {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: ew-resize;
    user-select: none;
}

.before-image, .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

    .before-image img, .after-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.after-image {
    overflow: hidden;
}

.label {
    position: absolute;
    top: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
}

.label-before {
    right: 15px;
    background: rgba(244,67,54,0.85);
}

.label-after {
    left: 15px;
    background: rgba(76,175,80,0.85);
}

.slider-handle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    pointer-events: none;
}

.handle-line {
    width: 20px;
    height: 2px;
    background: white;
}

.handle-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

    .handle-circle i {
        color: #1a237e;
        font-size: 0.8rem;
    }

/* Card Body */
.case-card-body {
    padding: 20px;
}

.case-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.case-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #666;
}

    .info-item i {
        color: #2196f3;
        font-size: 0.75rem;
    }

    .info-item:last-child i {
        color: #4caf50;
    }

/* ============ TESTIMONIALS ============ */
.testimonials-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    color: white;
}

    .testimonials-section .section-title {
        color: white;
        text-align: center;
        margin-bottom: 40px;
    }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-card {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.1);
}

.stars {
    margin-bottom: 12px;
}

    .stars i {
        color: #ffd700;
        font-size: 0.85rem;
    }

.testimonial-card p {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 15px;
    opacity: 0.9;
    font-size: 0.9rem;
}

.testimonial-card strong {
    display: block;
    color: #ffd700;
    font-size: 0.9rem;
}

.testimonial-card span {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ============ CTA ============ */
.cta-section {
    padding: 70px 0;
    background: #f5f5f5;
}

    .cta-section h2 {
        margin-bottom: 10px;
    }

    .cta-section p {
        color: #666;
        margin-bottom: 25px;
    }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .cases-hero {
        padding: 100px 0 40px;
    }

    .comparison-container {
        height: 250px;
    }

    .case-info {
        flex-direction: column;
        gap: 8px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}