/* ═══════════════════════════════════════════════════════
   main.css — balajisampathkumar.com
   Shared design system: reset, variables, nav, footer,
   buttons, utilities. Page-specific styles in per-page CSS.
═══════════════════════════════════════════════════════ */

/* ─── RESET & BOX MODEL ──────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── DESIGN TOKENS ──────────────────────────────────── */
:root {
  --black:     #1A1A2E;
  --black-mid: #22223a;
  --teal:      #16E0BD;
  --teal-dim:  rgba(22,224,189,0.12);
  --orange:    #FF6B35;
  --offwhite:  #F7F5F2;
  --white:     #FFFFFF;
  --body:      #2C2C3A;
  --muted:     #7A7A8C;
  --border:    rgba(0,0,0,0.08);
}

/* ─── BASE ───────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  line-height: 1.15;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; }

/* ─── NAV ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(26,26,46,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(22,224,189,0.12);
  transition: box-shadow 0.2s;
}

nav.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

.nav-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-logo-name {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff !important;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-cta {
  background: var(--orange);
  color: #fff;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.nav-cta:hover {
  opacity: 0.9;
}

/* Mobile hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: rgba(255,255,255,0.7);
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile nav open state */
.nav-mobile-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 68px; left: 0; right: 0;
  background: rgba(26,26,46,0.99);
  padding: 24px 24px 32px;
  gap: 20px;
  border-bottom: 0.5px solid rgba(22,224,189,0.12);
}

/* ─── SECTION HELPERS ────────────────────────────────── */
.section {
  padding: 100px 60px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  display: block;
}

/* ─── BUTTONS ────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 15px 32px;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.9; }

.btn-primary-lg {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 18px 44px;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}

.btn-primary-lg:hover { opacity: 0.9; }

.btn-ghost {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}

.btn-ghost:hover { color: #fff; }

.btn-ghost svg { transition: transform 0.15s; }
.btn-ghost:hover svg { transform: translateX(3px); }

.teal-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s;
}

.teal-link:hover { gap: 10px; }

/* ─── PILLAR PILLS ───────────────────────────────────── */
.pillar-pill {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  width: fit-content;
}

.pill-ops { background: rgba(22,174,224,0.12); color: #1a5fa0; }
.pill-ai  { background: rgba(22,224,189,0.12); color: #0f7063; }
.pill-lss { background: rgba(255,107,53,0.1);  color: #c94e1a; }
.pill-con { background: rgba(100,80,200,0.1);  color: #5a3ea0; }

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  background: #12121f;
  padding: 52px 60px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.7);
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 960px) {
  nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .section {
    padding: 72px 24px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
