:root {
    /* ألوان الوضع الفاتح */
    --primary: #1db5c9;
    --primary-dark: #169aad;
    --bg-color: #f0faff;
    --nav-bg: rgba(255, 255, 255, 0.75);
    --text-color: #2d3436;
    --text-muted: #636e72;
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

[data-theme="dark"] {
    /* ألوان الوضع الداكن */
    --bg-color: #0f172a;
    --nav-bg: rgba(30, 41, 59, 0.8);
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background 0.4s ease;
    height: 200vh; /* فقط لاختبار السكرول */
}

/* النافبار الزجاجي */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px; /* شكل بيضاوي احترافي */
    padding: 10px 30px;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* حالة النافبار عند النزول (Shrink Effect) */
.navbar.scrolled {
    top: 10px; /* يفضل بعيد عن الحافة العلوية بشوية */
    width: 85%; /* يصغر شوية بلمسة جمالية */
    background: var(--nav-bg); /* زيادة التمويه */
    backdrop-filter: blur(15px);
    border: 1px solid var(--primary); /* إضافة إطار بلون البراند عند السكرول */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* ظل أعمق */
    padding: 8px 25px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
}

/* اللوجو وحركة الهزاز */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
}

.logo:hover i {
    animation: shake 0.5s ease infinite;
}

@keyframes shake {
    0% { transform: rotate(0); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
    100% { transform: rotate(0); }
}

.logo-text span { color: var(--text-color); }

/* الروابط */
.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 50px;
    transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(29, 181, 201, 0.1);
}

/* زر التبديل والـ CTA */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.theme-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.3s;
}

.theme-btn:hover { transform: scale(1.2); }

.cta-btn {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(29, 181, 201, 0.3);
    transition: 0.3s;
}

.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 181, 201, 0.4);
}


/* تنسيق الهيدر الأساسي */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, rgba(29, 181, 201, 0.1), transparent);
    overflow: hidden;
}

.hero-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

/* المحتوى النصي */
.hero-content { flex: 1; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(29, 181, 201, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
}

.hero-content h1 {
    font-size: 56px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-content h1 span { color: var(--primary); }

.hero-content p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 500px;
    line-height: 1.8;
}

/* الأزرار */
.hero-btns {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 40px;
}

.main-btn {
    padding: 15px 35px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(29, 181, 201, 0.2);
    transition: 0.3s;
}

.main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(29, 181, 201, 0.3);
}

.video-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
}

.play-icon {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--primary);
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.video-btn:hover .play-icon { background: var(--primary); color: white; }

/* الإحصائيات */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

.stat-item h4 { font-size: 24px; color: var(--text-color); }
.stat-item p { font-size: 14px; margin: 0; }
.stat-divider { width: 1px; height: 40px; background: var(--glass-border); }

/* الجزء البصري والأنيميشن */
.hero-visual { flex: 1; position: relative; }
.image-wrapper { position: relative; width: 100%; text-align: right; }
.main-img { width: 90%; animation: float 6s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-card {
    position: absolute;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    animation: float 4s ease-in-out infinite alternate;
}

.card-1 { top: 20%; left: 0; }
.card-2 { bottom: 20%; right: 5%; animation-delay: 1s; }
.floating-card i { color: var(--primary); font-size: 18px; }

/* الموجة السفلية */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}
.hero-wave .shape-fill { fill: var(--bg-color); }

/* للموبايل */
@media (max-width: 992px) {
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content h1 { font-size: 40px; }
    .hero-content p { margin: 0 auto 30px; }
    .hero-btns { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 50px; }
}

/* سكشن الخدمات */
.services {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.sub-title {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
}

.section-header h2 {
    font-size: 36px;
    margin: 10px 0 20px;
    color: var(--text-color);
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* توزيع الكروت */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* تصميم الكارت */
.service-card {
    background: var(--nav-bg);
    padding: 40px 30px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px);
    background: var(--primary);
    border-color: var(--primary);
}

/* تغيير ألوان العناصر عند الـ Hover */
.service-card:hover h3, 
.service-card:hover p,
.service-card:hover .read-more {
    color: white !important;
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(29, 181, 201, 0.1);
    color: var(--primary);
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 30px;
    margin: 0 auto 25px;
    transition: 0.4s;
}

.service-card:hover .icon-box {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}


/* Doctors Section Styling */
.doctors-ultra {
    padding: 100px 0;
    background: var(--bg-color);
    overflow: hidden;
}


.premium-layout {
    max-width: 1250px; 
    margin: 0 auto;
    padding: 0 40px; 
}

.section-intro { text-align: center; margin-bottom: 80px; }
.ultra-tag { color: var(--primary); font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: 2px; opacity: 0.8; }
.section-intro h2 { font-size: 42px; color: var(--text-color); margin-top: 10px; }
.section-intro h2 span { color: var(--primary); }

/* شبكة الكروت - 4 أعمدة متساوية */
.ultra-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* تصميم الكارت الزجاجي المصغر */
.ultra-card {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 30px 15px 25px;
    border: 1px solid var(--glass-border);
    transition: 0.4s ease;
    text-align: center;
    position: relative;
}

.ultra-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* صورة الدكتور الطافية */
.doc-image-wrap {
    width: 130px; /* حجم أصغر متناسق */
    height: 130px;
    margin: -65px auto 20px;
    position: relative;
}

.doc-image-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--nav-bg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.doc-badge {
    position: absolute; bottom: 5px; right: -5px;
    background: var(--primary); color: white;
    padding: 4px 12px; border-radius: 12px; font-size: 10px; font-weight: 700;
}

/* النصوص والبيانات */
.doc-details h3 { font-size: 18px; color: var(--text-color); margin-bottom: 5px; }
.doc-details p { font-size: 13px; color: var(--text-muted); margin-bottom: 15px; }

.doc-stats {
    display: flex; justify-content: center; gap: 20px;
    padding-top: 15px; margin-bottom: 20px;
    border-top: 1px solid var(--glass-border);
}

.stat span { display: block; font-size: 16px; font-weight: 700; color: var(--text-color); }
.stat small { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }

/* زر View Profile */
.view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: rgba(29, 181, 201, 0.1);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--primary);
    transition: 0.3s;
}

.view-btn:hover {
    background: var(--primary);
    color: white;
}

.view-btn i { font-size: 11px; }

/* Responsive */
@media (max-width: 1100px) { .ultra-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px) { 
    .ultra-grid { grid-template-columns: 1fr; }
    .premium-layout { padding: 0 20px; }
    .ultra-card { margin-top: 50px; }
}


/* Appointment Styling */
.appointment { padding: 100px 0; }
.appointment-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--nav-bg);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.input-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.input-group input, .input-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--bg-color);
    color: var(--text-color);
}
.payment-methods { margin: 30px 0; border-top: 1px solid var(--glass-border); padding-top: 20px; }
.payment-options { display: flex; gap: 20px; margin-top: 15px; }
.pay-card {
    flex: 1;
    cursor: pointer;
    position: relative;
}
.pay-card input { display: none; }
.pay-info {
    padding: 15px;
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
}
.pay-card input:checked + .pay-info {
    border-color: var(--primary);
    background: rgba(29, 181, 201, 0.1);
}
.visa-inputs { margin-top: 15px; display: flex; flex-direction: column; gap: 10px; padding: 20px ; border-radius: 12px; }
.visa-inputs input{
width: 100%;
padding: 12px 15px;
border-radius:12px ;
border:1px solid var(--glass-border) ;
background: var(--bg-color);
color: var(--text-color);
margin: 10px;
}
.small-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.confirm-btn { width: 100%; justify-content: center; border: none; cursor: pointer; }
.confirm-btn:hover{box-shadow:0 0 7px var(--primary) ;}

/* Time Indicator */
.time-indicator {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}

/* Validation Icons */
.validation-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    display: none;
}

.validation-icon.valid {
    color: #10b981;
    display: block;
}

.validation-icon.invalid {
    color: #ef4444;
    display: block;
}

.input-group {
    position: relative;
}

/* Fee Display */
.fee-display {
    margin-top: 8px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

/* Live Summary */
.live-summary {
    background: rgba(29, 181, 201, 0.1);
    border: 1px solid var(--primary);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.live-summary h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 16px;
}

.live-summary p {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
}

/* WhatsApp Reminder */
.whatsapp-reminder {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-color);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--glass-border);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: 0.3s;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--nav-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    z-index: 3000;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-color: #10b981;
}

.toast.error {
    border-color: #ef4444;
}

.toast h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.toast p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Footer Styling */
.main-footer { background: var(--nav-bg); position: relative;  }

.footer-wave .shape-fill { fill: var(--bg-color); }
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding: 0 40px 50px;
}
.footer-about p { margin: 20px 0; color: var(--text-muted); line-height: 1.6; }
.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary); color: white;
    display: grid; place-items: center; text-decoration: none; transition: 0.3s;
}
.social-links a:hover{
    background: #169aad;
    box-shadow: 0 0 7px var(--primary) ;
}
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 12px; }
.footer-links a { text-decoration: none; color: var(--text-muted); transition: 0.3s; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { text-align: center; padding: 25px; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 14px; }

/* Modal */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    display: none; place-items: center; z-index: 2000;
}
.modal-content {
    background: var(--nav-bg); padding: 40px; border-radius: 30px;
    text-align: center; border: 1px solid var(--primary); animation: pop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.main-btn{
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(29, 181, 201, 0.2) ;
    margin: 20px auto 0;
    border: 1px solid ;
}

@keyframes pop { from { transform: scale(0.5); } to { transform: scale(1); } }
.modal-content i { font-size: 60px; color: #2ecc71; margin-bottom: 20px; }



