/* Global Styles */
:root {
  --primary: #2563eb;
  --secondary: #10b981;
  --accent: #06b6d4;
  --dark: #1e293b;
  --light: #f8fafc;
  --primary-color: #0066cc;
    --secondary-color: #00a8e8;
    --accent-color: #00d9ff;
    --success-color: #06a77d;
    --warning-color: #f5a623;
    --error-color: #e74c3c;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #495057;
    --text-dark: #212529;
}

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

body {
  font-family: "Cairo", "Tajawal", sans-serif;
  direction: rtl !important;
  overflow-x: hidden;
}

.fw-black {
  font-weight: 900 !important;
}

/* Navbar Styles */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-svg {
  width: 50px;
  height: 50px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark);
}

.nav-link {
  font-weight: 600;
  color: var(--dark);
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
}

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

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #dbeafe 100%);
  padding-top: 100px;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle at 2px 2px, currentColor 1px, transparent 0);
  background-size: 40px 40px;
}

.hero-image-container {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-image-container img {
  border: 4px solid rgba(37, 99, 235, 0.2);
}

.hero-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.hero-decoration-1 {
  top: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  background: rgba(37, 99, 235, 0.2);
}

.hero-decoration-2 {
  bottom: -40px;
  right: -40px;
  width: 240px;
  height: 240px;
  background: rgba(6, 182, 212, 0.2);
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
}

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

/* Feature Cards */

.feature-card {
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.bg {
  background-color: rgb(243, 243, 237);
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon i {
  font-size: 2rem;
}

/* Device Cards */
.device-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
}

.device-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.device-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
}

.device-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* imin Device Special Animation */
.imin-device-container {
  position: relative;
  width: 100%;
  height: 200px;
}

.imin-device-container .device-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.receipt-animation {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: auto;
  animation: slideDown 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  z-index: 10;
}

@keyframes slideDown {
  0%,
  100% {
    top: -30px;
    opacity: 0;
  }
  20%,
  80% {
    opacity: 1;
  }
  50% {
    top: 20px;
  }
}

/* Statistics */
.stat-card {
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
}

/* Form Styles */
.form-control,
.form-select {
  border-radius: 0.5rem;
  border: 2px solid #e2e8f0;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Button Styles */
.btn {
  border-radius: 0.5rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  border: none;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-success {
  background: #25d366;
  border: none;
}

.btn-success:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Footer */
footer a:hover {
  color: var(--primary) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 80px;
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .lead {
    font-size: 1.1rem;
  }
}

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

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Partners Section */
.partners-slider-wrapper {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  animation-play-state: running;
}

.partners-slider {
  display: flex;
  gap: 3rem;
  /*animation: slideRTL 15s linear infinite;*/
    animation: slideRTL 15s linear running;
  /*width: fit-content;*/
   animation-play-state: running;
}

.partners-slider:hover {
  animation-play-state: running;
}

.partner-card {
  flex-shrink: 0;
  width: 200px;
  background: white;
  border-radius: 1rem;
  padding: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.partner-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.partner-logo {
  width: 180px;
  height: 100px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

@keyframes slideRTL {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive Partners */
@media (max-width: 768px) {
  .partner-card {
    width: 200px;
    padding: 1.5rem;
  }

  .partner-logo {
    width: 150px;
    height: 80px;
  }

  .partners-slider {
    gap: 2rem;
    animation: slideRTL 30s linear infinite;
     animation-play-state: running;
  }
}

   /* الوحدات */

.ag-format-container {
  width: 1142px;
  margin: 0 auto;
}

.ag-courses_box {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;

  padding: 50px 0;
}
.ag-courses_item {
  -ms-flex-preferred-size: calc(33.33333% - 30px);
  flex-basis: calc(33.33333% - 30px);

  margin: 0 15px 30px;

  overflow: hidden;

  border-radius: 28px;
}
.ag-courses-item_link {
  display: block;
  padding: 30px 20px;
  background-color: #FFF;
  /*background-color: #F2ECEB;*/
  overflow: hidden;

  position: relative;
}
.ag-courses-item_link:hover,
.ag-courses-item_link:hover .ag-courses-item_date {
  text-decoration: none;
  color: #FFF;
}
.ag-courses-item_link:hover .ag-courses-item_bg {
  -webkit-transform: scale(10);
  -ms-transform: scale(10);
  transform: scale(10);
}
.ag-courses-item_title {
  min-height: 87px;
  margin: 0 0 25px;
  overflow: hidden;
  font-weight: bold;
  font-size: 30px;
  color: #1e69dd;
  z-index: 2;
  position: relative;

}
.ag-courses-item_date-box {
  font-size: 18px;
  color: #FFF;

  z-index: 2;
  position: relative;
}
.ag-courses-item_date {
  font-weight: bold;
  color: #f9b234;

  -webkit-transition: color .5s ease;
  -o-transition: color .5s ease;
  transition: color .5s ease
}
.ag-courses-item_bg {
  height: 128px;
  width: 128px;
  background-color: #f9b234;
  z-index: 1;
  position: absolute;
  top: -75px;
  left: -75px;

  border-radius: 50%;

  -webkit-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;
}
.ag-courses_item:nth-child(2n) .ag-courses-item_bg {
  background-color: #3ecd5e;
}
.ag-courses_item:nth-child(3n) .ag-courses-item_bg {
  background-color: #e44002;
}
.ag-courses_item:nth-child(4n) .ag-courses-item_bg {
  background-color: #952aff;
}
.ag-courses_item:nth-child(5n) .ag-courses-item_bg {
  background-color: #cd3e94;
}
.ag-courses_item:nth-child(6n) .ag-courses-item_bg {
  background-color: #4c49ea;
}



@media only screen and (max-width: 979px) {
  .ag-courses_item {
    -ms-flex-preferred-size: calc(50% - 30px);
    flex-basis: calc(50% - 30px);
  }
  .ag-courses-item_title {
    font-size: 24px;
    align-item: center;
  }
}

@media only screen and (max-width: 767px) {
  .ag-format-container {
    width: 96%;
  }

}
@media only screen and (max-width: 639px) {
  .ag-courses_item {
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
  }
  .ag-courses-item_title {
    min-height: 72px;
    line-height: 1;

    font-size: 24px;
  }
  .ag-courses-item_link {
    padding: 22px 40px;
  }
  .ag-courses-item_date-box {
    font-size: 16px;
  }
}
     /*-- الوحدات -*/
.partners-section {
    padding: 80px 0;
}
.partner-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--medium-gray);
}
.partner-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.partner-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: rgb(67, 86, 212);
    transition: transform 0.3s ease;
}
.partner-card:hover .partner-logo {
    transform: scale(1.15) rotate(-5deg);
}

.partner-card h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 15px 0 10px;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
        min-height: auto;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-image {
        height: 300px;
        font-size: 100px;
        margin-top: 30px;
    }

    .service-card {
        padding: 25px 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .feature-item {
        padding: 20px;
        gap: 15px;
    }

    .feature-number {
        font-size: 2rem;
        min-width: 60px;
    }

    .offer-popular {
        transform: scale(1);
    }

    .offer-popular:hover {
        transform: translateY(-10px);
    }

    .navbar .nav-link {
        margin: 5px 0;
    }

    .contact-form {
        padding: 25px;
    }

    .d-flex {
        flex-direction: column;
    }

    .d-flex .btn {
        width: 100%;
    }

    .services-section,
    .features-section,
    .offers-section,
    .partners-section,
    .contact-section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-image {
        height: 250px;
        font-size: 80px;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .service-card {
        padding: 20px 15px;
    }

    .offer-list {
        font-size: 0.85rem;
    }

    .price {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 20px;
    }

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

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

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

.service-card,
.feature-item,
.offer-card,
.partner-card,
.contact-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }

.offer-card:nth-child(1) { animation-delay: 0.1s; }
.offer-card:nth-child(2) { animation-delay: 0.2s; }
.offer-card:nth-child(3) { animation-delay: 0.3s; }
.offer-card:nth-child(4) { animation-delay: 0.4s; }

.partner-card:nth-child(1) { animation-delay: 0.1s; }
.partner-card:nth-child(2) { animation-delay: 0.2s; }
.partner-card:nth-child(3) { animation-delay: 0.3s; }
.partner-card:nth-child(4) { animation-delay: 0.4s; }
.partner-card:nth-child(5) { animation-delay: 0.5s; }
.partner-card:nth-child(6) { animation-delay: 0.6s; }

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }

/* Smooth scrolling for anchor links */
a[href^="#"] {
    text-decoration: none;
    color: inherit;
}

.qr-code-image {
    width: 150px;
    height: 150px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.qr-code-image:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* تنسيق الوحدات */
.module-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.module-card:hover::before {
    transform: scaleX(1);
}

.module-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.module-card:hover .module-icon {
    transform: scale(1.1);
}

.module-card h3 {
    color: #333;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.module-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.module-features li {
    color: #555;
    padding: 0.3rem 0;
    position: relative;
    padding-right: 1.5rem;
    font-size: 0.9rem;
}

.module-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #007bff;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .module-card {
        padding: 1.5rem;
    }
    
    .module-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .module-card h3 {
        font-size: 1.2rem;
        min-height: 50px;
    }
}

@media (max-width: 576px) {
    .module-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .module-features li {
        font-size: 0.85rem;
    }
}

/*  شريط الموافقة على الكوكيز */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.cookie-content {
    flex: 1;
    margin-left: 20px;
}

.cookie-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.accept-btn {
    background-color: #27ae60;
    color: white;
}

.accept-btn:hover {
    background-color: #219653;
}

.policy-btn {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.policy-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.cookie-consent.hidden {
    transform: translateY(100%);
}

.privacy-policy {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    max-width: 500px;
    width: 90%;
    color: #333;
}

.privacy-policy h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.close-policy {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

@media (max-width: 768px) {
    .cookie-consent {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content {
        margin-left: 0;
        margin-bottom: 15px;
    }
}
/*  شريط الموافقة على الكوكيز */
