
/* ===== CSS Variables & Reset ===== */
:root {
    /* Light Mode Colors */

    --primary-color: #009DC8;
   
    --secondary-color: #05D1C1;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --gradient-1: linear-gradient(135deg, #667eea 0%, #336571 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    
    --transition-speed: 0.3s;
    --border-radius: 12px;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #64748b;

     --footer-bg-start: #0b3c4a;   /* أزرق غامق لايق مع الدارك */
    --footer-bg-end: #1e293b;     /* نفس bg-secondary */
    
    --footer-text: #e2e8f0;
    --footer-muted: #94a3b8;
    
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html[dir="rtl"] {
  text-align: right;
}


html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #66d6ea 0%, #4b99a2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.cube-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    transform-style: preserve-3d;
    animation: rotateCube 3s infinite ease-in-out;
}

.cube-loader .cube {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: cubeMove 2s infinite ease-in-out;
}

.cube-loader .cube:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.cube-loader .cube:nth-child(2) {
    top: 0;
    right: 0;
    animation-delay: 0.2s;
}

.cube-loader .cube:nth-child(3) {
    bottom: 0;
    left: 0;
    animation-delay: 0.4s;
}

.cube-loader .cube:nth-child(4) {
    bottom: 0;
    right: 0;
    animation-delay: 0.6s;
}

@keyframes rotateCube {
    0%, 100% { transform: rotateX(0deg) rotateY(0deg); }
    50% { transform: rotateX(180deg) rotateY(180deg); }
}

@keyframes cubeMove {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.8); opacity: 0.5; }
}

.loading-text {
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 10px;
    animation: loadProgress 2s ease-in-out infinite;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-speed);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.nav-wrapper img{
    width: 48px;
    height: auto;
    border-radius: 20%;
  
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
      margin: 0 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
}

.logo-3d {
    width: 45px;
    /* height: 38px; */
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-speed);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: var(--bg-tertiary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.sun-icon,
.moon-icon {
    position: absolute;
    font-size: 18px;
    transition: all var(--transition-speed);
}

.sun-icon {
    color: #f59e0b;
}

.moon-icon {
    color: #6366f1;
    opacity: 0;
    transform: scale(0);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: scale(0);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: scale(1);
}

.cta-btn {
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-md);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-speed);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.lang-toggle {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}


/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.gradient-ball {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatBall 20s ease-in-out infinite;
}

.ball-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.ball-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    bottom: -200px;
    right: -200px;
    animation-delay: 5s;
}

.ball-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes floatBall {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(100px, -100px); }
    66% { transform: translate(-100px, 100px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    animation: slideDown 0.8s ease-out;
}

.badge i {
    color: #f59e0b;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.stat h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat p {
    color: var(--text-secondary);
    font-size: 14px;
}

.hero-visual {
    position: relative;
    height: 600px;
    animation: fadeInLeft 1s ease-out 0.4s backwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-card {
    position: absolute;
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: floatCard 4s ease-in-out infinite;
    border: 1px solid var(--border-color);
}

.floating-card i {
    font-size: 28px;
    color: var(--primary-color);
}

.floating-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.floating-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

.card-1 {
    top: 50px;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 200px;
    right: 50px;
    animation-delay: 1s;
}

.card-3 {
    top: 380px;
    left: 50px;
    animation-delay: 2s;
    z-index: 30;
}
/* النصوص جوه كل بطاقة */
.floating-card h4,
.floating-card p {
    position: relative;
    z-index: 10; /* فوق كل شيء */
}

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

.cube-3d {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    animation: rotateCube3D 20s linear infinite;

}

.floating-card,
.cube-3d {
    z-index: 1;
}

.text-layer {
    position: relative;
    z-index: 8; /* النصوص فوق كل حاجة */
}

.cube-3d {
    z-index: 1; /* المكعب تحت */
}

.floating-card h4,
.floating-card p {
    position: relative;
    z-index: 22; /* أعلى من المكعب والبطاقة */
}



@keyframes rotateCube3D {
    0% { transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(10px);
}

.cube-face.front  { transform: translateZ(150px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(150px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(150px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(150px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(150px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(150px); }


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}


.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-tertiary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--text-tertiary);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
}

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

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-tertiary);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Features Section ===== */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin-bottom: 20px;
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--transition-speed);
}

.feature-link:hover {
    gap: 12px;
} 




/* ===== Courses Section ===== */
.courses {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

/* ===== Course Image ===== */
.course-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    /* Animation */
    animation: floatImage 6s ease-in-out infinite;
}

/* Animation for image: gentle floating effect */
@keyframes floatImage {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

/* ===== Course Content ===== */
.course-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
    
}

.course-content p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.course-content p strong {
    color: var(--primary-color);
}

/* ===== Section Footer Slogan ===== */
.section-slogan {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 60px;
}

.section-slogan span {
    display: inline-block;
    margin: 0 5px;
}


/* ============================
   تصميم العنوان الرئيسي والفقرة والشعار النهائي
   ============================ */

/* Section Header Container */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

/* العنوان الرئيسي - كل كلمة في span لتلوينها */
.section-title span {
    display: inline-block;
    margin: 0 5px;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary); /* gradient رئيسي من :root */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform var(--transition-speed), color var(--transition-speed);
}

.section-title span:hover {
    transform: translateY(-5px) scale(1.05);
    cursor: default;
}

/* الفقرة */
.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    margin: 20px auto 0 auto;
}

/* الشعار النهائي - Centered */
.section-footer {
    text-align: center;
    margin-top: 50px;
}

/* كل كلمة في الشعار span */
.section-slogan span {
    display: inline-block;
    margin: 0 3px;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, #05D1C1, #009DC8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform var(--transition-speed);
}

.section-slogan span:hover {
    transform: translateY(-5px) scale(1.05);
    cursor: default;
}


/* ===== FAQ Section ===== */
.faq {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* FAQ Item */
.faq-item {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* Question */
.faq-question {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 18px;
}

/* Answer */
.faq-answer {
    display: none; /* hidden by default */
    margin-top: 10px;
    color: var(--text-primary); /* يظهر على الفاتح والغامق */
    line-height: 1.6;
    font-size: 16px;
    transition: all 0.5s ease;
}

/* Dark Mode Support */
body.dark-mode .faq-answer {
    color: #f0f0f0; /* أبيض فاتح يظهر على الخلفية الغامقة */
}

/* Highlight keywords in answer */
.faq-answer .highlight {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

/* Animated underline for highlight */
.faq-answer .highlight::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.5s ease-in-out;
}

.faq-answer .highlight:hover::after {
    width: 100%;
}









.highlights-carousel {
    padding: 80px 0;
    text-align: center;
}

/* Section Header */
.highlights-carousel .section-header {
    margin-bottom: 50px;
}

.highlights-carousel .section-badge {
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.highlights-carousel .section-title {
    font-size: 32px;
    font-weight: 700;
    margin-top: 10px;
    color: #009DC8;
}

/* Features List */
.features-list {
    margin: 0 auto;
    max-width: 800px;
    text-align: left;
}

.features-list .feature {
    font-size: 20px;
    line-height: 2;
    margin-bottom: 20px;
    color: var(--text-primary-light);
}



.features-list .highlight-text {
    color: var(--primary-color);
    font-weight: 600;
}



/* Motivational Carousel (Pairs) */
.motivational-carousel {
    margin-top: 60px;
    font-size: 22px;
    font-weight: 600;
    height: 80px; /* ثابت عشان لا يقفز النصوص */
    position: relative;
    overflow: hidden;
}

.motivation-pair {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.motivation-pair.active {
    opacity: 1;
}

/* Responsive */
@media(max-width: 768px) {
    .highlights-carousel .section-title {
        font-size: 26px;
    }
    .features-list .feature {
        font-size: 18px;
    }
    .motivational-carousel {
        font-size: 20px;
        height: 100px;
    }
}

/* Dark / Light Mode Handling */
:root {
    --text-primary-light: #333;
    --text-primary-dark: #fff;
}

[data-theme="dark"] .features-list .feature,
[data-theme="dark"] .motivational-carousel .motivation-pair .motivation {
    color: #fff;
}

[data-theme="light"] .features-list .feature,
[data-theme="light"] .motivational-carousel .motivation-pair .motivation {
    color: #333;
}

/* Gradient Motivational Text */
.motivational-carousel .motivation {
    background: linear-gradient(to right, #05D1C1, #009DC8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* دعم المتصفحات اللي مش بتدعم background-clip */
@supports not (-webkit-background-clip: text) {
    .motivational-carousel .motivation {
        color: #05D1C1;
    }
}


/* // */


/* ===== Contact Section ===== */
.contact {
    background: var(--bg-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.contact-info > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.contact-item h3{
        color: inherit;
         text-decoration: none;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Default (Light Mode) */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 50px;
    height: 50px;
    text-decoration: none;
    background: var(--gradient-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 20px;
    transition: all var(--transition-speed);
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-5px);
}

/* Dark Mode */
[data-theme="dark"] .social-links a {
    background: var(--gradient-primary);
    color: var(--text-primary);
}


.contact-form {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 50px 16px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    color: var(--text-primary);
    transition: all var(--transition-speed);
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.form-group i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 18px;
}

.form-group textarea + i {
    top: 20px;
    transform: none;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-speed);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ===== Footer ===== */

/* ///////////////////////////////// */

   /* Footer Styles */
        .footer {
              background: linear-gradient(
        135deg,
        #009DC8 10%,
        #05D1C1 90%
    );
            color: #fff;
            padding: 40px 20px;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            text-align: left;
        }

        [data-theme="dark"] .footer {
    background: linear-gradient(
        100deg,
        /* #092027 40%, */
        #0f172a 40%,
        #0A6E73 60%
    );
}


        .footer-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: wrap;
            margin-bottom: 30px;
        }

        /* الشمال: اللوجو والاسم */
        .footer-brand {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .footer-brand img {
            width: 50px; /* حجم اللوجو */
            height: auto;
        }

        .footer-brand span {
            font-size: 24px;
            font-weight: bold;
        }

        /* اليمين: روابط الصفحات */
        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
            gap: 20px;
        }

        .footer-links li a {
            color: #fff;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s;
        }

        .footer-links li a:hover {
            color: #305f5b; /* لون تفاعل عند hover */
        }

        /* الجملة التشجيعية */
        .footer-cta {
            text-align: center;
            margin: 0 0 15px 0;
            font-size: 20px;
            font-weight: bold;
        }

        /* حقوق الموقع */
        .footer-rights {
            text-align: center;
            font-size: 14px;
            opacity: 0.8;
        }

        /* Responsive */
        @media(max-width: 700px) {
            .footer-top {
                flex-direction: column;
                align-items: center;
                gap: 20px;
            }

            .footer-links {
                flex-direction: column;
                align-items: center;
                gap: 10px;
            }

            .footer-brand span {
                font-size: 20px;
            }
        }
 
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

/* حجم صورة اللوجو */
.footer-brand img {
    width: 45px;
    height: auto;
    border-radius: 20%;
}


@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}
.floating-logo {
    animation: float 3s ease-in-out infinite;
}











/* ===== Scroll to Top ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 42px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .hero-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left var(--transition-speed);
        box-shadow: var(--shadow-xl);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    


    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item,
    .service-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .slider-btn.prev {
        left: 10px;
    }
    
    .slider-btn.next {
        right: 10px;
    }
}

@media (max-width: 480px) {

    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .cube-3d {
        width: 200px;
        height: 200px;
    }
    
    .cube-face {
        width: 200px;
        height: 200px;
    }
}



/* ===== AOS Animation Styles ===== */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}
