/* ================================================
   919agency | Main Stylesheet
   ================================================ */

/* ===== المتغيرات الأساسية ===== */
:root {
    --primary: #0066CC;
    --secondary: #000000;
    --white: #FFFFFF;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --success: #00A86B;
    --warning: #FFB800;
    --gold: #FFD700;
    --silver: #C0C0C0;
    --dark-blue: #0047AB;
    --light-blue: #4D8BFF;
    --dark-bg: #121212;
    --dark-card: #1e1e1e;
    --dark-text: #e0e0e0;
    --border-light: #ddd;
    --border-dark: #444;
    --blue-gradient: linear-gradient(135deg, #0066CC 0%, #0047AB 100%);
    --black-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
    --whatsapp-green: #25D366;
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background: var(--white);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background: var(--dark-bg);
    color: var(--dark-text);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== زر الوضع الداكن — داخل الناف بار ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.theme-btn {
    background: transparent;
    color: #555;
    border: 1.5px solid rgba(0,102,204,0.25);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

body.dark-mode .theme-btn {
    color: #ccc;
    border-color: rgba(0,102,204,0.35);
}

.theme-btn:hover {
    background: rgba(0,102,204,0.08);
    color: var(--primary);
    border-color: var(--primary);
    transform: rotate(20deg) scale(1.08);
}

/* على الموبايل/تابلت — الثيم تلقائي، الزر مخفي */
@media (pointer: coarse) {
    .theme-btn { display: none !important; }
}
/* على الديسكتوب — الزر ظاهر دائماً */
@media (pointer: fine) {
    .theme-btn { display: flex; }
}


.badge-new {
    background: #7c3aed;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    margin-right: 4px;
    vertical-align: middle;
    letter-spacing: 0.3px;
}

/* ===== زر العودة للصفحة الرئيسية ===== */
.home-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 7px 20px rgba(0, 102, 204, 0.6); }
}

.home-btn:hover {
    transform: translateY(-6px) scale(1.05);
    background: #0052a3;
}

/* ===== الهيدر ===== */
header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 25px rgba(0, 102, 204, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: background 0.3s, box-shadow 0.3s;
    border-bottom: 2px solid rgba(0, 102, 204, 0.15);
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 102, 204, 0.18);
    border-bottom-color: var(--primary);
}

body.dark-mode header {
    background: rgba(18, 18, 18, 0.97);
    box-shadow: 0 2px 25px rgba(0, 102, 204, 0.15);
    border-bottom-color: rgba(0, 102, 204, 0.3);
}

body.dark-mode header.scrolled {
    border-bottom-color: var(--primary);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    position: relative;
}

/* ===== الشعار ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

/* الحالة الافتراضية قبل تحليل الصورة */
.logo-img {
    height: 52px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    /* transition تُضاف بواسطة JS بعد التحليل لتجنب flash */
}

/* ─── الأشكال — يُضيفها JS تلقائياً ─── */

/* مربع / شبه مربع (ratio 0.8–1.25) */
.logo-img.logo-square {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,102,204,0.15);
    transition: transform 0.4s ease, box-shadow 0.3s ease;
}
.logo:hover .logo-img.logo-square {
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 6px 22px rgba(0,102,204,0.3);
}

/* دائري — يُفعَّل لما ratio ≈ 1 + نص circular في اسم الملف أو اختيار المستخدم */
.logo-img.logo-circle {
    border-radius: 50% !important;
    width: 52px !important;
    max-width: 52px;
    object-fit: cover;
    border: 2.5px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(0,102,204,0.1);
    transition: transform 0.55s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
}
.logo:hover .logo-img.logo-circle {
    transform: rotate(360deg) scale(1.08);
    box-shadow: 0 0 0 7px rgba(0,102,204,0.2);
}

/* أفقي (عريض — ratio > 1.6) */
.logo-img.logo-wide {
    height: 42px;
    border-radius: 6px;
    transition: transform 0.35s ease, filter 0.3s ease;
}
.logo:hover .logo-img.logo-wide {
    transform: scale(1.05) translateY(-2px);
    filter: brightness(1.1) drop-shadow(0 4px 10px rgba(0,102,204,0.35));
}

/* عمودي (طويل — ratio < 0.6) */
.logo-img.logo-tall {
    height: 60px;
    border-radius: 8px;
    transition: transform 0.35s ease, box-shadow 0.3s ease;
}
.logo:hover .logo-img.logo-tall {
    transform: scale(1.07);
    box-shadow: 0 8px 24px rgba(0,102,204,0.28);
}

/* PNG شفاف — يُزيل الخلفية ويستخدم drop-shadow */
.logo-img.logo-transparent {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter: drop-shadow(0 2px 8px rgba(0,102,204,0.3));
    transition: filter 0.35s ease, transform 0.35s ease;
}
.logo:hover .logo-img.logo-transparent {
    filter: drop-shadow(0 4px 16px rgba(0,102,204,0.55));
    transform: scale(1.08);
}



.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text h1 {
    font-size: 1.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, #0047AB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 0.72rem;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.5px;
}

body.dark-mode .logo-text span {
    color: #aaa;
}

/* ===== روابط التنقل ===== */
.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 9px 14px;
    border-radius: 10px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

body.dark-mode .nav-links > li > a {
    color: #ccc;
}

.nav-links > li > a:hover {
    background: rgba(0, 102, 204, 0.08);
    color: var(--primary);
    transform: translateY(-1px);
}

body.dark-mode .nav-links > li > a:hover {
    background: rgba(0, 102, 204, 0.15);
}

.nav-links > li > a.active {
    background: var(--primary);
    color: var(--white) !important;
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.35);
}

.nav-links > li > a .fa-chevron-down {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.dropdown.open > a .fa-chevron-down {
    transform: rotate(180deg);
}

/* زر واتساب في الهيدر */
.nav-whatsapp-btn {
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: var(--whatsapp-green) !important;
    color: white !important;
    padding: 9px 18px !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease !important;
}

.nav-whatsapp-btn:hover {
    background: #128C7E !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45) !important;
}

/* ===== القائمة المنسدلة ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    min-width: 240px;
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.12), 0 2px 8px rgba(0,0,0,0.06);
    border-radius: 14px;
    z-index: 1100;
    list-style: none;
    padding: 8px;
    border: 1.5px solid rgba(0, 102, 204, 0.12);
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

body.dark-mode .dropdown-menu {
    background: #252525;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 102, 204, 0.25);
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #444;
    text-decoration: none;
    border-radius: 9px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

body.dark-mode .dropdown-menu li a {
    color: #ccc;
}

.dropdown-menu li a:hover {
    background: rgba(0, 102, 204, 0.08);
    color: var(--primary);
    padding-right: 18px;
}

body.dark-mode .dropdown-menu li a:hover {
    background: rgba(0, 102, 204, 0.15);
}

.dropdown-menu .divider {
    height: 1px;
    background: rgba(0,0,0,0.07);
    margin: 6px 8px;
    border-radius: 2px;
}

body.dark-mode .dropdown-menu .divider {
    background: rgba(255,255,255,0.08);
}

/* ===== زر الموبايل ===== */
.mobile-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 102, 204, 0.07);
    border: 1.5px solid rgba(0, 102, 204, 0.2);
    cursor: pointer;
    color: var(--primary);
    font-size: 1.3rem;
    transition: all 0.3s;
    flex-shrink: 0;
}

.mobile-menu:hover {
    background: var(--primary);
    color: white;
}

body.dark-mode .mobile-menu {
    background: rgba(0, 102, 204, 0.15);
    border-color: rgba(0, 102, 204, 0.3);
}

/* ===== القسم الرئيسي (Hero) ===== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* الفيديو يغطي كل شيء */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* overlay متدرج فوق الفيديو */
.hero-overlay {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 100px;
    background: linear-gradient(
        180deg,
        rgba(0, 30, 80, 0.55) 0%,
        rgba(0, 60, 140, 0.35) 45%,
        rgba(0, 15, 50, 0.72) 100%
    );
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    animation: heroFadeIn 1.2s ease both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.video-text {
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: 3px;
    line-height: 1;
    text-shadow: 0 4px 30px rgba(0,0,0,0.55);
    animation: textGlow 2.5s infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 4px 30px rgba(0,0,0,0.55), 0 0 50px rgba(255,255,255,0.1); }
    to   { text-shadow: 0 4px 40px rgba(0,0,0,0.6), 0 0 70px rgba(120,180,255,0.35); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,0.88);
    font-weight: 400;
    max-width: 520px;
    line-height: 1.75;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

/* موجة الأسفل */
.hero-wave {
    position: relative;
    z-index: 2;
    line-height: 0;
    margin-top: -2px;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

body.dark-mode .hero-wave svg path {
    fill: var(--dark-bg);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero { min-height: 85vh; }
    .hero-overlay { padding: 100px 16px 80px; }
    .video-text { letter-spacing: 1px; }
    .hero-wave svg { height: 50px; }
}

@media (max-width: 480px) {
    .hero { min-height: 75vh; }
}



/* ===== الأزرار ===== */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--blue-gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 60px;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--white);
    cursor: pointer;
    font-size: 1.15rem;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--black-gradient);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn:hover::after { opacity: 1; }
.btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.5);
    border-color: var(--primary);
}
.btn:active { transform: translateY(-2px); }

/* ===== بطاقات الخدمات الجديدة (AI) ===== */
.service-card--new {
    border-color: rgba(124, 58, 237, 0.25) !important;
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.12) !important;
}

.service-card--new::before {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
}

.service-card--new:hover {
    border-color: #7c3aed !important;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2) !important;
    transform: translateY(-15px) scale(1.02);
}

.service-icon--ai {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
    position: relative;
}

.service-icon--ai::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
}

.new-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.45);
    animation: badgePulse 2s ease-in-out infinite;
    letter-spacing: 0.3px;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 3px 12px rgba(124, 58, 237, 0.45); }
    50%       { box-shadow: 0 3px 20px rgba(124, 58, 237, 0.75); }
}

.service-card--new .service-content h3 i {
    color: #7c3aed !important;
}

.service-card--new .service-content ul li::before {
    color: #7c3aed !important;
}

/* ===== Services ===== */
.services {
    padding: 80px 0;
    background-color: var(--white);
}

body.dark-mode .services {
    background-color: var(--dark-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

body.dark-mode .section-title h2 { color: var(--dark-text); }

.section-title h2::after {
    content: "";
    position: absolute;
    width: 50%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    bottom: -10px; left: 25%;
    border-radius: 2px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666;
}

body.dark-mode .section-title p { color: #aaa; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* ===== Service Cards ===== */
.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.1);
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    cursor: pointer;
}

body.dark-mode .service-card {
    background: var(--dark-card);
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.2);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: var(--blue-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 102, 204, 0.2);
    border-color: var(--primary);
}

.service-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    position: relative;
    overflow: hidden;
    background: var(--blue-gradient) !important;
    transition: all 0.3s;
}

.service-card:hover .service-icon { transform: scale(1.1); }

.service-content { padding: 25px; }

.service-content h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

body.dark-mode .service-content h3 { color: var(--dark-text); }

.service-content h3 i {
    margin-left: 10px;
    color: var(--primary);
}

.service-content ul { list-style: none; margin: 15px 0; }

.service-content ul li {
    margin-bottom: 10px;
    padding-right: 20px;
    position: relative;
    color: #555;
    transition: all 0.3s;
}

.service-card:hover .service-content ul li { transform: translateX(5px); }

body.dark-mode .service-content ul li { color: #ccc; }

.service-content ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--success);
}

/* ===== من نحن ===== */
.about-us {
    padding: 80px 0;
    background-color: var(--white);
}

body.dark-mode .about-us { background-color: var(--dark-bg); }

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-image {
    width: 200px; height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow:
        0 0 0 4px rgba(0,102,204,0.15),
        0 0 0 8px rgba(0,102,204,0.07),
        0 8px 30px rgba(0,102,204,0.25);
    border: 4px solid var(--primary);
    /* ثابتة تماماً — لا أنيميشن */
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.about-image:hover {
    transform: scale(1.04);
    box-shadow:
        0 0 0 5px rgba(0,102,204,0.25),
        0 0 0 10px rgba(0,102,204,0.1),
        0 12px 35px rgba(0,102,204,0.35);
}

.about-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.about-text { max-width: 800px; }

.about-highlight {
    background: var(--blue-gradient);
    color: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    border: 3px solid var(--white);
}

.about-highlight-content h3 { margin-bottom: 15px; font-size: 1.8rem; }
.about-highlight-content p  { margin-bottom: 0; font-size: 1.1rem; }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.value-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

body.dark-mode .value-card { background: #2d2d2d; }

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 102, 204, 0.2);
}

.value-card h4 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary);
}

.value-card p { color: #555; font-size: 0.95rem; }

body.dark-mode .value-card p { color: #ccc; }

/* ===== Free Content ===== */
.free-content {
    padding: 80px 0;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f7ff 100%);
}

body.dark-mode .free-content {
    background: linear-gradient(135deg, #1a1a2a 0%, #2a2a3a 100%);
}

.content-container {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    max-width: 600px;
    margin: 0 auto;
    border: 3px solid var(--primary);
}

body.dark-mode .content-container {
    background: var(--dark-card);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
}

.instructor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 25px;
    padding: 20px 0;
}

.instructor-image {
    width: 130px; height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.instructor-image:hover {
    transform: scale(1.1) rotate(5deg);
    animation: none;
}

.instructor-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.instructor-info h4 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
}

body.dark-mode .instructor-info h4 { color: var(--dark-text); }

.instructor-info p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

body.dark-mode .instructor-info p { color: #ccc; }

.instructor-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.2);
    border: 2px solid var(--primary);
    color: var(--white);
    background: var(--blue-gradient);
}

.social-link:hover {
    transform: translateY(-8px) scale(1.15) rotate(10deg);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

/* ===== قسم الدورات المدفوعة ===== */
.premium-courses {
    padding: 80px 0;
    background: var(--white);
}

body.dark-mode .premium-courses { background: var(--dark-bg); }

.coming-soon-box {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, rgba(0,102,204,0.05) 0%, rgba(0,71,171,0.08) 100%);
    border-radius: 24px;
    border: 2px dashed rgba(0,102,204,0.3);
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s;
}

body.dark-mode .coming-soon-box {
    background: linear-gradient(135deg, rgba(0,102,204,0.08) 0%, rgba(0,71,171,0.12) 100%);
    border-color: rgba(0,102,204,0.4);
}

.coming-soon-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,102,204,0.12);
}

.coming-soon-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.coming-soon-box h3 {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 12px;
}

.coming-soon-box p {
    color: #666;
    font-size: 1.1rem;
    max-width: 400px;
    margin: 0 auto 25px;
}

body.dark-mode .coming-soon-box p { color: #aaa; }

.notify-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    background: var(--blue-gradient);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 18px rgba(0,102,204,0.3);
    transition: all 0.3s;
}

.notify-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,102,204,0.45);
}

/* ===== قسم التواصل ===== */
.new-contact {
    padding: 80px 0;
    background: var(--white);
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

body.dark-mode .new-contact { background: var(--dark-bg); }

.contact-info-only { max-width: 1200px; margin: 0 auto; }

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    animation: cardPulse 3s infinite;
}

body.dark-mode .contact-card {
    background: var(--dark-card);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.2);
}

.contact-card:nth-child(2) { animation-delay: 0.5s; }
.contact-card:nth-child(3) { animation-delay: 1s; }
.contact-card:nth-child(4) { animation-delay: 1.5s; }

@keyframes cardPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1); }
    50%       { box-shadow: 0 15px 40px rgba(0, 102, 204, 0.2); }
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.2);
}

.card-inner {
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-inner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 102, 204, 0.03), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.contact-card:hover .card-inner::before {
    transform: rotate(45deg) translate(50%, 50%);
}

.card-icon {
    width: 80px; height: 80px;
    background: var(--blue-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon { transform: scale(1.1) rotate(10deg); }

.card-content h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

body.dark-mode .card-content h3 { color: var(--dark-text); }

.card-content p {
    color: #666;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

body.dark-mode .card-content p { color: #ccc; }

.card-content .street {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.phone-link {
    display: inline-block;
    direction: ltr;
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 50px;
    background: rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
    margin: 5px 0;
}

.phone-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.card-content .email {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
    background: rgba(0, 102, 204, 0.1);
    text-decoration: none;
    margin: 5px 0;
}

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

.card-content small {
    display: block;
    margin-top: 10px;
    color: var(--success);
    font-size: 0.9rem;
}

.whatsapp-card .card-icon { background: var(--whatsapp-green) !important; }

.whatsapp-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--whatsapp-green) !important;
    direction: ltr;
    font-family: monospace;
}

.whatsapp-link {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background: var(--whatsapp-green);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1.1rem;
}

.whatsapp-link:hover {
    background: #128C7E;
    transform: scale(1.05) translateY(-3px);
    border-color: var(--white);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* ===== Quick Contact ===== */
.quick-contact {
    text-align: center;
    padding: 40px 0 20px;
}

.quick-contact h3 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 30px;
    font-weight: 700;
}

body.dark-mode .quick-contact h3 { color: var(--dark-text); }

.social-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 15px;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    min-width: 160px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.social-btn i { font-size: 1.4rem; }

.social-btn.facebook  { background: linear-gradient(135deg, #1877F2, #0a5dc8); }
.social-btn.instagram { background: linear-gradient(135deg, #E1306C, #833AB4, #F77737); }
.social-btn.snapchat  { background: linear-gradient(135deg, #FFFC00, #FFD700); color: #000; }
.social-btn.whatsapp  { background: linear-gradient(135deg, #25D366, #128C7E); }

/* ===== Privacy Policy ===== */
.privacy-policy { padding: 80px 0; background: var(--light); }

body.dark-mode .privacy-policy { background: var(--dark-bg); }

.privacy-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,102,204,0.08);
    border: 1px solid rgba(0,102,204,0.1);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.9;
}

body.dark-mode .privacy-content {
    background: var(--dark-card);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ===== الفوتر ===== */
footer {
    background: #0a0a0a;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p { color: #aaa; margin: 20px 0; }

.footer-logo h3 { color: var(--primary); font-size: 1.8rem; }

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-content .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 3px solid var(--white);
    background: var(--blue-gradient) !important;
}

.footer-content .social-icons a.whatsapp { background: var(--whatsapp-green) !important; }

.footer-content .social-icons a:hover {
    transform: translateY(-8px) scale(1.15) rotate(10deg);
    box-shadow: 0 8px 20px rgba(0,102,204,0.4);
    border-color: var(--primary);
}

.footer-content .social-icons a.whatsapp:hover { background: #128C7E !important; }

.footer-links h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 50px; height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links ul { list-style: none; }

.footer-links ul li {
    margin-bottom: 12px;
    color: #aaa;
    font-size: 0.95rem;
}

.footer-links ul li a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s;
}

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

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.9rem;
}

/* ===== واتساب عائم ===== */
.whatsapp-float {
    position: fixed;
    bottom: 85px;
    left: 20px;
    z-index: 999;
    width: 60px; height: 60px;
    background: var(--whatsapp-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.whatsapp-float a {
    color: white;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-4px);
    background: #128C7E;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

/* ===== Animations ===== */
.service-card, .value-card {
    animation: fadeInUp 0.6s ease backwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.hero-content { animation: zoomIn 1s ease; }

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

.service-card:hover .service-icon i { animation: bounce 0.5s ease; }

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

.value-card:hover i { animation: spin 0.5s ease; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Pricing & Map hidden */
.pricing     { display: none; }
#map-section { display: none; }

/* ============================================================
   📱 MOBILE-FIRST DESIGN — تصميم خاص بالتلفونات
   يُفعَّل فقط على الشاشات اللمسية أقل من 768px
   ============================================================ */
@media (pointer: coarse) and (max-width: 768px) {

    /* ─── متغيرات مخصصة للموبايل ─── */
    :root {
        --mob-radius: 20px;
        --mob-shadow: 0 4px 20px rgba(0,0,0,0.1);
        --mob-pad: 16px;
    }

    /* ─── الهيدر — أصغر وأنظف ─── */
    header {
        border-bottom-width: 1.5px;
    }
    .navbar { padding: 8px 0; }
    .logo-text h1 { font-size: 1.25rem; }
    .logo-text span { display: none; }

    /* ─── Hero — ملء الشاشة ─── */
    .hero { min-height: 92svh; }
    .hero-overlay { padding: 90px var(--mob-pad) 70px; gap: 16px; }
    .video-text {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
        letter-spacing: 1px;
    }
    .hero-subtitle { font-size: 1rem; }
    .hero-wave svg { height: 40px; }
    .btn {
        width: 100%;
        max-width: 320px;
        padding: 14px 28px;
        font-size: 1.05rem;
        border-radius: 50px;
        justify-content: center;
    }

    /* ─── الأقسام ─── */
    .services, .about-us, .free-content,
    .premium-courses, .new-contact, .privacy-policy {
        padding: 52px 0;
    }

    .section-title { margin-bottom: 32px; }
    .section-title h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    .section-title p { font-size: 0.95rem; }

    /* ─── بطاقات الخدمات — عمود واحد ─── */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        border-radius: var(--mob-radius);
        box-shadow: var(--mob-shadow);
    }

    .service-icon { height: 80px; font-size: 2rem; }

    .service-content { padding: 18px; }
    .service-content h3 { font-size: 1.15rem; }
    .service-content p  { font-size: 0.9rem; }
    .service-content ul li { font-size: 0.88rem; }

    /* ─── من نحن ─── */
    .about-content { gap: 20px; }
    .about-image { width: 150px; height: 150px; }
    .about-text { width: 100%; }
    .about-highlight { padding: 20px; border-radius: var(--mob-radius); }
    .about-highlight-content h3 { font-size: 1.4rem; }
    .about-highlight-content p  { font-size: 0.95rem; }
    .values-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .value-card { padding: 16px 12px; border-radius: 14px; }
    .value-card h4 { font-size: 0.9rem; }
    .value-card p  { font-size: 0.8rem; }

    /* ─── المحتوى المجاني ─── */
    .content-container {
        padding: 22px 16px;
        border-radius: var(--mob-radius);
    }
    .instructor-card {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .instructor-image { width: 110px; height: 110px; }
    .instructor-info h4 { font-size: 1.3rem; }
    .instructor-social { gap: 14px; }
    .social-link { width: 44px; height: 44px; font-size: 1.1rem; }

    /* ─── الدورات ─── */
    .coming-soon-box {
        padding: 40px 20px;
        border-radius: var(--mob-radius);
    }
    .coming-soon-icon { font-size: 3rem; }
    .coming-soon-box h3 { font-size: 1.6rem; }

    /* ─── التواصل ─── */
    .new-contact { clip-path: none; padding: 52px 0; }
    .contact-cards { grid-template-columns: 1fr; gap: 14px; }
    .contact-card { border-radius: var(--mob-radius); }
    .card-inner { padding: 22px 14px; }
    .card-icon { width: 56px; height: 56px; font-size: 1.4rem; }
    .card-content h3 { font-size: 1.2rem; }
    .phone-link { font-size: 1.05rem; }
    .quick-contact h3 { font-size: 1.3rem; margin-bottom: 20px; }
    .social-buttons { flex-direction: column; align-items: center; gap: 12px; }
    .social-btn { width: 100%; max-width: 280px; padding: 14px 20px; font-size: 1rem; }

    /* ─── الفوتر ─── */
    footer { padding: 40px 0 16px; }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .footer-content .social-icons { justify-content: center; flex-wrap: wrap; }
    .footer-content .social-icons a { width: 50px; height: 50px; font-size: 1.3rem; }
    .footer-links h4::after { right: 50%; transform: translateX(50%); }
    .footer-links ul li { font-size: 0.9rem; }

    /* ─── الأزرار العائمة — لا تتعارض مع بعض ─── */
    .home-btn {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
        right: 12px;
        width: 46px; height: 46px;
        font-size: 1rem;
    }
    .whatsapp-float {
        width: 50px; height: 50px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 66px);
        left: 12px;
    }
    .whatsapp-float a { font-size: 1.6rem; }
}

/* ─── Swipe-friendly touch targets ─── */
@media (pointer: coarse) {
    a, button, .service-card, .contact-card, .value-card {
        -webkit-tap-highlight-color: rgba(0,102,204,0.12);
    }
    /* حجم أدنى لكل العناصر القابلة للضغط */
    .nav-links > li > a,
    .dropdown-menu li a,
    .footer-links ul li a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ============================================================
   RESPONSIVE — شامل لكل الأجهزة والتلفونات
   iPhone SE · 12/13/14 · Pro Max · Samsung · iPad · Desktop
   ============================================================ */

/* ─── 1440px+ : شاشات كبيرة ─── */
@media (min-width: 1440px) {
    .container { max-width: 1320px; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── 1200px+ : ديسكتوب عادي ─── */
@media (min-width: 1200px) {
    .nav-links > li > a { font-size: 0.92rem; padding: 8px 11px; }
}

/* ─── 1024px : تابلت landscape / لابتوب صغير ─── */
@media (max-width: 1024px) {
    .services-grid  { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .nav-links > li > a { padding: 8px 9px; font-size: 0.88rem; }
}

/* ─── 900px : تابلت ─── */
@media (max-width: 900px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ─── 768px : تابلت عمودي / موبايل كبير ─── */
@media (max-width: 768px) {

    /* الناف */
    .mobile-menu { display: flex; }
    .navbar { padding: 10px 0; }

    /* اللوقو */
    .logo-text span { display: none; }
    .logo-text h1   { font-size: 1.3rem; }

    /* nav-links — درور من اليمين */
    .nav-links {
        position: fixed;
        inset: 0 0 0 auto;       /* يسحب من اليمين */
        width: min(320px, 85vw);
        height: 100dvh;           /* dynamic viewport height */
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: env(safe-area-inset-top, 0px) 16px 32px;
        padding-top: calc(env(safe-area-inset-top, 0px) + 80px);
        transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(100%); /* مخفي بالترانسفورم بدل right */
        box-shadow: -6px 0 40px rgba(0, 102, 204, 0.15);
        z-index: 1050;
        overflow-y: auto;
        gap: 4px;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    body.dark-mode .nav-links {
        background: #1a1a1a;
        box-shadow: -6px 0 40px rgba(0,0,0,0.5);
    }

    .nav-links.active { transform: translateX(0); }

    /* Backdrop عند فتح القائمة */
    .nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1049;
        backdrop-filter: blur(2px);
    }
    .nav-backdrop.show { display: block; }

    .nav-links > li > a {
        padding: 13px 16px;
        font-size: 1rem;
        border-radius: 10px;
        width: 100%;
    }

    .nav-whatsapp-btn {
        justify-content: center;
        border-radius: 10px !important;
        margin-top: 10px;
    }

    /* dropdown في الموبايل يتوسع ولا يطير */
    .dropdown-menu {
        position: static;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: all;
        box-shadow: none;
        border: 1px solid rgba(0,102,204,0.12);
        margin-top: 4px;
        border-radius: 10px;
        display: none;
        padding: 6px;
    }
    .dropdown-menu.show { display: block; }

    /* home-btn + whatsapp-float */
    .home-btn      { bottom: calc(env(safe-area-inset-bottom,0px) + 14px); right: 14px; width: 48px; height: 48px; font-size: 1.1rem; }
    .whatsapp-float{ width: 52px; height: 52px; bottom: calc(env(safe-area-inset-bottom,0px) + 70px); left: 14px; }

    /* hero */
    .hero      { min-height: 88svh; }
    .hero-overlay { padding: 100px 20px 80px; }
    .hero-wave svg { height: 48px; }

    /* sections */
    .section-title h2 { font-size: 1.9rem; }
    .services-grid    { grid-template-columns: 1fr; gap: 20px; }
    .instructor-card  { flex-direction: column; gap: 15px; }
    .contact-cards    { grid-template-columns: 1fr; gap: 18px; }
    .card-inner       { padding: 24px 16px; }
    .card-icon        { width: 60px; height: 60px; font-size: 1.5rem; }
    .card-content h3  { font-size: 1.25rem; }
    .social-buttons   { flex-direction: column; align-items: center; }
    .social-btn       { width: 100%; max-width: 260px; }
    .quick-contact h3 { font-size: 1.45rem; }

    /* footer */
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 28px; }
    .footer-content .social-icons { justify-content: center; }
    .footer-links h4::after { right: 50%; transform: translateX(50%); }
}

/* ─── iPhone 14 Pro / 15 — Dynamic Island (430px) ─── */
@media (max-width: 430px) {
    .container { width: 94%; padding: 0 12px; }
    .hero-overlay { padding: 90px 16px 70px; }
    .services-grid { gap: 16px; }
}

/* ─── iPhone 13/14 standard (390px) ─── */
@media (max-width: 390px) {
    .logo-text h1 { font-size: 1.2rem; }
    .section-title h2 { font-size: 1.7rem; }
    .service-content { padding: 18px; }
    .service-content h3 { font-size: 1.1rem; }
    .about-image { width: 140px; height: 140px; }
    .instructor-image { width: 100px; height: 100px; }
    .btn { width: 100%; text-align: center; justify-content: center; }
}

/* ─── iPhone SE / Android small (375px) ─── */
@media (max-width: 375px) {
    .container { width: 96%; padding: 0 10px; }
    .logo-text h1 { font-size: 1.1rem; }
    .nav-links { width: min(290px, 90vw); }
    .section-title h2 { font-size: 1.6rem; }
    .hero-overlay { padding: 80px 14px 60px; }
}

/* ─── Samsung Galaxy S8 / fold outher (360px) ─── */
@media (max-width: 360px) {
    .logo-text h1 { font-size: 1rem; }
    .nav-links { width: 92vw; }
    .service-content h3 { font-size: 1rem; }
    .contact-card { margin: 0; }
    .hero-wave svg { height: 36px; }
}

/* ─── Galaxy Z Fold inner / small screens (280px) ─── */
@media (max-width: 280px) {
    .logo-text { display: none; }  /* يخفي النص ويبقى الصورة */
    .nav-links { width: 95vw; }
    .services-grid { grid-template-columns: 1fr; }
}

/* ─── iPad Pro 12.9" (1024px landscape) ─── */
@media (min-width: 1024px) and (max-width: 1180px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Notch / Dynamic Island — safe-area للهيدر ─── */
@supports (padding-top: env(safe-area-inset-top)) {
    header {
        padding-left:  env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    .hero-video { top: 0; }
}

/* ─── Landscape موبايل ─── */
@media (max-height: 500px) and (orientation: landscape) {
    .hero        { min-height: 100lvh; }
    .hero-overlay{ padding: 80px 20px 60px; }
    .video-text  { font-size: clamp(1.8rem, 5vw, 3rem); }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-wave svg { height: 32px; }
}

/* ─── Reduce Motion (accessibility) ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── High contrast ─── */
@media (prefers-contrast: high) {
    :root { --primary: #0047AB; }
    .service-card { border: 2px solid #000; }
    body.dark-mode .service-card { border-color: #fff; }
}
