/* ═══════════════════════════════════════════════════
   V A SIVANANDAN NAIR — PORTFOLIO STYLESHEET
   Font: Playfair Display (display) + DM Sans (body)
   Theme: Refined Minimal — White / Warm Gray / Deep Ink
═══════════════════════════════════════════════════ */

/* ── TOKENS ────────────────────────────────────────── */
:root {
  --ink: #0f0f0f;
  --ink-soft: #3a3a3a;
  --ink-muted: #717171;
  --ink-ghost: #a8a8a8;
  --surface: #ffffff;
  --surface-2: #f7f6f4;
  --surface-3: #eeecea;
  --accent: #2c5f2e;
  /* deep forest green */
  --accent-2: #6fae72;
  /* mid green */
  --accent-3: #d4e8d5;
  /* pale green tint */
  --gold: #b8953a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, .09);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .12);
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, .14);
  --nav-h: 72px;
  --tree-color: #2c5f2e;
  --tree-glow: rgba(44, 95, 46, .15);
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── SCROLL PROGRESS ───────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  z-index: 9999;
  transition: width .1s linear;
}

/* ── NAV ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background .3s var(--transition), box-shadow .3s var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: .01em;
  position: relative;
  transition: color .2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width .25s var(--transition);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.nav-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(16px);
  padding: 16px 32px 24px;
  gap: 4px;
  border-bottom: 1px solid var(--surface-3);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 10px 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--surface-3);
}

.nav-mobile a:last-child {
  border-bottom: none;
}

/* ── TREE CANVAS ───────────────────────────────────── */
.tree-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

#growthTree {
  position: absolute;
  left: 50%;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ── MAIN ──────────────────────────────────────────── */
#main {
  position: relative;
  z-index: 1;
}

/* ── SECTIONS ──────────────────────────────────────── */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 32px;
  position: relative;
}

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

.section-header {
  margin-bottom: 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1.15;
}

.branch-label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-2);
  opacity: .5;
  white-space: nowrap;
  display: none;
}

/* ── BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .25s var(--transition);
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .12);
  opacity: 0;
  transition: opacity .2s;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44, 95, 46, .3);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--surface-3);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-sm {
  padding: 9px 18px;
  font-size: .8rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── REVEAL ANIMATION ──────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--transition), transform .6s var(--transition);
  transition-delay: var(--d, 0s);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  background: var(--surface);
}

.hero-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 80px;
}

.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-photo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--accent-3);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.04);
    opacity: .6;
  }
}

.hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  box-shadow: var(--shadow-xl);
  border: 4px solid var(--surface);
}

.hero-text {
  flex: 1;
}

.hero-eyebrow {
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: .04em;
  margin-bottom: 8px;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-name span {
  color: var(--accent);
}

.hero-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .85rem;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-ghost);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 22px;
  height: 22px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 1;
  }

  50% {
    transform: rotate(45deg) translateY(5px);
    opacity: .4;
  }
}

.desktop-only {
  display: inline;
}

/* ══════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════ */
.about-section {
  background: var(--surface-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--ink);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
  transition: all .25s var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-3);
}

.stat-num {
  display: block;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: .03em;
}

/* ══════════════════════════════════════════════════════
   education
══════════════════════════════════════════════════════ */
.education-section {
  padding: 120px 20px;
  background: #ffffff;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 100px;
  color: #111827;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: auto;
}

/* Main Trunk */

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom,
      #2c5f2e,
      #4f8a52,
      #2c5f2e);
  border-radius: 100px;
  transform:translateX(-50%) scaleY(0);
  transform-origin: top;
  box-shadow: 0 0 20px rgba(44, 95, 46, .15);
}

.timeline.line-visible::before {
  animation: growLine 2s ease forwards;
}

@keyframes growLine {
  to {
    transform: translateX(-50%) scaleY(1);
  }
}

.timeline-item {
  position: relative;
  width: 50%;
  margin: 100px 0;
}

.timeline-item.left {
  left: 0;
  padding-right: 90px;
}

.timeline-item.right {
  left: 50%;
  padding-left: 90px;
}

/* Branches */
.branch {
  position: absolute;
  top: 50%;
  height: 3px;
  background: linear-gradient(to bottom,
      #2c5f2e,
      #4f8a52,
      #2c5f2e);
  transform: scaleX(0);
}

.left .branch {
  width: 90px;
  right: 0;
  transform-origin: right;
}

.right .branch {
  width: 90px;
  left: 0;
  transform-origin: left;
}

.branch.visible {
  animation: drawBranch .8s ease forwards;
}

@keyframes drawBranch {
  to {
    transform: scaleX(1);
  }
}

.timeline-node{
    position:absolute;
    left:50%;
    top:50%;
    width:18px;
    height:18px;
    border-radius:50%;
    background:#2c5f2e;
    transform: translate(-50%,-50%) scale(0);
    z-index:5;
    box-shadow:
        0 0 0 6px rgba(44,95,46,.12),
        0 0 25px rgba(44,95,46,.25);
}

.timeline-node.active{
    animation:popNode .6s ease forwards;
}

@keyframes popNode{

0%{
    transform: translate(-50%,-50%) scale(0);
}

80%{
    transform:translate(-50%,-50%) scale(1.2);
}

100%{
    transform:translate(-50%,-50%) scale(1);
}
}


/* Card */

.timeline-card {
  background: white;
  border-radius: 20px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow:0 10px 30px rgba(0, 0, 0, .08);
  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.timeline-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
}

/* Logo */
.logo-circle {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Text */
.timeline-content {
  flex: 1;
}

.timeline-content h3 {
  font-size: 1.3rem;
  color: #111827;
  margin-bottom: 6px;
}

.institution {
  color: #2c5f2e;
  font-weight: 600;
  margin-bottom: 8px;
}

.grade {
  color: #4b5563;
  margin-bottom: 12px;
  font-weight: 500;
}

.description {
  color: #6b7280;
  line-height: 1.7;
  font-size: .95rem;
  margin-bottom: 14px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badges span {
  background: #eef7ee;
  color: #2c5f2e;

  padding: 6px 12px;
  border-radius: 30px;
  font-size: .8rem;
  font-weight: 500;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);

  transition:
    opacity .8s ease,
    transform .8s ease;
}

/* Responsive */

@media(max-width:768px) {

  .timeline::before {
    left: 25px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;

    padding-left: 70px !important;
    padding-right: 0 !important;
  }

  .branch {
    width: 40px !important;
    left: 25px !important;
  }

  .timeline-card {
    flex-direction: row;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* ══════════════════════════════════════════════════════
   ARTHVARA
══════════════════════════════════════════════════════ */
.arthvara-section {
  background: var(--surface-2);

}

.arthvara-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 56px 64px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--accent-3);
  position: relative;
  overflow: hidden;
}

.arthvara-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent-3) 0%, transparent 70%);
  pointer-events: none;
}

.arthvara-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.arthvara-logo {
  width: 120px;
  height: 120px;
  color: var(--accent);
  background: var(--accent-3);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.arthvara-logo svg {
  width: 100%;
  height: 100%;
}

.arthvara-founder-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-3);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.chip-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

.arthvara-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.arthvara-content p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 14px;
}

.arthvara-content em {
  font-style: italic;
  color: var(--accent);
}

.arthvara-pillars {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--surface-3);
  transition: all .2s;
}

.pillar:hover {
  background: var(--accent-3);
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.pillar-icon {
  font-size: 1.1rem;
}

/* ══════════════════════════════════════════════════════
   TOOLKIT
══════════════════════════════════════════════════════ */
.toolkit-section {
  background: var(--surface);
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tool-node {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--surface-3);
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--transition);
  position: relative;
  overflow: hidden;
}

.tool-node::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--transition);
}

.tool-node:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-3);
}

.tool-node:hover::before {
  transform: scaleX(1);
}

.tool-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 10px;
  transition: background .2s;
}

.tool-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-node:hover .tool-icon-wrap {
  background: var(--accent-3);
}

.tool-node h4 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.tool-node p {
  font-size: .82rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tool-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.tool-tags span {
  font-size: .72rem;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--ink-muted);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--surface-3);
}

/* ══════════════════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════════════════ */
.projects-section {
  background: var(--surface-2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--surface-3);
  transition: all .35s var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.project-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--transition);
}

.project-card:hover .project-img-wrap img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}

.project-overlay span {
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255, 255, 255, .6);
  padding: 8px 20px;
  border-radius: 100px;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-body {
  padding: 28px;
}

.project-body h3 {
  font-family:'DM Sans', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.project-body>p {
  font-size: .875rem;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.project-tech {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.project-tech span {
  font-size: .72rem;
  font-weight: 600;
  background: var(--accent-3);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 100px;
}

.project-actions {
  display: flex;
  gap: 10px;
}

/* ══════════════════════════════════════════════════════
   CERTIFICATES
══════════════════════════════════════════════════════ */
.certificates-section {
  background: var(--surface);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.cert-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--surface-3);
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--transition);
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cert-img-wrap {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.cert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
  filter: brightness(.95);
}

.cert-card:hover .cert-img-wrap img {
  transform: scale(1.04);
  filter: brightness(1);
}

.cert-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, .2) 0%, transparent 60%);
  pointer-events: none;
}

.cert-body {
  padding: 22px 24px;
}

.cert-body h4 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.cert-body>p {
  font-size: .82rem;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.cert-btn {
  font-size: .78rem;
}

/* ══════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════ */
.contact-section {
  background: var(--surface-2);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.contact-item a,
.contact-item span {
  font-size: .9rem;
  color: var(--ink-soft);
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  transition: all .2s;
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}

.contact-form {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--surface-3);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--surface-2);
  border: 1.5px solid var(--surface-3);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9rem;
  color: var(--ink);
  outline: none;
  transition: all .2s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-2);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--ink-ghost);
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--accent-3);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  text-align: center;
}

.form-success.show {
  display: block;
  animation: fadeIn .3s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
  padding: 60px 32px 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-tree-tip {
  width: 80px;
  margin: 0 auto 32px;
  color: var(--accent-2);
  opacity: .6;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-motto {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.footer-brand span {
  font-size: .85rem;
  color: rgba(255, 255, 255, .45);
}

.footer-social {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .5);
  transition: all .2s;
}

.footer-social a svg {
  width: 17px;
  height: 17px;
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-copy {
  font-size: .78rem;
  color: rgba(255, 255, 255, .28);
  letter-spacing: .03em;
}

/* ══════════════════════════════════════════════════════
   TREE SVG STYLES
══════════════════════════════════════════════════════ */
.tree-trunk {
  stroke: var(--tree-color);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.5s ease;
  opacity: 0.18;
}

.tree-branch {
  stroke: var(--tree-color);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  opacity: 0;
  transition: stroke-dashoffset 0.6s ease, opacity 0.4s ease;
}

.tree-branch.visible {
  stroke-dashoffset: 0;
  opacity: 0.13;
}

.tree-node {
  fill: var(--accent-3);
  stroke: var(--accent);
  stroke-width: 1.5;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform-origin: center;
}

.tree-node.visible {
  opacity: 0.25;
}

.tree-leaf {
  fill: var(--accent-2);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.tree-leaf.visible {
  opacity: 0.12;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .toolkit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    gap: 48px;
  }

  .arthvara-card {
    grid-template-columns: 160px 1fr;
    gap: 40px;
    padding: 40px 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: flex;
  }

  .section {
    padding: 100px 20px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .hero-sub {
    margin: 0 auto 32px;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-photo {
    width: 160px;
    height: 160px;
  }

  .desktop-only {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Removed education-specific helpers */

  .arthvara-card {
    grid-template-columns: 1fr;
    padding: 32px 28px;
    text-align: center;
  }

  .arthvara-logo-wrap {
    align-items: center;
  }

  .arthvara-pillars {
    justify-content: center;
  }

  .toolkit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 28px 24px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .section-header {
    margin-bottom: 36px;
  }
}

@media (max-width: 480px) {
  .toolkit-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-name {
    font-size: 2.2rem;
  }

  .arthvara-card {
    padding: 24px 20px;
  }
}