:root {
    --primary-color: #8B5CF6;
    --secondary-color: #C084FC;
    --light-purple: #F3E8FF;
    --dark-purple: #6D28D9;
    --text-dark: #2B2D31;
    --text-gray: #4B5563;
    --text-light: #9CA3AF;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --gradient: linear-gradient(90deg, #8B5CF6 0%, #C084FC 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: direction 0.3s ease;
}

body[dir="rtl"] {
    font-family: 'Inter', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid var(--light-purple);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* Hero Section - SEPARATE FROM NAV */
.hero {
    background-color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
    position: relative;
}

.hero-title {
    font-size: 80px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}
.t-multiline { white-space: pre-line; }

/* الاحتفاظ بهذا الـ keyframes كما هو لباقي الأقسام */
@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-description {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 1s forwards;
}

.hero-image {
    flex: 1;
    text-align: center;
    opacity: 0;
    transform: scale(0.9) translateY(20px); /* نزل الصورة شوي لتحت */
    animation: zoomIn 0.8s ease-out 1.2s forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1.6) translateY(0); /* كبر الصورة شوي */
        opacity: 1;
    }
}

.hero-image img {
    max-width: 110%; /* تكبير بسيط */
    height: auto;
    transition: transform 0.5s, translateY 0.5s;
    position: relative;
    bottom: 0;
}

.hero-image:hover img {
    transform: scale(1.1); /* تكبير إضافي عند الهوفر */
}


.decorative-element {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.2;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- Decorative Squares for Hero Text (Final Tweaked Version) --- */

/* الأب لضبط تموضع المربعات */
.hero-text {
    position: relative;
}

/* المربعات الرمادية العائمة */
.hero-text .text-decorative-square {
    position: absolute;
    background-color: #c4c4c4; /* سكني فاتح */
    opacity: 0.8;
    border-radius: 4px;
    transform: none;
    animation: floatSquaresHero 6s ease-in-out infinite; /* تعديل الاسم لتجنب التعارض */
    z-index: 3;
}

/* توزيع المربعات حول النص (أبعد شوي + وحدة تحت النص) */
.hero-text .text-square-1 {
    width: 45px;
    height: 45px;
    top: -70px;
    left: -60px;
    animation-delay: 0s;
}

.hero-text .text-square-2 {
    width: 25px;
    height: 25px;
    top: 80px;
    left: -80px;
    animation-delay: 1s;
}

.hero-text .text-square-3 {
    width: 35px;
    height: 35px;
    bottom: 140px;
    right: -70px;
    animation-delay: 2s;
}

.hero-text .text-square-4 {
    width: 15px;
    height: 15px;
    bottom: 60px;
    right: -40px;
    animation-delay: 3s;
}

.hero-text .text-square-5 {
    width: 20px;
    height: 20px;
    top: 30px;
    right: 50px;
    animation-delay: 4s;
}

/* المربع الجديد تحت النص في المنتصف */
.hero-text .text-square-6 {
    width: 30px;
    height: 30px;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2.5s;
}

/* حركة عائمة ناعمة وثابتة - نسخة خاصة بالـ Hero */
@keyframes floatSquaresHero {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px);
        opacity: 0.8;
    }
}
 
/* Features Section */
.features {
    /*background-color: var(--bg-light);*/
    padding: 80px 0;
    background-color:#f9fafc;

}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
}

.section-title.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

.feature-card {
    background-color: var(--white);
    border-radius: 24px;
    box-shadow: 0px 20px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s;
}

.feature-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 30px 40px rgba(0, 0, 0, 0.15);
}

.feature-content {
    flex: 1;
}

.feature-image {
    flex: 1;
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s 0.2s;
}

.feature-card.animate .feature-image {
    opacity: 1;
    transform: scale(1);
}

.feature-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.5s;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-image:hover img {
    transform: scale(1.05);
}

.feature-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(-20px);
}

.feature-card.animate .feature-title {
    animation: slideInLeft 0.6s ease-out 0.4s forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.feature-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.5;
    opacity: 0;
    transform: translateX(-20px);
}

.feature-card.animate .feature-description {
    animation: slideInLeft 0.6s ease-out 0.6s forwards;
}

.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
    opacity: 0;
    transform: translateX(-20px);
}

.feature-card.animate .feature-item {
    animation: slideInLeft 0.6s ease-out forwards;
}

.feature-card.animate .feature-item:nth-child(1) { animation-delay: 0.8s; }
.feature-card.animate .feature-item:nth-child(2) { animation-delay: 1s; }
.feature-card.animate .feature-item:nth-child(3) { animation-delay: 1.2s; }
.feature-card.animate .feature-item:nth-child(4) { animation-delay: 1.4s; }

.feature-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.feature-item:hover .feature-bullet {
    transform: scale(1.5);
}

.purple-bullet {
    background-color: var(--secondary-color);
}

.blue-bullet {
    background-color: #60A5FA;
}

.feature-text {
    font-size: 16px;
    color: var(--text-gray);
    transition: color 0.3s;
}

.feature-item:hover .feature-text {
    color: var(--text-dark);
}

/* --- Quote Section Full Width with Floating Squares --- */
.quote-section {
    position: relative;
    width: 100vw;           /* كامل عرض الشاشة */
    left: 50%;
    right: 50%;
    margin-left: -50vw;     /* كسر حدود .container */
    margin-right: -50vw;
    padding: 80px 0;        /* مسافة داخلية */
    text-align: center;
    color: var(--white);
    overflow: hidden;
    background: var(--gradient);
    box-sizing: border-box; /* يشمل padding داخل العرض */
    
}

/* شبكة الخلفية */
.quote-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: moveGrid 20s linear infinite;
    z-index: 0;
}

/* Keyframes لتحريك الشبكة */
@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

/* Container داخل القسم */
.quote-section .container {
    max-width: 1200px;      /* العرض الأقصى */
    width: 100%;            /* مرن */
    margin: 0 auto;         /* توسيط */
    padding: 0 20px;        /* مسافة على الجوانب */
    position: relative;
    z-index: 2;             /* فوق المربعات */
    box-sizing: border-box;
}

/* العنوان والنص */
.quote-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
}

.quote-section.animate .quote-title {
    animation: fadeInUpQuote 0.8s ease-out forwards; /* اسم خاص بالـ quote */
}

.quote-text {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
}

.quote-section.animate .quote-text {
    animation: fadeInUpQuote 0.8s ease-out 0.2s forwards; /* اسم خاص بالـ quote */
}

/* --- Decorative Floating Squares --- */
.quote-section .decorative-square {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    opacity: 0.8;
    animation: floatSquaresQuote 6s ease-in-out infinite; /* اسم خاص بالـ quote */
    z-index: 1;
}

/* مواقع المربعات */
.quote-section .square-1 {
    width: 45px;
    height: 45px;
    top: 60px;
    left: 5%;
    animation-delay: 0s;
}

.quote-section .square-2 {
    width: 30px;
    height: 30px;
    top: 120px;
    left: 25%;
    animation-delay: 1s;
}

.quote-section .square-3 {
    width: 25px;
    height: 25px;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

.quote-section .square-4 {
    width: 35px;
    height: 35px;
    top: 130px;
    left: 70%;
    animation-delay: 3s;
}

.quote-section .square-5 {
    width: 28px;
    height: 28px;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

/* حركة ناعمة مستمرة - نسخة خاصة بالـ Quote */
@keyframes floatSquaresQuote {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px);
        opacity: 0.8;
    }
}

/* Fade In Up Animation - نسخة خاصة بالـ Quote */
@keyframes fadeInUpQuote {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Contact Section */
.contact {
    background: linear-gradient(135deg, #1E40AF 0%, #8B5CF6 50%, #7C3AED 100%);
    padding: 80px 0;
}

.contact-container {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0px 25px 50px rgba(0, 0, 0, 0.25);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s;
}

.contact-container.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
}

.contact-container.animate .contact-title {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.contact-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
}

.contact-container.animate .contact-subtitle {
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
    opacity: 0;
    transform: translateX(-20px);
}

.contact-container.animate .contact-info {
    animation: slideInLeft 0.6s ease-out 0.6s forwards;
}

.contact-form {
    flex: 1;
    opacity: 0;
    transform: translateX(20px);
}

.contact-container.animate .contact-form {
    animation: slideInRight 0.6s ease-out 0.8s forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.info-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    transition: transform 0.3s;
}

.info-item:hover {
    transform: translateX(5px);
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    transition: transform 0.3s;
}

.info-item:hover .info-icon {
    transform: scale(1.1);
}

.phone-icon {
    background-color: #1E40AF;
}

.email-icon {
    background-color: var(--primary-color);
}

.address-icon {
    background-color: #7C3AED;
}

.info-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.info-details p {
    font-size: 16px;
    color: var(--text-gray);
}

.form-group {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(10px);
}

.contact-container.animate .form-group {
    animation: fadeInUp 0.5s ease-out forwards;
}

.contact-container.animate .form-group:nth-child(1) { animation-delay: 1s; }
.contact-container.animate .form-group:nth-child(2) { animation-delay: 1.1s; }
.contact-container.animate .form-group:nth-child(3) { animation-delay: 1.2s; }
.contact-container.animate .form-group:nth-child(4) { animation-delay: 1.3s; }

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-dark);
    background-color: var(--white);
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    transform: translateY(-2px);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Footer */
footer {
    background-color: #111827;
    color: var(--white);
    padding: 60px 0 30px;
    opacity: 0;
    transform: translateY(30px);
}

footer.animate {
    animation: fadeInUp 0.8s ease-out forwards;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
}

footer.animate .footer-logo {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.footer-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
}

footer.animate .footer-description {
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
}

footer.animate .social-links {
    animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    border-top: 1px solid #1F2937;
    padding-top: 30px;
    font-size: 16px;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(20px);
}

footer.animate .copyright {
    animation: fadeInUp 0.6s ease-out 0.8s forwards;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .feature-card {
        flex-direction: column;
    }
    
    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .feature-title {
        font-size: 24px;
    }
    
    .quote-title {
        font-size: 28px;
    }
    
    .quote-text {
        font-size: 18px;
    }
    
    .contact-title {
        font-size: 28px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 30px;
    }
    
    .features {
        padding: 50px 0;
    }
    
    .feature-card {
        padding: 25px;
    }
    
    .quote-section {
        padding: 50px 0;
    }
    
    .contact {
        padding: 50px 0;
    }
    
    .contact-container {
        padding: 25px;
    }
}
/* Fix spacing below the quote section */
.quote-section {
  margin-bottom: 80px; /* نفس المسافة اللي فوقه */
}

/* ونتأكد إن القسم اللي قبله ما يضغط عليه */
.features {
  margin-bottom: 0;
}

/* ===== ملفك كما هو بالأعلى ... ===== */

/* ... (كل محتوى ملفك الحالي يبقى كما هو) ... */

/* ===== نهاية ملفك الأصلي ===== */

/* === Compact Hero (override) === */
.hero{
  padding: 36px 0 !important;                 /* بدّلنا 80px → 36px */
  background-color: var(--white);
}
.hero-content{
  min-height: 320px;                           /* ارتفاع مُضغّط؛ بدّلها إلى 300 لو بدك أرفع */
  align-items: center;
}
.hero-image img{
  max-height: 260px;                           /* توازن الصورة مع النص */
  width: auto;
  height: auto;
}

/* Responsive tweaks */
@media (max-width: 992px){
  .hero{ padding: 28px 0 !important; }
  .hero-content{ min-height: unset; }          /* مرن على الشاشات الصغيرة */
  .hero-image img{ max-height: 220px; }
}
@media (max-width: 576px){
  .hero{ padding: 22px 0 !important; }
  .hero-image img{ max-height: 200px; }
}
/* Navbar: كارد بالنص + سِيدز نظيفة بدون ظل/حدود */
.navbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-inline: 16px;

  /* نخلي خلف الناف بار فل وِدث أبيض عشان ما يبين أي خطوط على اليمين/اليسار */
  background: transparent;
}
.navbar::before{
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;   /* يملأ العرض كله بالأبيض خلف الكارد */
  z-index: 0;         /* تحت محتوى الناف */
}

.navbar > .container{
  position: relative;
  z-index: 1;          /* فوق الـ ::before */
  max-width: 1200px;   /* الكارد بالنص */
  margin-inline: auto;
  background: #fff;

  /* بدون شادو ولا بوردر */
  border: none;
  box-shadow: none;

  /* زوايا من تحت فقط */
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;

  padding-block: 10px;
  padding-inline: 20px;
}

/* موبايل: فل وِدث بدون كارد */
@media (max-width: 768px){
  .navbar{ padding-inline: 0; }
  .navbar::before{ background: #fff; }
  .navbar > .container{
    max-width: none;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    border-bottom: 1px solid #F3F4F6; /* خط خفيف للموبايل فقط (احذفها لو مش بدك) */
    padding-inline: 16px;
  }
}


body[dir="rtl"] {
  font-family: 'Tajawal', 'Noto Sans Arabic', sans-serif;
}
