/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --cyan:       #47c7ef;
  --navy:       #0f0f33;
  --footer-bg:  #020035;
  --gray:       #58595b;
  --light-gray: #b9c2d3;
  --white:      #fff;
  --bg:         #f4f6f9;

  /* Fluid spacing scale */
  --space-xs:  clamp(12px, 2vw,  20px);
  --space-sm:  clamp(20px, 3vw,  36px);
  --space-md:  clamp(32px, 5vw,  60px);
  --space-lg:  clamp(48px, 7vw,  80px);
  --space-xl:  clamp(60px, 9vw, 100px);

  /* Fluid type scale */
  --text-2xs:  clamp(10px, 1.0vw, 11px);
  --text-xs:   clamp(11px, 1.1vw, 12px);
  --text-sm:   clamp(12px, 1.3vw, 13px);
  --text-base: clamp(13px, 1.5vw, 15px);
  --text-lg:   clamp(15px, 1.8vw, 18px);
  --text-xl:   clamp(22px, 2.8vw, 30px);
  --text-2xl:  clamp(26px, 3.5vw, 42px);
  --text-hero: clamp(34px, 5.5vw, 66px);

  /* Nav height — referenced for scroll offsets + mobile menu top */
  --nav-h: 64px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
body {
  font-family: 'Roboto', sans-serif;
  font-size: var(--text-base);
  color: var(--gray);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

/* ============================================================
   NAV
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 3vw, 40px);
  height: var(--nav-h);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
  gap: clamp(10px, 2vw, 40px);
}

#navbar .logo-wrap { flex-shrink: 0; }
#navbar .logo-wrap a { display: block; }
#navbar .logo-wrap img { height: clamp(28px, 3.5vw, 36px); }

#navbar nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

#navbar nav a {
  color: var(--light-gray);
  text-decoration: none;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px clamp(8px, 1.2vw, 16px);
  border-radius: 4px;
  transition: all .2s;
  white-space: nowrap;
}
#navbar nav a:hover,
#navbar nav a.active { color: var(--white); background: rgba(71,199,239,.18); }
#navbar nav a.active { color: var(--cyan); }

section { scroll-margin-top: var(--nav-h); }

/* ---- Hamburger button (hidden on desktop) ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: none;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg)  translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(8px); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO
   ============================================================ */
#home {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 36px) var(--space-lg) var(--space-md);
}
#home .hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
#home .hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(15,15,51,.97)  0%,
    rgba(15,15,51,.82) 42%,
    rgba(15,15,51,.35) 68%,
    transparent        100%
  );
}
#home .hero-content {
  position: relative; z-index: 2;
  max-width: 580px;
  width: 100%;
}
#home h1 {
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: clamp(14px, 2vw, 22px);
}
#home h1 span { color: var(--cyan); }
#home p {
  font-size: var(--text-lg);
  font-weight: 300;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: clamp(24px, 3vw, 38px);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 4px;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .85; }

.btn-outline {
  display: inline-block;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 4px;
  margin-left: 14px;
  transition: all .2s;
}
.btn-outline:hover { background: var(--cyan); color: var(--navy); }

.btn-website {
  display: inline-block;
  margin-top: 28px;
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 50px;
  transition: all .2s;
}
.btn-website:hover { background: var(--cyan); color: var(--navy); }

.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  margin-left: 20px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.45);
  color: rgba(255,255,255,.85);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 50px;
  letter-spacing: .03em;
  transition: all .2s;
}
.btn-pdf:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.btn-pdf svg { flex-shrink: 0; }

/* ============================================================
   SHARED SECTION TYPOGRAPHY
   ============================================================ */
.section-label {
  display: block;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 4px;
}
.section-title {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: clamp(14px, 2vw, 22px);
}
.section-body {
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray);
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}
.about-img {
  background-size: cover;
  background-position: center;
  min-height: 480px;
}
.about-content {
  padding: var(--space-lg) var(--space-md);
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 16px;
  margin-top: var(--space-md);
}
.stat-item .num {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.stat-item .num span { color: var(--cyan); }
.stat-item .label {
  font-size: var(--text-2xs);
  font-weight: 400;
  color: var(--light-gray);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 3px;
}

/* ============================================================
   FOOTPRINT
   ============================================================ */
#footprint { background: var(--navy); }
.fp-map { width: 100%; display: block; }

/* ============================================================
   UAE / PARTNERS
   ============================================================ */
#partners { background: var(--bg); }
.uae-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
}
.uae-photo {
  background-size: cover;
  background-position: center;
  min-height: 420px;
}
.uae-content {
  padding: var(--space-lg) clamp(20px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

/* ============================================================
   GOV / INSTITUTION
   ============================================================ */
.gov-section {
  padding: var(--space-lg) var(--space-lg);
  background: var(--bg);
}
.sec-label {
  font-size: var(--text-2xs);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sec-title {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: clamp(20px, 3vw, 36px);
  line-height: 1.2;
}
.full-img {
  width: 100%;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 24px rgba(15,15,51,.1);
}

.inst-section {
  padding: var(--space-lg) var(--space-lg);
  background: var(--white);
}

/* ============================================================
   TECHNOLOGY / AI
   ============================================================ */
.ai-section {
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}
.ai-img {
  background-size: cover;
  background-position: center;
  min-height: 480px;
}
.ai-content {
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ai-content .section-title       { color: var(--white); }
.ai-content .section-title span  { color: var(--cyan); }
.ai-content > p {
  font-size: var(--text-base);
  font-weight: 300;
  color: rgba(255,255,255,.82);
  line-height: 1.75;
}

.ai-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 48px);
  margin: clamp(20px, 3vw, 32px) 0;
}
.ai-stat .num {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.ai-stat .num span { color: var(--cyan); font-size: clamp(18px, 2.5vw, 28px); }
.ai-stat .lbl {
  font-size: var(--text-2xs);
  font-weight: 300;
  color: var(--light-gray);
  margin-top: 3px;
}

.ai-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-badge {
  background: rgba(71,199,239,.12);
  border: 1px solid rgba(71,199,239,.35);
  color: var(--cyan);
  font-size: var(--text-2xs);
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 4px;
}

/* R&D */
.rd-section {
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.principles-stack { display: flex; flex-direction: column; gap: 18px; }
.principles-intro {
  font-size: var(--text-2xs);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.principles-desc {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
}
.principle-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border-radius: 8px;
  padding: 20px 22px;
  box-shadow: 0 2px 12px rgba(15,15,51,.07);
}
.principle-card .num {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
}
.principle-card h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.principle-card p {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--gray);
  line-height: 1.6;
}

/* ============================================================
   SOLUTIONS
   ============================================================ */
.solutions-intro {
  padding: var(--space-xl) var(--space-lg);
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.sol-categories  { display: flex; flex-direction: column; gap: 16px; }
.sol-cat {
  border-left: 4px solid var(--cyan);
  padding: 14px 20px;
  background: var(--bg);
  border-radius: 0 8px 8px 0;
}
.sol-cat h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 5px;
}
.sol-cat p {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--gray);
  line-height: 1.5;
}
.sol-cat .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--cyan);
  border: 1px solid rgba(71,199,239,.4);
  padding: 2px 8px;
  border-radius: 3px;
}

.solutions-overview {
  padding: var(--space-md) var(--space-lg);
  background: var(--navy);
}
.solutions-overview h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: clamp(20px, 3vw, 32px);
  text-align: center;
}
.sol-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.sol-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(71,199,239,.2);
  border-radius: 8px;
  padding: 22px 18px;
  transition: all .2s;
  cursor: pointer;
}
.sol-card:hover {
  background: rgba(71,199,239,.1);
  border-color: var(--cyan);
  transform: translateY(-4px);
}
.sol-card h3 {
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 5px;
}
.sol-card .tagline {
  font-size: var(--text-xs);
  font-weight: 300;
  color: rgba(255,255,255,.6);
  line-height: 1.5;
  margin-bottom: 12px;
}
.sol-card .benefits { list-style: none; }
.sol-card .benefits li {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.75);
  padding: 3px 0;
  display: flex;
  gap: 7px;
}
.sol-card .benefits li::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
}
.sol-card a {
  display: inline-block;
  margin-top: 12px;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
}

/* ============================================================
   PRODUCT PAGES
   ============================================================ */
.product-section {
  padding: var(--space-lg);
  scroll-margin-top: var(--nav-h);
}
.product-section:nth-child(even) { background: var(--bg); }
.product-section:nth-child(odd)  { background: var(--white); }

.product-header  { margin-bottom: clamp(24px, 3vw, 40px); }
.product-name {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 8px;
}
.product-tagline {
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 300;
  color: var(--gray);
}
.product-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.intro-text {
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.col-label {
  font-size: var(--text-2xs);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--cyan);
  display: inline-block;
}
.benefit-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.benefit-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  margin-top: 7px;
}
.benefit-item h5 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.benefit-item p {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--gray);
  line-height: 1.6;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature-card {
  background: var(--navy);
  border-radius: 8px;
  padding: 16px 15px;
}
.fc-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
}
.fc-icon {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: rgba(71,199,239,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fc-icon svg { width: 15px; height: 15px; }
.feature-card h5 {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--cyan);
}
.feature-card p {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
#contact {
  background: var(--footer-bg);
  padding: var(--space-lg) var(--space-lg);
}
.footer-brand a { display: inline-block; margin-bottom: 18px; }
.footer-brand img { height: clamp(34px, 4vw, 42px); }
.footer-tagline {
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 300;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  max-width: 760px;
}
.footer-link {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  margin-top: 20px;
}
.footer-link:hover { text-decoration: underline; }

.footer-bottom {
  background: rgba(0,0,0,.3);
  padding: 16px var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: var(--text-2xs);
  color: var(--light-gray);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* --- Large tablets / small laptops (≤ 1200px) --- */
@media (max-width: 1200px) {
  .sol-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Tablets landscape (≤ 1024px) --- */
@media (max-width: 1024px) {
  .rd-section,
  .solutions-intro { grid-template-columns: 1fr; gap: var(--space-md); }

  .product-body    { grid-template-columns: 1fr; gap: var(--space-sm); }
}

/* --- Tablets portrait / hamburger threshold (≤ 900px) --- */
@media (max-width: 900px) {
  /* Show hamburger, hide inline nav */
  .hamburger { display: flex; }

  #navbar nav {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
    z-index: 999;
  }
  #navbar nav.open { display: flex; }
  #navbar nav a {
    padding: 13px 24px;
    border-radius: 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    white-space: normal;
  }

  /* Stack two-column image+text layouts */
  #about,
  .ai-section,
  .uae-section    { grid-template-columns: 1fr; }
  .about-img,
  .uae-photo,
  .ai-img         { min-height: 260px; }
  .ai-img         { order: -1; }   /* image above content on mobile */

  /* Hero */
  #home .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(15,15,51,.92) 0%,
      rgba(15,15,51,.75) 100%
    );
  }
  #home .hero-content { max-width: 100%; }

  /* Features grid: single column */
  .features-grid { grid-template-columns: 1fr; }

  /* Solution cards: 2-col on tablet */
  .sol-cards-grid { grid-template-columns: 1fr 1fr; }
}

/* --- Phablets (≤ 640px) --- */
@media (max-width: 640px) {
  .sol-cards-grid   { grid-template-columns: 1fr; }
  .ai-stats         { flex-direction: column; gap: 16px; }

  /* Stack footer bottom row */
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Stack PDF button below footer link */
  .btn-pdf { margin-left: 0; margin-top: 12px; }
}

/* --- Phones (≤ 480px) --- */
@media (max-width: 480px) {
  .stats-grid       { grid-template-columns: 1fr 1fr; }
  .about-img,
  .ai-img,
  .uae-photo        { min-height: 200px; }
  .section-label    { font-size: clamp(40px, 11vw, 52px); }

  /* Stack CTA buttons */
  .btn-primary,
  .btn-outline {
    display: block;
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
  .btn-outline { margin-top: 10px; }
}

/* ============================================================
   ACCESSIBILITY — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sol-card,
  .btn-primary,
  .btn-outline,
  .btn-website,
  .btn-pdf,
  #navbar nav a,
  .hamburger span { transition: none; }
  .sol-card:hover { transform: none; }
}

/* ============================================================
   ACCESSIBILITY — focus styles
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 3px;
}