/* ===================================================================
   Sri Murugan Systems — LIGHT / WHITE theme
   Bright white surfaces · airy · soft blue accent · light hero
   =================================================================== */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f7f9fc;   /* very light gray sections */
  --bg-tint:   #f0f6ff;   /* soft blue wash */
  --surface:   #ffffff;
  --line:      #e8edf5;
  --ink:       #131c2b;
  --slate:     #56637a;
  --muted:     #8792a6;
  --blue:      #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eef4ff;
  --cyan:      #0ea5e9;
  --white:     #ffffff;
  --radius:    14px;
  --shadow:    0 6px 22px rgba(19, 28, 43, 0.06);
  --shadow-lg: 0 20px 48px rgba(19, 28, 43, 0.10);
  --maxw:      1180px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--slate); }

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

.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
/* Formerly-dark bands are now light tinted panels */
.section-navy { background: var(--bg-tint); color: var(--ink); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--ink); }
.section-navy p { color: var(--slate); }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.section-navy .eyebrow { color: var(--blue); }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { font-size: 1.08rem; margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 10px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.24); }
.btn-primary:hover { background: var(--blue-dark); color:#fff; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-soft); }
/* On light hero these become solid / bordered rather than white-on-dark */
.btn-light { background: var(--blue); color:#fff; box-shadow: 0 8px 20px rgba(37,99,235,.24); }
.btn-light:hover { background: var(--blue-dark); color:#fff; transform: translateY(-2px); }
.btn-outline-light { background:#fff; color:var(--blue); border-color: var(--line); }
.btn-outline-light:hover { border-color: var(--blue); color:var(--blue-dark); background: var(--blue-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .logo {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto;
  box-shadow: 0 6px 16px rgba(37,99,235,.3);
}
.brand small { display:block; font-size:.62rem; font-weight:600; letter-spacing:.16em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: .96rem; padding: 8px 14px; border-radius: 8px; }
.nav-links a:hover { background: var(--blue-soft); color: var(--blue-dark); }
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display:block; width:24px; height:2px; background: var(--ink); margin: 5px 0; transition: .3s; border-radius:2px; }

/* ---------- Hero (LIGHT) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  padding: 96px 0 104px;
  background:
    radial-gradient(circle at 85% 12%, rgba(14,165,233,.12), transparent 42%),
    radial-gradient(circle at 8% 95%, rgba(37,99,235,.10), transparent 46%),
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content:""; position:absolute; inset:0; opacity:.6;
  background-image:
    linear-gradient(rgba(37,99,235,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 65% 40%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 65% 40%, #000, transparent 72%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: var(--ink); margin-bottom: 20px; }
.hero p.lead { color: var(--slate); font-size: 1.18rem; max-width: 560px; margin-bottom: 30px; }
.hero .btn-row { display:flex; gap:14px; flex-wrap: wrap; }
.hero-pill {
  display:inline-flex; align-items:center; gap:8px;
  background: #fff; border:1px solid var(--line);
  color: var(--blue-dark); font-size:.82rem; font-weight:600; padding:7px 15px; border-radius:999px; margin-bottom:22px;
  box-shadow: var(--shadow);
}
.hero-pill .dot { width:8px; height:8px; border-radius:50%; background: var(--cyan); box-shadow:0 0 10px var(--cyan); }

/* Keep the code window dark for contrast even on light hero */
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow-lg);
}
.code-window { background: #0b1526; border-radius: 12px; overflow: hidden; border:1px solid #16233c; }
.code-bar { display:flex; gap:7px; padding: 12px 14px; background: rgba(255,255,255,.04); }
.code-bar i { width:11px; height:11px; border-radius:50%; display:block; }
.code-bar i:nth-child(1){ background:#ff5f57;} .code-bar i:nth-child(2){ background:#febc2e;} .code-bar i:nth-child(3){ background:#28c840;}
.code-body { padding: 18px 20px; font-family: 'SF Mono', ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.9; }
.code-body .l { display:block; white-space:nowrap; }
.c-key { color:#38bdf8; } .c-str { color:#7ee787; } .c-fn { color:#ffa657; } .c-mut { color:#64769a; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cddcff; }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--blue-soft), #e2ecff); color: var(--blue);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: .96rem; }

/* Stats (now on light tinted band) */
.stats { display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align:center; }
.stat .num { font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; color: var(--ink); letter-spacing:-.03em; }
.stat .num span { color: var(--blue); }
.stat .lbl { color: var(--slate); font-size:.92rem; margin-top:4px; }

/* Tech chips */
.tech-wrap { display:flex; flex-wrap:wrap; gap:12px; }
.chip {
  display:inline-flex; align-items:center; gap:8px;
  background:#fff; border:1px solid var(--line); border-radius:999px;
  padding:10px 18px; font-weight:600; font-size:.92rem; color:var(--ink);
  box-shadow: var(--shadow);
}
.chip .d { width:9px;height:9px;border-radius:50%; }

.tech-cat h3 { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.tech-cat h3 .ico { width:38px;height:38px; margin:0; font-size:1.1rem; }


/* Portfolio */
.project { overflow:hidden; padding:0; }
.project .thumb { height: 168px; display:grid; place-items:center; font-size:2.4rem; color:#fff; }
.project .body { padding: 24px 26px 28px; }
.tag { display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--blue); background:var(--blue-soft); padding:4px 10px; border-radius:6px; margin-bottom:12px; }
.stack { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.stack span { font-size:.76rem; color:var(--muted); background:var(--bg-soft); border:1px solid var(--line); padding:3px 9px; border-radius:6px; }
.site-link { display:inline-flex; align-items:center; gap:6px; margin-top:14px; font-weight:600; font-size:.9rem; color:var(--blue); }
.site-link:hover { color:var(--blue-dark); }

/* Testimonials */
.quote { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:30px; box-shadow:var(--shadow); }
.quote .mark { font-size:2.6rem; line-height:1; color:var(--blue); font-family:Georgia,serif; }
.quote p { font-size:1.02rem; color:var(--ink); font-style:italic; margin:6px 0 18px; }
.quote .who { display:flex; align-items:center; gap:12px; }
.quote .av { width:44px;height:44px;border-radius:50%; background:linear-gradient(135deg,var(--blue),var(--cyan)); color:#fff; display:grid; place-items:center; font-weight:700; }
.quote .who b { display:block; font-size:.95rem; color:var(--ink); }
.quote .who small { color:var(--muted); }

/* Team */
.member { text-align:center; }
.member .av {
  width:96px;height:96px;border-radius:50%; margin:0 auto 16px;
  background:linear-gradient(135deg,var(--blue),var(--cyan)); color:#fff;
  display:grid; place-items:center; font-size:1.9rem; font-weight:700;
}
.member b { display:block; font-size:1.05rem; }
.member small { color:var(--blue); font-weight:600; }
.member p { font-size:.9rem; margin-top:8px; }

/* Jobs */
.job {
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:24px 28px; box-shadow:var(--shadow); transition:transform .2s, box-shadow .2s;
}
.job:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.job h3 { margin-bottom:6px; }
.job .meta { display:flex; gap:16px; flex-wrap:wrap; color:var(--muted); font-size:.88rem; }

/* Contact */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap:44px; }
.info-item { display:flex; gap:16px; margin-bottom:26px; }
.info-item .ico { width:46px;height:46px; flex:0 0 auto; border-radius:12px; background:var(--blue-soft); color:var(--blue); display:grid; place-items:center; font-size:1.2rem; }
.info-item b { display:block; color:var(--ink); }
.info-item span { color:var(--slate); font-size:.95rem; }
.form-field { margin-bottom:18px; }
.form-field label { display:block; font-weight:600; font-size:.9rem; margin-bottom:7px; color:var(--ink); }
.form-field input, .form-field textarea, .form-field select {
  width:100%; padding:13px 15px; border:1.5px solid var(--line); border-radius:10px;
  font-family:inherit; font-size:.96rem; color:var(--ink); background:#fff; transition:border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(37,99,235,.14);
}
.form-field textarea { min-height:130px; resize:vertical; }
.form-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:34px; box-shadow:var(--shadow); }
.form-note { font-size:.82rem; color:var(--muted); margin-top:6px; }

/* Page hero (LIGHT) */
.page-hero {
  color: var(--ink); padding: 72px 0 76px; position:relative; overflow:hidden;
  background:
    radial-gradient(circle at 88% 16%, rgba(14,165,233,.12), transparent 46%),
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  border-bottom:1px solid var(--line);
}
.page-hero .container { position:relative; z-index:1; }
.page-hero h1 { color: var(--ink); }
.page-hero p { color: var(--slate); font-size:1.12rem; max-width:640px; margin-top:14px; }
.crumbs { font-size:.86rem; color:var(--muted); margin-bottom:16px; }
.crumbs a { color:var(--blue); }

/* CTA band (light, bordered) */
.cta {
  background: linear-gradient(135deg, var(--blue-soft) 0%, #e3edff 100%);
  border:1px solid #d3e0ff;
  color: var(--ink); border-radius:20px; padding:54px; text-align:center;
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: var(--ink); }
.cta p { color: var(--slate); max-width:560px; margin:14px auto 26px; }

/* Feature list */
.flist { list-style:none; }
.flist li { position:relative; padding-left:32px; margin-bottom:14px; color:var(--slate); }
.flist li::before {
  content:"✓"; position:absolute; left:0; top:0;
  width:22px;height:22px; border-radius:50%; background:var(--blue-soft); color:var(--blue);
  font-size:.75rem; font-weight:800; display:grid; place-items:center;
}

/* Footer — light footer for the all-white feel */
.site-footer { background: var(--bg-soft); color: var(--slate); padding: 60px 0 26px; border-top:1px solid var(--line); }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap:40px; margin-bottom:40px; }
.site-footer .brand { color: var(--ink); margin-bottom:16px; }
.site-footer .brand small { color: var(--muted); }
.site-footer p { color: var(--slate); font-size:.92rem; }
.footer-col h4 { color: var(--ink); font-size:.95rem; margin-bottom:16px; }
.footer-col ul { list-style:none; }
.footer-col li { margin-bottom:10px; }
.footer-col a { color: var(--slate); font-size:.92rem; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { border-top:1px solid var(--line); padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.86rem; color: var(--muted); }
.social { display:flex; gap:10px; }
.social a { width:36px;height:36px; border-radius:9px; background:#fff; border:1px solid var(--line); color:var(--blue); display:grid; place-items:center; font-weight:700; }
.social a:hover { background:var(--blue); color:#fff; }

/* Utility */
.text-center { text-align:center; }
.mt-32 { margin-top:32px; }
.lead-block { max-width:760px; }

/* Neutralize any inline translucent-white panels used inside former dark bands */
.card[style*="rgba(255,255,255"] { background:#fff !important; border-color: var(--line) !important; }
.card[style*="rgba(255,255,255"] h3 { color: var(--ink) !important; }
.card[style*="rgba(255,255,255"] p { color: var(--slate) !important; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display:none; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats { grid-template-columns: repeat(2,1fr); gap:32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns:1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 72px; left:0; right:0;
    background:#fff; flex-direction:column; align-items:stretch; gap:0;
    border-bottom:1px solid var(--line); box-shadow:var(--shadow);
    padding:10px 16px; display:none;
  }
  .nav-links.open { display:flex; }
  .nav-links a { padding:12px 8px; border-radius:8px; }
  .nav-cta { margin:10px 0 4px; }
  .nav-toggle { display:block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding:60px 0; }
  .cta { padding:38px 24px; }
  .job { flex-direction:column; align-items:flex-start; }
}
