/* =====================================
   VOICEBOX DESIGN SYSTEM
   Bold, opinionated, magazine-style
   ===================================== */

:root {
  --primary: #0A0A0A;
  --secondary: #EF4444;
  --tertiary: #FAFAFA;
  --bg: #FAFAFA;
  --surface: #F5F5F5;
  --surface-raised: #E5E5E5;
  --text-primary: #0A0A0A;
  --text-secondary: #525252;
  --text-tertiary: #A3A3A3;
  --border-subtle: #E5E5E5;
  --border-medium: #D4D4D4;
  --border-strong: #0A0A0A;
  --font-display: 'Archivo Black', Impact, 'Arial Black', sans-serif;
  --font-body: 'Work Sans', -apple-system, 'Segoe UI', Helvetica, sans-serif;
  --header-bg: #0A0A0A;
  --header-text: #FAFAFA;
  --header-border: #262626;
  --radius: 0px;
  --focus-ring: 0 0 0 2px #FAFAFA, 0 0 0 4px #0A0A0A;
  --section-space: 80px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  display: none;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

::selection {
  background: var(--secondary);
  color: var(--tertiary);
}

/* =====================================
   LOADER
   ===================================== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#loader h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--tertiary);
  letter-spacing: 0.08em;
}

/* =====================================
   PROGRESS BAR
   ===================================== */
#progressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--secondary);
  z-index: 99999;
  transition: width 0.1s linear;
}

/* =====================================
   HEADER / NAV
   ===================================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  border-bottom: 2px solid var(--header-border);
  z-index: 1000;
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--header-text);
  letter-spacing: 0.04em;
  text-decoration: none;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--header-text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a.active {
  border-bottom-color: var(--secondary);
  color: var(--secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#themeBtn,
#menuBtn {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--header-text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

#themeBtn:hover,
#menuBtn:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

#themeBtn:focus-visible,
#menuBtn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

#menuBtn {
  display: none;
}

/* =====================================
   MOBILE MENU (Dropdown)
   ===================================== */
#mobileMenu {
  position: fixed;
  top: 56px;
  left: 0;
  width: 100%;
  background: var(--header-bg);
  border-bottom: 2px solid var(--header-border);
  display: flex;
  flex-direction: column;
  z-index: 999;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#mobileMenu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#mobileMenu a {
  text-decoration: none;
  color: var(--header-text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s, color 0.2s;
}

#mobileMenu a:last-child {
  border-bottom: none;
}

#mobileMenu a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--secondary);
}

/* =====================================
   HERO
   ===================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 130px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("assets/hero-bg.jpg") center / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 640px;
  position: relative;
  padding-left: 32px;
}

/* Vertical red accent bar */
.hero-accent {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 200px;
  background: var(--secondary);
  z-index: 1;
}

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 20px;
  border: 2px solid var(--secondary);
  padding: 6px 14px;
  position: relative;
}

.hero-headline {
  margin-bottom: 0;
}

.hero-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-line:last-child {
  border-bottom: 3px solid var(--secondary);
  padding-bottom: 4px;
  display: inline-block;
}

/* Red divider bar between headline and typing */
.hero-divider {
  width: 40px;
  height: 3px;
  background: var(--secondary);
  margin: 16px 0;
}

.typing-wrapper {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 22px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.cursor {
  color: var(--secondary);
  animation: blink 0.8s step-end infinite;
}

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

.hero-desc {
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-meta {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  max-width: 200px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 380px;
}

.hero-image-frame {
  position: relative;
  display: inline-block;
}

.hero-image-frame img {
  display: block;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 3px solid var(--border-strong);
  position: relative;
  z-index: 1;
}

.hero-image-accent {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 50px;
  height: 4px;
  background: var(--secondary);
  z-index: 2;
}

/* =====================================
   BUTTONS
   ===================================== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--tertiary);
  border: 2px solid var(--border-strong);
}

.btn-primary:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

.btn-primary:active {
  background: #DC2626;
  border-color: #DC2626;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--tertiary);
}

.btn-secondary:active {
  background: #262626;
}

/* =====================================
   STATS
   ===================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  border-bottom: 2px solid var(--border-subtle);
}

.stat-card {
  text-align: center;
  padding: 28px 16px;
  border: 2px solid var(--border-subtle);
  border-right: none;
  transition: border-color 0.3s, background 0.3s;
}

.stat-card:last-child {
  border-right: 2px solid var(--border-subtle);
}

.stat-card:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.stat-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  color: var(--secondary);
  margin-bottom: 6px;
  line-height: 1.1;
}

.stat-card p {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

/* =====================================
   SECTIONS BASE
   ===================================== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--section-space) 24px;
}

.overline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

/* =====================================
   CARD — Elevated (red top border)
   ===================================== */
.card-elevated {
  background: var(--bg);
  border-top: 4px solid var(--secondary);
  border-left: 2px solid var(--border-subtle);
  border-right: 2px solid var(--border-subtle);
  border-bottom: 2px solid var(--border-subtle);
  padding: 28px;
}

.card-elevated p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* =====================================
   TIMELINE (Education)
   ===================================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  padding: 24px 24px 24px 28px;
  border-left: 4px solid var(--secondary);
  border-top: 2px solid var(--border-subtle);
  border-right: 2px solid var(--border-subtle);
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 16px;
  transition: border-color 0.3s, background 0.3s;
}

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

.timeline-item:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 20px);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* =====================================
   SKILLS (Magazine-style groups)
   ===================================== */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.skill-group-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  flex: 0 0 auto;
  width: 76px;
  padding: 6px 0;
}

.skill-card {
  display: inline-block;
  padding: 7px 16px;
  border: 2px solid var(--border-strong);
  background: var(--primary);
  color: var(--tertiary);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: default;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
  text-align: center;
  line-height: 1.3;
}

.skill-card:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

/* =====================================
   EXPERIENCE
   ===================================== */
.exp-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.exp-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exp-item:first-child {
  padding-top: 0;
}

.exp-item h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 18px);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.exp-item p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* =====================================
   PROJECTS
   ===================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--bg);
  border-top: 4px solid var(--secondary);
  border-left: 2px solid var(--border-subtle);
  border-right: 2px solid var(--border-subtle);
  border-bottom: 2px solid var(--border-subtle);
  padding: 28px;
  transition: border-color 0.3s, background 0.3s;
}

.project-card:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 18px);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.project-card a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--secondary);
  text-decoration: none;
  transition: opacity 0.2s;
}

.project-card a:hover {
  opacity: 0.7;
}

/* =====================================
   CONTACT
   ===================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--border-subtle);
  border-bottom: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.contact-link:first-child {
  border-top: 2px solid var(--border-subtle);
}

.contact-link:last-child {
  border-bottom: 2px solid var(--border-subtle);
}

.contact-link:hover {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--secondary);
}

.contact-link i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  color: var(--secondary);
}

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

.contact-form input,
.contact-form textarea {
  height: 48px;
  padding: 8px 14px;
  background: var(--bg);
  border: 2px solid var(--border-medium);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-tertiary);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--border-strong);
  box-shadow: var(--focus-ring);
}

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

.contact-form button {
  height: 48px;
  padding: 10px 24px;
  background: var(--primary);
  color: var(--tertiary);
  border: 2px solid var(--border-strong);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.contact-form button:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

.contact-form button:active {
  background: #DC2626;
  border-color: #DC2626;
}

/* =====================================
   FOOTER
   ===================================== */
#sectionNav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 999;
}

#sectionNav a {
  width: 10px;
  height: 10px;
  border: 2px solid var(--border-medium);
  background: transparent;
  transition: background 0.3s, border-color 0.3s, transform 0.25s;
}

#sectionNav a:hover {
  border-color: var(--secondary);
  transform: scale(1.4);
}

#sectionNav a.active {
  background: var(--secondary);
  border-color: var(--secondary);
  transform: scale(1.4);
}

@media (max-width: 900px) {
  #sectionNav {
    display: none;
  }
}

footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 2px solid var(--border-subtle);
  text-align: center;
}

footer p {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* =====================================
   SCROLL REVEAL
   ===================================== */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (min-width: 901px) {
  .hidden {
    transform: translateY(90px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .show {
    transform: translateY(0) scale(1);
  }
}

/* =====================================
   RESPONSIVE — DESKTOP HERO
   ===================================== */
@media (min-width: 901px) {
  .hero-image {
    max-width: 480px;
  }
  .hero-image-frame img {
    max-width: 440px;
  }
  .badge {
    color: #FAFAFA;
    border-color: #EF4444;
    background: rgba(239,68,68,0.15);
  }
  .hero-line {
    color: #FAFAFA;
  }
  .typing-wrapper {
    color: rgba(255,255,255,0.75);
  }
  .hero-desc {
    color: rgba(255,255,255,0.75);
  }
  .btn-primary {
    background: #EF4444;
    border-color: #EF4444;
    color: #FAFAFA;
  }
  .btn-primary:hover {
    background: #DC2626;
    border-color: #DC2626;
  }
  .btn-secondary {
    border-color: #FAFAFA;
    color: #FAFAFA;
  }
  .btn-secondary:hover {
    background: #FAFAFA;
    color: #0A0A0A;
  }
  .hero-meta {
    color: rgba(255,255,255,0.4);
    border-top-color: rgba(255,255,255,0.1);
  }
}

/* =====================================
   RESPONSIVE — TABLET (≤900px)
   ===================================== */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: left;
    gap: 32px;
    padding: 110px 24px 56px;
    min-height: auto;
  }
  .hero::before {
    display: none;
  }

  .hero-content {
    max-width: 100%;
    padding-left: 0;
  }

  .hero-accent {
    display: none;
  }

  .hero-headline {
    max-width: 100%;
  }

  .hero-line:last-child {
    display: inline-block;
  }

  .hero-divider {
    margin: 16px 0;
  }

  .hero-image {
    max-width: 280px;
    align-self: center;
  }

  .hero-image-frame img {
    max-width: 280px;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-meta {
    margin: 24px 0 0;
  }

  .typing-wrapper {
    margin-bottom: 20px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 24px 48px;
  }

  .stat-card {
    padding: 28px 16px;
  }

  .stat-card:nth-child(2) {
    border-right: 2px solid var(--border-subtle);
  }

  .stat-card:nth-child(3),
  .stat-card:nth-child(4) {
    border-top: none;
  }

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

  .contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .contact-link {
    border: 2px solid var(--border-subtle);
    justify-content: center;
    padding: 18px 14px;
  }

  .contact-link:first-child {
    border-top: 2px solid var(--border-subtle);
  }

  .contact-link:last-child {
    border-bottom: 2px solid var(--border-subtle);
  }
}

/* =====================================
   RESPONSIVE — MOBILE (≤768px)
   ===================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  #menuBtn {
    display: flex;
  }

  :root {
    --section-space: 48px;
  }

  .hero {
    padding: 120px 24px 56px;
    gap: 0;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
    background: none;
  }

  .hero-image {
    position: absolute;
    inset: 0;
    max-width: none;
    z-index: 0;
    overflow: hidden;
    flex: none;
  }

  .hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
  }

  .hero-image-frame {
    width: 100%;
    height: 100%;
  }

  .hero-image-frame img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border: none;
  }

  .hero-image-accent {
    display: none;
  }

  .hero-content {
    position: relative;
    z-index: 2;
    color: #FAFAFA;
  }

  .hero-line {
    color: #FAFAFA;
  }

  .hero-line:last-child {
    border-bottom-color: var(--secondary);
  }

  .typing-wrapper {
    color: rgba(255,255,255,0.75);
  }

  .hero-desc {
    color: rgba(255,255,255,0.8);
  }

  .btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #FAFAFA;
  }

  .btn-primary:hover {
    background: #DC2626;
    border-color: #DC2626;
  }

  .btn-secondary {
    border-color: #FAFAFA;
    color: #FAFAFA;
  }

  .btn-secondary:hover {
    background: #FAFAFA;
    color: #0A0A0A;
  }

  .hero-meta {
    color: rgba(255,255,255,0.5);
    border-top-color: rgba(255,255,255,0.15);
  }

  .badge {
    font-size: 9px;
    padding: 4px 10px;
    margin-bottom: 12px;
  }

  .hero-line {
    font-size: 1.65rem;
  }

  .hero-line:last-child {
    border-bottom-width: 2px;
    padding-bottom: 4px;
  }

  .hero-divider {
    width: 36px;
    height: 3px;
    margin: 14px 0;
  }

  .typing-wrapper {
    font-size: 0.95rem;
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .hero-buttons {
    gap: 10px;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 12px;
    padding: 10px 20px;
    flex: 1;
    text-align: center;
    min-width: 140px;
  }

  .hero-meta {
    font-size: 10px;
    margin-top: 20px;
    padding-top: 12px;
  }

  .stats {
    padding: 0 20px 32px;
  }

  .stat-card {
    padding: 16px 10px;
  }

  .stat-card h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
  }

  .stat-card p {
    font-size: 10px;
  }

  .section {
    padding: var(--section-space) 20px;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }

  .overline {
    font-size: 10px;
    margin-bottom: 6px;
  }

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

  .project-card {
    padding: 20px;
  }

  .project-card h3 {
    font-size: 0.95rem;
  }

  .project-card p {
    font-size: 13px;
  }

  .skills-grid {
    gap: 12px;
  }

  .skill-group {
    gap: 6px;
  }

  .skill-group-label {
    width: auto;
    flex: 0 0 100%;
    padding: 0;
  }

  .skill-card {
    padding: 8px 14px;
    font-size: 10px;
  }

  .card-elevated {
    padding: 20px;
  }

  .card-elevated p {
    font-size: 14px;
  }

  .timeline-item {
    padding: 14px 14px 14px 16px;
  }

  .timeline-item h3 {
    font-size: 0.95rem;
  }

  .timeline-item p {
    font-size: 13px;
  }

  .exp-item {
    padding: 14px 0;
  }

  .exp-item h3 {
    font-size: 0.95rem;
  }

  .exp-item p {
    font-size: 13px;
  }

  .contact-container {
    gap: 20px;
  }

  .contact-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-link {
    padding: 14px;
    font-size: 14px;
    gap: 10px;
  }

  .contact-link i {
    font-size: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    height: 42px;
    font-size: 13px;
    padding: 6px 12px;
  }

  .contact-form textarea {
    height: 100px;
  }

  .contact-form button {
    height: 42px;
    font-size: 12px;
    padding: 8px 20px;
  }

  footer {
    padding: 24px 20px;
  }

  footer p {
    font-size: 11px;
  }
}

/* =====================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ===================================== */
@media (max-width: 480px) {
  .hero {
    padding: 90px 16px 32px;
    gap: 20px;
  }

  .hero {
    padding: 100px 20px 48px;
    min-height: 70vh;
  }

  .badge {
    font-size: 8px;
    padding: 3px 8px;
  }

  .hero-line {
    font-size: 1.4rem;
  }

  .hero-line:last-child {
    border-bottom-width: 2px;
    padding-bottom: 3px;
  }

  .typing-wrapper {
    font-size: 0.85rem;
  }

  .hero-desc {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 11px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .hero-meta {
    font-size: 9px;
    margin-top: 16px;
    padding-top: 10px;
  }

  .stats {
    padding: 0 12px 24px;
  }

  .stat-card {
    padding: 14px 8px;
  }

  .stat-card h3 {
    font-size: 1.2rem;
  }

  .stat-card p {
    font-size: 9px;
  }

  .skills-grid {
    gap: 10px;
  }

  .skill-group {
    gap: 5px;
  }

  .skill-group-label {
    width: auto;
    flex: 0 0 100%;
    font-size: 9px;
    padding: 0;
  }

  .skill-card {
    padding: 6px 12px;
    font-size: 9px;
  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .section {
    padding: 40px 16px;
  }

  .overline {
    font-size: 9px;
  }

  .card-elevated {
    padding: 16px;
  }

  .card-elevated p {
    font-size: 13px;
  }

  .project-card {
    padding: 16px;
  }

  .timeline-item {
    padding: 12px 12px 12px 14px;
  }

  footer {
    padding: 20px 16px;
  }

  footer p {
    font-size: 10px;
  }
}
