:root {
  --brand: #0b3d3a;
  --brand-deep: #062824;
  --brand-mid: #14635c;
  --accent: #c97b3a;
  --accent-soft: #e8b07a;
  --ink: #121816;
  --muted: #4a5a55;
  --paper: #eef3f1;
  --paper-2: #e2ebe7;
  --line: rgba(11, 61, 58, 0.14);
  --white: #f8fbfa;
  --shadow: 0 4px 20px rgba(6, 40, 36, 0.1);
  --shadow-md: 0 16px 40px rgba(6, 40, 36, 0.14);
  --radius: 14px;
  --font-head: "Syne", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, rgba(11,61,58,0.05), transparent); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block;
  background: rgba(201, 123, 58, 0.14);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-header h2, .block-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--brand);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.section-header p { color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }
.block-title { margin-bottom: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 50px; font-weight: 700;
  font-size: 0.95rem; border: 2px solid transparent; cursor: pointer;
  transition: var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-accent { background: var(--accent); color: var(--brand-deep); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-soft); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(248,251,250,0.45); }
.btn-outline:hover { background: rgba(248,251,250,0.12); border-color: var(--white); }
.btn-outline-dark { background: rgba(248,251,250,0.55); color: var(--brand); border-color: rgba(11,61,58,0.3); }
.btn-outline-dark:hover { background: var(--white); border-color: var(--brand); }
.btn-outline-teal { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline-teal:hover { background: var(--brand); color: var(--white); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn-sm:hover { background: var(--brand-deep); }
.center-btn { text-align: center; margin-top: 36px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); margin-top: 12px; }
.text-link:hover { gap: 12px; }

/* Top bar + nav */
.top-bar { background: var(--brand-deep); color: rgba(248,251,250,0.82); font-size: 0.82rem; padding: 8px 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar-left { display: flex; gap: 18px; flex-wrap: wrap; }
.top-bar-left span { display: flex; align-items: center; gap: 6px; }
.top-bar-left i { color: var(--accent-soft); }
.top-bar-right { display: flex; gap: 14px; }
.top-bar-right a { color: rgba(248,251,250,0.75); }
.top-bar-right a:hover { color: var(--accent-soft); }

.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(238,243,241,0.92); backdrop-filter: blur(12px);
  padding: 14px 0; box-shadow: 0 2px 18px rgba(0,0,0,0.06);
  transition: var(--transition);
}
.navbar.scrolled { padding: 8px 0; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand-mid), var(--brand-deep));
  color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 0.95rem;
}
.logo-text { display: flex; flex-direction: column; }
.logo-main { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--brand); line-height: 1.1; }
.logo-sub { font-size: 0.7rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-weight: 600; font-size: 0.9rem; color: var(--ink);
  padding: 8px 14px; border-radius: 8px; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--brand-mid); }
.btn-nav {
  background: var(--brand) !important; color: var(--white) !important;
  border-radius: 50px !important; padding: 10px 20px !important;
}
.btn-nav:hover { background: var(--brand-deep) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--brand); border-radius: 4px; }

/* Hero */
.hero {
  position: relative; min-height: calc(100vh - 110px); min-height: 620px;
  display: flex; align-items: center; overflow: hidden;
  padding: 60px 0 80px;
}
.hero-atmosphere { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(40px); animation: drift 16s ease-in-out infinite alternate; }
.orb-a {
  width: min(50vw, 480px); height: min(50vw, 480px); top: 5%; right: -8%;
  background: radial-gradient(circle, rgba(201,123,58,0.32), transparent 70%);
}
.orb-b {
  width: min(55vw, 520px); height: min(55vw, 520px); bottom: 0; left: -12%;
  background: radial-gradient(circle, rgba(11,61,58,0.28), transparent 70%);
  animation-delay: -5s;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,61,58,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,61,58,0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at 40% 40%, black 15%, transparent 72%);
}
.hero-content { position: relative; z-index: 1; max-width: 860px; }
.hero-kicker {
  display: inline-block; margin-bottom: 16px; font-size: 0.82rem; font-weight: 600;
  color: var(--accent); letter-spacing: 0.04em;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 0.98;
  color: var(--brand); margin-bottom: 18px;
}
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 40rem; margin-bottom: 28px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  border-top: 1px solid var(--line); padding-top: 28px;
}
.hero-stats strong {
  display: block; font-family: var(--font-head); font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--brand); letter-spacing: -0.03em;
}
.hero-stats span { font-size: 0.88rem; color: var(--muted); }

.page-hero {
  padding: 56px 0 24px;
  background: linear-gradient(180deg, rgba(11,61,58,0.07), transparent);
}
.page-hero h1 {
  font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--brand); letter-spacing: -0.03em; margin: 10px 0 10px;
}
.page-hero p { color: var(--muted); max-width: 40rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.about-copy p { color: var(--muted); margin-bottom: 14px; font-size: 1.05rem; }
.value-list { display: grid; gap: 12px; }
.value-list li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--white); padding: 14px 16px; border-radius: 12px;
  box-shadow: var(--shadow); color: var(--ink); font-weight: 500;
}
.value-list i { color: var(--accent); margin-top: 4px; }

/* Featured / cards */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-visual { height: 150px; position: relative; }
.feature-homeo {
  background:
    radial-gradient(circle at 30% 30%, rgba(232,176,122,0.5), transparent 45%),
    linear-gradient(145deg, #1a4f4a, #0b3d3a);
}
.feature-ayur {
  background:
    radial-gradient(circle at 70% 30%, rgba(201,123,58,0.45), transparent 40%),
    linear-gradient(160deg, #245a4f, #0f3d38);
}
.feature-varuna {
  background:
    radial-gradient(circle at 40% 60%, rgba(223,233,229,0.25), transparent 45%),
    linear-gradient(150deg, #163a38, #0b3d3a 60%, #2a4a3a);
}
.feature-body { padding: 22px; }
.pill {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.feature-body h3, .card h3, .project-row h3 {
  font-family: var(--font-head); color: var(--brand); margin-bottom: 8px; letter-spacing: -0.02em;
}
.feature-body p, .card p, .project-row p { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tags span {
  font-size: 0.72rem; font-weight: 600; color: var(--brand);
  background: rgba(11,61,58,0.08); padding: 4px 10px; border-radius: 999px;
}

.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.impact-item {
  background: var(--white); border-radius: var(--radius); padding: 24px 20px;
  box-shadow: var(--shadow); border-top: 3px solid var(--brand);
}
.impact-item strong {
  display: block; font-family: var(--font-head); font-size: 1.8rem;
  color: var(--brand); margin-bottom: 6px;
}
.impact-item span { color: var(--muted); font-size: 0.92rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); border-top: 2px solid var(--brand); transition: var(--transition);
}
.card:hover { transform: translateY(-3px); }

.project-list { display: grid; gap: 16px; }
.project-row {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.project-row > div { flex: 1; }

.timeline-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); margin-bottom: 18px; border-left: 4px solid var(--accent);
}
.timeline-card .when { color: var(--accent); font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }
.timeline-card h3 { font-family: var(--font-head); color: var(--brand); margin-bottom: 4px; }
.timeline-card .org { color: var(--muted); margin-bottom: 12px; }
.timeline-card ul { padding-left: 1.1rem; list-style: disc; color: var(--muted); }
.timeline-card li + li { margin-top: 6px; }

.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.skills-grid h4 { font-family: var(--font-head); color: var(--brand); margin-bottom: 6px; }
.skills-grid p { color: var(--muted); font-size: 0.95rem; }
.edu-block { border-top: 1px solid var(--line); padding-top: 24px; }
.edu-block h3 { font-family: var(--font-head); color: var(--brand); margin-bottom: 10px; }
.edu-block ul { list-style: disc; padding-left: 1.1rem; color: var(--muted); }
.edu-block li + li { margin-top: 6px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card {
  background: var(--white); border-radius: var(--radius); padding: 28px 22px;
  box-shadow: var(--shadow); transition: var(--transition); text-align: left;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card.muted { cursor: default; }
.contact-card i { font-size: 1.4rem; color: var(--accent); margin-bottom: 12px; }
.contact-card h3 { font-family: var(--font-head); color: var(--brand); margin-bottom: 4px; }
.contact-card p { color: var(--muted); font-size: 0.95rem; }

.cta-band { padding-top: 20px; }
.cta-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(145deg, #0f4742, #0b3d3a 55%, #163a38);
  color: var(--white); border-radius: 20px; padding: 40px 36px; box-shadow: var(--shadow-md);
}
.cta-inner h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 8px; }
.cta-inner p { color: rgba(248,251,250,0.75); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.site-footer { padding: 28px 0 36px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.88rem; }
.footer-links { display: flex; gap: 16px; }
.footer-links a:hover { color: var(--brand); }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-20px, 16px) scale(1.05); }
}

@media (max-width: 960px) {
  .about-grid, .featured-grid, .card-grid, .skills-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats, .impact-grid { grid-template-columns: 1fr 1fr; }
  .project-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: rgba(238,243,241,0.98);
    padding: 10px 0 16px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 20px; width: 100%; }
  .about-grid, .featured-grid, .card-grid, .skills-grid, .contact-grid,
  .hero-stats, .impact-grid { grid-template-columns: 1fr; }
  .top-bar-left span:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  .btn:hover, .feature-card:hover, .card:hover { transform: none; }
}

/* Status badges */
.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.feature-top h3 { margin-bottom: 0; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-badge.is-checking { color: var(--muted); background: rgba(74,90,85,0.12); }
.status-badge.is-online { color: #1f7a4d; background: rgba(31,122,77,0.12); }
.status-badge.is-offline { color: #9b3b2e; background: rgba(155,59,46,0.12); }

/* Device / browser previews */
.feature-visual {
  display: grid;
  place-items: center;
  padding: 22px 18px 10px;
  overflow: hidden;
}
.device-frame {
  width: min(78%, 190px);
  background: rgba(8, 24, 22, 0.88);
  border-radius: 22px;
  padding: 10px 8px 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  border: 1px solid rgba(248,251,250,0.12);
  transform: translateY(8px);
}
.device-notch {
  width: 42%;
  height: 6px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: rgba(248,251,250,0.18);
}
.device-screen {
  background: linear-gradient(180deg, #f4faf7, #e7f1ec);
  border-radius: 14px;
  padding: 10px;
  min-height: 140px;
}
.ui-bar {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 8px;
}
.ui-chat { display: grid; gap: 6px; margin-bottom: 10px; }
.bubble {
  display: block;
  font-size: 0.58rem;
  line-height: 1.35;
  padding: 6px 8px;
  border-radius: 10px;
  max-width: 92%;
}
.bubble.in { background: rgba(11,61,58,0.1); color: var(--brand-deep); }
.bubble.out {
  margin-left: auto;
  background: var(--brand);
  color: var(--white);
}
.ui-chips { display: flex; gap: 5px; }
.ui-chips i {
  display: block;
  height: 8px;
  flex: 1;
  border-radius: 999px;
  background: rgba(11,61,58,0.16);
}
.browser-frame {
  width: min(88%, 240px);
  background: rgba(8, 24, 22, 0.8);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  border: 1px solid rgba(248,251,250,0.12);
  transform: translateY(6px);
}
.browser-dots { display: flex; gap: 5px; margin-bottom: 8px; }
.browser-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(248,251,250,0.28);
}
.browser-screen {
  background: linear-gradient(180deg, #f7faf8, #e8f0ec);
  border-radius: 8px;
  padding: 12px;
  min-height: 120px;
}
.site-hero-mini {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}
.site-rows { display: grid; gap: 7px; }
.site-rows i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: rgba(11,61,58,0.14);
}
.site-rows i:nth-child(2) { width: 78%; }
.site-rows i:nth-child(3) { width: 62%; }

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-form h2 {
  font-family: var(--font-head);
  color: var(--brand);
  margin-bottom: 6px;
}
.form-lede { color: var(--muted); margin-bottom: 20px; font-size: 0.95rem; }
.form-row { margin-bottom: 14px; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fbfdfc;
  color: var(--ink);
  font: inherit;
  transition: var(--transition);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(11,61,58,0.12);
}
.form-row.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.form-status { margin-top: 12px; font-size: 0.92rem; color: var(--muted); min-height: 1.2em; }
.form-status.is-success { color: #1f7a4d; font-weight: 600; }
.form-status.is-error { color: #9b3b2e; font-weight: 600; }
.contact-grid.compact { grid-template-columns: 1fr 1fr; }

@media (max-width: 960px) {
  .contact-layout { grid-template-columns: 1fr; }
}
