/*
 Theme Name:   Deema Academy Child
 Template:     generatepress
 Author:       Eng. Ahmed Saad
 Version:      4.5.0 (Ultimate Fusion Edition)
 Description:  هوية بصرية كاملة تجمع بين الهيرو الداكن، الخدمات المتدرجة، والفوتر الملون، مع لمسات ذهبية.
*/

/* 1. استيراد الخطوط والأيقونات الأساسية */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* ═══════════════════════════════════════════════════════
       DEFINING THE DESIGN SYSTEM (Variables)
       ═══════════════════════════════════════════════════════ */
    
    /* الألوان الأساسية (الهوية: أزرق - أخضر) */
    --primary-blue: #1565C0;
    --primary-green: #43A047;
    --primary-dark: #0a192f; /* لون الهيرو الداكن */
    
    /* التدرجات اللونية */
    --gradient-fusion: linear-gradient(135deg, #1565C0 0%, #43A047 100%);
    --gradient-hero: linear-gradient(-45deg, #104e8b, #007bb5, #00897b, #2e7d32); /* أنيميشن الخلفية */
    
    /* ألوان التمييز (CTA & Highlights) */
    --gold: #FFD700;
    --gold-hover: #FFC107;
    
    /* الخلفيات والنصوص */
    --bg-light: #f8fafc;    /* خلفية الأقسام الفاتحة */
    --bg-white: #ffffff;
    --text-main: #1e293b;   /* العناوين */
    --text-body: #475569;   /* الفقرات */
    --text-light: #94a3b8;  /* نصوص ثانوية */
    
    /* الإعدادات العامة */
    --container-width: 1200px;
    --border-radius: 20px;
    --font-cairo: 'Cairo', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ═══════════════════════════════════════════════════════
   2. GLOBAL RESET & TYPOGRAPHY
   ═══════════════════════════════════════════════════════ */

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-cairo);
    background-color: var(--bg-light);
    color: var(--text-body);
    line-height: 1.7;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-cairo);
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* لون التحديد (Selection) */
::selection {
    background: var(--primary-blue);
    color: #fff;
}

/* كلاسات مساعدة */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.center-text { text-align: center; }

/* ═══════════════════════════════════════════════════════
   3. ELEMENT 1: HEADER (Floating Nexus)
   ═══════════════════════════════════════════════════════ */

.nexus-header {
    position: fixed; top: 20px; left: 0; right: 0; z-index: 1000;
    display: flex; justify-content: center; padding: 0 20px; transition: 0.3s;
}

.glass-pill-container {
    width: 100%; max-width: 1200px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    padding: 10px 25px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.nexus-header.scrolled { top: 0; padding: 0; }
.nexus-header.scrolled .glass-pill-container { border-radius: 0; max-width: 100%; padding: 15px 30px; }

/* Logo */
.nexus-logo { display: flex; align-items: center; gap: 12px; }
.logo-orb {
    width: 42px; height: 42px;
    background: var(--gradient-fusion);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    color: #fff; font-size: 1.2rem; box-shadow: 0 4px 15px rgba(67, 160, 71, 0.3);
}
.brand-name { font-weight: 800; font-size: 1.1rem; color: var(--text-main); }
.brand-tag { font-size: 0.75rem; color: var(--primary-blue); font-weight: 600; display: block; }

/* Nav */
.nexus-nav { display: flex; gap: 30px; }
.nav-item { color: var(--text-main); font-weight: 700; font-size: 0.95rem; position: relative; }
.nav-dot {
    width: 5px; height: 5px; background: var(--primary-green); border-radius: 50%;
    opacity: 0; transform: translateY(5px); transition: 0.3s; margin: 4px auto 0; display: block;
}
.nav-item:hover { color: var(--primary-blue); }
.nav-item:hover .nav-dot { opacity: 1; transform: translateY(0); }

/* Header Btn */
.header-btn-gold {
    background: var(--gold); color: #0f172a; padding: 10px 24px; border-radius: 50px;
    font-weight: 800; font-size: 0.9rem; display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); transition: 0.3s;
}
.header-btn-gold:hover { transform: translateY(-2px); background: #fff; }

/* Mobile Menu Trigger */
.menu-trigger-btn { background: none; border: none; cursor: pointer; display: none; flex-direction: column; gap: 5px; }
.bar { width: 25px; height: 3px; background: var(--text-main); border-radius: 5px; }

@media (max-width: 992px) {
    .nexus-nav, .header-btn-gold { display: none; }
    .menu-trigger-btn { display: flex; }
    .glass-pill-container { padding: 10px 20px; }
}

/* ═══════════════════════════════════════════════════════
   4. ELEMENT 2: HERO (Dark Ecosystem)
   ═══════════════════════════════════════════════════════ */

.super-hero-section {
    position: relative; min-height: 100vh; background-color: var(--primary-dark);
    overflow: hidden; display: flex; align-items: center; padding: 120px 0 80px;
}

/* Hero Background & Lights */
.bg-particles {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px; opacity: 0.5;
}
.ambient-light { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4; animation: pulse-glow 10s infinite alternate; }
.light-blue { top: -20%; right: -10%; width: 600px; height: 600px; background: var(--primary-blue); }
.light-green { bottom: -20%; left: -10%; width: 700px; height: 700px; background: var(--primary-green); animation-delay: 2s; }

.hero-container-grid {
    max-width: 1280px; margin: 0 auto; padding: 0 30px;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2;
}

/* Hero Content */
.glow-badge {
    display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); padding: 8px 20px; border-radius: 50px;
    color: #fff; font-weight: 700; margin-bottom: 30px;
}
.massive-headline {
    font-size: 4rem; font-weight: 900; line-height: 1.1; margin-bottom: 25px; color: #fff;
}
.gradient-text-pop {
    background: linear-gradient(135deg, var(--gold), #40C4FF, var(--primary-green));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-description { font-size: 1.25rem; color: rgba(255,255,255,0.85); margin-bottom: 40px; max-width: 600px; }

/* Hero Buttons */
.hero-actions-glow { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 50px; }
.btn-super-yellow {
    background: var(--gold); color: var(--primary-dark); padding: 18px 40px; border-radius: 50px;
    font-weight: 800; box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3); transition: 0.3s;
}
.btn-super-yellow:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(255, 215, 0, 0.5); }
.btn-super-glass {
    padding: 18px 35px; border-radius: 50px; color: #fff; font-weight: 700;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2); transition: 0.3s;
}
.btn-super-glass:hover { background: rgba(255,255,255,0.15); border-color: var(--gold); }

/* Hero Visual (Planets) */
.hero-visual-ecosystem { height: 600px; display: flex; justify-content: center; align-items: center; }
.ecosystem-wrapper { position: relative; width: 500px; height: 500px; }
.core-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 120px; height: 120px; background: #fff; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 3rem;
    box-shadow: 0 0 50px rgba(21, 101, 192, 0.5);
}
.orbital { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.1); }
.orbit-1 { width: 300px; height: 300px; margin: -150px; animation: rotate-slow 20s linear infinite; }
.orbit-2 { width: 450px; height: 450px; margin: -225px; animation: rotate-slow 30s linear infinite reverse; }
.planet {
    position: absolute; width: 80px; height: 80px; border-radius: 20px; top: 0; left: 50%; margin: -40px;
    display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; font-weight: bold;
    animation: rotate-slow 20s linear infinite reverse;
}
.planet-green { background: linear-gradient(135deg, var(--primary-green), #66bb6a); }
.planet-blue { background: linear-gradient(135deg, var(--primary-blue), #42a5f5); left: 100%; top: 50%; }

/* Mobile Optimization for Hero */
@media (max-width: 991px) {
    .hero-container-grid { grid-template-columns: 1fr; text-align: center; padding: 0 20px; }
    .massive-headline { font-size: 2.5rem; }
    .hero-actions-glow { flex-direction: column; width: 100%; }
    .btn-super-yellow, .btn-super-glass { width: 100%; justify-content: center; }
    .hero-visual-ecosystem { height: 350px; margin-top: -20px; }
    .ecosystem-wrapper { transform: scale(0.55); }
}

@keyframes rotate-slow { from {transform: rotate(0deg);} to {transform: rotate(360deg);} }
@keyframes pulse-glow { 0% {opacity: 0.3; transform: scale(1);} 100% {opacity: 0.6; transform: scale(1.1);} }

/* ═══════════════════════════════════════════════════════
   5. ELEMENT 3: SERVICES (Gradient Cards + Gold Icons)
   ═══════════════════════════════════════════════════════ */

.services-fusion-gold { padding: 100px 0; background-color: var(--bg-light); position: relative; overflow: hidden; }
.light-bg-pattern {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px); background-size: 30px 30px; opacity: 0.4;
}

.s-head { margin-bottom: 60px; }
.s-badge-fusion { background: rgba(21, 101, 192, 0.1); color: var(--primary-blue); padding: 6px 16px; border-radius: 50px; font-weight: 700; display: inline-block; margin-bottom: 15px; }
.s-title-dark { font-size: 2.8rem; font-weight: 900; margin-bottom: 15px; }
.highlight-fusion { background: var(--gradient-fusion); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.deep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.blue-green-card {
    background: var(--gradient-fusion); border-radius: var(--border-radius); padding: 40px 30px; text-align: center;
    position: relative; transition: var(--transition); overflow: hidden;
    display: flex; flex-direction: column; align-items: center; box-shadow: 0 10px 30px rgba(21, 101, 192, 0.25);
}
.blue-green-card:hover { transform: translateY(-12px); box-shadow: 0 20px 50px rgba(21, 101, 192, 0.4); }

.card-shimmer {
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-20deg); transition: 0.5s; pointer-events: none;
}
.blue-green-card:hover .card-shimmer { left: 150%; transition: 0.7s; }

.icon-white-box {
    width: 80px; height: 80px; margin-bottom: 25px; background: #ffffff; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 2.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: 0.4s;
}
.blue-green-card:hover .icon-white-box { transform: scale(1.1) rotate(5deg); }

.s-icon.glowing-gold {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.4);
    transition: 0.4s;
}
.blue-green-card:hover .s-icon.glowing-gold { transform: scale(1.1); text-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6); }

.blue-green-card h3 { color: #fff; margin-bottom: 15px; }
.blue-green-card p { color: rgba(255,255,255,0.9); margin-bottom: 25px; flex-grow: 1; }

.white-link {
    color: #fff; font-weight: 700; padding: 8px 20px; border: 1px solid rgba(255,255,255,0.4);
    border-radius: 50px; transition: 0.3s;
}
.white-link:hover { background: #fff; color: var(--primary-blue); }

@media (max-width: 768px) { .s-title-dark { font-size: 2rem; } .blue-green-card { padding: 30px 20px; } }

/* ═══════════════════════════════════════════════════════
   6. ELEMENT 5: STEPS (Clear Numbers)
   ═══════════════════════════════════════════════════════ */

.steps-fusion-clear { padding: 80px 0; background: #fcfcfc; position: relative; }
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.step-card {
    background: #fff; border-radius: 20px; padding: 30px 20px; text-align: center;
    border: 1px solid #e2e8f0; transition: var(--transition);
}
.step-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(21, 101, 192, 0.1); }

.step-number {
    font-size: 2.5rem; font-weight: 900; background: var(--gradient-fusion);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    display: inline-block; margin-bottom: 15px;
}
.step-icon-gold {
    width: 60px; height: 60px; margin: 0 auto 15px; background: #fff; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 1.8rem;
    color: var(--gold); border: 2px solid #fff; box-shadow: 0 0 0 4px #f1f5f9; transition: 0.3s;
}
.step-card:hover .step-icon-gold { background: var(--gold); color: #fff; box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.3); }

@media (max-width: 992px) { .steps-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 576px) { .steps-row { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════
   7. ELEMENT 9: FOOTER (Hero Gradient Match)
   ═══════════════════════════════════════════════════════ */

.footer-hero-match { position: relative; margin-top: 0; color: #fff; overflow: hidden; }
.footer-bg-gradient {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gradient-hero); background-size: 400% 400%; animation: footerGradientAnim 15s ease infinite; z-index: 0;
}
@keyframes footerGradientAnim { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.footer-wave-white { position: relative; z-index: 2; line-height: 0; transform: rotate(180deg); margin-bottom: -1px; }
.footer-wave-white path { fill: var(--bg-light); }

.footer-content-layer { position: relative; z-index: 5; padding: 40px 0 20px; }
.f-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }

.f-logo-white { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.logo-icon-glass { 
    font-size: 1.8rem; background: rgba(255,255,255,0.2); width: 40px; height: 40px;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
}
.f-logo-white h2 { font-size: 1.5rem; font-weight: 900; color: #fff; margin: 0; }
.f-head { font-size: 1.2rem; margin-bottom: 20px; font-weight: 800; color: #fff; border-bottom: 2px solid rgba(255,255,255,0.2); padding-bottom: 10px; display: inline-block; }

.f-links-white a, .contact-white li { color: rgba(255,255,255,0.8); transition: 0.3s; }
.f-links-white a:hover { color: var(--gold); padding-right: 5px; }

.glass-input-group { display: flex; background: rgba(255,255,255,0.15); border-radius: 50px; padding: 5px; border: 1px solid rgba(255,255,255,0.3); }
.glass-input-group input { background: transparent; border: none; padding: 10px 15px; color: #fff; }
.glass-input-group button { background: var(--gold); color: var(--primary-blue); border: none; padding: 0 20px; border-radius: 50px; font-weight: bold; cursor: pointer; }

.f-bottom-bar { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; display: flex; justify-content: space-between; font-size: 0.9rem; }
.dev-tag a { color: var(--gold); font-weight: bold; }

@media (max-width: 992px) { .f-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .f-grid { grid-template-columns: 1fr; text-align: center; } .f-bottom-bar { flex-direction: column; } }

/* ═══════════════════════════════════════════════════════
   8. MISC ELEMENTS (CTA & FAB)
   ═══════════════════════════════════════════════════════ */

/* CTA Section */
.cta-gradient-box {
    background: var(--gradient-hero); background-size: 200% 200%; animation: footerGradientAnim 10s infinite;
    padding: 60px; border-radius: 30px; display: flex; align-items: center; justify-content: space-between;
    color: #fff; box-shadow: 0 20px 50px rgba(21,101,192,0.3); margin: 60px 0;
}
.btn-gold-pulse {
    background: var(--gold); color: var(--primary-blue); padding: 15px 40px; border-radius: 50px;
    font-weight: 800; animation: pulse-g 2s infinite;
}
@keyframes pulse-g { 0%{box-shadow:0 0 0 0 rgba(255,215,0,0.7)} 70%{box-shadow:0 0 0 15px rgba(255,215,0,0)} }

/* FAB (Whatsapp) */
.fab-gold {
    position: fixed; bottom: 20px; right: 20px; z-index: 9999;
    background: linear-gradient(135deg, #25D366, #128C7E); color: #fff;
    padding: 12px 25px; border-radius: 50px; font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: 0.3s;
}
.fab-gold:hover { transform: translateY(-3px); }