/* Coding Sathi — layout & theme */
:root {
  --bg: #0c1210;
  --bg-elevated: #141c19;
  --surface: #1a2420;
  --border: rgba(232, 245, 240, 0.08);
  --text: #e8f5f0;
  --text-muted: #9cb0a8;
  --accent: #3ecf8e;
  --accent-dim: #2a9d66;
  --accent-glow: rgba(62, 207, 142, 0.25);
  --warm: #f4b942;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 12px;
  --radius-lg: 20px;
  --header-h: 72px;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  color: #5ee4ad;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(12, 18, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg) !important;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover {
  background: #52e4a5;
  color: var(--bg) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
  }

  .site-nav a:hover {
    background: var(--surface);
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(244, 185, 66, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: #52e4a5;
  color: var(--bg);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section-alt {
  background: var(--bg-elevated);
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2.5rem;
  max-width: 42rem;
  color: var(--text-muted);
}

.section-intro.narrow {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.subsection-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--warm);
}

/* Features */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.feature-icon {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Split / mission */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.split-text p {
  color: var(--text-muted);
}

.pullquote {
  margin: 0;
  padding: 2rem;
  background: linear-gradient(145deg, var(--surface), rgba(62, 207, 142, 0.06));
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
}

.pullquote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
}

/* Founder */
.founder {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.founder-card {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 640px) {
  .founder-card {
    grid-template-columns: auto 1fr;
  }
}

.founder-photo {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.founder-initials {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bg);
}

.founder-role {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.founder-name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.founder-tagline {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.founder-bio {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.founder-meta {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
  margin-left: 0.5rem;
}

.timeline li {
  position: relative;
  padding: 0 0 1.75rem 1.5rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-elevated);
}

.timeline-date {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--warm);
  margin-bottom: 0.25rem;
}

.timeline strong {
  display: block;
  font-size: 1.0625rem;
}

.timeline-role {
  display: block;
  font-size: 0.9375rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.timeline p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.community-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.community-list li {
  margin-bottom: 0.5rem;
}

.edu-block p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.languages {
  margin-bottom: 0 !important;
}

/* Skills */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.skills-cloud span {
  padding: 0.45rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.skills-cloud span:hover {
  border-color: rgba(62, 207, 142, 0.35);
  color: var(--text);
}

/* Contact */
.section-contact {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.contact-inner {
  text-align: center;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 2rem 0 1.5rem;
  font-style: normal;
}

.contact-details a {
  font-size: 1.0625rem;
  font-weight: 500;
}

.contact-location {
  color: var(--text-muted);
}

.site-domain {
  margin: 2rem 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.site-domain strong {
  color: var(--accent);
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
