:root {
  --bg: #090d0c;
  --bg-soft: #0f1513;
  --surface: #101917;
  --surface-2: #13211d;
  --text: #e8f1ee;
  --muted: #9fb2ac;
  --line: #1e312b;
  --accent: #19d398;
  --accent-strong: #11ba84;
  --glow: 0 0 0 1px rgba(25, 211, 152, 0.2), 0 0 28px rgba(25, 211, 152, 0.2);
  --radius: 18px;
  --ui-scale: 1.1;
}

* {
  box-sizing: border-box;
}

html {
  font-size: calc(100% * var(--ui-scale));
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  line-height: 1.75;
  background-color: var(--bg);
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(1240px, 94%);
  margin: 0 auto;
}

.section {
  padding: 5.2rem 0;
  scroll-margin-top: 54px;
}

.section-muted {
  background: rgba(8, 13, 11, 0.7);
  border-top: none;
  border-bottom: none;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

h1 span,
.role {
  color: var(--accent);
}

h2 {
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-weight: 300;
}

strong {
  color: var(--text);
  font-weight: 500;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 11, 0.88);
  backdrop-filter: blur(10px);
  isolation: isolate;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
}

.brand {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 180ms ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #c3d1cc;
  border-radius: 2px;
  transition: transform 250ms ease, opacity 250ms ease;
  transform-origin: center;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

.nav-list {
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.2rem;
  list-style: none;
}

.nav-list a {
  color: #c3d1cc;
  font-weight: 500;
  font-size: 0.93rem;
  transition: color 170ms ease;
}

.nav-list a:hover {
  color: #e7f0ed;
}

.hero {
  min-height: calc(100vh - 74px);
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #050808 0%, #0e1413 100%);
  padding: 0;
}

#hero .container {
  width: min(1240px, 94%);
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-rows: 1fr auto auto;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  z-index: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
}

.hero-glow-text {
  top: 40%;
  left: 25%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.13) 0%, transparent 70%);
  filter: blur(80px);
  transform: translate(-50%, -50%);
}

.hero-glow-image {
  top: 50%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 65%);
  filter: blur(70px);
  transform: translate(50%, -50%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  width: 100%;
  gap: 3rem;
  align-items: center;
  align-self: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.hero-grid > * {
  min-width: 0;
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}

.role {
  min-height: 1.8rem;
  font-size: 1.07rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.cursor {
  display: inline-block;
  width: 10px;
  height: 1.2em;
  border-left: 2px solid var(--accent);
  margin-left: 0.25rem;
  transform: translateY(4px);
  animation: blink 900ms steps(1, end) infinite;
}

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

.lead {
  max-width: 58ch;
  font-size: 1.02rem;
}

.hero-card {
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(16, 185, 129, 0.45);
  background: #0d1512;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4), 0 0 30px rgba(16, 185, 129, 0.25);
  padding: 0.5rem;
  max-width: 520px;
  width: 100%;
}

.hero-card img {
  border-radius: 20px;
  width: 100%;
  height: auto;
}

.hero-visual {
  max-width: 380px;
  width: 100%;
  justify-self: end;
  margin-left: auto;
}

.hero-strip-wrap {
  position: relative;
  z-index: 2;
  align-self: end;
  margin-bottom: clamp(0.65rem, 1.4vw, 1.1rem);
}

.cta-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 170ms ease, background-color 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #07281e;
}

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

.btn-outline {
  border-color: #2d4940;
  color: #cae6dd;
  background: rgba(14, 22, 19, 0.65);
}

.btn-outline:hover {
  border-color: rgba(25, 211, 152, 0.55);
}

.btn-small {
  padding: 0.55rem 0.85rem;
  font-size: 0.82rem;
}

.social-row {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.6rem;
}

.social-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #2d4940;
  color: #d6e6e0;
  font-size: 0.76rem;
  font-weight: 600;
  transition: border-color 170ms ease, color 170ms ease, box-shadow 170ms ease;
}

.social-icon:hover {
  border-color: rgba(25, 211, 152, 0.65);
  color: #eef6f3;
}

.social-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.hero-copy h1,
.hero-copy .role {
  text-shadow: 0 0 14px rgba(25, 211, 152, 0.2);
}

.scroll-indicator {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: 28px;
  height: 46px;
  border: 1px solid #2b453c;
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 7px;
  align-self: end;
  justify-self: center;
  margin: 0 auto clamp(0.65rem, 1.6vh, 1rem);
  z-index: 2;
}

.scroll-indicator span {
  width: 5px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
  animation: floatDown 1.6s ease infinite;
}

.hero-stack-strip {
  position: relative;
  width: 100%;
  border-top: 1px solid #2e433b;
  border-bottom: 1px solid rgba(42, 62, 55, 0.55);
  background:
    linear-gradient(180deg, rgba(10, 15, 13, 0.62) 0%, rgba(9, 14, 12, 0.78) 100%),
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 20px 20px;
  overflow: hidden;
  z-index: 2;
  padding: 0;
  margin-top: 0;
  margin-bottom: clamp(0.65rem, 1.4vw, 1.1rem);
  opacity: 0.82;
  border-radius: 12px;
}

.hero-stack-strip::before,
.hero-stack-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  z-index: 3;
  pointer-events: none;
}

.hero-stack-strip::before {
  left: 0;
  background: linear-gradient(90deg, rgba(9, 14, 12, 1) 0%, rgba(9, 14, 12, 0) 100%);
}

.hero-stack-strip::after {
  right: 0;
  background: linear-gradient(270deg, rgba(9, 14, 12, 1) 0%, rgba(9, 14, 12, 0) 100%);
}

.hero-stack-marquee {
  display: flex;
  width: max-content;
  min-width: 0;
  align-items: center;
  animation: heroMarquee 34s linear infinite;
  will-change: transform;
}

.hero-stack-strip:hover .hero-stack-marquee {
  animation-play-state: paused;
}

.hero-stack-track {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.46rem 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.hero-stack-track span {
  color: #b6c5bf;
  opacity: 0.76;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: opacity 180ms ease, color 180ms ease, transform 180ms ease;
  display: inline-flex;
  align-items: center;
  padding: 0 1.15rem;
}

.hero-stack-track span:first-child {
  padding-left: 0;
}

.hero-stack-track span:last-child {
  padding-right: 0;
}

.hero-stack-track span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #6b8078;
  opacity: 0.75;
  margin-left: 1.15rem;
}

.hero-stack-track span:hover {
  opacity: 1;
  color: #e1ece8;
  transform: scale(1.03);
}

@keyframes heroMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes floatDown {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 1; }
}

.about-grid,
.skills-grid,
.cards-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

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

#about {
  background:
    linear-gradient(180deg, #091017 0%, #0b121a 100%),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 26px 26px;
}

#about .container {
  position: relative;
}

#about .about-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
}

#about .about-label {
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.76rem;
  margin-bottom: 0.9rem;
}

.section-label {
  color: var(--accent) !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.76rem;
  margin: 0 0 0.75rem;
  display: block;
}

#about .about-title {
  color: #f1f6f9;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.1rem;
  max-width: 18ch;
}

#about .about-title em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  color: #d9e4ea;
}

#about .about-text {
  color: #a6b4bf;
  max-width: 58ch;
  font-size: 1rem;
}

#about .about-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  align-self: center;
}

#about .about-card {
  background: #121a24;
  border: 1px solid #273343;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

#about .about-card h3 {
  color: #eef4f9;
  margin-bottom: 0.5rem;
}

#about .about-card p {
  color: #97a8b5;
  margin: 0;
  line-height: 1.6;
}

#about .about-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  background: rgba(25, 211, 152, 0.1);
  border: 1px solid rgba(25, 211, 152, 0.24);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}

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

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

.contact-grid {
  grid-template-columns: 1.3fr 1fr;
}

#contact {
  padding-top: 5.6rem;
  padding-bottom: 5.6rem;
}

#contact .contact-header {
  max-width: 60ch;
  margin-bottom: 2rem;
}

#contact .contact-title {
  color: #f0f5fa;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 0.85rem;
}

#contact .contact-title span {
  color: var(--accent);
}

#contact .contact-subtitle {
  color: #9dabb8;
  margin: 0;
}

#contact .contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

#contact .contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem;
  background: #121a24;
  border: 1px solid #2b3747;
  border-radius: 14px;
  transition: border-color 180ms ease;
}

#contact .contact-card:hover {
  border-color: #3a4a60;
}

#contact .contact-card-accent {
  border-color: rgba(16, 185, 129, 0.55);
}

#contact .contact-card h3 {
  margin: 0 0 0.2rem;
  color: #edf3f8;
  font-size: 0.96rem;
}

#contact .contact-card p,
#contact .contact-card a {
  margin: 0;
  color: #a6b4c0;
  font-size: 0.92rem;
}

#contact .contact-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.11);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
}

#contact .contact-social {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.55rem;
}

#contact .contact-social a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid #354457;
  color: #d8e1e8;
  transition: border-color 180ms ease;
}

#contact .contact-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

#contact .contact-social a svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

#certifications .container {
  text-align: center;
}

#certifications .tag-wrap {
  justify-content: center;
}

.panel,
.project-card,
.timeline-item {
  background: linear-gradient(180deg, rgba(18, 29, 25, 0.95), rgba(13, 21, 18, 0.92));
  border: 1px solid #21352e;
  border-radius: var(--radius);
  padding: 1.2rem;
}

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

.tag {
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: rgba(25, 211, 152, 0.12);
  color: #bbebda;
  border: 1px solid rgba(25, 211, 152, 0.28);
  font-size: 0.84rem;
  font-weight: 500;
}

.project-card {
  transition: transform 210ms ease, border-color 210ms ease, box-shadow 210ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(25, 211, 152, 0.38);
  box-shadow: 0 14px 34px rgba(6, 10, 8, 0.7);
}

.card-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.timeline {
  display: grid;
  gap: 0.85rem;
}

form {
  display: grid;
  gap: 0.55rem;
}

label {
  font-weight: 500;
  color: #d8e6e0;
  font-size: 0.9rem;
}

input,
textarea {
  border: 1px solid #2b443c;
  border-radius: 12px;
  padding: 0.7rem;
  font: inherit;
  color: var(--text);
  background: #0d1512;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  text-align: center;
  color: #a0b3ad;
  background: #0a0f0d;
}

main > .section:not(.hero) {
  background: transparent;
}

#skills.section-muted {
  background: #0b0f0e;
  border-top: none;
  border-bottom: none;
}

#skills .container > h2 {
  margin-bottom: 1.1rem;
}

#skills .skills-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1rem;
  align-items: center;
}

#skills .skills-feature-card {
  background: #121a24;
  border: 1px solid #2f3e52;
  border-radius: 16px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  min-height: 245px;
  transition: opacity 220ms ease, transform 220ms ease;
}

#skills .skills-feature-card.is-switching {
  opacity: 0.6;
  transform: translateY(4px);
}

#skills .skills-feature-card h3 {
  margin: 0;
  color: #edf3f8;
  font-size: 1.05rem;
}

#skills .skills-feature-card p {
  margin: 0;
  color: #a8b6c3;
  line-height: 1.7;
  font-size: 0.95rem;
}

#skills .skills-feature-meta {
  color: #d1dce6;
  font-size: 0.83rem;
  font-weight: 500;
}

#skills .skills-slider-dots {
  margin-top: auto;
  display: flex;
  gap: 0.38rem;
}

#skills .skills-slider-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #5d6f83;
}

#skills .skills-slider-dots .is-active {
  background: #c8d3de;
}

#skills .skills-stack {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  align-self: center;
}

#skills .skills-stack-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  width: 100%;
  justify-content: flex-end;
}

#skills .skills-stack-head h2 {
  margin: 0;
  font-size: 1.15rem;
  white-space: nowrap;
  text-align: right;
  margin-left: 0.75rem;
}

#skills .skills-head-line {
  order: -1;
  flex: 1 1 auto;
  height: 1px;
  background: #314258;
  min-width: 40px;
}

#skills .skills-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
  align-content: start;
  justify-content: flex-end;
}

#skills .skills-chip-grid .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.38rem 0.68rem;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

#skills .skills-chip-grid .tag:hover {
  border-color: #4a5f79;
  background: rgba(255, 255, 255, 0.08);
}

#skills .skills-chip-grid .tag.is-active {
  border-color: rgba(25, 211, 152, 0.7);
  background: rgba(25, 211, 152, 0.16);
  color: #eefaf5;
  box-shadow: 0 0 0 1px rgba(25, 211, 152, 0.22);
}

#skills .skills-secondary {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid #243243;
}

#skills .skills-subtitle {
  margin: 0 0 0.75rem;
  color: #dfe8ef;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

#skills .skills-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

main > .section:not(.hero) h2,
main > .section:not(.hero) a,
main > .section:not(.hero) .tag,
main > .section:not(.hero) .btn-primary,
main > .section:not(.hero) .btn-outline:hover,
main > .section:not(.hero) .project-card:hover,
main > .section:not(.hero) .social-icon:hover,
main > .section:not(.hero) .scroll-indicator span {
  color: #e8f1ee;
}

main > .section:not(.hero) .tag {
  background: rgba(255, 255, 255, 0.04);
  border-color: #2b3a35;
}

main > .section:not(.hero) .btn-primary {
  background: #cfd8d5;
  border-color: #cfd8d5;
  color: #08100e;
}

main > .section:not(.hero) .btn-primary:hover {
  background: #bac5c1;
}

main > .section:not(.hero) .btn-outline:hover {
  border-color: #3c4c46;
}

main > .section:not(.hero) .project-card:hover {
  border-color: #2a3a35;
  box-shadow: 0 14px 34px rgba(6, 10, 8, 0.7);
}

main > .section:not(.hero) .panel,
main > .section:not(.hero) .project-card,
main > .section:not(.hero) .timeline-item {
  background: #111715;
  border-color: #25312d;
}

main > .section:not(.hero) .project-card:hover,
main > .section:not(.hero) .panel:hover,
main > .section:not(.hero) .timeline-item:hover {
  border-color: #2c3935;
}

main > .section:not(#hero):not(#about) {
  background: transparent;
  border-top: none;
  border-bottom: none;
}

main {
  background:
    linear-gradient(180deg, #091017 0%, #0b121a 100%),
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 26px 26px;
}

#about {
  background: transparent;
}

main > .section:not(#hero):not(#about) h2 {
  color: #eef4f9;
  font-weight: 700;
  letter-spacing: -0.012em;
}

main > .section:not(#hero):not(#about) p {
  color: #9caab6;
}

main > .section:not(#hero):not(#about) strong {
  color: #ecf3f8;
}

main > .section:not(#hero):not(#about) .panel,
main > .section:not(#hero):not(#about) .project-card,
main > .section:not(#hero):not(#about) .timeline-item {
  background: #121a24;
  border: 1px solid #273343;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

main > .section:not(#hero):not(#about) .panel h3,
main > .section:not(#hero):not(#about) .project-card h3,
main > .section:not(#hero):not(#about) .timeline-item h3 {
  color: #eef4f9;
}

main > .section:not(#hero):not(#about) .project-card:hover,
main > .section:not(#hero):not(#about) .panel:hover,
main > .section:not(#hero):not(#about) .timeline-item:hover {
  border-color: #324154;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

main > .section:not(#hero):not(#about) .tag {
  color: #d4dde5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #334255;
}

main > .section:not(#hero):not(#about) .btn-outline {
  color: #d5dee6;
  border-color: #334255;
  background: rgba(18, 26, 36, 0.55);
}

main > .section:not(#hero):not(#about) .btn-outline:hover {
  border-color: #43556b;
}

main > .section:not(#hero):not(#about) .btn-primary {
  background: #d0d7de;
  border-color: #d0d7de;
  color: #0b121a;
}

main > .section:not(#hero):not(#about) .btn-primary:hover {
  background: #bcc6cf;
}

#contact .btn-primary,
#contact .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #062119;
}

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

main > .section:not(#hero):not(#about) input,
main > .section:not(#hero):not(#about) textarea {
  background: #0f1722;
  border-color: #314155;
  color: #e8f0f7;
}

main > .section:not(#hero):not(#about) label {
  color: #d8e2eb;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 440ms ease, transform 440ms ease;
}

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

#about .reveal {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    min-height: calc(100vh - 74px);
  }

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

  .hero-visual {
    max-width: 480px;
  }

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

  #skills .skills-tech-grid,
  #skills .skills-secondary-grid {
    grid-template-columns: 1fr;
  }

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

  #contact .contact-cards {
    grid-template-columns: 1fr;
  }

  #about .about-layout,
  #about .about-pillars {
    grid-template-columns: 1fr;
  }

  .scroll-indicator {
    display: none;
  }

  .hero-stack-strip {
    position: static;
    margin-top: 0.9rem;
  }

  .hero-glow-text {
    width: 360px;
    height: 360px;
    left: 40%;
  }

  .hero-glow-image {
    width: 300px;
    height: 300px;
    right: 20%;
  }
}

@media (max-width: 760px) {
  html {
    font-size: 100%;
  }

  .section {
    padding: 4rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 13, 11, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0;
    z-index: 99;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    display: block;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }

  .hero-visual {
    display: none;
  }
}

.blog-page .container {
  width: min(980px, 94%);
}

.blog-title {
  max-width: 20ch;
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3.1vw, 2.2rem);
}

.blog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.blog-source-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.blog-date {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: #9fb0bf;
}

.blog-article {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.blog-page .section-label {
  font-size: 0.68rem;
}

.blog-page .blog-article p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.blog-page .blog-article h2 {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  margin-bottom: 0.8rem;
}

.blog-page .blog-article h3 {
  font-size: 0.95rem;
}

.blog-cover {
  margin: 0 0 1.2rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #2d3d50;
  background: #0f1722;
}

.blog-cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.blog-cover figcaption {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid #2d3d50;
  color: #9fb0bf;
  font-size: 0.76rem;
}

.blog-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.45rem 0 1.1rem;
}

.blog-example-card {
  background: #0f1722;
  border: 1px solid #2d3d50;
  border-radius: 12px;
  padding: 0.75rem;
}

.blog-example-card h3 {
  margin-bottom: 0.35rem;
}

.blog-example-card p {
  margin: 0;
  font-size: 0.86rem;
}

@media (max-width: 760px) {
  .blog-example-grid {
    grid-template-columns: 1fr;
  }

  .blog-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
