 /*================================================================
   TECHCORE — style.css
   Black & Gold Minimal Tech Theme
   ================================================================

   TABLE OF CONTENTS
   -----------------
   1.  CSS Variables (colors, fonts, spacing) ← MAIN CONFIG
   2.  Reset & Base
   3.  Typography
   4.  Utility Classes
   5.  Cursor Glow
   6.  Navigation
   7.  Hero Section
   8.  About Section
   9.  Services Section
      9a. Service Card Banners ← SET BANNER IMAGES HERE
  10.  Contact Section
  11.  Footer
  12.  Animations & Keyframes
  13.  Responsive Breakpoints

   ================================================================ */


/* ================================================================
   1. CSS VARIABLES — MAIN CONFIG
   Change colors, fonts, and spacing here to retheme the site
   ================================================================ */
:root {
  /* --- COLORS -------------------------------------------------- */
  --black:        #ffffff;      /* page background */
  --black-2:      #ffffff;      /* card / section background */
  --black-3:      #f4f4f4;      /* subtle surfaces, hover states */
  --black-4:      #fafafa;      /* input fields, code panel */

  --gold:         #C9A84C;      /* primary accent — golden */
  --gold-light:   #E8C97A;      /* lighter gold for gradients */
  --gold-dim:     #7A6530;      /* muted gold for tags/borders */
  --gold-glow:    rgba(201,168,76,0.18);   /* soft glow effect */

  --white:        #1a1a1a;      /* primary text */
  --white-dim:    #5f5f5f;      /* secondary / muted text */
  --white-faint:  #d8d8d8;      /* very subtle dividers */

  --green:        #4CAF85;      /* status "online" indicator */
  --red:          #E05252;      /* error state */

  /* --- FONTS --------------------------------------------------- */
  /* To swap fonts: update the Google Fonts link in index.html,
     then change the family names below */
  --font-display: 'Rajdhani', sans-serif;   /* headings */
  --font-body:    'Crimson Pro', serif;     /* body text */
  --font-mono:    'Courier New', monospace; /* code panel */

  /* --- SPACING ------------------------------------------------- */
  --gap:      clamp(1.5rem, 4vw, 3rem);   /* section padding */
  --radius:   6px;   /* card border radius */
  --radius-lg: 12px;

  /* --- TRANSITIONS -------------------------------------------- */
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}


/* ================================================================
   2. RESET & BASE
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Offset scroll to account for sticky nav height */
  scroll-padding-top: 80px;
}

body {
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf7 100%);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }


/* ================================================================
   3. TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

em {
  font-style: normal;
  /* Gold gradient on accent words */
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--white-dim);
  max-width: 540px;
  margin: 0 auto 3rem;
}

.body-text {
  color: var(--white-dim);
  font-size: 1rem;
  margin-bottom: 1rem;
  max-width: 520px;
}


/* ================================================================
   4. UTILITY CLASSES
   ================================================================ */

/* Inner wrapper — constrains content width */
.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* Generic section padding */
section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

/* Gold hairline separator used in various places */
.gold-line {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.25rem 0;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

/* Primary gold button */
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--white);
  border: 1px solid var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 35px rgba(201,168,76,0.35);
  transform: translateY(-2px);
}

/* Ghost / outline button */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white-faint);
}
.btn-ghost:hover {
  border-color: var(--gold-dim);
  color: var(--gold-light);
  background: rgba(201,168,76,0.06);
}

/* Full-width button */
.btn-full { width: 100%; justify-content: center; }

/* Arrow icon inside buttons */
.btn-arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Button loading spinner */
.btn-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.loading .btn-loader { display: block; }
.btn.loading #btn-text { opacity: 0.6; }


/* ================================================================
   5. CURSOR GLOW
   Decorative golden glow that follows the cursor (desktop only)
   Remove: delete #cursor-glow in HTML and this block in CSS
   ================================================================ */
#cursor-glow {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear;
  z-index: 0;
  mix-blend-mode: screen;
}

@media (max-width: 768px) {
  #cursor-glow { display: none; }
}


/* ================================================================
   6. NAVIGATION
   ================================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 var(--gap);
  height: 72px;
  display: flex;
  align-items: center;
  /* Transparent initially — JS adds .scrolled class */
  background: transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

/* Scrolled state — added by JS */
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--white-faint);
  box-shadow: 0 10px 28px rgba(24, 24, 24, 0.06);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* LOGO */
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: auto;
  transition: color 0.3s;
}
.nav-logo:hover { color: var(--gold-light); }

.logo-mark {
  color: var(--gold);
  font-size: 0.7em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* Nav CTA button */
.nav-cta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
  margin-right: 0.5rem;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s var(--ease);
  transform-origin: left center;
}
.hamburger.open span:nth-child(1) { transform: rotate(40deg) translateY(-1px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-40deg) translateY(1px); }


/* ================================================================
   7. HERO SECTION
   ================================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    url("Assets/hero section.png") center / cover no-repeat;
  padding: 0 var(--gap);
  padding-top: 72px; /* nav height */
}

/* Animated grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
  animation: gridDrift 20s linear infinite;
}

/* Decorative glowing orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.12), transparent 70%);
  top: -100px; right: -100px;
  animation: orbPulse 8s ease-in-out infinite alternate;
}
.orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(201,168,76,0.07), transparent 70%);
  bottom: 50px; left: 10%;
  animation: orbPulse 12s ease-in-out infinite alternate-reverse;
}

/* Hero layout — content left, visual right */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: 0;
  align-items: center;
}

.hero-badge,
.hero-heading,
.hero-sub,
.hero-actions,
.hero-stats {
  grid-column: 1;
  justify-self: start;
}

/* Badge pill above heading */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 0.8s var(--ease-out) both;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 2s ease-in-out infinite;
}

/* Hero heading */
.hero-heading {
  font-size: clamp(2.2rem, 3.8vw, 3.95rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
  max-width: 100%;
  text-wrap: balance;
  animation: fadeSlideUp 0.8s 0.15s var(--ease-out) both;
}

.hero-heading .hero-line {
  display: block;
}

.hero-heading .hero-line + .hero-line {
  margin-top: 0.14em;
}

.hero-heading .hero-line-final {
  margin-top: 0.2em;
}

/* Hero subheading */
.hero-sub {
  color: var(--white-dim);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 2.5rem;
  animation: fadeSlideUp 0.8s 0.25s var(--ease-out) both;
}

/* CTA buttons row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fadeSlideUp 0.8s 0.35s var(--ease-out) both;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  animation: fadeSlideUp 0.8s 0.45s var(--ease-out) both;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-plus {
  font-size: 1.2rem;
  color: var(--gold);
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--white-faint);
}

/* Hero visual — decorative circuit board */
.hero-visual {
  grid-column: 2;
  grid-row: 1 / span 5;
  justify-self: end;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeSlideUp 0.8s 0.5s var(--ease-out) both;
}

@media (min-width: 1025px) {
  .hero-heading .hero-line {
    white-space: nowrap;
  }
}

.circuit-board {
  position: relative;
  width: 320px;
  height: 320px;
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-lg);
  background: var(--black-2);
  box-shadow: 0 0 60px rgba(201,168,76,0.08), inset 0 0 40px rgba(0,0,0,0.4);
  overflow: hidden;
}

/* Circuit lines */
.cb-line {
  position: absolute;
  background: var(--gold-dim);
  opacity: 0.5;
}
.cb-h1 { width: 70%; height: 1px; top: 40%; left: 0; }
.cb-h2 { width: 50%; height: 1px; top: 65%; left: 25%; }
.cb-v1 { width: 1px; height: 60%; top: 20%; left: 35%; }
.cb-v2 { width: 1px; height: 40%; top: 35%; left: 65%; }

/* Circuit dots */
.cb-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.cb-d1 { top: calc(40% - 4px); left: calc(35% - 4px); }
.cb-d2 { top: calc(40% - 4px); left: calc(65% - 4px); }
.cb-d3 { top: calc(65% - 4px); left: calc(65% - 4px); }
.cb-d4 { top: calc(65% - 4px); left: calc(35% - 4px); }

/* Circuit chips */
.cb-chip {
  position: absolute;
  width: 80px; height: 50px;
  top: calc(40% - 25px);
  left: calc(35% - 10px);
  border: 1px solid var(--gold-dim);
  background: var(--black-3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cb-chip::after {
  content: 'MCU';
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
}
.cb-chip2 {
  width: 50px; height: 30px;
  top: 20%;
  left: 58%;
}
.cb-chip2::after { content: 'SoC'; }

/* Pulse ring */
.pulse-ring {
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: pulseRing 3s ease-out infinite;
}


/* ================================================================
   8. ABOUT SECTION
   ================================================================ */
#about {
  background: #fcfbf8;
  border-top: 1px solid var(--white-faint);
  border-bottom: 1px solid var(--white-faint);
}

#about .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* minmax(0) prevents column blowout */
  gap: 4rem;
  align-items: start;
}

/* About text — left column */
.about-text {
  min-width: 0;
}

/* About features list */
.about-features {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--white-faint);
  border-radius: var(--radius);
  background: rgba(201,168,76,0.02);
  transition: border-color 0.3s, background 0.3s;
}
.about-feature:hover {
  border-color: var(--gold-dim);
  background: rgba(201,168,76,0.05);
}

.feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.about-feature strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.about-feature p {
  font-size: 0.9rem;
  color: var(--white-dim);
  margin: 0;
}

/* About visual — right column: code panel on top, chart below */
.about-visual {
  position: relative;
  display: flex;
  flex-direction: column;   /* stack panels vertically */
  align-items: stretch;     /* panels fill the full column width */
  gap: 1.25rem;
  min-width: 0;             /* prevent flex/grid overflow */
  width: 100%;
}

/* Glow behind the panel */
.about-panel-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.1), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  pointer-events: none;
}

/* Code panel */
.about-panel {
  width: 100%;
  max-width: 100%;
  background: var(--black-4);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: 0 18px 40px rgba(24, 24, 24, 0.12);
  position: relative;
  z-index: 1;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--black-3);
  border-bottom: 1px solid var(--white-faint);
}
.panel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.panel-dot.r { background: #E05252; }
.panel-dot.y { background: #E0B252; }
.panel-dot.g { background: #4CAF85; }
.panel-title {
  font-size: 0.72rem;
  color: var(--white-dim);
  margin-left: auto;
  letter-spacing: 0.08em;
}

.panel-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.code-line { display: flex; gap: 0.5rem; }
.code-line.mt { margin-top: 0.5rem; }
.c-key   { color: #82AAFF; }
.c-op    { color: var(--white-dim); }
.c-val   { color: #C3E88D; }
.c-val.c-green { color: var(--green); }
.c-val.c-gold  { color: var(--gold); }
.c-comment { color: #546E7A; font-style: italic; }

/* Blinking cursor line */
.blink-line { margin-top: 0.5rem; }
.c-cursor {
  color: var(--gold);
  animation: blink 1s step-end infinite;
}

/* If using a real photo instead of the panel */
.about-real-img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--white-faint);
  object-fit: cover;
}

.about-chart-card {
  width: 100%;
  max-width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #fdfcf9 100%);
  border: 1px solid #e8e2d8;
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 16px 34px rgba(24, 24, 24, 0.1);
  position: relative;
  z-index: 1;
}

.chart-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #1f2937;
  text-align: center;
  margin-bottom: 1rem;
}

.chart-canvas-wrap {
  position: relative;
  width: min(100%, 280px); /* keeps donut compact and centred in any column width */
  height: 280px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #f7f5f1 70%);
}

#services-distribution-chart {
  width: 100%;
  height: 100%;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.35;
}

.chart-legend li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.55rem;
  border: 1px solid #ece7de;
  border-radius: 8px;
  background: #fff;
}

.chart-legend li:last-child {
  border-bottom: 1px solid #ece7de;
}

.legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-label {
  flex: 1;
  color: #1f2937;
  font-size: 0.9rem;
}

.legend-value {
  font-family: var(--font-display);
  font-weight: 600;
  color: #374151;
  min-width: 42px;
  text-align: right;
}

.legend-embedded { background: #6f42c1; }
.legend-qa { background: #7a1639; }
.legend-fmea { background: #2e8b77; }


/* ================================================================
   9. SERVICES SECTION
   ================================================================ */
#services {
  background: var(--black);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-label { display: block; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* SERVICE CARD */
.service-card {
  border: 1px solid var(--white-faint);
  border-radius: var(--radius-lg);
  background: var(--black-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  position: relative;
  box-shadow: 0 12px 30px rgba(24, 24, 24, 0.08);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dim);
  box-shadow: 0 18px 34px rgba(24, 24, 24, 0.12), 0 0 20px rgba(201,168,76,0.08);
}

/* ================================================================
   9a. SERVICE CARD BANNERS
   Set background images for each card's banner here.
   Replace the gradient with: background-image: url('your-image.jpg');
   and adjust background-size / background-position as needed.
   ================================================================ */

/* CARD 1 BANNER — Embedded & Software Development */
.service-card:nth-child(1) .card-banner {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(248,243,232,0.85) 100%);
}

/* CARD 2 BANNER — Firmware & Software QA (featured card) */
.service-card:nth-child(2) .card-banner {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88) 0%, rgba(248,243,232,0.82) 100%);
}

/* CARD 3 BANNER — FMEA/FMECA */
.service-card:nth-child(3) .card-banner {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88) 0%, rgba(248,243,232,0.84) 100%);
}

/* BANNER AREA (shared) */
.card-banner {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Thin gold border at the bottom of banner */
  border-bottom: 1px solid var(--gold-dim);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--black-2) 100%);
}

.banner-icon {
  font-size: 3.5rem;
  position: relative;
  z-index: 1;
  opacity: 0.35;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  filter: drop-shadow(0 0 12px var(--gold));
}
.service-card:hover .banner-icon {
  opacity: 0.6;
  transform: scale(1.1);
}

.card-index {
  position: absolute;
  top: 12px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gold-dim);
  font-weight: 600;
  z-index: 1;
}

/* Featured badge on the most popular card */
.featured-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  background: var(--gold);
  color: var(--white);
  border-radius: 99px;
  font-weight: 700;
  z-index: 2;
}

/* Featured card gold accent border */
.service-card.featured {
  border-color: var(--gold-dim);
}

/* Card body */
.card-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-front-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--white-faint);
  margin-bottom: 1rem;
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  display: block;
  margin-top: 0;
  width: fit-content;
  padding: 0.4rem;
  background: var(--black-2);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius);
  position: relative;
  z-index: 2;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.card-tagline {
  font-size: 0.9rem;
  color: var(--gold-dim);
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--white-dim);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

/* Technology tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.card-tags li {
  font-family: var(--font-display);
  font-size: 0.67rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--white-faint);
  border-radius: 4px;
  color: var(--white-dim);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.3s, color 0.3s;
}
.service-card:hover .card-tags li {
  border-color: var(--gold-dim);
  color: var(--gold-dim);
}

/* Card CTA link */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  transition: color 0.3s, gap 0.3s;
  margin-top: auto;
}
.card-link:hover {
  color: var(--gold-light);
  gap: 0.7rem;
}


/* ================================================================
   10. CONTACT SECTION
   ================================================================ */
#contact {
  background: #fdfcf9;
  border-top: 1px solid var(--white-faint);
}

#contact .section-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-left .section-heading { margin-bottom: 1rem; }

/* Contact info items */
.contact-info {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  font-size: 1.2rem;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white-faint);
  border-radius: var(--radius);
  flex-shrink: 0;
  background: rgba(201,168,76,0.04);
  transition: border-color 0.3s;
}
.info-item:hover .info-icon { border-color: var(--gold-dim); }

.info-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 0.15rem;
}

.info-value {
  font-size: 0.95rem;
  color: var(--white);
  transition: color 0.3s;
}
a.info-value:hover { color: var(--gold); }

/* CONTACT FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Form group label + input */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-dim);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--black-4);
  border: 1px solid var(--white-faint);
  border-radius: var(--radius);
  color: var(--white);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(160,152,136,0.4);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23A09888' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group select option {
  background: var(--black-4);
  color: var(--white);
}

/* Focus states */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.1);
}

/* Validation state — added by JS */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: var(--red);
}

/* Form feedback message */
.form-feedback {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.form-feedback.success {
  display: block;
  background: rgba(76,175,133,0.1);
  border: 1px solid rgba(76,175,133,0.3);
  color: var(--green);
}
.form-feedback.error {
  display: block;
  background: rgba(224,82,82,0.1);
  border: 1px solid rgba(224,82,82,0.3);
  color: var(--red);
}


/* ================================================================
   11. FOOTER
   ================================================================ */
#footer {
  background: #fcfbf8;
  border-top: 1px solid var(--white-faint);
  padding: 3rem var(--gap) 0;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-top: 0.5rem;
}

/* Footer nav links */
.footer-nav {
  display: flex;
  gap: 2rem;
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold); }

/* Social icons */
.footer-social {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 36px; height: 36px;
  border: 1px solid var(--white-faint);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-dim);
  transition: all 0.3s;
}
.social-link:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(201,168,76,0.05);
}

/* Copyright bar */
.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1.25rem 0;
  border-top: 1px solid var(--white-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--white-dim);
}
.footer-credit {
  font-style: italic;
  opacity: 0.6;
}


/* ================================================================
   12. ANIMATIONS & KEYFRAMES
   ================================================================ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes orbPulse {
  from { opacity: 0.5; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.15); }
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}

@keyframes pulseRing {
  0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Scroll-triggered reveal — class added by JS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for grid children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.35s; }


/* ================================================================
   13. RESPONSIVE BREAKPOINTS
   Full mobile-first coverage:
   - 1024px  tablet
   -  768px  large mobile / small tablet
   -  480px  standard mobile
   -  360px  small mobile (Galaxy S series etc.)
   ================================================================ */

/* ── Tablet — 1024px ──────────────────────────────────────────── */
@media (max-width: 1024px) {

  /* Services: 2-col grid, 3rd card spans full width */
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  /* Hero: stack to single column, centred */
  #hero .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .hero-badge,
  .hero-heading,
  .hero-sub,
  .hero-actions,
  .hero-stats {
    justify-self: center;
  }
  .hero-heading {
    max-width: 22ch;
    font-size: clamp(2.1rem, 4.9vw, 3.1rem);
  }
  .hero-heading .hero-line { white-space: normal; }
  .hero-sub  { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats   { justify-content: center; }
  .hero-visual  { display: none; }

  /* About: stack to single column */
  #about .section-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Contact: stack to single column */
  #contact .section-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ── Large mobile / small tablet — 768px ──────────────────────── */
@media (max-width: 768px) {

  /* ---- Navigation ---- */
  .nav-links {
    position: fixed;
    top: 72px; right: 0;
    width: 260px;
    height: calc(100vh - 72px);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-left: 1px solid var(--white-faint);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 999;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a    { font-size: 1rem; }
  .hamburger      { display: flex; }
  .nav-cta        { display: none; }

  /* ---- Hero ---- */
  #hero {
    padding-top: 80px;
    padding-bottom: 3rem;
    min-height: auto;
  }
  .hero-heading {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    text-align: center;
  }
  .hero-sub { font-size: 0.97rem; text-align: center; }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* ---- About ---- */
  #about .section-inner { gap: 2rem; }
  .about-features { gap: 0.85rem; }
  .about-feature  { padding: 0.85rem 1rem; }
  .about-visual   { order: 2; }   /* visuals after text on mobile */

  /* Chart canvas smaller on mobile */
  .chart-canvas-wrap {
    width: min(100%, 260px);
    height: 260px;
  }

  /* ---- Services ---- */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .service-card:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
  }

  /* ---- Contact ---- */
  .form-row { grid-template-columns: 1fr; }
  #contact .section-inner { gap: 2rem; }
  .contact-info { gap: 1rem; }

  /* ---- Footer ---- */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .footer-nav   { flex-wrap: wrap; gap: 1rem; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }

  /* ---- Section spacing ---- */
  section { padding: clamp(3rem, 6vw, 5rem) 0; }
  .section-heading { font-size: clamp(1.7rem, 5.5vw, 2.4rem); }
}

/* ── Standard mobile — 480px ─────────────────────────────────── */
@media (max-width: 480px) {

  /* Hero */
  .hero-heading {
    font-size: clamp(1.75rem, 8.5vw, 2.2rem);
    line-height: 1.12;
  }
  .hero-badge   { font-size: 0.65rem; padding: 0.3rem 0.7rem; }
  .hero-stats   { flex-direction: column; align-items: center; gap: 0.75rem; }
  .stat-divider { width: 40px; height: 1px; }
  .stat-num     { font-size: 1.55rem; }

  /* About */
  .about-feature { gap: 0.75rem; }
  .feature-icon  { font-size: 1.2rem; }

  /* Service cards */
  .card-banner  { height: 120px; }
  .banner-icon  { font-size: 2.5rem; }
  .card-body    { padding: 1.1rem 1.25rem 1.25rem; }
  .card-title   { font-size: 1.05rem; }
  .card-tags    { gap: 0.3rem; }
  .card-tags li { font-size: 0.62rem; padding: 0.2rem 0.5rem; }

  /* Contact form */
  .form-group label  { font-size: 0.7rem; }
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 1rem; padding: 0.7rem 0.9rem; }
  textarea           { min-height: 120px; }

  /* Section */
  .section-heading { font-size: clamp(1.6rem, 8vw, 2.1rem); }
  .section-label   { font-size: 0.72rem; }

  /* Chart */
  .chart-canvas-wrap {
    width: min(100%, 220px);
    height: 220px;
  }
  .chart-title  { font-size: 0.95rem; }
  .legend-label { font-size: 0.82rem; }

  /* Footer */
  .footer-nav a { font-size: 0.75rem; }
}

/* ── Small mobile — 360px ────────────────────────────────────── */
@media (max-width: 360px) {
  :root { --gap: 1rem; }

  .hero-heading { font-size: clamp(1.55rem, 9vw, 1.9rem); }
  .hero-badge   { font-size: 0.6rem; letter-spacing: 0.1em; }

  .btn {
    font-size: 0.82rem;
    padding: 0.65rem 1.2rem;
  }

  .nav-inner    { gap: 1rem; }
  .nav-logo     { font-size: 1.05rem; letter-spacing: 0.1em; }

  .section-heading { font-size: 1.55rem; }

  .card-body { padding: 1rem; }
  .card-title { font-size: 0.95rem; }

  .about-feature { padding: 0.75rem 0.85rem; }

  .form-group input,
  .form-group textarea,
  .form-group select { padding: 0.65rem 0.8rem; }

  .chart-canvas-wrap {
    width: min(100%, 200px);
    height: 200px;
  }
}

/* ── Touch-device overrides ──────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  /* Larger tap targets for touch */
  .btn          { min-height: 48px; }
  .nav-cta      { min-height: 44px; }
  .card-link    { padding: 0.5rem 0; min-height: 44px; display: flex; align-items: center; }
  .info-icon    { width: 44px; height: 44px; }
  .social-link  { width: 44px; height: 44px; }
  .hamburger    { padding: 8px; }

  /* Remove hover transforms on touch (prevents sticky states) */
  .service-card:hover  { transform: none; }
  .btn-primary:hover   { transform: none; }
  .about-feature:hover { background: rgba(201,168,76,0.02); border-color: var(--white-faint); }
}
