/* ═══════════════════════════════════════════════════════════
   KeniGsm — Global Design System
   Kenitra Globale System Maintenance · www.kenigsm.ma
═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Variables ─────────────────────────────── */
:root {
  --blue: #00d4ff;
  --blue-dim: rgba(0, 212, 255, .25);
  --orange: #ff6b00;
  --green: #00ff88;
  --purple: #a29bfe;
  --dark: #090e1a;
  --dark2: #0d1328;
  --dark3: #131b33;
  --card-bg: rgba(0, 212, 255, .05);
  --border: rgba(0, 212, 255, .18);
  --text: #e0f4ff;
  --text-dim: rgba(224, 244, 255, .55);
  --radius: 16px;
  --nav-h: 72px;
}

/* ── Reset ─────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: 'Inter', 'Rajdhani', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ── Typography ────────────────────────────── */
.font-display {
  font-family: 'Orbitron', sans-serif;
}

.font-tech {
  font-family: 'Rajdhani', sans-serif;
}

h1,
h2,
h3 {
  font-family: 'Orbitron', sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
}

/* ── Container ─────────────────────────────── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(9, 14, 26, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 212, 255, .12);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo .logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--blue);
  text-shadow: 0 0 14px var(--blue);
  letter-spacing: 2px;
}

.nav-logo .logo-text .g {
  color: var(--orange);
  text-shadow: 0 0 14px var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-links a {
  font-family: 'Rajdhani', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(224, 244, 255, .6);
  transition: color .2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width .25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem 0;
  min-width: 260px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  z-index: 200;
}

/* Invisible bridge so cursor can travel from toggle to dropdown */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}

.nav-dropdown:hover>.nav-dropdown-menu,
.nav-dropdown.open>.nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1.2rem;
  font-size: .88rem;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(0, 212, 255, .08);
  color: var(--blue);
}

.nav-dropdown-menu a::after {
  display: none;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(0, 212, 255, .08);
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  margin-left: .5rem;
}

.lang-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: .3rem .65rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(224, 244, 255, .4);
  font-family: 'Rajdhani', sans-serif;
  transition: all .2s;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--blue), #0077b6);
  color: #fff;
  text-shadow: 0 0 8px var(--blue);
}

.lang-btn:hover:not(.active) {
  color: rgba(224, 244, 255, .8);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════
   MOBILE NAV — compact horizontal bar
═══════════════════════════════════════════════ */
@media (max-width: 860px) {

  /* Hide hamburger — not needed */
  .hamburger {
    display: none !important;
  }

  /* Navbar becomes taller to hold two rows */
  .navbar {
    height: auto;
    padding-bottom: 0;
  }

  .navbar .container {
    flex-wrap: wrap;
    height: auto;
    padding-top: .5rem;
    padding-bottom: 0;
  }

  /* Logo stays on the left */
  .nav-logo img {
    height: 32px;
  }

  /* Nav links become a second row */
  .nav-links {
    order: 3;
    width: 100%;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    border-top: 1px solid var(--border);
    margin-top: .4rem;
  }

  .nav-links>a {
    font-size: .72rem;
    letter-spacing: 1px;
    padding: .55rem .65rem;
    white-space: nowrap;
  }

  .nav-links>a::after {
    bottom: 0;
  }

  /* Lang toggle sits next to the logo on the first row */
  .lang-toggle {
    order: 2;
    margin-left: auto;
    margin-right: 0;
  }

  .lang-btn {
    font-size: .7rem;
    padding: .25rem .5rem;
  }

  /* Scale hero text */
  .hero .container {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero p.lead {
    margin: 0 auto 2rem;
  }
}

/* Tighter spacing for very small phones */
@media (max-width: 400px) {
  .nav-links>a {
    font-size: .65rem;
    padding: .5rem .45rem;
    letter-spacing: .5px;
  }

  .nav-logo img {
    height: 28px;
  }

  .lang-btn {
    font-size: .65rem;
    padding: .2rem .4rem;
  }
}


/* ═══════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, .1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 107, 0, .06) 0%, transparent 50%);
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0, 212, 255, .08);
  border: 1px solid var(--border);
  padding: .4rem 1rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
}

.hero h1 {
  background: linear-gradient(135deg, var(--blue), #a29bfe, var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero p.lead {
    margin: 0 auto 2rem;
  }
}

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  border: none;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #0077b6);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 212, 255, .3);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(0, 212, 255, .5);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-outline:hover {
  background: rgba(0, 212, 255, .1);
  box-shadow: 0 0 20px rgba(0, 212, 255, .2);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c4e);
  color: #fff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, .3);
}

.btn-whatsapp:hover {
  box-shadow: 0 6px 28px rgba(37, 211, 102, .5);
}

.btn-phone {
  background: linear-gradient(135deg, var(--blue), #0077b6);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 212, 255, .3);
}

.btn-email {
  background: linear-gradient(135deg, var(--orange), #c0392b);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 107, 0, .3);
}

/* ═══════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════ */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-dark {
  background: transparent;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--blue);
  text-shadow: 0 0 12px rgba(0, 212, 255, .3);
  margin-bottom: .6rem;
}

.section-title p {
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-title .accent-line {
  width: 60px;
  height: 3px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 3px;
}

/* ═══════════════════════════════════════════════
   SERVICE CARDS (grid on home)
═══════════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0);
  transition: transform .3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 35px rgba(0, 212, 255, .15);
  border-color: var(--blue);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card .icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: .5rem;
}

.service-card p {
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   SERVICE PAGE LAYOUT
═══════════════════════════════════════════════ */
.service-hero {
  padding: calc(var(--nav-h) + 3rem) 0 3rem;
  background: var(--dark2);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.service-hero h1 {
  color: var(--blue);
  text-shadow: 0 0 20px rgba(0, 212, 255, .3);
  margin-bottom: .5rem;
}

.service-hero p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.service-content {
  padding: 4rem 0;
}

.service-content .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.service-content.reverse .container {
  direction: rtl;
}

.service-content.reverse .container>* {
  direction: ltr;
}

.service-text h2 {
  color: var(--blue);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-text p {
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.service-text ul {
  margin: 1rem 0;
}

.service-text li {
  padding: .5rem 0 .5rem 1.5rem;
  position: relative;
  color: var(--text-dim);
  font-size: .95rem;
}

.service-text li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  top: .5rem;
}

.service-visual {
  display: flex;
  justify-content: center;
}

.service-visual svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 15px rgba(0, 212, 255, .25));
}

@media (max-width: 768px) {
  .service-content .container {
    grid-template-columns: 1fr;
  }

  .service-content.reverse .container {
    direction: ltr;
  }
}

/* ═══════════════════════════════════════════════
   ABOUT / STATS
═══════════════════════════════════════════════ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-box {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-box .num {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  text-shadow: 0 0 12px rgba(0, 212, 255, .3);
}

.stat-box .label {
  font-size: .85rem;
  color: var(--text-dim);
  margin-top: .3rem;
}

/* ═══════════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════════ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 25px rgba(0, 212, 255, .12);
}

.contact-card .icon {
  font-size: 2.4rem;
  margin-bottom: .8rem;
  display: block;
}

.contact-card h3 {
  color: var(--blue);
  margin-bottom: .5rem;
  font-size: 1rem;
}

.contact-card p {
  color: var(--text-dim);
  font-size: .9rem;
  margin-bottom: 1rem;
}

.contact-card .btn {
  font-size: .85rem;
  padding: .7rem 1.5rem;
}

/* FORM */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: .4rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: 1px;
  color: var(--blue);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .8rem 1rem;
  background: rgba(0, 212, 255, .05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(0, 212, 255, .15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--blue);
  text-shadow: 0 0 10px var(--blue);
  margin-bottom: .6rem;
}

.footer-brand .logo-text .g {
  color: var(--orange);
  text-shadow: 0 0 10px var(--orange);
}

.footer-brand p {
  font-size: .85rem;
  color: var(--text-dim);
  max-width: 280px;
  line-height: 1.5;
}

.footer h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.footer ul li {
  margin-bottom: .5rem;
}

.footer ul a {
  font-size: .85rem;
  color: var(--text-dim);
  transition: color .2s;
}

.footer ul a:hover {
  color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: .78rem;
  color: rgba(224, 244, 255, .35);
  letter-spacing: 1px;
}

.footer-bottom strong {
  color: rgba(224, 244, 255, .6);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}



/* ═══════════════════════════════════════════════
   SCANLINE
═══════════════════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 212, 255, .015) 2px, rgba(0, 212, 255, .015) 4px);
}

/* ═══════════════════════════════════════════════
   CTA BAR
═══════════════════════════════════════════════ */
.cta-bar {
  background: linear-gradient(135deg, rgba(0, 212, 255, .1), rgba(255, 107, 0, .08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}

.cta-bar h2 {
  color: var(--blue);
  margin-bottom: .8rem;
}

.cta-bar p {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-bar .btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════ */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: .5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 2rem;
}

.mb-3 {
  margin-bottom: 2rem;
}

.glow-text {
  color: var(--blue);
  text-shadow: 0 0 12px rgba(0, 212, 255, .3);
}

/* ═══════════════════════════════════════════════
   MOBILE AUTO SCALING
═══════════════════════════════════════════════ */
@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .service-hero {
    padding: calc(var(--nav-h) + 2rem) 0 2rem;
  }

  .service-hero p {
    font-size: .95rem;
  }

  .service-text li {
    font-size: .88rem;
  }

  .cta-bar {
    padding: 2rem 1rem;
  }

  .cta-bar .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .contact-form {
    padding: 0 .5rem;
  }

  .service-visual svg {
    max-width: 280px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat-box .num {
    font-size: 1.5rem;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 1.35rem;
  }

  .btn {
    padding: .65rem 1.2rem;
    font-size: .85rem;
  }

  .nav-logo img {
    height: 32px;
  }
}