/* ==========================================================
   BLUEPRINT — PORTFOLIO STYLESHEET
   Design tokens
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root{
  --navy:        #0E1621;
  --navy-2:      #122033;
  --navy-3:      #16283F;
  --grid-line:   rgba(61, 90, 133, 0.28);
  --grid-line-strong: rgba(61, 90, 133, 0.5);
  --paper:       #ECEDE7;
  --paper-dim:   #C7CAD1;
  --amber:       #E8A33D;
  --amber-soft:  rgba(232, 163, 61, 0.14);
  --text-mute:   #8C9CB3;
  --radius:      14px;
  --radius-sm:   9px;
  --surface:     rgba(18, 32, 51, 0.88);
  --surface-2:   rgba(22, 40, 63, 0.72);
  --shadow-soft: 0 18px 50px -28px rgba(0,0,0,.72);
  --shadow-card: 0 26px 60px -36px rgba(0,0,0,.85);

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

  --maxw: 1180px;
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }

body{
  background:
    radial-gradient(circle at 12% 8%, rgba(41, 77, 118, .18), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(232, 163, 61, .08), transparent 28%),
    var(--navy);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
ul{ list-style: none; }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

::selection{ background: var(--amber); color: var(--navy); }

:focus-visible{
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* Blueprint grid background, used behind sections */
.grid-bg{
  position: relative;
}
.grid-bg::before{
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 40%, transparent 90%);
  pointer-events: none;
  opacity: .55;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before{
  content: "";
  width: 26px; height: 1px;
  background: var(--amber);
}

h1,h2,h3{ font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }

.section{ padding: 120px 0; position: relative; }
.section-head{ max-width: 640px; margin-bottom: 64px; }
.section-title{ font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }

/* ==========================================================
   NAV
   ========================================================== */
.nav{
  position: fixed; top:0; left:0; right:0; z-index: 100;
  background: rgba(255,255,255,0.965);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(14,22,33,0.09);
  box-shadow: 0 2px 18px rgba(14,22,33,0.055);
  transition: box-shadow .25s ease, background .25s ease;
}
.nav.scrolled{ box-shadow: 0 14px 34px -22px rgba(14,22,33,.5); background: rgba(255,255,255,.985); }
.nav .wrap{ display:flex; align-items:center; justify-content: space-between; height: 76px; position:relative; z-index: 103; }
.nav-logo{ display:inline-flex; align-items:center; border-radius: 10px; }
.nav-logo img{ height: 50px; width: auto; }
.nav-links{ display:flex; gap: 4px; align-items:center; }
.nav-links a{
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .3px;
  color: #445166; position: relative; padding: 10px 12px; border-radius: 8px;
  transition: color .22s ease, background .22s ease, transform .22s ease;
}
.nav-links a:hover{ color: var(--navy); background: rgba(14,22,33,.055); }
.nav-links a::after{ content:none; }
.nav-links a.active{ color: #9A6315; background: rgba(232,163,61,.13); }
.nav-cta{
  font-family: var(--font-mono); font-size: 12.5px;
  border: 1px solid var(--navy); color: #fff !important; background: var(--navy);
  padding: 10px 17px !important; border-radius: 9px !important; margin-left: 6px;
  box-shadow: 0 9px 20px -13px rgba(14,22,33,.75);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease !important;
}
.nav-cta:hover{ background: #B87A1E !important; color: #fff !important; border-color: #B87A1E; transform: translateY(-1px); }
.nav-toggle{ display:none; }
.nav-backdrop, .nav-mobile-head{ display:none; }

/* ---- Language switcher (light navbar variant) ---- */
.lang-switch{ position: relative; }
.lang-current{
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .3px;
  background: none; border: 1px solid rgba(14,22,33,0.18); color: #3A4658;
  padding: 9px 11px; border-radius: 8px; cursor: pointer; display:flex; align-items:center; gap: 6px;
  transition: border-color .2s ease, color .2s ease;
}
.lang-current:hover{ border-color: #B87A1E; color: var(--navy); }
.lang-caret{ font-size: 10px; color: #B87A1E; }
.lang-menu{
  position:absolute; top: calc(100% + 8px); right: 0; min-width: 140px;
  background: #fff; border: 1px solid rgba(14,22,33,0.12); border-radius: 10px;
  padding: 6px; display:none; flex-direction: column; gap: 2px; z-index: 50;
  box-shadow: 0 16px 32px -12px rgba(14,22,33,.25);
}
.lang-menu.open{ display:flex; }
.lang-menu a{
  font-family: var(--font-mono); font-size: 12.5px; padding: 9px 12px; border-radius: 5px; color: #3A4658;
}
.lang-menu a:hover{ background: rgba(184,122,30,.08); color: var(--navy); }
.lang-menu a.active{ color: #B87A1E; }

/* ==========================================================
   HERO
   ========================================================== */
.hero{
  min-height: 100svh;
  display:flex; align-items:center;
  padding-top: 76px;
  position: relative;
}
.hero .wrap{
  display:grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items:center;
}
.hero-copy{ opacity:0; transform: translateY(24px); animation: rise .8s ease forwards .15s; }
.hero-headline{ font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; margin-bottom: 22px; }
.hero-headline .accent{ color: var(--amber); }

/* ==========================================================
   WOW-FACTOR EFFECTS
   ========================================================== */

/* ---- Particle network canvas (hero background) ---- */
.particle-canvas{
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .55;
}
.hero .wrap, .hero .scroll-cue{ position: relative; z-index: 1; }

/* ---- Scroll progress bar ---- */
.scroll-progress{
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--amber), #ffd27a);
  z-index: 200;
  transition: width .1s ease-out;
  box-shadow: 0 0 8px rgba(232,163,61,.6);
}

/* ---- Floating ambient gradient orbs ---- */
.ambient-orbs{ position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient-orb{
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: .18;
  animation: floatOrb 18s ease-in-out infinite;
}
.ambient-orb.o1{ width: 340px; height: 340px; background: var(--amber); top: -80px; left: -60px; animation-duration: 22s; }
.ambient-orb.o2{ width: 260px; height: 260px; background: #5ea3ff; bottom: -60px; right: 5%; animation-duration: 26s; animation-delay: -6s; }
.ambient-orb.o3{ width: 200px; height: 200px; background: #6ee7b7; top: 30%; right: 20%; animation-duration: 20s; animation-delay: -3s; }
@keyframes floatOrb{
  0%, 100%{ transform: translate(0,0) scale(1); }
  33%{ transform: translate(30px,-40px) scale(1.1); }
  66%{ transform: translate(-25px,25px) scale(0.95); }
}

/* ---- Project card 3D tilt + shine ---- */
.project-card{ transform-style: preserve-3d; will-change: transform; }
.project-card .tilt-shine{
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.10), transparent 55%);
  opacity: 0; transition: opacity .3s ease; border-radius: inherit;
}
.project-card:hover .tilt-shine{ opacity: 1; }
.project-shot{ position: relative; }

/* ---- Hero headline word-reveal ---- */
.word-reveal{ display: inline-block; overflow: hidden; vertical-align: top; }
.word-reveal span{
  display: inline-block; opacity: 0; transform: translateY(100%);
  animation: wordUp .7s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes wordUp{ to{ opacity:1; transform: translateY(0); } }

/* ---- Infinite marquee for trusted-by logos ---- */
.trusted-marquee{
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trusted-track{
  display: flex; align-items: center; gap: 72px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.trusted-track img{ height: 48px; width: auto; flex-shrink: 0; filter: grayscale(1); opacity: .75; transition: opacity .25s ease, filter .25s ease; }
.trusted-track img:hover{ opacity: 1; filter: grayscale(0.4); }
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-16.6667%); }
}

@media (prefers-reduced-motion: reduce){
  .ambient-orb{ animation: none; }
  .trusted-track{ animation: none; }
  .word-reveal span{ animation: none; opacity: 1; transform: none; }
}

@media (max-width: 760px){
  .particle-canvas{ opacity: .35; }
  .ambient-orb{ display: none; }
}
.hero-sub{ color: var(--paper-dim); font-size: 17px; max-width: 480px; margin-bottom: 36px; }
.hero-cta-row{ display:flex; gap: 16px; margin-bottom: 56px; flex-wrap: wrap; }

.btn{
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing:.3px;
  padding: 14px 24px; border-radius: 9px; display:inline-flex; align-items:center; gap:8px;
  transition: transform .2s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn-primary{ background: linear-gradient(135deg, #F0B455, var(--amber)); color: var(--navy); font-weight: 700; box-shadow: 0 12px 28px -18px rgba(232,163,61,.9); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(232,163,61,.55); }
.btn-ghost{ border: 1px solid var(--grid-line-strong); color: var(--paper); }
.btn-ghost:hover{ border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

.hero-stats{ display:flex; gap: 44px; }
.hero-stats .stat-value{ font-family: var(--font-display); font-size: 28px; color: var(--amber); }
.hero-stats .stat-label{ font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: .5px; margin-top: 4px; }

.hero-visual{
  opacity:0; transform: translateY(24px); animation: rise .8s ease forwards .3s;
  position: relative;
}

/* ---- Terminal signature element ---- */
.terminal{
  position: relative;
  border: 1px solid rgba(101,132,174,.46); border-radius: var(--radius);
  background: linear-gradient(145deg, #0B1420, #08101A);
  box-shadow: 0 32px 72px -28px rgba(0,0,0,.82), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
}
.terminal-bar{
  display:flex; align-items:center; gap: 10px;
  padding: 14px 16px; background: var(--navy-2); border-bottom: 1px solid var(--grid-line);
}
.terminal-dot{ width: 11px; height: 11px; border-radius: 50%; }
.terminal-dot.r{ background: #FF5F56; }
.terminal-dot.y{ background: #FFBD2E; }
.terminal-dot.g{ background: #27C93F; }
.terminal-path{
  font-family: var(--font-mono); font-size: 12px; color: var(--text-mute);
  margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.terminal-body{
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.9;
  padding: 22px 22px 26px; min-height: 260px;
}
.term-line{ display:flex; gap: 0; white-space: pre-wrap; word-break: break-word; color: var(--paper); }
.term-line .ok{ color: #6ee7b7; }
.term-line .status{ color: var(--amber); font-weight: 700; }
.term-cursor{
  display:inline-block; width: 8px; height: 15px; background: var(--amber);
  margin-left: 3px; vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink{ 0%,100%{ opacity:1; } 50%{ opacity:0; } }
.terminal-glow{
  position:absolute; top:-40%; left:50%; transform: translateX(-50%);
  width: 340px; height: 340px; background: radial-gradient(circle, rgba(232,163,61,.18), transparent 70%);
  pointer-events:none; z-index:-1;
}
.hero-tag{
  margin-top: 16px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-mute);
  display:flex; align-items:center; gap: 8px;
}
.hero-tag .dotpulse{ width:7px; height:7px; border-radius:50%; background:#6ee7b7; animation: blink 1.4s ease-in-out infinite; }
.hero-corner{
  position:absolute; width: 18px; height: 18px; border: 2px solid var(--amber); z-index: 2;
}
.hero-corner.tl{ top:-9px; left:-9px; border-right:none; border-bottom:none; }
.hero-corner.br{ bottom:-9px; right:-9px; border-left:none; border-top:none; }

.scroll-cue{
  position:absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-mute);
  display:flex; flex-direction:column; align-items:center; gap: 8px;
  animation: fadeIn 1s ease forwards 1s; opacity:0;
}
.scroll-cue .line{ width:1px; height: 30px; background: linear-gradient(var(--amber), transparent); animation: pulseLine 1.8s ease-in-out infinite; }

@keyframes rise{ to{ opacity:1; transform:none; } }
@keyframes fadeIn{ to{ opacity:1; } }
@keyframes pulseLine{ 0%,100%{ opacity:.3; } 50%{ opacity:1; } }

/* ==========================================================
   PAGE BANNER — top section ng inner pages (About/Projects/etc.)
   ========================================================== */
.page-banner{
  padding: 172px 0 70px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--grid-line);
  background: radial-gradient(circle at 18% 25%, rgba(54,91,137,.18), transparent 36%);
}
.page-banner .wrap{ position: relative; z-index: 1; }
.page-banner-title{ font-size: clamp(34px, 5vw, 56px); line-height: 1.1; max-width: 760px; }
.page-banner-sub{ color: var(--paper-dim); max-width: 560px; margin-top: 18px; font-size: 16px; }
.breadcrumb{
  font-family: var(--font-mono); font-size: 12px; color: var(--text-mute);
  letter-spacing: .5px; margin-bottom: 20px; display:flex; align-items:center; gap: 8px;
}
.breadcrumb .sep{ color: var(--amber); }
.breadcrumb .current{ color: var(--amber); }

/* ==========================================================
   REVEAL ON SCROLL
   ========================================================== */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:none; }
.reveal-stagger.is-visible .stagger-item{ opacity:1; transform:none; }
.stagger-item{ opacity:0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }

/* ==========================================================
   ABOUT
   ========================================================== */
.about .wrap{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; }
.about-title{ font-size: clamp(26px,3.4vw,36px); margin-bottom: 24px; line-height:1.25; }
.about-copy p{ color: var(--paper-dim); margin-bottom: 18px; max-width: 520px; }
.skills-panel{
  border: 1px solid var(--grid-line-strong); border-radius: var(--radius);
  padding: 30px; background: linear-gradient(145deg, var(--surface), rgba(14,24,38,.9));
  box-shadow: var(--shadow-soft);
}
.skills-panel-title{ font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); letter-spacing: 2px; margin-bottom: 18px; }
.skills-grid{ display:flex; flex-wrap:wrap; gap: 10px; }
.skill-chip{
  font-family: var(--font-mono); font-size: 12.5px; padding: 9px 14px;
  border: 1px solid var(--grid-line-strong); border-radius: 6px; color: var(--paper);
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.skill-chip:hover{ border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }

/* ==========================================================
   PROJECTS — "build log" cards, browser-chrome screenshots
   ========================================================== */
.projects-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.projects-grid.cols-3{ grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px){ .projects-grid.cols-3{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 700px){ .projects-grid.cols-3{ grid-template-columns: 1fr; } }
.project-card{
  border: 1px solid var(--grid-line-strong); border-radius: var(--radius);
  overflow: hidden; background: linear-gradient(150deg, var(--surface), rgba(14,26,42,.96));
  box-shadow: var(--shadow-card);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.project-card:hover{
  transform: translateY(-6px);
  border-color: var(--amber);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.55);
}
.project-shot{ position: relative; overflow:hidden; border-bottom: 1px solid var(--grid-line); }
.project-shot img{ width:100%; display:block; transition: transform .5s ease; }
.project-card:hover .project-shot img{ transform: scale(1.035); }
.project-body{ padding: 26px 26px 28px; }
.project-tag{ font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--amber); margin-bottom: 10px; display:block; }
.project-title{ font-size: 20px; margin-bottom: 10px; }
.project-desc{ color: var(--paper-dim); font-size: 14.5px; margin-bottom: 18px; }
.project-stack{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 20px; }
.project-stack span{
  font-family: var(--font-mono); font-size: 11px; color: var(--text-mute);
  border: 1px solid var(--grid-line); padding: 4px 9px; border-radius: 4px;
}
.project-link{
  font-family: var(--font-mono); font-size: 13px; color: var(--paper);
  display:inline-flex; align-items:center; gap:8px;
}
.project-link .arrow{ transition: transform .25s ease; }
.project-card:hover .project-link .arrow{ transform: translateX(5px); }
.project-link-disabled{ color: var(--text-mute); cursor: default; }
.project-card:hover .project-link-disabled{ color: var(--text-mute); }

/* ==========================================================
   SERVICES
   ========================================================== */
.services-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.services-grid.cols-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px){ .services-grid.cols-2{ grid-template-columns: 1fr; } }
.service-card{
  border: 1px solid var(--grid-line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; background: linear-gradient(145deg, rgba(18,32,51,.72), rgba(13,24,38,.75));
  box-shadow: 0 18px 42px -34px rgba(0,0,0,.9); transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.service-card:hover{ border-color: var(--amber); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.service-card h3{ font-size: 18px; margin-bottom: 12px; }
.service-card p{ color: var(--paper-dim); font-size: 14.5px; }
.service-mark{ width: 34px; height: 34px; border: 1px solid var(--amber); border-radius: 6px; margin-bottom: 20px; position: relative; }
.service-mark::before, .service-mark::after{ content:""; position:absolute; background: var(--amber); }
.service-mark::before{ width: 14px; height: 2px; top: 16px; left: 10px; }
.service-mark::after{ width: 2px; height: 14px; top: 10px; left: 16px; }

/* ==========================================================
   CONTACT
   ========================================================== */
.contact{ text-align:center; }
.contact .section-head{ margin: 0 auto 48px; text-align:center; }
.contact-title{ font-size: clamp(30px, 4.6vw, 52px); margin-bottom: 20px; }
.contact-sub{ color: var(--paper-dim); max-width: 480px; margin: 0 auto 40px; }
.contact-links{ display:flex; justify-content:center; gap: 18px; flex-wrap:wrap; margin-bottom: 40px; }
.contact-links a{
  font-family: var(--font-mono); font-size: 14px;
  border: 1px solid var(--grid-line-strong); padding: 12px 22px; border-radius: 6px;
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}
.contact-links a:hover{ border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.socials{ display:flex; justify-content:center; gap: 24px; }
.socials a{ font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); }
.socials a:hover{ color: var(--amber); }

/* ==========================================================
   CONTACT FORM
   ========================================================== */
.contact-layout{ display:grid; grid-template-columns: 1fr 1fr; gap: 60px; text-align:left; align-items:start; }
.contact-layout .section-head{ margin: 0 0 32px; text-align:left; }
.contact-info-list{ display:flex; flex-direction:column; gap: 18px; margin-bottom: 40px; }
.contact-info-item{
  display:flex; gap: 14px; align-items:flex-start;
  border: 1px solid var(--grid-line); border-radius: var(--radius); padding: 18px 20px;
  transition: border-color .25s ease;
}
.contact-info-item:hover{ border-color: var(--amber); }
.contact-info-item .ci-icon{
  font-family: var(--font-mono); color: var(--amber); font-size: 15px; width: 22px; flex-shrink:0;
}
.contact-info-item .ci-label{ font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 1px; margin-bottom: 4px; }
.contact-info-item .ci-value{ font-size: 14.5px; }

.contact-form{
  border: 1px solid var(--grid-line-strong); border-radius: var(--radius);
  padding: 34px; background: linear-gradient(145deg, var(--surface), rgba(14,24,38,.94));
  box-shadow: var(--shadow-soft);
}
.form-row{ margin-bottom: 20px; }
.form-row label{
  display:block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1px;
  color: var(--text-mute); margin-bottom: 8px;
}
.form-row input, .form-row textarea{
  width: 100%; background: var(--navy); border: 1px solid var(--grid-line-strong);
  border-radius: 6px; padding: 13px 14px; color: var(--paper); font-family: var(--font-body); font-size: 14.5px;
  transition: border-color .25s ease;
}
.form-row input:focus, .form-row textarea:focus{ outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(232,163,61,.1); }
.form-row textarea{ resize: vertical; min-height: 130px; }
.form-two{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-submit{ width:100%; justify-content:center; border:none; cursor:pointer; font-size: 14px; }
.form-security-note{ margin-top: 14px; text-align:center; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mute); }
.form-hp{ position:absolute; left:-9999px; top:-9999px; }

.form-status{
  border-radius: 6px; padding: 14px 16px; margin-bottom: 22px;
  font-family: var(--font-mono); font-size: 13px;
}
.form-status.success{ background: rgba(110,231,183,.12); border: 1px solid #6ee7b7; color: #6ee7b7; }
.form-status.error{ background: rgba(255,110,110,.1); border: 1px solid #ff8080; color: #ff8f8f; }

/* ==========================================================
   TRUSTED-BY CLIENT LOGOS
   ========================================================== */
.trusted-strip{ padding: 70px 0; border-bottom: 1px solid var(--grid-line); }
.trusted-strip .eyebrow{ justify-content:center; }
.trusted-strip .trusted-head{ text-align:center; margin-bottom: 40px; }
.trusted-strip .trusted-head h2{ font-size: 20px; color: var(--paper-dim); font-weight: 500; font-family: var(--font-body); }

/* ==========================================================
   FOOTER
   ========================================================== */
footer .footer-security{ color: #6ee7b7; }
footer{ border-top: 1px solid var(--grid-line); padding: 30px 0; }
footer .wrap{ display:flex; justify-content: space-between; align-items:center; flex-wrap:wrap; gap: 12px; }
footer p{ font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
/* ==========================================================
   RESPONSIVE — Tablet (≤980px)
   ========================================================== */
@media (max-width: 980px){
  .hero .wrap{ grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual{ order:-1; max-width: 420px; margin: 0 auto; }
  .about .wrap{ grid-template-columns: 1fr; }
  .projects-grid{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: 1fr; }
  .contact-layout{ grid-template-columns: 1fr; }
}

/* ==========================================================
   RESPONSIVE — Mobile (≤760px)
   ========================================================== */
@media (max-width: 760px){
  .wrap{ padding: 0 22px; }

  .hero{ padding-top: 68px; }

  body.nav-open{ overflow: hidden; }

  .nav .wrap{ height: 68px; }
  .nav-links{
    position: absolute; top: 68px; right: 0;
    width: min(88vw, 380px); height: calc(100dvh - 68px);
    flex-direction: column; align-items:stretch; gap: 5px;
    padding: 16px 18px 24px;
    background: rgba(255,255,255,.99); border-left: 1px solid rgba(14,22,33,.08);
    box-shadow: -28px 30px 64px -32px rgba(14,22,33,.6);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(104%); opacity: 0; visibility: hidden;
    transition: transform .3s cubic-bezier(.22,.8,.25,1), opacity .22s ease, visibility .3s;
    pointer-events: none; z-index: 103;
  }
  .nav-links.open{ transform: translateX(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-mobile-head{
    display:flex; align-items:center; justify-content:space-between;
    padding: 4px 4px 12px; margin-bottom: 2px;
    border-bottom: 1px solid rgba(14,22,33,.08);
    font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; color: #6A7484;
  }
  .nav-mobile-status{ color: #A56B17; letter-spacing: 1px; }
  .nav-links a, .nav-links .nav-cta{
    width:100%; padding: 14px 14px !important; border: 0;
    display:flex; align-items:center; border-radius: 10px !important;
    font-size: 13.5px;
  }
  .nav-links a:hover{ background: rgba(14,22,33,.06); }
  .nav-links a.active{ background: rgba(232,163,61,.14); color: #8D5A11; }
  .nav-links .nav-cta{
    justify-content:center; margin: 8px 0 0; color:#fff !important;
    background: linear-gradient(135deg, #132238, #0E1621); border: 1px solid var(--navy);
    box-shadow: 0 14px 26px -18px rgba(14,22,33,.75);
  }
  .nav-toggle{
    display:flex; width:44px; height:44px; flex-direction:column; align-items:center; justify-content:center; gap:5px;
    background:#fff; border:1px solid rgba(14,22,33,.12); border-radius: 10px; cursor:pointer; padding: 0;
    box-shadow: 0 7px 18px -14px rgba(14,22,33,.65); z-index: 104;
  }
  .nav-toggle span{ width: 21px; height: 2px; border-radius: 4px; background: var(--navy); transition: transform .25s ease, opacity .2s 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-backdrop{
    display:block; position:absolute; top:68px; left:0; right:0; height:calc(100dvh - 68px);
    border:0; background:rgba(5,11,18,.48); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity:0; visibility:hidden; pointer-events:none; transition:opacity .25s ease, visibility .25s; z-index:102;
  }
  .nav.menu-open .nav-backdrop{ opacity:1; visibility:visible; pointer-events:auto; }

  .lang-switch{ width:100%; padding: 8px 0; border-top: 1px solid rgba(14,22,33,.08); border-bottom: 1px solid rgba(14,22,33,.08); margin: 4px 0; }
  .lang-current{ width:100%; justify-content:space-between; padding: 12px 14px; background: rgba(14,22,33,.025); }
  .lang-menu{ position:static; margin-top:8px; width:100%; box-shadow:none; border-color: rgba(14,22,33,.09); }
  .lang-menu a{ padding: 11px 13px !important; }
  .nav-logo img{ height: 42px; }

  .section{ padding: 64px 0; }
  .section-head{ margin-bottom: 40px; }

  /* Hero */
  .hero{ min-height: auto; padding-bottom: 64px; }
  .hero-headline{ font-size: clamp(32px, 8vw, 44px); }
  .hero-sub{ font-size: 15.5px; max-width: 100%; }
  .hero-cta-row{ flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 40px; }
  .hero-cta-row .btn{ justify-content: center; width: 100%; }
  .hero-stats{ gap: 20px; flex-wrap: wrap; justify-content: space-between; }
  .hero-stats .stat{ flex: 1 1 auto; min-width: 96px; }
  .hero-stats .stat-value{ font-size: 22px; }
  .scroll-cue{ display: none; }

  .terminal-body{ font-size: 12px; padding: 16px; min-height: 200px; }
  .terminal-glow{ width: 220px; height: 220px; }

  /* Page banner */
  .page-banner{ padding: 108px 0 44px; }
  .page-banner-title{ font-size: clamp(28px, 8vw, 36px); }
  .page-banner-sub{ font-size: 14.5px; }

  /* Trusted-by */
  .trusted-strip{ padding: 44px 0; }
  .trusted-track{ gap: 44px; }
  .trusted-track img{ height: 34px; }

  /* About */
  .about-title{ font-size: clamp(22px, 6vw, 28px); }
  .skills-panel{ padding: 20px; }
  .skill-chip{ font-size: 12px; padding: 8px 12px; }

  /* Projects */
  .project-body{ padding: 20px 20px 22px; }
  .project-title{ font-size: 18px; }

  /* Services */
  .service-card{ padding: 24px 20px; }

  /* Contact */
  .contact-title{ font-size: clamp(26px, 8vw, 36px); }
  .contact-form{ padding: 22px; }
  .form-two{ grid-template-columns: 1fr; gap: 0; }
  .contact-links{ flex-direction: column; align-items: stretch; }
  .contact-links a{ text-align: center; }

  /* Footer */
  footer .wrap{ flex-direction: column; text-align: center; gap: 6px; }
}

/* ==========================================================
   RESPONSIVE — Small phones (≤430px)
   ========================================================== */
@media (max-width: 430px){
  .wrap{ padding: 0 18px; }
  .section{ padding: 52px 0; }
  .hero-headline{ font-size: 30px; }
  .hero-stats{ gap: 14px; }
  .hero-stats .stat-value{ font-size: 20px; }
  .hero-stats .stat-label{ font-size: 10px; }
  .eyebrow{ font-size: 11px; letter-spacing: 2px; }
  .btn{ padding: 13px 20px; font-size: 12.5px; }
  .page-banner{ padding: 100px 0 36px; }
  .trusted-strip .trusted-head h2{ font-size: 17px; }
  .contact-form{ padding: 18px; }
  .nav-logo img{ height: 38px; }
  .nav-links{ width: min(92vw, 360px); padding-left: 14px; padding-right: 14px; }
}
