/* Bootstrap variable overrides */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/* Primary color */

    :root {
      --bs-primary: #2f8eb5;
      --bs-secondary: #6c757d;
      --bs-success: #28a745;
      --bs-info: #17a2b8;
      --bs-warning: #ffc107;
      --bs-danger: #dc3545;
      --bs-light: #f8f9fa;
      --bs-dark: #343a40;
      --bs-font-sans-serif: 'Tajawal', sans-serif;
      --bs-border-radius: 0.4rem;
      --bs-body-bg: #f4f6fa;
      --bs-body-color: #222;
      --nav-color: #fff;
      --bs-emphasis-color-rgb: #fff;
      --primary-color: #17a085;
      --primary-light: #1dcdb4;
      --secondary-color: #2f8eb5;
      --text-dark: #343a40;
      --text-light: #f8f9fa;
      --text-muted: #6c757d;
      --bg-light: #f8f9fa;
      --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
      --transition: all 0.3s ease;
      --accent-color: #17a085;
    }

    /* ========== BASE STYLES ========== */
    @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');
    
    body {
      font-family: 'Tajawal', sans-serif;
      direction: rtl;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      color: var(--bs-body-color);
      background-color: var(--bs-body-bg);
    }

    * {
      box-sizing: border-box;
    }

    h1 {
      font-size: 64px;
      font-weight: 800;
    }

    h2 {
      font-size: 32px;
      font-weight: 700;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    }

    p {
      font-size: 18px;
      line-height: 1.6;
    }

    .section-title {
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--secondary-color);
      margin-bottom: 1rem;
      position: relative;
      text-align: center;
    }

    .section-title::after {
      content: '';
      position: absolute;
      bottom: -10px;
      right: 50%;
      transform: translateX(50%);
      width: 80px;
      height: 4px;
      background: var(--accent-color);
      border-radius: 2px;
    }

    .lead {
      color: var(--text-muted);
      font-size: 1.2rem;
      margin-bottom: 2rem;
    }

    /* ========== LAYOUT ========== */
    @media (min-width: 1200px) {
      .container-fluid,
      .container-xl {
        max-width: 70vw;
      }
    }

    /* ========== HEADER & NAVIGATION ========== */
    header {
      position: relative;
      color: var(--text-light);
      border-bottom: none;
    }

    .header-full {
      height: 100vh;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: rgba(0, 0, 0, 0.7);
    }

    .header-video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
    }

    main {
      height: 100%;
      display: flex;
      align-items: center;
      padding-top: 80px;
    }

    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      transition: background 0.3s ease, backdrop-filter 0.3s ease;
    }

    .navbar.scrolled {
      background: rgba(0, 0, 0, 0.9);
      backdrop-filter: blur(10px);
    }

    .navbar-brand {
      font-size: 16px;
      font-weight: 600;
      line-height: 1.2;
      color: var(--nav-color) !important;
    }

    .nav-link {
      font-size: 16px;
      position: relative;
    }

    .nav-link,
    .nav-link.active,
    .nav-link:hover {
      font-weight: 400;
      color: var(--nav-color) !important;
    }

    .nav-link-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .nav-link:hover:after,
    .nav-link.active:after {
      content: '';
      position: absolute;
      bottom: 5px;
      left: 5px;
      width: 40%;
      height: 1.5px;
      background-color: var(--primary-light);
      animation: border-grow 0.4s forwards;
    }

    .navbar-toggler {
      border: none;
      padding: 0.25rem 0.5rem;
      box-shadow: none !important;
    }

    .navbar-toggler-icon {
      color: var(--nav-color) !important;
      filter: invert(1);
    }

    .logo {
      width: 250px;
      height: auto;
    }

    /* ========== BUTTONS ========== */
    .btn {
      padding: 0.6rem 1.2rem;
    }

    .cta-button {
      background: var(--primary-color);
      color: var(--text-light);
      border: none;
      padding: 15px 30px;
      font-size: 18px;
      font-weight: 600;
      border-radius: 12px;
      cursor: pointer;
      transition: var(--transition);
      box-shadow: 0 4px 15px rgba(29, 205, 180, 0.3);
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
      text-decoration: none;
      display: inline-block;
      position: relative;
      overflow: hidden;
    }

    .cta-button:hover {
      background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    }

    .nav-cta {
      font-size: 16px;
    }

    /* ========== CARDS ========== */
    .card {
      background: #fff;
      border-radius: 15px;
      box-shadow: var(--shadow);
      transition: var(--transition);
      height: 100%;
    }

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

    /* Service Cards */
    .service-card {
      background: #fff;
      border: 1.5px solid var(--primary-light);
      border-radius: 15px;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      padding: 2.5rem;
      text-align: center;
      height: 100%;
      transition: box-shadow 0.3s, transform 0.3s;
    }

    .service-card:hover {
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
      transform: translateY(-5px);
    }

    .service-icon i {
      font-size: 2rem;
      color: #fff;
    }

    .service-card p {
      font-weight: 500;
      color: var(--secondary-color);
      margin-bottom: 1rem;
    }

    /* Service List */
    .service-list {
      list-style: none;
      padding: 0;
      margin: 0 2rem 2rem 0;
      text-align: right;
    }

    .service-list li {
      position: relative;
      margin-bottom: 0.5rem;
      font-size: 1rem;
      line-height: 1.5;
      color: var(--text-muted);
    }

    .service-list li:before {
      content: '';
      position: absolute;
      right: -2rem;
      top: 50%;
      transform: translateY(-50%);
      width: 12px;
      height: 12px;
      background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
      border-radius: 50%;
      box-shadow: 0 2px 4px rgba(29, 205, 180, 0.3);
    }

    /* Mission Cards */
    .mission-card {
      border: 1px solid var(--primary-light);
      padding: 2rem;
      text-align: center;
      border-radius: 15px;
      box-shadow: var(--shadow);
    }

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

    .card-icon i {
      font-size: 2rem;
      color: #fff;
    }

    .mission-card h3 {
      font-size: 1.75rem;
      font-weight: 600;
      color: var(--secondary-color);
      margin-bottom: 1rem;
    }

    /* Value Cards */
    .value-card {
      padding: 2rem;
      text-align: center;
      border: 1px solid var(--primary-light);
      border-radius: 15px;
      box-shadow: var(--shadow);
    }

    .value-icon {
      width: 70px;
      height: 70px;
      background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1rem;
    }

    .value-icon i {
      font-size: 1.5rem;
      color: #fff;
    }

    .value-card h4 {
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--secondary-color);
      margin-bottom: 0.75rem;
    }

    /* Team Cards */
    .team-card {
      overflow: hidden;
    }

    .team-image {
      position: relative;
      overflow: hidden;
      height: 250px;
    }

    .team-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .team-card:hover .team-image img {
      transform: scale(1.05);
    }

    .team-info {
      padding: 1.5rem;
      text-align: center;
    }

    .team-info h4 {
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--secondary-color);
      margin-bottom: 0.5rem;
    }

    .team-info .position {
      color: var(--primary-color);
      font-weight: 500;
      margin-bottom: 0.75rem;
      font-size: 0.9rem;
    }

    /* ========== SECTIONS ========== */
    section {
      padding: 80px 0;
    }

    /* About Section */
    #about {
      background: #fff;
    }

    .about-content {
      padding-right: 2rem;
      text-align: center;
    }

    .about-image {
      position: relative;
    }

    .about-image img {
      max-width: 25vw;
      width: 100%;
      margin-top: 2rem;
      height: auto;
      max-height: 40vh;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
      display: block;
      margin-right: auto;
    }

    .stats-row {
      display: flex;
      justify-content: space-between;
      margin-top: 1rem;
      gap: 1rem;
    }

    .experience-stats {
      padding: 1rem 1.5rem;
      background-color: var(--bg-light);
      position: absolute;
      bottom: 5%;
      right: 15%;
      display: block;
    }

    .stat-item {
      text-align: center;
      flex: 1;
    }

    .stat-item h3 {
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--primary-color);
      margin: 0;
    }

    .stat-item p {
      font-size: 1rem;
      margin: 0;
      color: var(--text-muted);
    }

    /* Services Section */
    #services {
      background-color: var(--bg-light);
    }

    /* Programs Section */
    .programs-section {
      background-color: var(--bg-light);
    }

    .program-filter {
      margin-bottom: 30px;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px;
    }

    .filter-btn {
      background: transparent;
      border: 2px solid var(--primary-color);
      color: var(--primary-color);
      padding: 8px 20px;
      border-radius: 30px;
      font-weight: 600;
      transition: all 0.3s ease;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }

    .filter-btn:hover,
    .filter-btn.active {
      background: var(--primary-color);
      color: white;
    }

    /* ألوان فريدة لكل تبويب */
    .filter-btn.active.business-tab,
    .business-tab:hover {
      background: #1dbcb4;
      border-color: #1dbcb4;
    }

    .filter-btn.active.financial-tab,
    .financial-tab:hover {
      background: #1d4e91;
      border-color: #1d4e91;
    }

    .filter-btn.active.development-tab,
    .development-tab:hover {
      background: #4caf50;
      border-color: #4caf50;
    }

    .filter-btn.active.all-tab,
    .all-tab:hover {
      background: #ff9800;
      border-color: #ff9800;
    }

    .program-card {
      display: flex;
      flex-direction: column;
      background: white;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
      height: 100%;
      margin-bottom: 30px;
    }

    .program-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .program-img {
      height: 200px;
      overflow: hidden;
      position: relative;
    }

    .program-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .program-card:hover .program-img img {
      transform: scale(1.1);
    }

    .program-category {
      position: absolute;
      top: 15px;
      left: 15px;
      color: white;
      padding: 5px 15px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
    }

    /* ألوان مختلفة للبادجات حسب التصنيف */
    .program-item[data-category='business'] .program-category {
      background: #ffc115;
    }

    .program-item[data-category='financial'] .program-category {
      background: #1d4e91;
    }

    .program-item[data-category='development'] .program-category {
      background: #4caf50;
    }

    .program-content {
      flex-grow: 1;
      padding: 25px;
      display: flex;
      flex-direction: column;
    }

    .program-title {
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 15px;
      color: var(--secondary-color);
    }

    .program-desc {
      color: #666;
      margin-bottom: 20px;
      line-height: 1.6;
    }

    .program-features {
      margin-bottom: 20px;
    }

    .program-feature {
      color: #666;
      margin-bottom: 10px;
      font-size: 14px;
    }

    .program-feature i {
      color: var(--primary-color);
      margin-left: 10px;
    }

    .program-cta {
      flex-grow: 1;
      display: flex;
      justify-content: space-between;
      align-items: last baseline;
      margin-top: 20px;
    }

    .program-price {
      font-weight: 700;
      color: var(--secondary-color);
      font-size: 18px;
    }

    .program-btn {
      background: var(--primary-color);
      color: white;
      border: none;
      padding: 8px 20px;
      border-radius: 5px;
      font-weight: 600;
      transition: all 0.3s ease;
      text-decoration: none;
      display: inline-block;
    }

    .program-btn:hover {
      background: var(--secondary-color);
      color: white;
    }

    /* Path Cards */
    #paths {
      background: #fff;
    }

    .path-card {
      overflow: hidden;
      border-radius: 12px;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      height: 100%;
      flex-grow: 1;
      background: white;
    }

    .path-card img {
      width: 100%;
      height: 250px;
      margin-bottom: 1rem;
      object-fit: cover;
    }

    .path-content {
      padding: 1rem;
      text-align: center;
    }

    /* CTA Section */
    #cta {
      background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
      color: #fff;
      text-align: center;
    }

    #cta h2 {
      color: #fff;
      text-shadow: none;
    }

    #cta .lead {
      color: rgba(255, 255, 255, 0.9);
    }

    #cta .cta-button {
      background: #fff;
      color: var(--secondary-color);
      border: 2px solid #fff;
    }

    #cta .cta-button:hover {
      background: transparent;
      color: #fff;
    }

    /* Footer */
    .footer {
      background: var(--text-dark);
      color: #fff;
      padding: 60px 0 30px;
    }

    .footer-logo {
      width: 250px;
      height: auto;
      margin-bottom: 1rem;
    }

    .footer h5 {
      color: var(--primary-color);
      font-weight: 600;
      margin-bottom: 1rem;
    }

    .footer a {
      color: #fff;
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .footer a:hover {
      color: var(--primary-color);
    }

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

    .footer hr {
      border-color: #495057;
      margin: 2rem 0 1rem;
    }

    /* Program Details Modal */
    .modal-content {
      border-radius: 15px;
      overflow: hidden;
    }

    .modal-header {
      background: var(--primary-color);
      color: white;
      border-bottom: none;
    }

    .modal-title {
      font-weight: 700;
    }

    .modal-body {
      padding: 25px;
    }

    .modal-feature {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
    }

    .modal-feature i {
      color: var(--primary-color);
      margin-left: 10px;
      width: 20px;
    }

    .modal-footer {
      border-top: none;
      background: #f8f9fa;
    }

    /* ========== UTILITIES ========== */
    .scroll-animate {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.6s ease;
    }

    .scroll-animate.animate {
      opacity: 1;
      transform: translateY(0);
    }

    /* Back to top button */
    .back-to-top {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 50px;
      height: 50px;
      background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
      color: white;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
      z-index: 1000;
      box-shadow: 0 4px 15px rgba(29, 205, 180, 0.3);
    }

    .back-to-top.visible {
      opacity: 1;
      visibility: visible;
    }

    /* Ripple effect */
    .ripple {
      position: absolute;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      transform: scale(0);
      animation: ripple-animation 0.6s linear;
      pointer-events: none;
    }

    /* ========== ANIMATIONS ========== */
    @keyframes border-grow {
      from {
        width: 0;
      }
      to {
        width: 40%;
      }
    }

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

    @keyframes ripple-animation {
      to {
        transform: scale(4);
        opacity: 0;
      }
    }

    .fade-in-up {
      animation: fadeInUp 0.6s ease-out;
    }

    /* ========== RESPONSIVE ========== */
    @media (max-width: 991.98px) {
      .nav-link {
        font-size: 14px;
      }

      .nav-link-wrapper {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 0.5rem;
      }

      .nav-link.active {
        color: var(--primary-light) !important;
      }

      .nav-link:after {
        display: none;
      }

      .logo {
        width: 200px;
      }

      .navbar-collapse {
        position: absolute !important;
        top: 100%;
        right: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        border-radius: 0 0 0.375rem 0.375rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        padding: 1rem;
        margin: 0;
        width: 100%;
      }

      .navbar-collapse .navbar-nav {
        width: 100%;
        text-align: center;
      }

      .navbar-collapse .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      }

      .navbar-collapse .nav-link:last-child {
        border-bottom: none;
      }
    }

    @media (max-width: 768px) {
      h1 {
        font-size: 42px;
      }

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

      .stats-row {
        flex-direction: column;
        gap: 1.5rem;
      }

      .logo {
        width: 200px;
        padding: 0;
      }

      .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
      }

      .service-card {
        margin-bottom: 2rem;
      }

      .about-image img {
        max-width: 90vw;
        max-height: 40vh;
      }

      .service-list li {
        font-size: 0.9rem;
        padding-left: 1.5rem;
      }

      .service-list li:before {
        width: 10px;
        height: 10px;
        right: -1.5rem;
      }
    }

    @media (max-width: 576px) {
      h1 {
        font-size: 36px;
      }

      h2 {
        font-size: 24px;
      }

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

      .cta-button {
        padding: 10px 25px;
        font-size: 14px;
      }

      .about-image img {
        max-width: 100vw;
        max-height: 40vh;
      }

      .experience-stats {
        right: 5%;
      }

      .stat-item h3 {
        font-size: 2rem;
        font-weight: 600;
      }
    }
