:root{
  --navy:#0A1F3D;
  --navy-soft:#0F2B52;
  --teal:#00A79D;
  --blue:#2563EB;
  --gray:#E5E7EB;
  --white:#F6FAFC;
  --text:#0A1F3D;
  --muted:#5B6B85;
  --radius:4px;
  --shadow:0 14px 30px rgba(10,31,61,.1);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
#home,#services,#about,#contact{scroll-margin-top:90px}
body{
  font-family:'Tajawal',sans-serif;
  color:var(--text);
  background:var(--white);
  line-height:1.7;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}
svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.container{max-width:1180px;margin:0 auto;padding:0 24px}
.mono{font-family:'IBM Plex Mono','Tajawal',monospace}

.eyebrow{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'IBM Plex Mono',monospace;
  font-size:.75rem;
  font-weight:600;
  letter-spacing:.12em;
  color:var(--teal);
  margin-bottom:18px;
}
.eyebrow::before{
  content:'';
  width:28px;height:1px;
  background:var(--teal);
}

/* Typing effect */
.type-line{display:inline-block}
.pre-type{visibility:hidden}
.type-line.caret::after{
  content:'';
  display:inline-block;
  width:2px;height:.85em;
  background:currentColor;
  margin-inline-start:3px;
  vertical-align:-0.1em;
  animation:caret-blink .85s steps(1) infinite;
}
@keyframes caret-blink{50%{opacity:0}}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:14px 30px;
  border-radius:var(--radius);
  font-family:inherit;
  font-weight:700;
  font-size:.95rem;
  border:none;
  cursor:pointer;
  transition:.2s ease;
}
.btn-primary{background:var(--navy);color:#fff}
.btn-primary:hover{background:var(--teal)}
.btn-ghost{background:transparent;color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.1)}
.btn.full{width:100%}

/* Header */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:100;
  padding:18px 0;
  transition:.3s ease;
}
.site-header.scrolled{
  background:rgba(10,31,61,.92);
  backdrop-filter:blur(10px);
  padding:12px 0;
  box-shadow:0 4px 20px rgba(0,0,0,.15);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:10px}
.brand-logo{height:38px;width:auto;object-fit:contain}
.brand-text{display:flex;flex-direction:column;line-height:1.2}
.brand-name{font-size:1.4rem;font-weight:800;color:#fff}
.brand-tagline{font-family:'IBM Plex Mono',monospace;font-size:.62rem;letter-spacing:.02em;color:rgba(255,255,255,.5)}
.main-nav{display:flex;gap:30px}
.main-nav a{color:rgba(255,255,255,.85);font-weight:500;font-size:.95rem;transition:.2s}
.main-nav a:hover{color:var(--teal)}
.lang-link{
  font-family:'IBM Plex Mono',monospace;font-size:.8rem;
  padding-inline-start:14px;border-inline-start:1px solid rgba(255,255,255,.2);
  color:rgba(255,255,255,.65);
}
.lang-link:hover{color:var(--teal)}
.header-cta{
  padding:10px 22px;font-size:.85rem;
  background:transparent;color:#fff;
}
.header-cta:hover{background:rgba(255,255,255,.1)}
.nav-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer}
.nav-toggle span{width:24px;height:2px;background:#fff;border-radius:2px}

/* Hero */
.hero{
  position:relative;
  min-height:100vh;
  background:var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:42px 42px;
  color:#fff;
  display:flex;flex-direction:column;justify-content:center;
  padding:140px 0 60px;
  overflow:hidden;
}
.hero::before{
  content:'';
  position:absolute;inset:0;
  background:radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,167,157,.18), transparent 70%);
  pointer-events:none;
}
#hero-canvas{position:absolute;inset:0;width:100%;height:100%;opacity:.35}
.hero-inner{position:relative;z-index:2;text-align:center;max-width:780px;margin:0 auto}
.hero h1{
  font-size:clamp(2.4rem,5vw,4rem);
  font-weight:800;
  line-height:1.25;
  margin-bottom:24px;
}
.text-gradient{color:var(--teal)}
.hero p{font-size:1.15rem;color:rgba(255,255,255,.75);max-width:600px;margin:0 auto 36px}
.hero-actions{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}

.hero-features{
  position:relative;z-index:2;
  display:flex;justify-content:center;align-items:center;
  margin-top:70px;flex-wrap:wrap;
}
.hf-item{display:flex;align-items:center;gap:10px;padding:0 26px;position:relative}
.hf-item + .hf-item::before{
  content:'';position:absolute;inset-inline-start:0;top:50%;transform:translateY(-50%);
  width:1px;height:24px;background:rgba(255,255,255,.15);
}
.hf-icon{
  width:20px;height:20px;
  color:var(--teal);
}
.hf-item span{font-family:'IBM Plex Mono',monospace;font-size:.78rem;letter-spacing:.06em;color:rgba(255,255,255,.7);font-weight:500}

/* Scroll reveal */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .7s cubic-bezier(.16,.8,.3,1),transform .7s cubic-bezier(.16,.8,.3,1);
}
.reveal.in-view{opacity:1;transform:translateY(0)}
.services-grid .reveal:nth-child(2){transition-delay:.1s}
.services-grid .reveal:nth-child(3){transition-delay:.2s}
.services-grid .reveal:nth-child(4){transition-delay:.3s}
.services-grid .reveal:nth-child(5){transition-delay:.4s}
.about-grid .reveal:nth-child(2){transition-delay:.1s}
.about-grid .reveal:nth-child(3){transition-delay:.2s}
.about-grid .reveal:nth-child(4){transition-delay:.3s}
.contact-inner .reveal:nth-child(2){transition-delay:.15s}
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
}

/* Section head */
.section-head{max-width:620px;margin-bottom:56px}
.section-head h2{font-size:clamp(1.8rem,3.5vw,2.6rem);font-weight:800;margin-bottom:16px}
.section-head p{color:var(--muted);font-size:1.05rem}

/* Services */
.services{
  padding:64px 0 110px;
  border-top:1px solid rgba(255,255,255,.08);
  background:var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size:42px 42px;
  color:#fff;
}
.services .section-head h2{color:#fff}
.services .section-head p{color:rgba(255,255,255,.6)}
.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  grid-auto-rows:1fr;
  gap:20px;
}
.service-card{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:38px;
  position:relative;
  display:flex;flex-direction:column;
  transition:background .25s ease,border-color .25s ease,transform .35s cubic-bezier(.16,.8,.3,1),box-shadow .35s ease;
}
.service-card:hover{
  background:rgba(255,255,255,.07);
  border-color:rgba(0,167,157,.4);
  transform:translateY(-6px);
  box-shadow:0 20px 40px rgba(0,0,0,.25);
}
.service-card:hover .service-icon{transform:scale(1.08);background:rgba(0,167,157,.2)}
.service-card:hover .service-index{border-color:rgba(0,167,157,.5);color:var(--teal)}
.service-card.featured{grid-column:span 2}
.service-index{
  position:absolute;top:26px;inset-inline-end:26px;
  width:34px;height:34px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.08);
  border:1px solid transparent;
  font-family:'IBM Plex Mono',monospace;font-size:.75rem;color:rgba(255,255,255,.7);
  transition:border-color .25s ease,color .25s ease;
}
.service-icon{
  width:52px;height:52px;padding:13px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(0,167,157,.12);color:var(--teal);
  margin-bottom:22px;
  transition:transform .3s cubic-bezier(.16,.8,.3,1),background .25s ease;
}
.service-card h3{font-size:1.3rem;font-weight:800;margin-bottom:14px;position:relative;padding-bottom:14px}
.service-card h3::after{
  content:'';position:absolute;bottom:0;inset-inline-start:0;
  width:40px;height:2px;background:var(--teal);
}
.service-card p{color:rgba(255,255,255,.6);font-size:.95rem;max-width:42ch}

/* About */
.about{padding:110px 0}
.about .section-head{margin-top:40px}
.about-grid{display:flex;flex-wrap:wrap;border-top:1px solid var(--gray)}
.about-card{
  flex:1 1 240px;
  padding:34px 30px;
  border-bottom:1px solid var(--gray);
  border-inline-end:1px solid var(--gray);
}
.about-card.pride{
  position:relative;
  background:var(--navy);color:#fff;border-color:var(--navy);
  overflow:hidden;
  isolation:isolate;
}
.about-card.pride p{color:rgba(255,255,255,.85);position:relative;z-index:1}
.about-card.pride h3{position:relative;z-index:1}
.pride-bg{
  position:absolute;inset:0;z-index:-2;
  width:100%;height:100%;object-fit:cover;
}
.pride-overlay{
  position:absolute;inset:0;z-index:-1;
  background:linear-gradient(180deg, rgba(10,31,61,.55), rgba(10,31,61,.9));
}
.about-icon{
  width:30px;height:30px;margin-bottom:16px;
  color:var(--teal);
}
.about-card h3{font-size:1.05rem;font-weight:700;margin-bottom:10px}
.about-card p{color:var(--muted);font-size:.9rem}

/* Clients */
.clients{padding:70px 0 80px;background:var(--white);overflow:hidden}
.clients-heading{
  text-align:center;font-size:1.1rem;font-weight:700;
  color:var(--muted);margin-bottom:40px;
}
.logo-marquee{
  width:100%;overflow:hidden;position:relative;
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.logo-track{
  display:flex;align-items:center;gap:64px;width:max-content;
  animation:marquee-scroll 16s linear infinite;
}
html[dir="rtl"] .logo-track{animation-direction:reverse}
.logo-marquee:hover .logo-track{animation-play-state:paused}
.logo-chip{
  display:flex;align-items:center;justify-content:center;
  height:56px;flex-shrink:0;
  opacity:.85;
  transition:opacity .25s ease,transform .25s ease;
}
.logo-chip img{
  height:100%;width:auto;max-width:150px;object-fit:contain;
}
.logo-chip:hover{opacity:1;transform:translateY(-2px)}
@keyframes marquee-scroll{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
@media (prefers-reduced-motion:reduce){
  .logo-track{animation:none}
}

/* Contact */
.contact{padding:110px 0;background:linear-gradient(180deg,#fff,var(--white))}
.contact-inner{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:start}
.contact-text h2{font-size:clamp(1.8rem,3.2vw,2.4rem);font-weight:800;margin-bottom:18px}
.contact-text p{color:var(--muted);margin-bottom:30px}
.contact-info li{display:flex;align-items:center;gap:12px;margin-bottom:16px;font-weight:600}
.contact-info svg{width:20px;height:20px;color:var(--teal);flex-shrink:0}
.contact-form{background:#fff;border:1px solid var(--gray);padding:32px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
input,textarea{
  width:100%;padding:13px 16px;border:1px solid var(--gray);border-radius:10px;
  font-family:inherit;font-size:.92rem;background:var(--white);
}
textarea{margin-bottom:18px;resize:vertical}
input:focus,textarea:focus{outline:none;border-color:var(--teal)}
.form-note{margin-top:14px;font-size:.85rem;color:var(--teal);font-weight:600;min-height:1em}
.form-note.form-note-error{color:#DC2626}
.btn:disabled{opacity:.65;cursor:not-allowed}

/* Footer */
.site-footer{background:var(--navy);color:#fff;padding:50px 0 30px}
.footer-inner{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.footer-tagline{color:rgba(255,255,255,.6);font-size:.95rem}
.footer-nav{display:flex;gap:24px;flex-wrap:wrap;justify-content:center;margin:10px 0}
.footer-nav a{color:rgba(255,255,255,.75);font-size:.9rem}
.footer-nav a:hover{color:var(--teal)}
.copyright{color:rgba(255,255,255,.4);font-size:.8rem;margin-top:10px}

/* Responsive */
@media (max-width:980px){
  .services-grid{grid-template-columns:repeat(2,1fr)}
  .service-card.featured{grid-column:span 2}
  .about-card{flex:1 1 50%}
  .contact-inner{grid-template-columns:1fr}
}
@media (max-width:760px){
  .main-nav,.header-cta{display:none}
  .nav-toggle{display:flex}
  .main-nav.open{
    display:flex;position:absolute;top:100%;left:0;right:0;
    background:var(--navy);flex-direction:column;padding:20px 24px;gap:16px;
  }
  .services-grid{grid-template-columns:1fr;grid-auto-rows:auto}
  .service-card.featured{grid-column:span 1}
  .about-card{flex:1 1 100%}
  .form-row{grid-template-columns:1fr}
  .hero-features{row-gap:14px}
}
