/* ============================================================
   Daniel Befekadu — Portfolio
   Design language: dark-green hero canvas, lime accent, white page
   ============================================================ */

:root {
  --green-950: #142b20;
  --green-900: #1e3b2e;
  --green-800: #274838;
  --green-700: #315745;
  --lime: #b8e62e;
  --lime-strong: #a4d61c;
  --ink: #1c2520;
  --ink-soft: #55645c;
  --paper: #ffffff;
  --paper-tint: #f4f7f2;
  --line: #e4eae2;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Jost", system-ui, sans-serif;
  --shadow-soft: 0 14px 40px rgba(20, 43, 32, 0.1);
  --shadow-card: 0 8px 24px rgba(20, 43, 32, 0.08);
  --header-h: 84px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
}

.accent { color: var(--lime); }
.accent-ink { color: var(--lime-strong); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent {
  background: var(--lime);
  color: var(--green-950);
}
.btn-accent:hover { box-shadow: 0 10px 24px rgba(184, 230, 46, 0.35); background: var(--lime-strong); }
.btn-outline {
  border-color: #cfd8d2;
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { border-color: var(--green-900); }
.btn-dark {
  background: var(--green-900);
  color: #fff;
}
.btn-dark:hover { background: var(--green-950); box-shadow: 0 10px 24px rgba(20, 43, 32, 0.25); }
.btn-ico { width: 18px; height: 18px; }

.link-plain {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #eaf3e6;
  position: relative;
}
.link-plain::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.link-plain:hover::after { transform: scaleX(1); }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20, 43, 32, 0.08); }

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}
.logo-mark { width: 36px; height: 36px; }
.logo em { color: var(--lime-strong); font-style: normal; }
.logo-light span { color: #fff; }

.main-nav ul {
  display: flex;
  gap: 34px;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
  transition: color 0.25s ease;
}
.nav-link::before {
  content: "";
  position: absolute;
  left: -8px; top: 50%;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0;
  transform: translateY(-50%) scale(0.5);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: -1;
}
.nav-link.active::before, .nav-link:hover::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-signin {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-signin:hover { color: var(--lime-strong); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--green-900);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Hero ============ */
.hero-section { padding: 8px 0 48px; }

.hero-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  background:
    radial-gradient(900px 460px at 85% -10%, rgba(184, 230, 46, 0.08), transparent 60%),
    linear-gradient(145deg, var(--green-900) 0%, var(--green-950) 100%);
  border-radius: var(--radius-lg);
  padding: 84px 72px 84px 118px;
  min-height: 560px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* decorative shapes */
.deco { position: absolute; pointer-events: none; }
.deco-blob-tl {
  width: 74px; top: 34px; left: 40px;
  animation: bob 6s ease-in-out infinite;
}
.deco-dash { inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.deco-plane {
  width: 44px; top: 25%; left: 52%;
  animation: bob 7s ease-in-out infinite reverse;
}
.deco-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  bottom: 44px; left: 28%;
}
.deco-leaf {
  width: 62px; bottom: 60px; right: 40%;
  animation: bob 5.5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* social rail */
.hero-social {
  position: absolute;
  left: 40px; top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 24px;
}
.hero-social::before {
  content: "";
  position: absolute;
  top: -46px; left: 50%;
  width: 1px; height: 52px;
  background: rgba(255, 255, 255, 0.25);
}
.hero-social a {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.25s ease, transform 0.25s ease;
}
.hero-social svg { width: 16px; height: 16px; fill: #93a89b; transition: fill 0.25s ease; }
.hero-social a:hover { background: var(--lime); transform: translateY(-2px); }
.hero-social a:hover svg { fill: var(--green-950); }

.hero-copy { position: relative; z-index: 2; }
.hero-hello {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 600;
  color: #f2f7ee;
  margin-bottom: 10px;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 22px;
}
.hero-text {
  color: #c3d2c6;
  max-width: 46ch;
  margin-bottom: 34px;
  font-size: 1.02rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* hero visual: terminal */
.hero-visual { position: relative; z-index: 2; }
.terminal {
  background: #0d1712;
  border: 1px solid rgba(184, 230, 46, 0.22);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  font-size: 0.83rem;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green { background: #28c840; }
.t-title {
  margin-left: 10px;
  color: #7d937f;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}
.terminal-body {
  padding: 18px 20px 22px;
  min-height: 240px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: #d7e6d3;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-body .t-prompt { color: var(--lime); }
.terminal-body .t-ok { color: #4ade80; }
.terminal-body .t-info { color: #8ab4f8; }
.terminal-body .t-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--lime);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.float-chips { position: absolute; inset: 0; pointer-events: none; }
.chip-float {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(184, 230, 46, 0.14);
  color: var(--lime);
  border: 1px solid rgba(184, 230, 46, 0.35);
  backdrop-filter: blur(4px);
  animation: bob 6s ease-in-out infinite;
}
.chip-float.c1 { top: -16px; right: 14%; animation-delay: 0.4s; }
.chip-float.c2 { bottom: -14px; left: 6%; animation-delay: 1.2s; }
.chip-float.c3 { top: 34%; right: -14px; animation-delay: 2s; }
.chip-float.c4 { bottom: 22%; right: 8%; animation-delay: 0.8s; }
.chip-float.c5 { top: -10px; left: 12%; animation-delay: 1.6s; }

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section-tint { background: var(--paper-tint); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-800);
  background: rgba(184, 230, 46, 0.28);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: start;
}
.about-text p { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.02rem; }
.about-text strong { color: var(--ink); }

.about-facts {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
}
.about-facts li {
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--lime);
  padding-left: 14px;
  font-weight: 500;
}
.about-facts li span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.about-facts a:hover { color: var(--lime-strong); }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat-card {
  background: var(--green-900);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:nth-child(even) { background: var(--paper-tint); }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
}
.stat-card:nth-child(even) .stat-num { color: var(--green-900); }
.stat-label { font-size: 0.88rem; color: #c3d2c6; font-weight: 500; }
.stat-card:nth-child(even) .stat-label { color: var(--ink-soft); }

/* ============ Experience timeline ============ */
.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--lime) 0 6px, transparent 6px 13px);
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -30px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--lime);
  border: 3px solid var(--paper-tint);
  box-shadow: 0 0 0 2px var(--lime);
}
.timeline-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--green-800);
  margin-bottom: 10px;
}
.timeline-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.timeline-card h3 { font-size: 1.25rem; }
.badge-current {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--lime);
  color: var(--green-950);
  padding: 4px 12px;
  border-radius: 999px;
}
.timeline-org {
  font-weight: 600;
  color: var(--lime-strong);
  margin: 4px 0 12px;
  font-size: 0.95rem;
}
.timeline-card > p:not(.timeline-org) { color: var(--ink-soft); font-size: 0.97rem; }

/* chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(184, 230, 46, 0.18);
  color: var(--green-800);
  border: 1px solid rgba(164, 214, 28, 0.4);
  transition: background 0.25s ease, color 0.25s ease;
}
.chip:hover { background: var(--lime); color: var(--green-950); }

/* ============ Education ============ */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 940px;
  margin: 0 auto;
}
.edu-card {
  position: relative;
  background: var(--green-900);
  border-radius: var(--radius-md);
  padding: 34px 32px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.edu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.edu-card::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(184, 230, 46, 0.1);
}
.edu-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--lime);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.edu-icon svg { width: 28px; height: 28px; fill: var(--green-950); }
.edu-years {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lime);
}
.edu-card h3 { color: #fff; font-size: 1.3rem; margin: 6px 0 4px; }
.edu-school { color: #c3d2c6; font-weight: 500; }
.edu-detail { color: #8fa796; font-size: 0.92rem; margin-top: 10px; }

/* ============ Skills ============ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skill-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(164, 214, 28, 0.5);
}
.skill-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--green-900);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: background 0.3s ease;
}
.skill-card:hover .skill-icon { background: var(--lime); }
.skill-icon svg { width: 26px; height: 26px; fill: var(--lime); transition: fill 0.3s ease; }
.skill-card:hover .skill-icon svg { fill: var(--green-950); }
.skill-card h3 { font-size: 1.15rem; margin-bottom: 6px; }

/* ============ Projects ============ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.project-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--green-900);
  display: grid;
  place-items: center;
}
.project-icon svg { width: 24px; height: 24px; fill: var(--lime); }
.project-date {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px 12px;
  border-radius: 999px;
}
.project-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.project-card p { color: var(--ink-soft); font-size: 0.94rem; flex: 1; }
.project-card .chip-row { margin-top: 18px; }
.project-card .chip { background: #fff; }

.timeline-org a:hover, .edu-school a:hover { text-decoration: underline; }

.project-card-cta {
  grid-column: 1 / -1;
  background:
    radial-gradient(300px 200px at 90% 0%, rgba(184, 230, 46, 0.16), transparent 60%),
    var(--green-900);
  border: 0;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 10px;
  padding: 44px 28px;
}
.project-card-cta h3 { color: #fff; font-size: 1.4rem; }
.project-card-cta p { color: #c3d2c6; flex: 0; }
.project-card-cta .btn { margin-top: 12px; }

/* ============ Certifications ============ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cert-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.cert-card::after {
  content: "↗";
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--lime-strong);
  opacity: 0.45;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cert-card:hover::after { opacity: 1; transform: translate(2px, -2px); }
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(164, 214, 28, 0.55);
}
.cert-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-800);
  background: rgba(184, 230, 46, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.cert-card h3 { font-size: 0.98rem; line-height: 1.35; margin-bottom: 4px; }
.cert-card p { font-size: 0.82rem; color: var(--ink-soft); }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: stretch;
}
.contact-panel {
  position: relative;
  background: linear-gradient(150deg, var(--green-900), var(--green-950));
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.deco-blob-contact {
  width: 90px;
  top: -26px; right: -20px;
  opacity: 0.85;
  animation: bob 7s ease-in-out infinite;
}
.contact-panel h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.contact-sub { color: #c3d2c6; margin-bottom: 30px; font-size: 0.96rem; }
.contact-list { display: flex; flex-direction: column; gap: 22px; flex: 1; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(184, 230, 46, 0.16);
  border: 1px solid rgba(184, 230, 46, 0.35);
  display: grid;
  place-items: center;
}
.ci-icon svg { width: 20px; height: 20px; fill: var(--lime); }
.contact-list strong {
  display: block;
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.92rem;
}
.contact-list div { color: #c3d2c6; font-size: 0.95rem; }
.contact-list a:hover { color: var(--lime); }
.contact-cv-btn { margin-top: 30px; align-self: flex-start; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.form-field label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--lime-strong);
  box-shadow: 0 0 0 3px rgba(184, 230, 46, 0.25);
}
.form-note {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green-800);
  min-height: 1.2em;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--green-950);
  color: #c3d2c6;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p { margin-top: 16px; max-width: 34ch; font-size: 0.95rem; color: #8fa796; }
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-nav ul, .footer-contact ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a { transition: color 0.25s ease; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--lime); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  font-size: 0.88rem;
}
.to-top {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.to-top svg { width: 20px; height: 20px; fill: var(--green-950); }
.to-top:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(184, 230, 46, 0.4); }

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.d-1 { transition-delay: 0.12s; }
.d-2 { transition-delay: 0.24s; }
.d-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .deco, .chip-float, .t-cursor { animation: none !important; }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .hero-card { padding: 70px 56px 70px 104px; }
  .skills-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-actions .btn-outline { display: none; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    box-shadow: 0 20px 40px rgba(20, 43, 32, 0.12);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    z-index: 99;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
  }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li:last-child { border-bottom: 0; }
  .nav-link { display: block; padding: 15px 6%; }
  .nav-link::before { display: none; }
  .nav-link.active { color: var(--lime-strong); }
  .nav-toggle { display: flex; }

  .hero-card {
    grid-template-columns: 1fr;
    padding: 64px 40px;
    gap: 56px;
  }
  .hero-social {
    position: static;
    transform: none;
    flex-direction: row;
    padding-top: 0;
    margin-top: 28px;
  }
  .hero-social::before { display: none; }
  .hero-visual { max-width: 560px; }
  .deco-plane { top: 44%; left: 78%; }
  .deco-leaf { display: none; }

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

@media (max-width: 620px) {
  .section { padding: 72px 0; }
  .hero-card { padding: 52px 26px; border-radius: 22px; }
  .hero-actions { flex-wrap: wrap; gap: 20px; }
  .nav-signin { display: none; }

  .skills-grid, .projects-grid, .edu-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .about-facts { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-panel, .contact-form { padding: 34px 26px; }
  .timeline { padding-left: 26px; }
  .timeline-card { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 14px; }
  .chip-float { display: none; }
}

@media (max-width: 400px) {
  .certs-grid, .about-stats { grid-template-columns: 1fr; }
}
