
:root {
  --bg: #07110d;
  --bg-soft: #0a1711;
  --surface: rgba(15, 31, 23, .78);
  --surface-solid: #0e1e16;
  --surface-hover: #12271c;
  --text: #edf7f1;
  --muted: #9fb5a8;
  --accent: #37f28a;
  --accent-2: #79ffb5;
  --accent-soft: rgba(55, 242, 138, .12);
  --border: rgba(143, 255, 193, .14);
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --nav-height: 82px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html[data-theme="light"] {
  --bg: #eef7f1;
  --bg-soft: #e4f1e8;
  --surface: rgba(255, 255, 255, .84);
  --surface-solid: #ffffff;
  --surface-hover: #f5fbf7;
  --text: #102018;
  --muted: #5e7467;
  --accent: #0fbf63;
  --accent-2: #087b42;
  --accent-soft: rgba(15, 191, 99, .1);
  --border: rgba(11, 91, 48, .14);
  --shadow: 0 22px 60px rgba(17, 57, 34, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  transition: color .3s ease, background-color .3s ease;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: #04100a;
  background: var(--accent);
}

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

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

button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(55, 242, 138, .35);
  outline-offset: 3px;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  width: 440px;
  height: 440px;
  z-index: -2;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  opacity: .13;
  background: var(--accent);
}

.ambient-one {
  top: -180px;
  right: -130px;
}

.ambient-two {
  bottom: 4%;
  left: -220px;
  opacity: .08;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #06100c;
  transition: opacity .45s ease, visibility .45s ease;
}

.page-loader.hidden {
  visibility: hidden;
  opacity: 0;
}

.loader-mark {
  font: 700 2rem/1 "Space Grotesk", sans-serif;
  letter-spacing: -.05em;
  animation: loaderPulse .9s ease-in-out infinite alternate;
}

.loader-mark span,
.navbar-brand span,
.display-title span,
.section-heading h2 span,
.contact-shell h2 span {
  color: var(--accent);
}

@keyframes loaderPulse {
  to { transform: translateY(-8px); opacity: .45; }
}

.section-pad {
  position: relative;
  padding: 118px 0;
}

.section-muted {
  background: linear-gradient(180deg, transparent, rgba(55, 242, 138, .025) 30%, rgba(55, 242, 138, .025) 70%, transparent);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 52px;
}

.section-kicker,
.eyebrow {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-heading h2,
.contact-shell h2 {
  margin: 0;
  font: 700 clamp(2rem, 4vw, 3.75rem)/1.12 "Space Grotesk", sans-serif;
  letter-spacing: -.05em;
}

.surface-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color .3s ease, transform .3s ease, background-color .3s ease;
}

.surface-card::before {
  position: absolute;
  top: 0;
  left: 16%;
  width: 68%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(121, 255, 181, .55), transparent);
}

.surface-card:hover {
  border-color: rgba(55, 242, 138, .3);
}

#mainNav {
  min-height: var(--nav-height);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

#mainNav.scrolled {
  border-color: var(--border);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
  backdrop-filter: blur(20px);
}

.navbar-brand {
  color: var(--text);
  font: 700 1.45rem/1 "Space Grotesk", sans-serif;
  letter-spacing: -.04em;
}

.navbar-brand:hover {
  color: var(--text);
}

.navbar-nav .nav-link {
  position: relative;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
  padding: .75rem .7rem !important;
  transition: color .2s ease;
}

.navbar-nav .nav-link::after {
  position: absolute;
  right: .7rem;
  bottom: .45rem;
  left: .7rem;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  border-radius: 10px;
  background: var(--accent);
  transition: transform .25s ease;
}

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

.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.icon-btn {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.navbar-toggler {
  box-shadow: none !important;
}

.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 90px;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .9rem;
  color: var(--accent-2);
  border: 1px solid rgba(55, 242, 138, .24);
  border-radius: 99px;
  background: var(--accent-soft);
  font-size: .82rem;
  font-weight: 700;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse-dot::after {
  position: absolute;
  inset: -5px;
  content: "";
  border: 1px solid var(--accent);
  border-radius: inherit;
  animation: pulse 1.7s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(.45); opacity: .75; }
  100% { transform: scale(1.5); opacity: 0; }
}

.display-title {
  margin: 0;
  font: 800 clamp(3.6rem, 9vw, 7.6rem)/.9 "Space Grotesk", sans-serif;
  letter-spacing: -.075em;
}

.hero-role {
  min-height: 1.3em;
  color: var(--text);
  font: 600 clamp(1.55rem, 3.3vw, 2.65rem)/1.25 "Space Grotesk", sans-serif;
  letter-spacing: -.035em;
}

.hero-role span:first-child {
  color: var(--accent-2);
}

.typing-cursor {
  margin-left: 3px;
  color: var(--accent);
  animation: blink .75s infinite;
}

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

.hero-lead {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  border-radius: 14px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

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

.btn-accent {
  color: #04100a;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(55, 242, 138, .16);
}

.btn-accent:hover,
.btn-accent:focus {
  color: #04100a;
  border-color: var(--accent-2);
  background: var(--accent-2);
  box-shadow: 0 15px 34px rgba(55, 242, 138, .24);
}

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

.btn-outline-custom:hover,
.btn-outline-custom:focus {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.social-link {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  font-size: 1.05rem;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

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

.code-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(3, 11, 7, .85);
  box-shadow: 0 35px 90px rgba(0, 0, 0, .34);
  transform: perspective(1100px) rotateY(-4deg) rotateX(2deg);
  transition: transform .4s ease;
}

.code-window:hover {
  transform: perspective(1100px) rotateY(0) rotateX(0) translateY(-6px);
}

html[data-theme="light"] .code-window {
  background: #0a1510;
}

.code-window-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .025);
}

.code-window-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b6b;
}

.code-window-top span:nth-child(2) { background: #ffd166; }
.code-window-top span:nth-child(3) { background: var(--accent); }

.code-window-top small {
  margin-left: auto;
  color: #739083;
}

.code-window pre {
  margin: 0;
  padding: 34px;
  overflow: auto;
  color: #cce4d6;
  font: 500 .92rem/1.9 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.code-key { color: #d786ff; }
.code-string { color: #95f5bc; }
.code-bool { color: #61c9ff; }

.terminal-line {
  padding: 16px 22px;
  color: #9fb5a8;
  border-top: 1px solid rgba(255, 255, 255, .06);
  background: rgba(255, 255, 255, .02);
  font: 500 .8rem/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.terminal-line > span:first-child { color: var(--accent); }
.terminal-command { color: #edf7f1; }

.terminal-caret {
  display: inline-block;
  width: 7px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -.15em;
  background: var(--accent);
  animation: blink .75s infinite;
}

.scroll-indicator {
  position: absolute;
  right: 12px;
  bottom: -50px;
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-indicator i {
  color: var(--accent);
  font-size: 1.25rem;
  animation: scrollMouse 1.4s ease-in-out infinite alternate;
}

@keyframes scrollMouse {
  to { transform: translateY(8px); }
}

.about-card {
  padding: clamp(28px, 4vw, 48px);
}

.about-card p {
  color: var(--muted);
}

.about-card .lead-copy {
  color: var(--text);
  font: 600 clamp(1.18rem, 2vw, 1.52rem)/1.55 "Space Grotesk", sans-serif;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mini-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform .25s ease, border-color .25s ease;
}

.mini-card:hover {
  border-color: rgba(55, 242, 138, .3);
  transform: translateY(-5px);
}

.mini-card i {
  color: var(--accent);
  font-size: 1.4rem;
}

.mini-card span,
.contact-item span {
  display: block;
  margin-bottom: .2rem;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.mini-card strong {
  display: block;
  font: 600 1rem/1.4 "Space Grotesk", sans-serif;
}

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

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 145px;
  width: 1px;
  content: "";
  background: linear-gradient(var(--accent), var(--border), transparent);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 55px;
  padding-bottom: 36px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 31px;
  left: 139px;
  z-index: 2;
  width: 13px;
  height: 13px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(55, 242, 138, .16);
}

.timeline-date {
  padding-top: 30px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.timeline-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 30px;
}

.card-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--accent-soft);
  font-size: 1.3rem;
}

.card-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: .38rem .65rem;
  color: var(--accent-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--accent-soft);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.timeline-card h3,
.experience-card h3,
.project-card h3,
.panel-title {
  margin-bottom: 12px;
  font: 700 1.35rem/1.25 "Space Grotesk", sans-serif;
  letter-spacing: -.025em;
}

.timeline-card p,
.experience-card p,
.project-card p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tag-list span {
  display: inline-flex;
  padding: .35rem .62rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, .018);
  font-size: .75rem;
  font-weight: 600;
}

.experience-card {
  display: flex;
  flex-direction: column;
}

.experience-card > img {
  height: 210px;
  border-bottom: 1px solid var(--border);
  object-fit: cover;
}

.experience-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 27px;
}

.experience-content > .d-flex i {
  color: var(--accent);
  font-size: 1.2rem;
}

.experience-role {
  margin-top: -4px;
  color: var(--text) !important;
  font-weight: 700;
}

.experience-content .tag-list {
  margin-top: auto;
  padding-top: 16px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.filter-btn {
  padding: .6rem .9rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  font-size: .78rem;
  font-weight: 700;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: #04100a;
  border-color: var(--accent);
  background: var(--accent);
}

.project-item {
  transition: opacity .28s ease, transform .28s ease;
}

.project-item.is-hiding {
  opacity: 0;
  transform: scale(.96);
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-image-wrap {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.project-image-wrap img {
  height: 230px;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: rgba(3, 13, 8, .66);
  backdrop-filter: blur(2px);
  transition: opacity .3s ease;
}

.project-overlay a {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #04100a;
  border-radius: 50%;
  background: var(--accent);
  font-size: 1.25rem;
  transform: translateY(10px) scale(.9);
  transition: transform .3s ease;
}

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

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

.project-card:hover .project-overlay a {
  transform: translateY(0) scale(1);
}

.project-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.project-content .tag-list {
  margin-top: auto;
  padding-top: 10px;
}

.skills-panel,
.toolbox-panel {
  padding: clamp(26px, 4vw, 40px);
}

.panel-title {
  margin-bottom: 30px;
}

.skill-row + .skill-row {
  margin-top: 24px;
}

.skill-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 10px;
  font-size: .9rem;
  font-weight: 700;
}

.skill-meta span:last-child {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}

.skill-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .06);
}

html[data-theme="light"] .skill-track {
  background: rgba(17, 65, 38, .08);
}

.skill-progress {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(55, 242, 138, .25);
  transition: width 1s cubic-bezier(.2, .75, .2, 1);
}

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

.tool-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, .018);
  font-size: .85rem;
  font-weight: 700;
  transition: transform .2s ease, border-color .2s ease;
}

.tool-item:hover {
  border-color: rgba(55, 242, 138, .32);
  transform: translateY(-3px);
}

.tool-item i {
  color: var(--accent);
  font-size: 1.1rem;
}

.soft-skills h4 {
  margin-bottom: 14px;
  font: 700 1rem/1.4 "Space Grotesk", sans-serif;
}

.large-tags span {
  padding: .48rem .72rem;
}

.contact-shell {
  padding: clamp(30px, 5vw, 64px);
}

.contact-shell p:not(.section-kicker) {
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-item > i {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--accent-soft);
}

.contact-item strong {
  word-break: break-word;
}

.form-label {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.form-control {
  min-height: 50px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, .025);
  box-shadow: none !important;
}

.form-control::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
}

.form-control:focus {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface-hover);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  color: var(--muted);
  font-size: .82rem;
}

.form-status.success { color: var(--accent); }
.form-status.error { color: #ff8989; }

.site-footer {
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: .83rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--accent);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #04100a;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 14px 35px rgba(0, 0, 0, .22);
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .75, .2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }

@media (max-width: 1199.98px) {
  .display-title {
    font-size: clamp(3.4rem, 8vw, 6.5rem);
  }

  .code-window pre {
    padding: 28px;
    font-size: .84rem;
  }
}

@media (max-width: 991.98px) {
  :root { --nav-height: 72px; }

  .section-pad { padding: 92px 0; }

  #navbarContent {
    position: absolute;
    top: calc(100% + 10px);
    right: 12px;
    left: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
  }

  .navbar-nav .nav-link {
    padding: .8rem .9rem !important;
  }

  .navbar-nav .nav-link::after {
    right: auto;
    bottom: 50%;
    left: 0;
    width: 3px;
    height: 18px;
    transform: translateY(50%) scaleY(0);
  }

  .navbar-nav .nav-link.active::after {
    transform: translateY(50%) scaleY(1);
  }

  .hero-section {
    min-height: auto;
    padding-top: 145px;
  }

  .code-window {
    max-width: 680px;
    margin: 0 auto;
    transform: none;
  }

  .scroll-indicator { display: none; }

  .timeline::before { left: 16px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; padding-left: 45px; }
  .timeline-dot { top: 10px; left: 10px; }
  .timeline-date { padding-top: 0; }
}

@media (max-width: 767.98px) {
  .section-pad { padding: 78px 0; }
  .section-heading { margin-bottom: 38px; }

  .display-title { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-role { min-height: 2.4em; }

  .info-grid { grid-template-columns: 1fr; }
  .mini-card { min-height: 118px; }

  .timeline-card { grid-template-columns: 1fr; }
  .project-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 5px; }
  .filter-btn { flex: 0 0 auto; }

  .contact-shell { border-radius: 22px; }
}

@media (max-width: 575.98px) {
  .hero-section { padding-top: 125px; }
  .section-heading h2,
  .contact-shell h2 { font-size: 2.25rem; }

  .code-window pre {
    padding: 22px 18px;
    font-size: .72rem;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-socials { justify-content: center; }
  .tool-grid { grid-template-columns: 1fr; }
  .experience-card > img,
  .project-image-wrap img { height: 190px; }

  .back-to-top { right: 16px; bottom: 16px; }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
