/* ==========================================================================
   CodeBridge Malaysia — Design Tokens
   ========================================================================== */
:root{
  --primary:#1E73FF;
  --navy:#061B3A;
  --navy-2:#0A2450;
  --white:#FFFFFF;
  --light:#F7F9FC;
  --accent:#3EA0FF;

  --gradient-brand: linear-gradient(135deg,#1E73FF 0%,#3EA0FF 100%);
  --gradient-navy: linear-gradient(180deg,#061B3A 0%,#0A2450 100%);

  --font-display:'Manrope', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'JetBrains Mono', monospace;

  --text:#0E1B2E;
  --text-muted:#5B6B85;
  --border:#E4E9F2;

  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:24px;

  --shadow-sm: 0 2px 10px rgba(6,27,58,0.06);
  --shadow-md: 0 12px 32px rgba(6,27,58,0.10);
  --shadow-lg: 0 24px 60px rgba(6,27,58,0.16);

  --container-w: 1180px;
  --nav-h: 84px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,h5{ font-family:var(--font-display); color:var(--navy); margin:0; }
button{ font-family:inherit; cursor:pointer; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

.container{
  width:100%;
  max-width:var(--container-w);
  margin:0 auto;
  padding:0 28px;
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:0.78rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--primary);
  font-weight:500;
  margin:0 0 14px;
}

.section{ padding:120px 0; position:relative; }
.section-title{
  font-size:clamp(2rem, 3.2vw, 2.7rem);
  font-weight:800;
  line-height:1.15;
  letter-spacing:-0.01em;
  margin-bottom:22px;
  max-width:720px;
}
.section-lead{
  color:var(--text-muted);
  font-size:1.05rem;
  max-width:640px;
  margin-bottom:0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:15px 32px;
  border-radius:999px;
  font-weight:600;
  font-size:0.95rem;
  border:1px solid transparent;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--gradient-brand);
  color:#fff;
  box-shadow:0 10px 24px rgba(30,115,255,0.35);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 32px rgba(30,115,255,0.45); }
.btn-outline{
  background:rgba(255,255,255,0.06);
  color:#fff;
  border-color:rgba(255,255,255,0.5);
  backdrop-filter:blur(6px);
}
.btn-outline:hover{ background:rgba(255,255,255,0.18); border-color:#fff; transform:translateY(-2px); }
.btn-full{ width:100%; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-nav{
  position:fixed;
  top:0; left:0; right:0;
  z-index:200;
  height:var(--nav-h);
  transition:background .35s ease, backdrop-filter .35s ease, box-shadow .35s ease, height .35s ease;
}
.site-nav.scrolled{
  background:rgba(6,27,58,0.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  box-shadow:0 6px 24px rgba(6,27,58,0.18);
  height:72px;
}
.nav-inner{
  max-width:var(--container-w);
  margin:0 auto;
  height:100%;
  padding:0 28px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.nav-spacer{ flex:1; }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-link{
  color:#fff;
  font-size:0.92rem;
  font-weight:500;
  opacity:0.9;
  position:relative;
  padding:6px 0;
  transition:opacity .2s ease;
}
.nav-link::after{
  content:'';
  position:absolute; left:0; bottom:0;
  width:0; height:2px;
  background:var(--accent);
  transition:width .25s ease;
}
.nav-link:hover{ opacity:1; }
.nav-link:hover::after{ width:100%; }
.nav-cta{
  background:var(--gradient-brand);
  padding:10px 22px;
  border-radius:999px;
  opacity:1;
}
.nav-cta::after{ display:none; }
.nav-cta:hover{ box-shadow:0 8px 20px rgba(30,115,255,0.4); }

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  padding:8px;
}
.nav-toggle span{ width:24px; height:2px; background:#fff; border-radius:2px; transition:transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.nav-mobile{
  display:none;
  position:fixed;
  top:var(--nav-h); left:0; right:0;
  background:rgba(6,27,58,0.97);
  backdrop-filter:blur(14px);
  flex-direction:column;
  padding:8px 28px 24px;
  transform:translateY(-12px);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease, transform .25s ease;
}
.nav-mobile.open{ opacity:1; transform:translateY(0); pointer-events:auto; }
.nav-mobile a{ color:#fff; padding:14px 0; border-bottom:1px solid rgba(255,255,255,0.08); font-weight:500; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position:relative;
  height:100vh;
  min-height:640px;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
}
.hero-media{ position:absolute; inset:0; }
.hero-media img{ width:100%; height:75%; }
.hero-scrim{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(6,27,58,0.15) 0%, rgba(6,27,58,0.35) 55%, rgba(6,27,58,0.92) 100%);
}
.hero-content{
  position:relative;
  z-index:2;
  width:100%;
  max-width:var(--container-w);
  margin:0 auto;
  padding:0 28px 88px;
}
.hero-content .eyebrow{ color:var(--accent); }
.hero-actions{ display:flex; gap:18px; flex-wrap:wrap; margin-top:8px; }

.scroll-hint{
  position:absolute;
  bottom:28px; left:50%;
  transform:translateX(-50%);
  width:26px; height:42px;
  border:2px solid rgba(255,255,255,0.55);
  border-radius:20px;
  z-index:2;
}
.scroll-hint span{
  position:absolute; top:8px; left:50%;
  width:4px; height:8px;
  background:#fff;
  border-radius:2px;
  transform:translateX(-50%);
  animation:scrollDot 1.8s ease infinite;
}
@keyframes scrollDot{
  0%{ opacity:1; transform:translate(-50%,0); }
  70%{ opacity:0; transform:translate(-50%,16px); }
  100%{ opacity:0; }
}

/* ==========================================================================
   About / MVV cards
   ========================================================================== */
.about{ background:var(--white); }
.mvv-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:56px;
}
.mvv-card{
  background:var(--light);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:36px 32px;
  transition:transform .3s ease, box-shadow .3s ease;
}
.mvv-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-md); }
.mvv-icon{
  width:52px; height:52px;
  border-radius:14px;
  background:var(--gradient-brand);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:1.4rem;
  margin-bottom:20px;
}
.mvv-card h3{ font-size:1.2rem; margin-bottom:12px; }
.mvv-card p{ color:var(--text-muted); font-size:0.96rem; margin:0; }

/* ==========================================================================
   Services
   ========================================================================== */
.services{ background:var(--light); }
.services-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  margin-top:56px;
}
.service-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:34px 28px;
  transition:transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
}
.service-card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow-lg);
  border-color:transparent;
}
.service-icon{
  width:56px; height:56px;
  border-radius:16px;
  background:linear-gradient(135deg, rgba(30,115,255,0.1), rgba(62,160,255,0.16));
  color:var(--primary);
  display:flex; align-items:center; justify-content:center;
  font-size:1.5rem;
  margin-bottom:22px;
  transition:background .35s ease, color .35s ease;
}
.service-card:hover .service-icon{
  background:var(--gradient-brand);
  color:#fff;
}
.service-card h3{ font-size:1.12rem; margin-bottom:10px; }
.service-card p{ color:var(--text-muted); font-size:0.94rem; margin:0; }

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why{ background:var(--gradient-navy); }
.why .eyebrow{ color:var(--accent); }
.why .section-title{ color:#fff; }
.why-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin-top:56px;
}
.why-item{
  display:flex;
  align-items:center;
  gap:14px;
  padding:22px 22px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.09);
  border-radius:var(--radius-sm);
  color:#fff;
  transition:background .3s ease, transform .3s ease;
}
.why-item:hover{ background:rgba(255,255,255,0.09); transform:translateY(-4px); }
.why-item i{ font-size:1.3rem; color:var(--accent); flex-shrink:0; }
.why-item span{ font-size:0.96rem; font-weight:500; }

/* ==========================================================================
   Technologies
   ========================================================================== */
.technologies{ background:var(--white); }
.tech-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:56px;
}
.tech-col{
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:28px 26px;
}
.tech-col h4{
  display:flex; align-items:center; gap:10px;
  font-size:1rem;
  color:var(--navy);
  margin-bottom:16px;
  padding-bottom:14px;
  border-bottom:1px solid var(--border);
}
.tech-col h4 i{ color:var(--primary); }
.tech-col ul{ display:flex; flex-wrap:wrap; gap:10px; }
.tech-col li{
  font-family:var(--font-mono);
  font-size:0.82rem;
  background:var(--light);
  border:1px solid var(--border);
  padding:7px 13px;
  border-radius:8px;
  color:var(--text);
  transition:background .25s ease, color .25s ease, border-color .25s ease;
}
.tech-col li:hover{ background:var(--gradient-brand); color:#fff; border-color:transparent; }

/* ==========================================================================
   Process timeline
   ========================================================================== */
.process{ background:var(--light); }
.timeline{ margin-top:64px; position:relative; }
.timeline-track{
  position:absolute;
  top:11px; left:0; right:0;
  height:2px;
  background:var(--border);
}
.timeline-fill{
  position:absolute; top:0; left:0;
  height:100%; width:0%;
  background:var(--gradient-brand);
  transition:width 1.4s cubic-bezier(.2,.8,.2,1);
}
.timeline-steps{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:12px;
  position:relative;
}
.tl-step{ text-align:left; }
.tl-num{
  display:inline-flex;
  align-items:center; justify-content:center;
  width:24px; height:24px;
  border-radius:50%;
  background:#fff;
  border:2px solid var(--primary);
  color:var(--primary);
  font-family:var(--font-mono);
  font-size:0.68rem;
  font-weight:600;
  margin-bottom:16px;
  position:relative;
  z-index:1;
}
.tl-step h5{ font-size:0.92rem; color:var(--navy); font-weight:700; max-width:120px; }

/* ==========================================================================
   Industries
   ========================================================================== */
.industries{ background:var(--white); }
.industries-grid{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:48px;
}
.industry-chip{
  display:flex; align-items:center; gap:10px;
  padding:14px 22px;
  border-radius:999px;
  border:1px solid var(--border);
  font-weight:600;
  font-size:0.94rem;
  color:var(--navy);
  transition:background .3s ease, color .3s ease, transform .3s ease, border-color .3s ease;
}
.industry-chip i{ color:var(--primary); transition:color .3s ease; }
.industry-chip:hover{
  background:var(--gradient-brand);
  color:#fff;
  border-color:transparent;
  transform:translateY(-3px);
}
.industry-chip:hover i{ color:#fff; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact{ background:var(--gradient-navy); }
.contact .eyebrow{ color:var(--accent); }
.contact .section-title, .contact-info li{ color:#fff; }
.contact .section-lead{ color:rgba(255,255,255,0.7); }
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:64px;
  align-items:start;
}
.contact-list{ margin-top:32px; display:flex; flex-direction:column; gap:16px; }
.contact-list li{ display:flex; align-items:center; gap:12px; color:rgba(255,255,255,0.85); font-size:0.96rem; }
.contact-list i{ color:var(--accent); font-size:1.1rem; width:20px; }
.social-row{ display:flex; gap:12px; margin-top:32px; }
.social-row a{
  width:42px; height:42px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.25);
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  transition:background .25s ease, border-color .25s ease, transform .25s ease;
}
.social-row a:hover{ background:var(--gradient-brand); border-color:transparent; transform:translateY(-3px); }

.contact-form{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.14);
  border-radius:var(--radius-lg);
  padding:40px;
  backdrop-filter:blur(8px);
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-field{ margin-bottom:18px; }
.form-field label{
  display:block;
  font-size:0.85rem;
  color:rgba(255,255,255,0.75);
  margin-bottom:8px;
  font-weight:500;
}
.form-field input, .form-field textarea{
  width:100%;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.2);
  border-radius:10px;
  padding:13px 16px;
  color:#fff;
  font-family:var(--font-body);
  font-size:0.95rem;
  transition:border-color .25s ease, background .25s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder{ color:rgba(255,255,255,0.4); }
.form-field input:focus, .form-field textarea:focus{
  border-color:var(--accent);
  background:rgba(255,255,255,0.1);
  outline:none;
}
.form-field textarea{ resize:vertical; min-height:120px; }
.form-status{ margin:14px 0 0; font-size:0.9rem; color:var(--accent); min-height:1.2em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background:var(--navy); padding-top:80px; }
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:48px;
  padding-bottom:48px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.footer-logo{ height:103px; width:auto; margin-bottom:18px; }
.footer-name{ color:#fff; font-weight:700; font-family:var(--font-display); margin-bottom:6px; }
.footer-tag{ color:rgba(255,255,255,0.55); font-size:0.9rem; }
.footer-links h5, .footer-social h5{ color:#fff; font-family:var(--font-display); font-size:0.95rem; margin-bottom:20px; }
.footer-links{ display:flex; flex-direction:column; }
.footer-links a{ color:rgba(255,255,255,0.65); padding:7px 0; font-size:0.92rem; transition:color .2s ease; }
.footer-links a:hover{ color:#fff; }
.footer-bottom{ padding:26px 0; text-align:center; }
.footer-bottom p{ color:rgba(255,255,255,0.45); font-size:0.85rem; margin:0; }

/* ==========================================================================
   Signature element: the "bridge trace"
   A vertical connective line that runs the height of the page, with nodes
   that light up as each section becomes active — visualising the company's
   own name: CodeBridge, connecting one section (one part of the business)
   to the next.
   ========================================================================== */
.bridge-trace{
  position:fixed;
  top:0; right:18px;
  height:75vh;
  width:40px;
  z-index:150;
  pointer-events:none;
}
.bridge-trace svg{ position:absolute; inset:0; width:100%; height:100%; }
.bridge-trace path{
  fill:none;
  stroke:rgba(6,27,58,0.14);
  stroke-width:2;
  mix-blend-mode:difference;
}
.bridge-nodes{
  position:absolute; inset:0;
  display:flex;
  flex-direction:column;
  justify-content:space-evenly;
  align-items:center;
}
.bridge-nodes span{
  width:9px; height:9px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 2px rgba(6,27,58,0.35);
  transition:box-shadow .4s ease, transform .4s ease, background .4s ease;
}
.bridge-nodes span.active{
  background:var(--accent);
  box-shadow:0 0 0 2px var(--accent), 0 0 14px rgba(62,160,255,0.9);
  transform:scale(1.35);
}
