:root {
    --primary-blue: #004aad;
    --primary-dark: #002d6b;
    --accent-orange: #ff6b00;
    --light-bg: #f4f7f6;
    --text-dark: #2c3e50;
    --text-light: #fff;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', sans-serif; }
html { scroll-behavior: smooth; } /* سكرول ناعم جداً */
body { background-color: var(--light-bg); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #e0e0e0; }
::-webkit-scrollbar-thumb { background: var(--primary-blue); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-orange); }

/* Scroll Progress Bar */
#progressBar {
    position: fixed; top: 0; right: 0; width: 0%; height: 5px;
    background: var(--accent-orange); z-index: 9999;
    box-shadow: 0 0 10px var(--accent-orange); transition: width 0.1s ease-out;
}

/* Floating WhatsApp */
.float-wa {
    position: fixed; bottom: 30px; right: 30px;
    background-color: #25d366; color: #fff;
    width: 65px; height: 65px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 35px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    z-index: 1000; text-decoration: none;
    animation: float-bounce 3s infinite ease-in-out;
    transition: transform 0.3s, background 0.3s;
}
.float-wa:hover { transform: scale(1.15) rotate(10deg); background-color: #1ebe57; color: #fff;}
@keyframes float-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Hero Section with animated gradient */
.hero {
    background: linear-gradient(-45deg, var(--primary-blue), var(--primary-dark), #001533, var(--primary-blue));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-light); text-align: center;
    padding: 120px 20px 100px; position: relative; overflow: hidden;
}
@keyframes gradientBG { 0% {background-position: 0% 50%;} 50% {background-position: 100% 50%;} 100% {background-position: 0% 50%;} }

.hero h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 900; }
.hero h1 .highlight { color: var(--accent-orange); text-shadow: 0 0 15px rgba(255, 107, 0, 0.4); }
.hero p { font-size: 1.3rem; margin-bottom: 40px; max-width: 650px; margin-inline: auto; opacity: 0.9; }

/* Glowing Button Effect */
.glow-btn {
    display: inline-block; background-color: var(--accent-orange); color: var(--text-light);
    padding: 15px 40px; text-decoration: none; font-size: 1.2rem; font-weight: bold;
    border-radius: 50px; border: none; cursor: pointer; position: relative; overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.4); transition: transform 0.3s, box-shadow 0.3s;
}
.glow-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.4), rgba(255,255,255,0));
    transform: skewX(-25deg); animation: shine 3s infinite;
}
@keyframes shine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }
.glow-btn:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(255, 107, 0, 0.6); }

/* About & Glassmorphism Cards */
.about { padding: 80px 20px; text-align: center; background-color: #fff; }
.dr-image {
    width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
    border: 4px solid var(--accent-orange); padding: 5px; /* تأثير حلقة خارجية */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); margin-bottom: 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.dr-image:hover { transform: scale(1.1) rotate(5deg); }
.about-header h2 { color: var(--primary-blue); font-size: 2.5rem; margin-bottom: 40px; }

.about-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; }
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 74, 173, 0.1);
    padding: 40px 30px; border-radius: 20px; flex: 1; min-width: 300px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
}
.glass-card::after { /* خط سفلي متحرك */
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 4px;
    background: var(--accent-orange); transition: width 0.4s ease;
}
.glass-card:hover { transform: translateY(-15px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.glass-card:hover::after { width: 100%; }
.glass-card i { font-size: 3.5rem; color: var(--primary-blue); margin-bottom: 20px; transition: transform 0.3s; }
.glass-card:hover i { transform: scale(1.1); color: var(--accent-orange); }

/* Stats */
.stats { background-color: var(--primary-blue); color: var(--text-light); padding: 80px 20px; text-align: center; }
.stats-container { display: flex; justify-content: space-around; flex-wrap: wrap; max-width: 1000px; margin: 0 auto; gap: 30px; }
.stat-box i { font-size: 3.5rem; color: var(--accent-orange); margin-bottom: 15px; }
.stat-number { font-size: 4rem; font-weight: 900; margin-bottom: 10px; display: inline-block; }
.stat-box:nth-child(1) .stat-number::after, .stat-box:nth-child(2) .stat-number::after { content: '+'; color: var(--accent-orange); font-size: 3rem; }
.stat-box:nth-child(3) .stat-number::after { content: '%'; color: var(--accent-orange); font-size: 3rem; }

/* Contact Form */
.contact { padding: 80px 20px; background-color: var(--light-bg); }
.contact-container {
    max-width: 600px; margin: 0 auto; background: #fff; padding: 50px;
    border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.contact h2 { text-align: center; color: var(--primary-blue); margin-bottom: 30px; font-size: 2.2rem; }
.form-group { margin-bottom: 25px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; border: 2px solid #e0e0e0; border-radius: 10px;
    font-size: 1rem; background: #fdfdfd; transition: all 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary-blue); box-shadow: 0 0 10px rgba(0, 74, 173, 0.1); background: #fff;
}
.form-group textarea { height: 120px; resize: none; }
.btn-submit { width: 100%; background-color: #25D366; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); }
/* Social Media */
.social { padding: 60px 20px; text-align: center; background-color: #fff; }
.social h3 { margin-bottom: 30px; color: var(--primary-blue); font-size: 2rem; }
.social-icons a { 
    display: inline-block; margin: 0 15px; font-size: 3rem; 
    color: var(--primary-blue); transition: transform 0.3s, color 0.3s; 
}
.social-icons a:hover { color: var(--accent-orange); transform: scale(1.2) translateY(-5px); }
/* ================= إضافات الـ UI/UX الجديدة ================= */

/* 1. Dark Mode */
body.dark-mode {
    --light-bg: #121212;
    --text-dark: #f0f0f0;
    --text-light: #ffffff;
}
body.dark-mode .about, body.dark-mode .contact, body.dark-mode .social { background-color: #1a1a1a; }
body.dark-mode .glass-card, body.dark-mode .contact-container { background: rgba(30, 30, 30, 0.8); border: 1px solid rgba(255,255,255,0.1); }
body.dark-mode .form-group input, body.dark-mode .form-group textarea { background: #2c2c2c; color: #fff; border-color: #444; }

.dark-mode-btn {
    position: fixed; top: 20px; left: 20px; z-index: 1000;
    background: var(--primary-blue); color: #fff; border: none;
    width: 45px; height: 45px; border-radius: 50%; font-size: 1.2rem;
    cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: 0.3s;
}
.dark-mode-btn:hover { background: var(--accent-orange); transform: scale(1.1); }

/* 2. Custom Cursor (يظهر فقط على الشاشات الكبيرة) */
@media (min-width: 768px) {
    body { cursor: none; }
    .custom-cursor {
        position: fixed; top: 0; left: 0; width: 25px; height: 25px;
        border: 2px solid var(--accent-orange); border-radius: 50%;
        pointer-events: none; z-index: 9999; transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s, background 0.2s;
    }
    .custom-cursor.hover { width: 45px; height: 45px; background: rgba(255, 107, 0, 0.15); }
}

/* 3. Typewriter Cursor Animation */
.cursor { display: inline-block; width: 3px; background-color: var(--accent-orange); animation: blink 0.75s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.typed-text { color: var(--accent-orange); }

/* 4. Particles Background */
#particles-js { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-content { position: relative; z-index: 1; }

/* 5. Scroll Indicator */
.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; text-decoration: none; }
.mouse { width: 30px; height: 50px; border: 2px solid #fff; border-radius: 15px; position: relative; }
.wheel { width: 4px; height: 10px; background: #fff; border-radius: 2px; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); animation: scroll 1.5s infinite; }
@keyframes scroll { 0% { top: 10px; opacity: 1; } 100% { top: 25px; opacity: 0; } }
/* ================= إضافات المرحلة الاحترافية ================= */

/* 1. Preloader */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-dark); z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
.loader-content { text-align: center; }
.loader-title {
    font-size: 3rem; font-weight: 900; color: #fff;
    letter-spacing: 2px; text-shadow: 0 0 20px var(--accent-orange);
    animation: pulseText 1.5s infinite;
}
.loader-line {
    width: 0%; height: 3px; background: var(--accent-orange);
    margin-top: 10px; border-radius: 5px; animation: loadLine 2s forwards;
}
@keyframes pulseText { 0%, 100% { opacity: 0.5; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes loadLine { 0% { width: 0%; } 100% { width: 100%; } }

/* 2. Infinite Marquee */
.marquee-wrapper {
    background: var(--primary-dark); padding: 15px 0;
    overflow: hidden; display: flex; white-space: nowrap;
    border-top: 2px solid var(--accent-orange); border-bottom: 2px solid var(--accent-orange);
}
.marquee-content {
    display: flex; animation: marquee 20s linear infinite;
}
.marquee-content span {
    font-size: 1.2rem; font-weight: bold; color: var(--accent-orange);
    margin: 0 30px; display: inline-block;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }

/* 3. Magnetic Buttons Transition */
.magnetic { transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1); }
/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .contact-container { padding: 30px; }
}
/* تظبيط ألوان قسم التواصل في الوضع الليلي */
body.dark-mode .social h3, 
body.dark-mode .social-icons a {
    color: #fff;
}
body.dark-mode .social-icons a:hover {
    color: var(--accent-orange);
}
/* ================= قسم أماكن التواجد (النسخة الفاجرة V2) ================= */
.locations {
    padding: 100px 20px;
    background-color: var(--light-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* حركة ذكية لخط تحت العنوان */
.locations h2 {
    color: var(--primary-blue);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}
.locations h2::after {
    content: '';
    position: absolute;
    bottom: -15px; left: 50%; transform: translateX(-50%);
    width: 50px; height: 4px;
    background: var(--accent-orange);
    border-radius: 5px;
    transition: width 0.3s;
}
.locations:hover h2::after { width: 100px; }

body.dark-mode .locations { background-color: #121212; }
body.dark-mode .locations h2 { color: #fff; }

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* الكارت نفسه - زجاجي وعميق */
.location-card {
    position: relative;
    padding: 40px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 74, 173, 0.05);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
body.dark-mode .location-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* اللمعة المعدنية اللي بتجري جوه الكارت */
.location-card::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.4), rgba(255,255,255,0));
    transform: skewX(-25deg);
    transition: 0.6s;
}
body.dark-mode .location-card::before {
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255, 107, 0, 0.1), rgba(255,255,255,0));
}
.location-card:hover::before { left: 150%; }
.location-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0, 74, 173, 0.15); }
body.dark-mode .location-card:hover { box-shadow: 0 20px 40px rgba(255, 107, 0, 0.15); }

/* الأيقونة المتوهجة والمتدرجة */
.location-card i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    transition: transform 0.4s ease;
}
.location-card:hover i { transform: scale(1.2) rotate(5deg); }
body.dark-mode .location-card i { 
    background: linear-gradient(135deg, var(--accent-orange), #ffb347); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    filter: drop-shadow(0 0 15px rgba(255, 107, 0, 0.5)); 
}

/* النصوص */
.location-card h3 {
    color: var(--primary-blue);
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 20px;
    transition: color 0.3s;
}
body.dark-mode .location-card h3 { color: #fff; }
.location-card:hover h3 { color: var(--accent-orange); }

/* الشارات التفاعلية (Badges) */
.centers { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; }
.center-badge {
    background: #fff;
    color: var(--primary-blue);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
body.dark-mode .center-badge { background: #222; color: #aaa; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

/* حركة وثبة قوية للشارات عند لمس الكارت */
.location-card:hover .center-badge {
    background: var(--accent-orange);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.4);
    transform: translateY(-3px) scale(1.05);
}