/* ============================================
   متغيرات الألوان والخطوط (CSS Variables)
   ============================================ */
:root {
    --primary-color: #5c2382;
    --secondary-color: #bd4a81;
    --light-bg: #f8f9fa;
    --dark-text: #1a1a1a;
    --gray-text: #666666;
    --border-color: #e0e0e0;
    --font-family: 'Tajawal', sans-serif;
    --transition: all 0.3s ease;
}

/* ============================================
   إعدادات عامة (Global Styles)
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   شريط التنقل (Navbar)
   ============================================ */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a1a6f 100%) !important;
    padding: 1rem 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* الشريط مخفي أثناء النزول */
.navbar.navbar-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* نص العلامة: العنوان وفوقه سطر فرعي */
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    /* يرث حجم .navbar-brand */
}

.brand-subtitle {
    font-weight: 200;
    font-size: 0.9rem;
    opacity: 0.9;
}

.brand-icon {
    font-size: 1.8rem;
    animation: pulse-animation 2s ease-in-out infinite;
}

@keyframes pulse-animation {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

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

/* ============================================
   قسم الرئيسية (Hero Section)
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a1a6f 50%, var(--secondary-color) 100%);
    color: white;
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    text-align: right;
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 500px;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.6s both;
}

.hero-buttons .btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 1rem;
}

.hero-buttons .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border: none;
}

.hero-buttons .btn-primary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-outline-secondary {
    color: white;
    border-color: white;
}

.hero-buttons .btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    height: 400px;
}

.hero-image .hero-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    max-width: 50%;
    height: auto;
    backface-visibility: hidden;
    will-change: transform;
}

.pulse-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}

/* ============================================
   العناوين والأقسام العامة (Section Styles)
   ============================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    right: 0;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ============================================
   قسم من نحن (About Section)
   ============================================ */
.about-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.about-image {
    position: relative;
    height: 400px;
}

.about-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(92, 35, 130, 0.2);
    animation: slideInLeft 0.8s ease-out;
}

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

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(92, 35, 130, 0.15);
}

.highlight-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.highlight-text {
    font-weight: 600;
    color: var(--dark-text);
}

/* ============================================
   قسم نقاط القوة (Features Section)
   ============================================ */
.features-section {
  background: radial-gradient(1200px circle at 50% -200px, #3b1b5f 0%, #2a1347 40%, #160b2a 100%);
  color: #fff;
  padding: 100px 0;
}

.feature-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  padding: 3.25rem 1.75rem 2.5rem;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  overflow: visible;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 60px rgba(92, 35, 130, 0.35);
}

/* إطار متوهج متدرّج حول البطاقة */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #d77cff, #7bdcff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}

/* خط إبراز سفلي متدرّج */
.feature-card::after {
    display: none;
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, #d77cff, #7bdcff);
  border-radius: 999px;
  opacity: 0.9;
}

/* أيقونة علوية داخل كبسولة زجاجية */
.feature-icon {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  z-index: 1;
}
.feature-icon img{
   padding: 0;
    margin: -16px;
    height: 120px;
    width: 120px;
    object-fit: cover;
}
/* إطار متوهج للأيقونة */
.feature-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #d77cff, #7bdcff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.feature-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-top: 1.5rem;
  margin-bottom: .75rem;
}

.feature-description {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.9;
}

/* ============================================
   قسم الخدمات (Services Section)
   ============================================ */
.services-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    padding: 80px 0;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-right: 5px solid var(--secondary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(92, 35, 130, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--gray-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.5rem 0;
    color: white;
    font-weight: 500;
    position: relative;
    padding-right: 1.5rem;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* ============================================
   قسم شركاء النجاح (Partners Section)
   ============================================ */
.partners-section {
    background: white;
    padding: 80px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.partner-logo {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.partner-logo:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

/* ============================================
   قسم منهجيتنا (Process Section)
   ============================================ */
.process-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a1a6f 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.process-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.process-section .section-title {
    color: white;
}

.process-section .section-title::after {
    background: var(--secondary-color);
}

.process-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.process-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.process-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.process-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.process-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   قسم الاتصال (Contact Section)
   ============================================ */
.contact-section {
    background: var(--light-bg);
    padding: 80px 0;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    font-size: 1.8rem;
    min-width: 40px;
    text-align: center;
}

.contact-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--gray-text);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 700;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(92, 35, 130, 0.15);
}

.contact-form .btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    font-weight: 700;
    transition: var(--transition);
}

.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(92, 35, 130, 0.3);
}

/* ============================================
   تذييل الصفحة (Footer)
   ============================================ */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    overflow: hidden;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-right: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-social-link:hover {
    color: var(--secondary-color);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   التجاوب (Responsive Design)
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }

    .partner-logo {
        padding: 1rem;
        min-height: 100px;
        font-size: 0.85rem;
    }

    .about-image {
        height: 300px;
        margin-bottom: 2rem;
    }

    .hero-image {
        height: 250px;
    }

    .pulse-circle {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 100px 0 50px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-title::after {
        width: 40px;
        height: 3px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }

    .process-card,
    .feature-card,
    .service-card {
        padding: 1.5rem;
    }

    .process-number {
        font-size: 2rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   تأثيرات إضافية (Additional Effects)
   ============================================ */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-secondary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: var(--primary-color);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-color);
    color: white;
}

/* ============================================
   أدوات الكشف والأنيميشن (Reveal Utilities)
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}
.reveal-visible {
    opacity: 1;
    transform: none;
}

/* تدرج زمني للعناصر داخل الحاويات */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}
.reveal-stagger.reveal-visible > * {
    opacity: 1;
    transform: none;
}

/* تقليل الحركة: احترام تفضيلات الوصول */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal,
    .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
}

