/* ==============================
   Root Variables (الألوان والثيم الأساسي)
   ============================== */
:root {
    --primary-color: #4e54c8;         /* اللون الأساسي */
    --secondary-color: #8f94fb;       /* اللون الثانوي */
    --accent-color: #ff6b6b;          /* لون مميز إضافي */
    --text-color: #090909;               /* لون النصوص */
    --light-text: #070707;               /* لون النصوص الفاتح */
    --background: #fff;               /* خلفية بيضاء أساسية */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1); 
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.15); 
    --transition: all 0.3s ease;      
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --hero-bg: linear-gradient(135deg, rgba(78, 84, 200, 0.9) 0%, rgba(143, 148, 251, 0.85) 100%);
}

/* ==============================
   Reset
   ============================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ==============================
   Hero Section
   ============================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;

    /* خلفية متدرجة (ملونة) */
    background: linear-gradient(135deg, #4e54c8, #383c84);
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* خلي hero-section شفاف بحيث يبان الخلفية */
.hero-section {
    padding: 6rem 0 4rem;
    background: transparent;
    color: var(--light-text);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}


.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #35b26b, #252dcb);
    z-index: -1;
}

/* ==============================
   Hero Content
   ============================== */
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    animation: fadeInUp 1s ease-out;
}


.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--light-text);
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: var(--light-text);
}

.hero-subtitle {
    font-size: 1.2rem !important;
    margin: 2rem 0 !important;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: inline-block;
    backdrop-filter: blur(5px);
    animation: glow 2s infinite alternate;
    color: var(--light-text);
}



/* ==============================
   Buttons
   ============================== */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.btn-modern {
    background: var(--light-text);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
}

.btn-modern.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
    border-radius: 50px;
}

.btn-modern:hover::before {
    opacity: 1;
}

.btn-modern:hover {
    color: var(--light-text);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ==============================
   Hero Illustration
   ============================== */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

.hero-illustration {
    width: 500px;
    height: 500px;
    background: linear-gradient(to bottom, #f5f7fa, #e4e7ec);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-medium);
    animation: heroFloat 3s ease-in-out infinite alternate;
    margin-left: -400px;
}

/* دوائر متحركة */
.hero-illustration::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    animation: heroRotate 10s linear infinite;
}

.hero-illustration::after {
    content: '';
    position: absolute;
    top: -40px; left: -40px; right: -40px; bottom: -40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: heroRotate 15s linear infinite reverse;
}

.logo-image-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    border-radius: 50%;
    overflow: hidden;
    animation: heroRotate 20s linear infinite;
    background: white;
    padding: 5%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-illustration:hover .hero-logo-image {
    transform: scale(1.05);
}

/* Animations */
@keyframes heroFloat {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(0px); }
    
}

@keyframes heroRotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 1200px) {
    .hero-illustration {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-text p {
        font-size: 1.3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-illustration {
        width: 350px;
        height: 350px;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .btn-modern.large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .hero-illustration {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 4rem 0 2rem;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-modern {
        width: 100%;
        max-width: 250px;
    }
    
    .hero-illustration {
        width: 250px;
        height: 250px;
    }
    
    .hero-illustration::before {
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
    }
    
    .hero-illustration::after {
        top: -30px;
        left: -30px;
        right: -30px;
        bottom: -30px;
    }
}


/* تحسينات إضافية للريسبونسيف */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .hero-illustration {
        width: 320px;
        height: 320px;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .btn-modern {
        font-size: 1rem;
        padding: 0.8rem 1.6rem;
    }

    .hero-illustration {
        width: 260px;
        height: 260px;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .btn-modern {
        width: 100%;
        max-width: 220px;
        font-size: 0.95rem;
    }

    .hero-illustration {
        width: 200px;
        height: 200px;
    }
}



/* حجم مناسب للـ hero illustration */
.hero-illustration {
    margin-left: 0; /* منع الخروج برا الشاشة */
    margin-right: 0;
}

/* للأجهزة أقل من 1200px */
@media (max-width: 1200px) {
  .hero-illustration {
    width: 380px;
    height: 380px;
    margin: 0 auto; /* يخليها في النص */
  }
}

/* للأجهزة أقل من 992px (تابلت) */
@media (max-width: 992px) {
  .hero-illustration {
    width: 300px;
    height: 300px;
    margin: 0 auto; /* يخليها بالنص */
  }
}

/* للأجهزة أقل من 768px (موبايل كبير) */
@media (max-width: 768px) {
  .hero-illustration {
    width: 240px;
    height: 240px;
    margin: 0 auto;
  }
}

/* للأجهزة أقل من 576px (موبايل صغير) */
@media (max-width: 576px) {
  .hero-illustration {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
}

/* ======================= */
/* النصوص في التابلت       */
/* ======================= */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column; /* يخلي النص فوق واللوجو تحت */
    text-align: center;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.4rem;   /* أصغر من الديسكتوب */
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 1.2rem;
    margin: 0 auto;
    max-width: 500px; /* يمنع النص يمد أوي */
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }
}

/* ======================= */
/* النصوص في الموبايل      */
/* ======================= */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
    max-width: 400px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn-modern {
    width: 100%;
    max-width: 250px;
  }
}

/* ======================= */
/* النصوص في الموبايل الصغير */
/* ======================= */
@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }
}
