:root { --primary: #0070f3; --accent: #00dfd8; --card-bg-start: #ffffff; --card-bg-end: #fbfdff; }
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      transition: all 0.3s ease;
    }

    body {
        
      font-family: "Poppins", "Tajawal", "Times New Roman", serif;
      /*font-family: "Poppins", "Tajawal", sans-serif;*/
      color: #333;
      background-color: #f9f9f9;
      scroll-behavior: smooth;
    }

    header {
      position: fixed;
      top: 0;
      width: 100%;
      background: #0b132b;
      color: #fff;
      z-index: 1000;
      box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    }

    /* header grid layout: left-area / center nav / right-area */
    .header-inner {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 18px;
      align-items: center;
      padding: 15px 50px;
    }

    .left-area, .right-area { display: flex; align-items: center; gap: 12px; }

    .lang-btn {
      background: transparent;
      color: #fff;
      border: 1px solid rgba(255,255,255,0.06);
      padding: 6px 10px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      transition: background 0.18s, color 0.18s, transform 0.12s;
    }

    .lang-btn.active {
      background: rgba(255,255,255,0.08);
      color: var(--accent);
      transform: translateY(-1px);
    }

    header h1 {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 1.15rem;
      color: #5bc0be;
      margin: 0;
    }

    /* center the nav */
    nav.main-nav { justify-self: center; }

    nav ul {
      list-style: none;
      display: flex;
      gap: 25px;
    }

    header h1 i {
      color: #5bc0be;
    }

    nav ul {
      list-style: none;
      display: flex;
      gap: 25px;
    }

    nav a {
      color: #fff;
      font-weight: 500;
      text-decoration: none;
    }

    nav a:hover {
      color: #5bc0be;
    }

    #lang-btn {
      background-color: #5bc0be;
      color: #fff;
      border: none;
      border-radius: 6px;
      padding: 8px 15px;
      cursor: pointer;
      font-weight: bold;
    }

    #lang-btn:hover {
      background-color: #3aafa9;
    }

    /* Mobile Header / Nav */
    .header-inner { display: flex; align-items: center; gap: 12px; }

    .nav-toggle { display: none; background: transparent; border: none; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
    .nav-toggle .hamburger { display: block; width: 22px; height: 2px; background: #fff; position: relative; }
    .nav-toggle .hamburger::before, .nav-toggle .hamburger::after { content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: #fff; transition: transform 0.25s ease; }
    .nav-toggle .hamburger::before { top: -7px; }
    .nav-toggle .hamburger::after { top: 7px; }

    nav.main-nav { display: block; }
    .nav-list { display: flex; gap: 25px; align-items: center; }

    /* Mobile-specific behavior */
    @media (max-width: 768px) {
      header { padding: 10px 12px; }
      .header-inner { padding: 10px 12px; }
      .nav-toggle { display: flex; }
      nav.main-nav { grid-column: 1 / -1; justify-self: stretch; }
      .nav-list {
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: #0b132b;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 18px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.28s ease;
      }

      body.nav-open .nav-list { max-height: 420px; }

      .nav-list a { width: 100%; padding: 8px 6px; }

      .lang-btn { margin: 0 6px; }
    }

    /* HERO */
    .hero {
      height: 100vh;
      background: linear-gradient(rgba(11,19,43,0.75), rgba(11,19,43,0.75)),
        url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1600&q=80') center/cover;
      color: #fff;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 0 20px;
    }

    .hero h2 {
      font-size: 3em;
      margin-bottom: 20px;
      max-width: 800px;
    }

    .hero p {
      font-size: 1.2em;
      max-width: 650px;
      line-height: 1.6;
    }

    .hero button {
      margin-top: 35px;
      padding: 14px 30px;
      background-color: #5bc0be;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 1.1em;
      cursor: pointer;
      box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    }

    .hero button:hover {
      background-color: #3aafa9;
      transform: translateY(-3px);
    }

    section {
      padding: 90px 50px;
    }

    .section-title {
      text-align: center;
      font-size: 2.4em;
      margin-bottom: 70px;
      color: #0b132b;
      position: relative;
    }

    .section-title::after {
      content: '';
      width: 80px;
      height: 4px;
      background-color: #5bc0be;
      display: block;
      margin: 12px auto 0;
      border-radius: 2px;
    }

    /* SERVICES */
    .services {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 35px;
    }

    .service-card {
      position: relative;
      background: linear-gradient(180deg, var(--card-bg-start), var(--card-bg-end));
      padding: 28px 24px;
      border-radius: 14px;
      box-shadow: 0 8px 30px rgba(2,8,23,0.06);
      text-align: center;
      overflow: hidden;
      transition: transform 0.36s cubic-bezier(.2,.9,.3,1), box-shadow 0.36s;
      animation: popUp .6s ease both;
    }

    .service-card::after {
      content: '';
      position: absolute;
      left: 0; right: 0; bottom: 0;
      height: 6px;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform 0.36s ease;
    }

    .service-card:hover {
      transform: translateY(-10px) scale(1.02);
      box-shadow: 0 20px 50px rgba(2,8,23,0.12);
    }

    .service-card:hover::after { transform: scaleX(1); }

    .service-card i {
      font-size: 2.6rem;
      color: #fff;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      width: 72px; height: 72px; display: inline-grid; place-items: center; border-radius: 12px; margin-bottom: 18px;
      transition: transform 0.28s ease, box-shadow 0.28s ease;
    }

    .service-card:hover i {
      transform: translateY(-6px) rotate(-6deg);
      box-shadow: 0 12px 24px rgba(30,136,229,0.12);
    }

    .service-card h3 {
      font-size: 1.2em;
      margin-bottom: 8px;
      color: #07122a;
      font-weight: 700;
    }

    .service-card p {
      font-size: 0.98em;
      color: #6b7280;
      line-height: 1.6;
    }

    /* entrance animation */
    @keyframes popUp {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* staggered delays */
    .services .service-card:nth-child(1) { animation-delay: 0.05s; }
    .services .service-card:nth-child(2) { animation-delay: 0.12s; }
    .services .service-card:nth-child(3) { animation-delay: 0.18s; }
    .services .service-card:nth-child(4) { animation-delay: 0.24s; }
    .services .service-card:nth-child(5) { animation-delay: 0.30s; }

    /* CONTACT */
    .contact {
      background-color: #0b132b;
      color: #fff;
      text-align: center;
    }

    .contact form {
      max-width: 600px;
      margin: 40px auto 0;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .contact input, .contact textarea {
      padding: 12px;
      border: none;
      border-radius: 8px;
      font-size: 1em;
    }

    .contact button {
      padding: 12px;
      background-color: #5bc0be;
      border: none;
      border-radius: 8px;
      font-size: 1em;
      color: #fff;
      cursor: pointer;
    }

    .custom-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
    }
    footer {
      background-color: #091124;
      color: #ccc;
      text-align: center;
      padding: 20px 0;
      font-size: 0.9em;
    }

    [dir="rtl"] {
      direction: rtl;
      text-align: right;
      font-family: "Tajawal", sans-serif;
    }

    [dir="rtl"] nav ul {
      flex-direction: row-reverse;
    }
