/* ============================================================
   GUNANI DIGITAL INNOVATIONS LTD — Site Stylesheet
   Design language inherited from the brand's digital business card:
   deep navy circuit-board backdrop, electric blue signal accents.
   The throughline concept: an idea is a signal that travels a
   circuit until it becomes a running business process.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
--deep:   #050D1A; /* Midnight Navy - darkest background */
--deep2:  #0A1829; /* Deep Ocean Blue - secondary background */
--deep3:  #0E2138; /* Dark Steel Blue - elevated surfaces/cards */
--blue:   #1A8FE3; /* Primary Brand Blue */
--blue2:  #0EA5E9; /* Bright Sky Blue - interactive elements */
--blue3:  #38BDF8; /* Light Cyan Blue - highlights and accents */
--white:  #F0F8FF; /* Alice Blue - primary text/light surfaces */
--muted:  #6B8FAD; /* Muted Slate Blue - secondary text */
--muted2: #8FACC4; /* Soft Blue Gray - tertiary text/icons */
--line:   rgba(26,143,227,0.2); /* Subtle Blue Border */
--lineb:  rgba(26,143,227,0.1); /* Very Light Blue Divider */
--amber:  #F0A93C; /* Warm Amber - alerts, signals, key accents */

  --font-display: 'Garet', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1180px;
}

html { scroll-behavior: smooth; }

html, body {
  background: var(--deep);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

ul { list-style: none; }

.logo {
  width: 150px;
  height: auto;
}

:focus-visible {
  outline: 2px solid var(--blue3);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* circuit dot-grid background, reused from the brand mark */
.circuit-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26,143,227,0.14) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

@keyframes dotdrift {
  from { background-position: 0 0; }
  to   { background-position: 32px 32px; }
}
.circuit-bg.animate { animation: dotdrift 30s linear infinite; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,13,26,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lineb);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}
.nav-brand .mark {
  width: 34px; height: 34px;
  flex-shrink: 0;
}
.nav-brand span { color: var(--blue2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  color: var(--muted2);
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--blue3);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--blue2); transform: translateY(-1px); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px; height: 42px;
  color: var(--white);
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 10px 28px 26px;
  border-top: 1px solid var(--lineb);
  gap: 4px;
}
.mobile-menu a {
  padding: 12px 4px;
  font-size: 0.95rem;
  color: var(--muted2);
  border-bottom: 1px solid var(--lineb);
}
.mobile-menu a.active, .mobile-menu a:hover { color: var(--white); }
.mobile-menu .nav-cta { margin-top: 14px; justify-content: center; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta.desktop-only { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.open { display: flex;}
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, transform 0.15s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--white); }
.btn-ghost:hover { border-color: var(--blue2); background: rgba(26,143,227,0.08); }

/* ============ SECTIONS / TYPOGRAPHY ============ */
.section { padding: 100px 0; position: relative; background-color:whitesmoke; }
.section-tight { padding: 70px 0; }
.section-alt { background: var(--deep2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--blue3);
  font-weight: 500;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--blue3); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; }

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.lede {
  font-size: 1.1rem;
  color: var(--muted2);
  font-weight: 300;
  line-height: 1.7;
  max-width: 640px;
}

.accent { color: var(--blue3); }

.section-head { margin-bottom: 56px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid var(--lineb);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .line2 { display: block; color: var(--muted2); font-size: 0.55em; font-weight: 500; margin-top: 10px; letter-spacing: 0.02em; }
.hero-actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }

.hero-visual { position: relative; height: 360px; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 260px; order: -1; }
}

/* ============ SIGNAL PATH (signature element) ============ */
.signal-path-svg { width: 100%; height: 100%; }
.signal-line {
  fill: none;
  stroke: var(--blue2);
  stroke-width: 2;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
  opacity: 0.55;field
}
.signal-pulse {
  fill: var(--blue3);
  filter: drop-shadow(0 0 6px var(--blue3));
}
.node-box {
  fill: var(--deep2);
  stroke: var(--line);
  stroke-width: 1.5;
}
.node-box.idea { stroke: var(--amber); }
.node-box.live { stroke: var(--blue3); }
.node-label { font-family: var(--font-body); font-size: 11px; fill: var(--muted2); letter-spacing: 0.06em; text-transform: uppercase; }
.node-label.strong { fill: var(--white); font-weight: 600; }

@keyframes travel {
  0%   { offset-distance: 0%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ============ SERVICES GRID ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 920px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--deep2);
  border: 1px solid var(--lineb);
  border-radius: 14px;
  padding: 32px 28px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  position: relative;
}
.service-card:hover {
  border-color: rgba(26,143,227,0.4);
  transform: translateY(-4px);
  background: var(--deep3);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(26,143,227,0.1);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--blue3);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted2); font-size: 0.92rem; line-height: 1.65; font-weight: 300; }

.service-points { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.service-points li {
  display: flex;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--muted2);
  font-weight: 300;
  line-height: 1.5;
}
.service-points li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue3);
  margin-top: 6px;
  flex-shrink: 0;
}

/* ============ STATS STRIP ============ */
.stats-strip {
  background-color:white;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--lineb);
  border-bottom: 1px solid var(--lineb);
}
.stat {
  text-align: center;
  padding: 38px 20px;
  border-right: 1px solid var(--lineb);
}
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--blue3); }
.stat .label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
@media (max-width: 700px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
}

/* ============ PROCESS / TIMELINE (used on Home + About) ============ */
.process-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-rail::before {
  content: '';
  position: absolute;
  top: 23px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line) 8%, var(--line) 92%, transparent);
}
.process-step { position: relative; }
.process-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--deep2);
  border: 1.5px solid var(--blue2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue3);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.85rem; color: var(--muted2); font-weight: 300; line-height: 1.6; }

@media (max-width: 860px) {
  .process-rail { grid-template-columns: 1fr; gap: 36px; }
  .process-rail::before { display: none; }
}

/* ============ CARDS / PORTFOLIO ============ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-card {
  background: var(--deep2);
  border: 1px solid var(--lineb);
  border-radius: 14px;
  padding: 34px;
  transition: border-color 0.25s, transform 0.25s;
}
.portfolio-card:hover { border-color: rgba(26,143,227,0.4); transform: translateY(-3px); }
.portfolio-tag {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue3);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 18px;
}
.portfolio-card h3 { margin-bottom: 10px; }
.portfolio-card p { color: var(--muted2); font-weight: 300; font-size: 0.92rem; line-height: 1.65; }

/* ============ TEAM / VALUES ============ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { padding: 28px 0; border-top: 1px solid var(--lineb); }
.value-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.value-card p { color: var(--muted2); font-weight: 300; font-size: 0.9rem; line-height: 1.6; }

/* ============ CTA BAND ============ */
.cta-band {
  background: linear-gradient(135deg, var(--deep2), var(--deep3));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 56px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(26,143,227,0.15);
}
.cta-band h2 { font-size: 1.7rem; margin-bottom: 10px; }
.cta-band p { color: var(--muted2); font-weight: 300; }
.cta-band-text { position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; flex-shrink: 0; }
@media (max-width: 700px) {
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
}

/* ============ FORMS ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--deep3);
  margin-bottom: 8px;
  font-weight: 500;
}
.field input, .field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--deep3);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue2);
}
.field textarea { resize: vertical; min-height: 140px; }
.field .error { color: #FF8A8A; font-size: 0.78rem; margin-top: 6px; }

.alert {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.alert-success { background: rgba(26,143,227,0.1); border: 1px solid var(--line); color: var(--deep3); }
.alert-warning { background: rgba(240,169,60,0.1); border: 1px solid rgba(240,169,60,0.3); color: var(--deep3); }

.contact-info-list { display: flex; flex-direction: column; gap: 22px; }
.contact-info-item { display: flex; gap: 16px; }
.contact-info-item .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(26,143,227,0.1);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue3);
  flex-shrink: 0;
}
.contact-info-item .icon svg { width: 19px; height: 19px; }
.contact-info-item strong { display: block; font-size: 0.95rem; margin-bottom: 3px; }
.contact-info-item span, .contact-info-item a { font-size: 0.86rem; color: var(--muted2); font-weight: 300; }
.contact-info-item a:hover { color: var(--blue3); }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--lineb);
  background: var(--deep2);
  padding: 60px 0 30px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; }
.footer-brand .mark { width: 28px; height: 28px; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-family: var(--font-body); font-weight: 600; }
.footer-col p { color: var(--muted2); font-size: 0.86rem; line-height: 1.7; font-weight: 300; max-width: 280px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 0.86rem; color: var(--muted2); transition: color 0.2s; }
.footer-links a:hover { color: var(--blue3); }

.footer-bottom {
  border-top: 1px solid var(--lineb);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted2);
  transition: border-color 0.2s, color 0.2s;
}
.footer-social a:hover { border-color: var(--blue2); color: var(--blue3); }
.footer-social svg { width: 16px; height: 16px; }

/* ============ PAGE HEADER (sub-pages) ============ */
.page-header { padding: 90px 0 60px; border-bottom: 1px solid var(--lineb); position: relative; overflow: hidden; }
.page-header h1 { margin-bottom: 16px; }
.page-header .lede { font-size: 1.02rem; }

/* ============ MISC ============ */
.divider { height: 1px; background: var(--lineb); margin: 60px 0; }

@media (prefers-reduced-motion: reduce) {
  .circuit-bg.animate { animation: none; }
  html { scroll-behavior: auto; }
}
