/* =========================================================
   ATHARVA A. DESHMUKH — PORTFOLIO
   Complete responsive stylesheet
   ========================================================= */

/* ================= VARIABLES ================= */

:root {
  --ink: #102822;
  --ink-soft: #52645e;
  --ink-faint: #84938e;

  --paper: #f5f7f3;
  --paper-deep: #e9eee9;

  --card: #ffffff;

  --sage: #5b8c76;
  --sage-light: #e7f0eb;

  --coral: #e3543e;
  --coral-deep: #bd3f2d;

  --gold: #c49442;

  --line: #dce4df;

  --radius: 18px;

  --shadow-sm: 0 8px 24px rgba(16, 40, 34, 0.07);

  --shadow-md: 0 18px 45px rgba(16, 40, 34, 0.11);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ================= RESET ================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

::selection {
  background: var(--coral);
  color: white;
}

/* ================= GLOBAL ================= */

.wrap {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.section {
  padding: 105px 0;
}

.section.alt {
  background: var(--paper-deep);
}

.section.tight {
  padding-top: 55px;
  padding-bottom: 55px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  margin-top: 12px;
  font-family: "Fraunces", serif;
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.lede {
  margin-top: 16px;
  color: var(--ink-soft);
  max-width: 650px;
  font-size: 1rem;
}

/* ================= EYEBROW ================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 0.67rem;
  font-weight: 600;

  letter-spacing: 0.13em;
  text-transform: uppercase;

  color: var(--coral-deep);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--coral);
}

/* ================= PROGRESS ================= */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;

  width: 0;
  height: 3px;

  background: var(--coral);

  z-index: 9999;
}

/* ================= NAVBAR ================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  z-index: 1000;

  background: rgba(245, 247, 243, 0.88);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-bottom: 1px solid transparent;

  transition:
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.nav.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(16, 40, 34, 0.06);
}

.nav-inner {
  width: min(1280px, calc(100% - 64px));
  margin: auto;

  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;

  font-weight: 700;
}

.brand-mark {
  width: 38px;
  height: 38px;

  border-radius: 11px;

  display: grid;
  place-items: center;

  background: var(--ink);
  color: white;

  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;

  box-shadow: var(--shadow-sm);
}

.brand-name {
  font-size: 0.91rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 23px;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);

  transition:
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.nav-links .nav-cta {
  padding: 10px 15px;

  background: var(--ink);
  color: white;

  border-radius: 999px;
}

.nav-toggle {
  display: none;

  width: 42px;
  height: 42px;

  border: 1px solid var(--line);
  border-radius: 10px;

  background: white;
  color: var(--ink);

  place-items: center;

  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
}

.mobile-menu {
  display: none;

  padding: 10px 20px 20px;

  background: var(--paper);

  border-top: 1px solid var(--line);
}

.mobile-menu.open {
  display: grid;
}

.mobile-menu a {
  padding: 13px 0;

  border-bottom: 1px solid var(--line);

  font-size: 0.9rem;
  font-weight: 600;
}

/* ================= HERO ================= */

.hero {
  padding: 155px 0 100px;

  min-height: 92vh;

  display: flex;
  align-items: center;

  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(91, 140, 118, 0.13),
      transparent 32%
    ),
    radial-gradient(circle at 10% 80%, rgba(227, 84, 62, 0.06), transparent 30%);
}

.hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(350px, 0.75fr);

  align-items: center;

  gap: 70px;
}

.hero-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.hero h1 {
  margin-top: 22px;

  max-width: 850px;

  font-family: "Fraunces", serif;

  font-size: clamp(3rem, 6vw, 5.5rem);

  line-height: 0.98;

  letter-spacing: -0.055em;
}

.hero h1 span {
  display: block;
  color: var(--coral);
}

.role {
  margin-top: 20px;

  font-family: "IBM Plex Mono", monospace;

  font-size: 0.84rem;
  font-weight: 600;

  color: var(--sage);

  letter-spacing: 0.03em;
}

.tagline {
  max-width: 690px;

  margin-top: 18px;

  color: var(--ink-soft);

  font-size: 1.02rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;

  align-items: center;

  gap: 12px;

  margin-top: 28px;
}

/* ================= BUTTONS ================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  min-height: 48px;

  padding: 0 20px;

  border-radius: 999px;

  font-size: 0.82rem;
  font-weight: 700;

  border: 1px solid transparent;

  cursor: pointer;

  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--ink);
  color: white;

  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

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

.btn-ghost:hover {
  background: white;
}

.btn-link {
  padding-inline: 8px;
  color: var(--ink-soft);
}

/* ================= HERO VITALS ================= */

.vitals {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 38px;
}

.vital-chip {
  min-width: 185px;

  padding: 13px 15px;

  background: rgba(255, 255, 255, 0.7);

  border: 1px solid var(--line);

  border-radius: 13px;

  box-shadow: 0 5px 20px rgba(16, 40, 34, 0.04);
}

.v-label {
  display: block;

  font-family: "IBM Plex Mono", monospace;

  font-size: 0.59rem;

  letter-spacing: 0.1em;

  color: var(--ink-faint);

  margin-bottom: 3px;
}

.v-value {
  display: block;

  font-size: 0.76rem;

  font-weight: 700;

  line-height: 1.35;
}

/* ================= HERO VISUAL ================= */

.hero-visual {
  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;
}

.hero-orbit {
  position: relative;

  width: min(390px, 85vw);
  aspect-ratio: 1;

  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;

  border: 1px solid var(--line);

  border-radius: 50%;
}

.ring-one {
  width: 76%;
  height: 76%;
}

.ring-two {
  width: 100%;
  height: 100%;

  border-style: dashed;
}

.hero-center {
  width: 150px;
  height: 150px;

  border-radius: 50%;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  background: var(--ink);

  color: white;

  box-shadow:
    0 0 0 14px rgba(91, 140, 118, 0.09),
    0 25px 60px rgba(16, 40, 34, 0.2);
}

.hero-initials {
  font-family: "Fraunces", serif;

  font-size: 3rem;
  font-weight: 700;

  line-height: 1;
}

.hero-center-label {
  margin-top: 8px;

  font-family: "IBM Plex Mono", monospace;

  font-size: 0.54rem;

  letter-spacing: 0.12em;

  color: #b8cbc2;
}

.orbit-dot {
  position: absolute;

  width: 13px;
  height: 13px;

  border-radius: 50%;

  background: var(--coral);

  box-shadow: 0 0 0 7px rgba(227, 84, 62, 0.12);
}

.dot-one {
  top: 12%;
  right: 20%;
}

.dot-two {
  bottom: 16%;
  left: 17%;

  background: var(--sage);
}

.dot-three {
  right: 3%;
  bottom: 42%;

  background: var(--gold);
}

.arc-caption {
  margin-top: 20px;

  max-width: 350px;

  text-align: center;

  color: var(--ink-faint);

  font-size: 0.77rem;
}

/* ================= ABOUT ================= */

.about-grid {
  display: grid;

  grid-template-columns: 330px 1fr;

  gap: 80px;

  align-items: start;
}

.avatar-wrap {
  position: sticky;
  top: 110px;
}

.avatar-frame {
  width: 230px;
  height: 230px;

  margin: auto;

  border-radius: 50%;

  display: grid;
  place-items: center;

  position: relative;

  background: radial-gradient(circle, var(--sage-light), transparent 68%);

  border: 1px solid var(--line);

  box-shadow: var(--shadow-md);
}

.avatar-frame::before {
  content: "";

  position: absolute;
  inset: 12px;

  border-radius: 50%;

  border: 2px dashed var(--sage);
}

.avatar-glow {
  position: absolute;

  width: 100px;
  height: 100px;

  border-radius: 50%;

  background: var(--coral);

  filter: blur(50px);

  opacity: 0.14;
}

.avatar-initials {
  position: relative;

  font-family: "Fraunces", serif;

  font-size: 4rem;

  font-weight: 700;

  color: var(--ink);
}

.quick-facts {
  margin-top: 28px;

  list-style: none;

  border-top: 1px solid var(--line);
}

.quick-facts li {
  display: flex;
  flex-direction: column;

  gap: 3px;

  padding: 14px 0;

  border-bottom: 1px solid var(--line);
}

.qf-label {
  font-family: "IBM Plex Mono", monospace;

  font-size: 0.6rem;

  text-transform: uppercase;

  letter-spacing: 0.1em;

  color: var(--ink-faint);
}

.qf-value {
  font-size: 0.79rem;

  font-weight: 700;
}

.about-text {
  display: grid;

  gap: 28px;
}

.about-block {
  padding-bottom: 25px;

  border-bottom: 1px dashed var(--line);
}

.about-block:last-child {
  border-bottom: none;
}

.about-block h3 {
  font-family: "Fraunces", serif;

  font-size: 1.35rem;

  margin-bottom: 9px;
}

.about-block p {
  color: var(--ink-soft);

  font-size: 0.93rem;

  line-height: 1.8;
}

/* ================= SKILLS ================= */

.skills-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 18px;
}

.skill-card {
  background: var(--card);

  border: 1px solid var(--line);

  border-radius: var(--radius);

  padding: 25px;

  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.skill-card:hover {
  transform: translateY(-7px);

  box-shadow: var(--shadow-md);
}

.skill-icon {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  background: var(--sage-light);

  font-size: 1.35rem;

  margin-bottom: 18px;
}

.skill-card h3 {
  font-size: 1rem;

  margin-bottom: 16px;
}

.chip-list {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;
}

.chip {
  display: inline-flex;

  align-items: center;

  padding: 6px 9px;

  border-radius: 999px;

  background: var(--paper);

  border: 1px solid var(--line);

  color: var(--ink-soft);

  font-size: 0.65rem;

  font-weight: 600;
}

.chip.soft {
  background: #fbf4ea;
}

/* ================= PROJECTS ================= */

.projects-note {
  display: flex;

  align-items: center;

  gap: 13px;

  padding: 15px 18px;

  margin-bottom: 30px;

  border: 1px dashed var(--line);

  border-radius: 13px;

  background: rgba(255, 255, 255, 0.55);

  color: var(--ink-soft);

  font-size: 0.8rem;
}

.note-icon {
  width: 31px;
  height: 31px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--sage-light);

  color: var(--sage);
}

/* Featured DHRISHTI */

.featured-project {
  position: relative;

  padding: 30px;

  border: 1px solid var(--coral);

  border-radius: 20px;

  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);

  box-shadow: 0 15px 45px rgba(227, 84, 62, 0.08);
}

.featured-label {
  display: inline-block;

  margin-bottom: 12px;

  padding: 5px 10px;

  border-radius: 999px;

  background: #fbe3dc;

  color: var(--coral-deep);

  font-family: "IBM Plex Mono", monospace;

  font-size: 0.58rem;

  font-weight: 600;

  letter-spacing: 0.1em;
}

.project-top {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 15px;

  flex-wrap: wrap;
}

.project-card h3 {
  font-size: 1.12rem;

  line-height: 1.25;
}

.featured-project h3 {
  font-family: "Fraunces", serif;

  font-size: 1.65rem;
}

.project-subtitle {
  margin-top: 7px;

  color: var(--coral-deep);

  font-size: 0.79rem;

  font-weight: 700;
}

.desc {
  margin-top: 13px;

  color: var(--ink-soft);

  font-size: 0.83rem;

  line-height: 1.7;
}

.tag-row {
  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-top: 17px;
}

.tag {
  padding: 5px 8px;

  border-radius: 999px;

  background: var(--sage-light);

  color: var(--sage);

  font-family: "IBM Plex Mono", monospace;

  font-size: 0.58rem;

  font-weight: 600;
}

.badge {
  display: inline-flex;

  align-items: center;

  padding: 6px 10px;

  border-radius: 999px;

  background: var(--sage-light);

  color: var(--sage);

  font-family: "IBM Plex Mono", monospace;

  font-size: 0.57rem;

  font-weight: 600;

  white-space: nowrap;
}

.badge.winner {
  background: #fbe3dc;

  color: var(--coral-deep);
}

.outcome {
  display: flex;

  align-items: flex-start;

  gap: 9px;

  margin-top: 17px;

  color: var(--ink-soft);

  font-size: 0.74rem;

  line-height: 1.55;
}

.check {
  width: 20px;
  height: 20px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--sage-light);

  color: var(--sage);

  font-size: 0.68rem;

  font-weight: 800;
}

.featured-bottom {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-top: 23px;

  padding-top: 17px;

  border-top: 1px dashed var(--line);
}

/* IMPORTANT SPACING FIX */

.project-section-gap {
  height: 30px;
}

/* Project Grid */

.projects-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 22px;

  align-items: stretch;
}

.projects-grid .project-card {
  min-width: 0;

  height: 100%;
}

/* Normal project cards */

.projects-grid .project-card {
  display: flex;

  flex-direction: column;

  padding: 20px;

  background: var(--card);

  border: 1px solid var(--line);

  border-radius: var(--radius);

  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.projects-grid .project-card:hover {
  transform: translateY(-6px);

  box-shadow: var(--shadow-md);

  border-color: #cbd8d1;
}

.projects-grid .project-card .project-actions {
  margin-top: auto;
}

/* Project images */

/* ================= PROJECT IMAGE FRAME ================= */

.project-image {
  height: 190px;

  overflow: hidden;

  border-radius: 13px;

  margin-bottom: 20px;

  background: var(--ink);

  border: 1px solid var(--line);

  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;

  /*
       Keep the top of the screenshot visible.
       This prevents "Atharva A. Deshmukh"
       from being cropped out.
    */
  object-fit: cover;
  object-position: center top;

  display: block;

  transition: transform 0.5s var(--ease);
}

.project-card:hover .project-image img {
  transform: scale(1.02);
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

/* Python Tools */

.python-tools-card {
  background: linear-gradient(145deg, #ffffff, #f0f7f2) !important;
}

.tools-icon {
  width: 50px;
  height: 50px;

  display: grid;
  place-items: center;

  margin-bottom: 16px;

  border-radius: 14px;

  background: var(--ink);

  font-size: 1.45rem;
}

/* Project actions */

.project-actions {
  margin-top: 18px;

  padding-top: 14px;

  border-top: 1px dashed var(--line);
}

.project-link {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  color: var(--coral-deep);

  font-size: 0.76rem;

  font-weight: 700;
}

.project-link span {
  transition: transform 0.25s var(--ease);
}

.project-link:hover span {
  transform: translate(3px, -3px);
}

/* 30+ card */

.all-projects-card {
  position: relative;

  overflow: hidden;

  display: grid;

  grid-template-columns: 130px 1fr;

  gap: 30px;

  align-items: center;

  margin-top: 30px;

  padding: 30px;

  border-radius: 20px;

  background: var(--ink);

  color: white;

  box-shadow: var(--shadow-md);
}

.all-projects-number {
  font-family: "Fraunces", serif;

  font-size: 5rem;

  font-weight: 700;

  line-height: 1;

  color: var(--coral);
}

.all-projects-content .eyebrow {
  color: #a7c8b7;
}

.all-projects-content .eyebrow::before {
  background: var(--coral);
}

.all-projects-content h3 {
  margin-top: 8px;

  font-family: "Fraunces", serif;

  font-size: 1.7rem;
}

.all-projects-content p {
  max-width: 720px;

  margin-top: 9px;

  color: #b9cbc3;

  font-size: 0.84rem;

  line-height: 1.7;
}

.all-projects-content .btn {
  margin-top: 19px;
}

/* ================= EXPERIENCE ================= */

.experience-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 22px;
}

.experience-card {
  padding: 30px;

  background: var(--card);

  border: 1px solid var(--line);

  border-radius: var(--radius);

  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.experience-card:hover {
  transform: translateY(-6px);

  box-shadow: var(--shadow-md);
}

.current-card {
  border-color: var(--sage);
}

.award-card {
  border-color: var(--coral);
}

.experience-kicker {
  display: block;

  margin-bottom: 9px;

  color: var(--coral-deep);

  font-family: "IBM Plex Mono", monospace;

  font-size: 0.61rem;

  font-weight: 600;

  letter-spacing: 0.1em;
}

.experience-card h3 {
  font-family: "Fraunces", serif;

  font-size: 1.45rem;
}

.experience-status {
  display: inline-flex;

  margin-top: 10px;

  padding: 5px 9px;

  border-radius: 999px;

  background: var(--sage-light);

  color: var(--sage);

  font-family: "IBM Plex Mono", monospace;

  font-size: 0.58rem;

  font-weight: 600;
}

.experience-status.award {
  background: #fbe3dc;

  color: var(--coral-deep);
}

.experience-card p {
  margin-top: 16px;

  color: var(--ink-soft);

  font-size: 0.86rem;

  line-height: 1.75;
}

/* ================= CERTIFICATIONS ================= */

.cert-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 18px;
}

.cert-card {
  min-height: 190px;

  padding: 25px 20px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  background: var(--card);

  border: 1px solid var(--line);

  border-radius: var(--radius);

  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.cert-card:hover {
  transform: translateY(-6px);

  box-shadow: var(--shadow-md);
}

.cert-icon {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #fbf1dd;

  font-size: 1.25rem;

  margin-bottom: 15px;
}

.cert-card h4 {
  font-size: 0.91rem;

  line-height: 1.35;
}

.cert-status {
  margin-top: 9px;

  color: var(--sage);

  font-family: "IBM Plex Mono", monospace;

  font-size: 0.59rem;

  font-weight: 600;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.cert-status.pursuing {
  color: var(--gold);
}

.achievement-card {
  border-color: var(--coral);
}

/* ================= TIMELINE ================= */

.timeline {
  position: relative;

  max-width: 850px;
}

.timeline::before {
  content: "";

  position: absolute;

  left: 21px;

  top: 8px;
  bottom: 8px;

  width: 2px;

  background: var(--line);
}

.t-item {
  position: relative;

  padding-left: 62px;

  margin-bottom: 34px;
}

.t-item:last-child {
  margin-bottom: 0;
}

.t-node {
  position: absolute;

  left: 0;
  top: 0;

  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: white;

  border: 2px solid var(--sage);

  color: var(--sage);

  z-index: 2;

  font-size: 0.8rem;

  font-weight: 800;
}

.t-item.current .t-node {
  background: var(--coral);

  border-color: var(--coral);

  color: white;

  box-shadow: 0 0 0 6px rgba(227, 84, 62, 0.13);
}

.t-item.upcoming .t-node {
  background: transparent;

  border-style: dashed;

  color: var(--ink-faint);

  border-color: var(--ink-faint);
}

.t-card {
  padding: 20px 22px;

  background: var(--card);

  border: 1px solid var(--line);

  border-radius: 15px;
}

.t-item.current .t-card {
  border-color: var(--coral);

  box-shadow: var(--shadow-sm);
}

.t-item.upcoming .t-card {
  background: transparent;

  border-style: dashed;
}

.t-top-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  flex-wrap: wrap;
}

.t-card h4 {
  font-size: 0.98rem;
}

.t-status {
  padding: 5px 9px;

  border-radius: 999px;

  background: var(--sage-light);

  color: var(--sage);

  font-family: "IBM Plex Mono", monospace;

  font-size: 0.57rem;

  font-weight: 600;

  text-transform: uppercase;
}

.t-item.current .t-status {
  background: #fbe3dc;

  color: var(--coral-deep);
}

.t-item.upcoming .t-status {
  background: var(--paper-deep);

  color: var(--ink-faint);
}

.t-card p {
  margin-top: 8px;

  color: var(--ink-soft);

  font-size: 0.83rem;

  line-height: 1.7;
}

/* ================= CONTACT ================= */

.contact-section-wrapper {
  padding-top: 70px;
  padding-bottom: 70px;
}

.contact-section {
  margin-inline: 32px;

  padding: 75px 55px;

  border-radius: 30px;

  background: var(--ink);

  color: white;
}

.contact-inner {
  max-width: 1100px;

  margin: auto;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 60px;

  align-items: center;
}

.contact-section .eyebrow {
  color: #a7c8b7;
}

.contact-section .eyebrow::before {
  background: var(--coral);
}

.contact-section h2 {
  margin-top: 13px;

  font-family: "Fraunces", serif;

  font-size: clamp(2.4rem, 4vw, 3.5rem);

  line-height: 1;
}

.contact-section .lede {
  color: #b9cbc3;

  margin-top: 16px;
}

.contact-list {
  display: flex;

  flex-direction: column;

  gap: 13px;
}

.contact-row {
  display: flex;

  align-items: center;

  gap: 14px;

  padding: 15px;

  border: 1px solid rgba(255, 255, 255, 0.13);

  border-radius: 14px;

  transition:
    background 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.contact-row:hover {
  background: rgba(255, 255, 255, 0.06);

  transform: translateX(5px);
}

.c-icon {
  width: 40px;
  height: 40px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.08);

  font-size: 0.75rem;

  font-weight: 700;
}

.c-text {
  display: flex;

  flex-direction: column;

  gap: 2px;

  min-width: 0;
}

.c-label {
  color: #8fb3a2;

  font-family: "IBM Plex Mono", monospace;

  font-size: 0.58rem;

  text-transform: uppercase;

  letter-spacing: 0.1em;
}

.c-value {
  color: white;

  font-size: 0.82rem;

  font-weight: 600;

  overflow-wrap: anywhere;
}

.contact-cta {
  margin-top: 26px;
}

/* ================= FOOTER ================= */

footer {
  padding: 45px 0 35px;

  text-align: center;
}

.footer-inner {
  width: min(1180px, calc(100% - 64px));

  margin: auto;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 25px;
}

.footer-name {
  margin-bottom: 4px;

  color: var(--ink) !important;

  font-family: "Fraunces", serif;

  font-size: 1rem !important;

  font-weight: 700;
}

footer p {
  color: var(--ink-faint);

  font-size: 0.78rem;
}

.footer-socials {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 18px;
}

.footer-socials a {
  color: var(--ink-soft);

  font-size: 0.78rem;

  font-weight: 700;

  transition:
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.footer-socials a:hover {
  color: var(--coral-deep);

  transform: translateY(-2px);
}

.back-top {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  margin-top: 20px;

  padding: 0;

  border: 0;

  background: transparent;

  color: var(--ink);

  font-size: 0.78rem;

  font-weight: 700;

  cursor: pointer;
}

/* ================= REVEAL ANIMATION ================= */

.reveal {
  opacity: 0;

  transform: translateY(22px);

  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.in {
  opacity: 1;

  transform: translateY(0);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid {
    gap: 45px;
  }

  .nav-links {
    gap: 14px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .hero {
    padding-top: 125px;
  }

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

  .hero-visual {
    order: -1;
  }

  .hero-orbit {
    width: 300px;
  }

  .about-grid {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .avatar-wrap {
    position: static;

    max-width: 360px;

    margin: auto;
  }

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

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

  .contact-inner {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .contact-section {
    margin-inline: 18px;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 40px, 1180px);
  }

  .nav-inner {
    width: calc(100% - 40px);
  }

  .section {
    padding: 75px 0;
  }

  .hero {
    min-height: auto;

    padding: 125px 0 75px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .hero-cta {
    flex-direction: column;

    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .vitals {
    flex-direction: column;
  }

  .vital-chip {
    width: 100%;
  }

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

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

  .projects-note {
    align-items: flex-start;
  }

  .featured-project {
    padding: 23px;
  }

  .featured-bottom {
    flex-direction: column;

    align-items: flex-start;
  }

  .all-projects-card {
    grid-template-columns: 1fr;

    text-align: center;

    padding: 25px;
  }

  .all-projects-number {
    font-size: 4rem;
  }

  .all-projects-content .btn {
    width: 100%;
  }

  .contact-section {
    padding: 50px 25px;

    border-radius: 23px;
  }

  .footer-inner {
    width: calc(100% - 40px);

    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .brand-name {
    font-size: 0.78rem;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .hero-orbit {
    width: 250px;
  }

  .hero-center {
    width: 120px;
    height: 120px;
  }

  .hero-initials {
    font-size: 2.4rem;
  }

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

  .t-item {
    padding-left: 54px;
  }

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

  .t-node {
    width: 38px;
    height: 38px;
  }
}

/* ================= ACCESSIBILITY ================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;

    transform: none;
  }
}


/* Clickable certificate cards — preserve the existing card design */
.cert-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.cert-card-link:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 4px;
}


/* Certificate badge images: preserve the existing card design */
.cert-icon.cert-image-icon {
  width: 88px;
  height: 88px;
  padding: 5px;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
}
.cert-icon.cert-image-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: inherit;
}


.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


.avatar-frame .brand-mark {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
}

.avatar-frame .brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.8);
}



.cert-card .cert-icon {
    width: 90px !important;
    height: 90px !important;
    margin: 0 auto 18px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

.cert-card .cert-icon img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    transform: none !important;
}
