/* =========================================================
   Amar Lahlouh — Portfolio Stylesheet
   Design tokens live at the top; everything else derives
   from them so the palette/type can be tuned in one place.
   ========================================================= */

:root {
  /* Color */
  --bg: #0a0e14;
  --bg-alt: #0d1219;
  --bg-elev: #121826;
  --bg-elev-2: #161e2d;
  --border: #212b3b;
  --border-soft: #1a2230;
  --text: #e7edf5;
  --text-muted: #93a1b5;
  --text-faint: #5c6b81;
  --accent: #4fd1c5;
  --accent-strong: #7ee8de;
  --accent-dim: rgba(79, 209, 197, 0.12);
  --danger: #f27272;
  --success: #58d68d;

  /* Type */
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* Layout */
  --container-w: 1160px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body,
h1,
h2,
h3,
h4,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

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

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

input,
textarea {
  font: inherit;
  color: inherit;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-accent {
  color: var(--accent);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.section {
  padding: 108px 0;
}

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

.section__title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 12px;
}

.section__subtitle {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
  font-size: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.test {
  display: flex;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--accent);
  color: #04231f;
}

.btn--primary:hover {
  background: var(--accent-strong);
}

.btn--outline {
  border-color: var(--border);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  color: var(--text-muted);
}

.btn--ghost:hover {
  color: var(--text);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.navbar.is-scrolled {
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border-soft);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.navbar__brand .dot {
  color: var(--accent);
}

.navbar__links {
  display: flex;
  gap: 30px;
  font-size: 0.92rem;
}

.nav-link {
  position: relative;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  width: 100%;
}

.navbar__cta {
  display: inline-flex;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  padding: 6px 0;
}

.hamburger span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}

.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.mobile-menu__links .nav-link {
  font-size: 1.3rem;
  font-family: var(--font-display);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 40%, transparent 90%);
}

.hero__glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(79, 209, 197, 0.16), transparent 70%);
  filter: blur(10px);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding-block: 60px;
}

.hero__title {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text);
  font-weight: 500;
  margin-bottom: 16px;
}

.hero__desc {
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 34px;
  font-size: 1.02rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero__meta {
  color: var(--text-faint);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(88, 214, 141, 0.18);
}

/* Terminal signature element */
.terminal {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal__dot--red {
  background: #ff6159;
}

.terminal__dot--yellow {
  background: #ffbd2e;
}

.terminal__dot--green {
  background: #27c93f;
}

.terminal__title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}

.terminal__body {
  padding: 24px;
  min-height: 260px;
}

.terminal__body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-muted);
}

.terminal__cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* code token colors, applied via JS spans */
.tok-key {
  color: #7ee8de;
}

.tok-str {
  color: #f2c98a;
}

.tok-punc {
  color: var(--text-faint);
}

.tok-kw {
  color: #c792ea;
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

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

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

.highlight-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.highlight-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.highlight-card__icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 14px;
}

.highlight-card__icon svg {
  width: 19px;
  height: 19px;
}

.highlight-card h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.highlight-card p {
  color: var(--text-muted);
  font-size: 0.86rem;
}

/* ---------- Skills ---------- */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.skill-card__title {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}

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

.chip {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-elev-2);
}

.chip--tech {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--accent-dim);
}

/* ---------- Featured project ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.badge--featured {
  background: var(--accent);
  color: #04231f;
  font-weight: 700;
}

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.featured-card__media {
  position: relative;
  border-right: 1px solid var(--border);
}

.featured-card__media .badge--featured {
  position: absolute;
  top: 18px;
  left: 18px;
}

.featured-card__content {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.featured-card__title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.featured-card__stack-line {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.featured-card__desc {
  color: var(--text-muted);
  margin-bottom: 22px;
}

.featured-card__actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.img-placeholder {
  height: 100%;
  min-height: 280px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-faint);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 14px),
    var(--bg-elev-2);
  text-align: center;
  padding: 20px;
}

.img-placeholder svg {
  width: 34px;
  height: 34px;
  opacity: 0.6;
}

.img-placeholder span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.img-placeholder--sm {
  min-height: 180px;
}

/* ---------- Project details modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 720px;
  width: 100%;
  max-height: 84vh;
  overflow-y: auto;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.modal__close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.modal__title {
  font-size: 1.5rem;
  margin: 14px 0 6px;
}

.modal__stack-line {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 24px;
}

.modal__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 26px;
}

.modal__col h4 {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 10px;
  margin-top: 18px;
}

.modal__col h4:first-child {
  margin-top: 0;
}

.modal__col ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.modal__col li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}

.modal__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

.modal__actions {
  margin-top: 26px;
}

/* ---------- Projects grid ---------- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.project-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.project-card__title {
  font-size: 1.08rem;
}

.project-card__desc {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.project-card__actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  padding-top: 6px;
  flex-wrap: wrap;
}

/* ---------- Education ---------- */
.education-card {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  max-width: 620px;
}

.education-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.education-card__icon svg {
  width: 26px;
  height: 26px;
}

.education-card__school {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.education-card__degree {
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- Certificates ---------- */
.certs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cert-card {
  background: var(--bg-elev);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.cert-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.cert-card__icon svg {
  width: 21px;
  height: 21px;
}

.cert-card__title {
  font-size: 1.02rem;
}

.cert-card__org {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.cert-card__date {
  color: var(--text-faint);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.cert-card__desc {
  color: var(--text-muted);
  font-size: 0.86rem;
  min-height: 0;
}

.cert-card .btn {
  align-self: flex-start;
  margin-top: 12px;
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact__item:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact__item span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact__item strong {
  font-size: 0.88rem;
}

.contact__item span span {
  color: var(--text-muted);
  font-size: 0.86rem;
  word-break: break-all;
}

.contact__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__icon svg {
  width: 18px;
  height: 18px;
}

.contact-form {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-row label {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.2s var(--ease);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.form-row input.is-invalid,
.form-row textarea.is-invalid {
  border-color: var(--danger);
}

.form-error {
  font-size: 0.78rem;
  color: var(--danger);
  min-height: 1em;
}

.form-success {
  font-size: 0.9rem;
  color: var(--success);
  text-align: center;
  min-height: 1.2em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.form-success.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0;
  background: var(--bg-alt);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
}

.footer__role {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-top: 2px;
}

.footer__social {
  display: flex;
  gap: 14px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer__social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer__social svg {
  width: 17px;
  height: 17px;
}

.footer__copy {
  color: var(--text-faint);
  font-size: 0.82rem;
  width: 100%;
  text-align: center;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--delay, 0ms);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

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

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

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

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

  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card__media {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

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

@media (max-width: 720px) {

  .navbar__links,
  .navbar__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 76px 0;
  }

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

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

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

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

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

  .modal {
    padding: 28px 22px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

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