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

:root {
  --bg: #0B1120;
  --bg2: #0F172A;
  --card: #141E30;
  --card-2: #1A2540;
  --text: #E2E8F5;
  --text-2: #8B9EB8;
  --text-3: #4A5E7A;
  --text-4: #2A3A52;
  --blue: #3B82F6;
  --blue-d: #2563EB;
  --blue-l: rgba(59, 130, 246, 0.10);
  --blue-m: rgba(59, 130, 246, 0.22);
  --blue-txt: #93C5FD;
  --green-l: rgba(34, 197, 94, 0.10);
  --green-b: rgba(34, 197, 94, 0.25);
  --green-t: #4ADE80;
  --amber-l: rgba(245, 158, 11, 0.10);
  --amber-b: rgba(245, 158, 11, 0.25);
  --amber-t: #FCD34D;
  --violet-l: rgba(139, 92, 246, 0.10);
  --violet-b: rgba(139, 92, 246, 0.25);
  --violet-t: #C4B5FD;
  --rose-l: rgba(244, 63, 94, 0.10);
  --rose-b: rgba(244, 63, 94, 0.22);
  --rose-t: #FDA4AF;
  --border: rgba(255, 255, 255, 0.07);
  --border-d: rgba(255, 255, 255, 0.13);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
  /* keep alias names used in selectors */
  --white: var(--card);
  --navy: var(--text);
  --navy-2: var(--text-2);
  --slate: var(--text-2);
  --slate-2: var(--text-2);
  --slate-3: var(--text-3);
  --slate-4: var(--text-4);
  --font-serif: 'Inter', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --r: 4px;
  --r2: 6px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── SCROLL PROGRESS ─── */
#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  z-index: 500;
  width: 0%;
  background: var(--blue);
  transition: width 0.08s linear;
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

nav.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.logo em {
  font-style: normal;
  color: var(--blue-txt);
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate-2);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--r);
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.nav-links a:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.06);
}

.btn-nav {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--r);
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  letter-spacing: 0.01em;
}

.btn-nav:hover {
  background: var(--navy-2);
  box-shadow: var(--shadow-sm);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--r);
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.18s var(--ease);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--blue-d);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--card-2);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--border-d);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

/* ─── HERO ─── */
#hero {
  display: flex;
  align-items: center;
  padding-top: 128px;
  position: relative;
}

.hero-grid {
  display: flex;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 28px;
}

.eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--blue);
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 28px;
  color: var(--text);
}

.hero-title em {
  font-style: normal;
  color: var(--blue-txt);
  font-weight: 700;
}

.hero-desc {
  font-size: 17px;
  color: var(--slate-2);
  line-height: 1.8;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-meta {
  display: flex;
  gap: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.meta-item {}

.meta-val {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.meta-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Hero aside card */
.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aside-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.aside-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-d);
}

.aside-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.aside-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ic-blue {
  background: var(--blue-l);
}

.ic-green {
  background: var(--green-l);
}

.ic-amber {
  background: var(--amber-l);
}

.aside-card-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-3);
}

.aside-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.aside-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.aside-tag {
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--bg);
  color: var(--slate-2);
  border: 1px solid var(--border);
}

.avail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--green-l);
  border: 1px solid var(--green-b);
  border-radius: var(--r);
}

.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-t);
  flex-shrink: 0;
  animation: avail-pulse 2.5s ease-in-out infinite;
}

@keyframes avail-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(74, 222, 128, 0);
  }
}

.avail-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--green-t);
}

/* ─── SECTION COMMONS ─── */
section {
  padding: 96px 0;
  position: relative;
}

.section-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--blue);
}

.section-heading {
  font-family: var(--font-sans);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.section-heading em {
  font-style: normal;
  color: var(--blue-txt);
}

.section-sub {
  font-size: 16px;
  color: var(--slate-2);
  line-height: 1.75;
  /* max-width: 540px; */
}

.section-hd {
  margin-bottom: 56px;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ─── SKILLS ─── */
#skills {
  background: var(--bg2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
}

.skill-card {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}

.skill-card:last-child {
  border-right: none;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.skill-card:hover {
  background: var(--card-2);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  background: var(--blue-l);
  border: 1px solid var(--blue-m);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.skill-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--navy);
}

.skill-desc {
  font-size: 13px;
  color: var(--slate-2);
  line-height: 1.65;
  margin-bottom: 18px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.skill-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--bg);
  color: var(--text-3);
  border: 1px solid var(--border);
}

/* ─── PROCESS ─── */
#process {
  background: var(--bg);
}

.process-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 64px;
}

.process-intro-right {
  font-size: 15px;
  color: var(--slate-2);
  line-height: 1.8;
  padding-left: 56px;
  border-left: 1px solid var(--border);
}

.steps-table {
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
}

.step-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.18s;
  cursor: default;
}

.step-row:last-child {
  border-bottom: none;
}

.step-row:hover {
  background: var(--card-2);
}

.step-num-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 32px;
  border-right: 1px solid var(--border);
  background: var(--card);
}

.step-row:hover .step-num-col {
  background: var(--blue-l);
}

.step-num-inner {
  font-family: var(--font-sans);
  font-size: 13px;
  font-style: normal;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.step-content {
  padding: 28px 32px;
}

.step-top {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.step-title {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}

.step-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.step-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--blue-l);
  color: var(--blue);
  border: 1px solid var(--blue-m);
}

.step-badge.amber {
  background: var(--amber-l);
  color: var(--amber-t);
  border-color: var(--amber-b);
}

.step-badge.green {
  background: var(--green-l);
  color: var(--green-t);
  border-color: var(--green-b);
}

.step-badge.violet {
  background: var(--violet-l);
  color: var(--violet-t);
  border-color: var(--violet-b);
}

.step-badge.rose {
  background: var(--rose-l);
  color: var(--rose-t);
  border-color: var(--rose-b);
}

.step-desc {
  font-size: 14px;
  color: var(--slate-2);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 640px;
}

.step-deliverables {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.deliverable {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate-2);
  padding: 4px 10px;
  border-radius: 3px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.deliverable svg {
  color: #16A34A;
  flex-shrink: 0;
}

.process-footer {
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--card-2);
  border: 1px solid var(--border-d);
  border-radius: var(--r2);
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text);
}

.process-footer-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.process-footer h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.process-footer p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ─── ABOUT ─── */
#about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.about-left {
  position: sticky;
  top: 88px;
}

.portrait-frame {
  width: 100%;
  aspect-ratio: 3/4;
  /* max-width: 320px; */
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--card) 0%, rgba(59, 130, 246, 0.12) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.portrait-initials {
  font-family: var(--font-serif);
  font-size: 88px;
  font-weight: 600;
  color: var(--blue);
  opacity: 0.25;
  letter-spacing: -4px;
  user-select: none;
  font-style: normal;
}

.portrait-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(11, 17, 32, 0.6), transparent);
}

.portrait-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  font-style: normal;
}

.portrait-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.about-stats-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--border);
}

.about-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

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

.about-stat:hover {
  background: var(--blue-l);
}

.about-stat-val {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.about-stat-lbl {
  font-size: 12.5px;
  color: var(--slate-2);
  font-weight: 500;
}

.about-body {}

.about-body .section-sub {
  margin-bottom: 24px;
  max-width: none;
}

.about-quote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--blue);
  background: var(--blue-l);
  border-radius: 0 var(--r) var(--r) 0;
}

.about-quote p {
  font-family: var(--font-serif);
  font-style: normal;
  font-size: 16px;
  color: var(--blue-txt);
  line-height: 1.7;
}

.competencies {
  margin-bottom: 36px;
}

.comp-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-3);
  margin-bottom: 16px;
}

.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.comp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate);
}

.comp-check {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  flex-shrink: 0;
  background: var(--blue-l);
  border: 1px solid var(--blue-m);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}

/* ─── CONTACT ─── */
#contact {
  background: #07101E;
  color: var(--text);
}

#contact .section-label {
  color: var(--blue-txt);
}

#contact .section-label::before {
  background: var(--blue-txt);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-heading {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
  color: var(--text);
}

.contact-heading em {
  font-style: normal;
  color: var(--blue-txt);
}

.contact-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-white {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.btn-ghost-white {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost-white:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s, background 0.18s;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-submit {
  align-self: flex-start;
  background: var(--blue);
  color: #fff;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-form .btn-submit:hover {
  background: var(--blue-d);
  transform: translateY(-1px);
}

.contact-form .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.field-error {
  font-size: 12px;
  color: var(--rose-t);
  margin-top: 4px;
  display: none;
}

.form-group.has-error .field-error {
  display: block;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: var(--rose-b);
  background: rgba(244, 63, 94, 0.05);
}

.form-group.has-error input:focus,
.form-group.has-error textarea:focus {
  border-color: var(--rose-t);
}

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.form-status.success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-l);
  border: 1px solid var(--green-b);
  color: var(--green-t);
}

.form-status.error {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--rose-l);
  border: 1px solid var(--rose-b);
  color: var(--rose-t);
}

/* ─── FOOTER ─── */
footer {
  background: #07101E;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-copy span {
  color: rgba(255, 255, 255, 0.5);
}

.footer-back {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.footer-back:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ─── LANG SWITCH ─── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang-switch a {
  color: var(--text-3);
  text-decoration: none;
  padding: 4px 7px;
  border-radius: var(--r);
  transition: color 0.15s, background 0.15s;
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch span {
  color: var(--text-4);
  pointer-events: none;
}

/* ─── MOBILE NAV ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 20px;
  height: 1.5px;
  background: var(--slate-2);
  transition: all 0.2s;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 30, 0.97);
  backdrop-filter: blur(24px);
  z-index: 190;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 8px 24px;
  border-radius: var(--r2);
  transition: color 0.15s;
}

.mobile-nav a:hover {
  color: var(--blue-txt);
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--text-2);
}

/* ─── REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

.d1 {
  transition-delay: 0.08s;
}

.d2 {
  transition-delay: 0.16s;
}

.d3 {
  transition-delay: 0.24s;
}

.d4 {
  transition-delay: 0.32s;
}

.d5 {
  transition-delay: 0.40s;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-aside {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .aside-card {
    flex: 1;
    min-width: 240px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-left {
    position: static;
  }

  .portrait-frame {
    max-width: 100%;
    aspect-ratio: 16/7;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .skill-card:nth-child(2) {
    border-right: none;
  }

  .skill-card:nth-child(3) {
    border-top: 1px solid var(--border);
  }

  .skill-card:nth-child(4) {
    border-top: 1px solid var(--border);
    border-right: none;
  }
}

@media (max-width: 768px) {

  .container {
    padding: 0 20px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-links,
  .btn-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  section {
    padding: 72px 0;
  }

  .hero-grid {
    padding: 56px 0;
  }

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

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

  .skill-card:last-child {
    border-bottom: none;
  }


  .process-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .process-intro-right {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 20px;
  }

  .step-row {
    grid-template-columns: 48px 1fr;
  }

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

  .hero-meta {
    gap: 28px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

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