/* ==========================================================================
   1. TYPOGRAPHY & EDITORIAL THEME TOKENS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root,
[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #f3f4f6;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(250, 250, 250, 0.85);

  --border-color: #e4e4e7;
  --border-strong: #d4d4d8;
  --border-hover: #18181b;

  --text-primary: #09090b;
  --text-secondary: #52525b;
  --text-muted: #71717a;

  --accent-primary: #1d4ed8;    /* Editorial Cobalt Blue */
  --accent-hover: #1e40af;
  --accent-soft: rgba(29, 78, 216, 0.08);
  --accent-border: rgba(29, 78, 216, 0.22);

  --status-green: #16a34a;
  --dot-grid: rgba(0, 0, 0, 0.055);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 24px 54px rgba(0, 0, 0, 0.09);

  --btn-primary-bg: #18181b;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #27272a;
}

[data-theme="dark"] {
  --bg-primary: #0b0d11;
  --bg-secondary: #101319;
  --bg-card: #141820;
  --bg-card-hover: #191e28;
  --bg-glass: rgba(11, 13, 17, 0.85);

  --border-color: #222733;
  --border-strong: #2e3545;
  --border-hover: #60a5fa;

  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --accent-primary: #3b82f6;    /* Crisp Studio Blue */
  --accent-hover: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --accent-border: rgba(59, 130, 246, 0.28);

  --status-green: #22c55e;
  --dot-grid: rgba(255, 255, 255, 0.045);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 26px 60px rgba(0, 0, 0, 0.6);

  --btn-primary-bg: #f4f4f5;
  --btn-primary-text: #09090b;
  --btn-primary-hover: #e4e4e7;
}

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  background-image: radial-gradient(var(--dot-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 104px 0;
  border-top: 1px solid var(--border-color);
}

.section-alt {
  background-color: var(--bg-secondary);
}

/* ==========================================================================
   3. SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.brand span {
  color: var(--accent-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-menu a:hover {
  color: var(--text-primary);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--accent-primary);
  transition: width 0.25s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

[data-theme="light"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

.nav-cta {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-1px);
}

/* Hamburger Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   4. SHARED HEADINGS & BUTTONS
   ========================================================================== */
.section-heading {
  max-width: 660px;
  margin-bottom: 56px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.section-heading h2 span {
  color: var(--text-muted);
  font-weight: 700;
}

.section-heading p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.button-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: var(--shadow-sm);
}

.button-primary:hover {
  background-color: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.button-secondary:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   5. HERO SECTION (LARGE PORTRAIT + 5 FLOATING BADGES)
   ========================================================================== */
.hero-section {
  min-height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  padding: 72px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  align-items: center;
  gap: 72px;
}

/* Left Side: Large Architectural Portrait */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-backdrop {
  position: absolute;
  inset: -16px;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--accent-soft), transparent 70%);
  border: 1px dashed var(--border-strong);
  z-index: 0;
  pointer-events: none;
}

.portrait-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
}

.portrait-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.profile-frame {
  width: 100%;
  height: 440px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.portrait-wrapper:hover .profile-image {
  transform: scale(1.025);
}

/* 5 Floating Tech Badges Around Portrait */
.floating-tech {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  animation: floatOrbit 5s ease-in-out infinite;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.floating-tech:hover {
  border-color: var(--accent-primary);
  animation-play-state: paused;
  transform: scale(1.06);
}

.floating-tech img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.tech-docker {
  top: 54px;
  left: -34px;
  animation-delay: 0s;
}

.tech-kubernetes {
  top: 86px;
  right: -38px;
  animation-delay: 1s;
}

.tech-laravel {
  top: 50%;
  left: -38px;
  animation-delay: 2s;
}

.tech-redis {
  bottom: 92px;
  right: -32px;
  animation-delay: 3s;
}

.tech-linux {
  bottom: 24px;
  left: -24px;
  animation-delay: 4s;
}

@keyframes floatOrbit {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* Right Side: Editorial Hero Content */
.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 7px 15px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-green);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 5.2vw, 4.3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.hero-content h1 span {
  color: var(--text-muted);
}

.hero-content h2 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 550px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.hero-socials a {
  font-weight: 600;
  color: var(--text-primary);
}

.hero-socials a:hover {
  color: var(--accent-primary);
}

.hero-socials .divider {
  color: var(--border-strong);
}

.hero-socials .location-tag {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-note span:first-child {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-weight: 600;
}

/* ==========================================================================
   6. ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.about-lead {
  font-size: clamp(1.35rem, 2.3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.about-meta-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.meta-item span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta-item strong {
  font-weight: 600;
  color: var(--text-primary);
}

.about-description p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 1.03rem;
}

.education-card {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.education-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.education-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-primary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.education-card strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.education-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   7. TECHNOLOGY STACK
   ========================================================================== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.stack-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stack-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.stack-card img,
.stack-card svg {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.stack-card .aws-svg {
  width: 52px;
  height: 38px;
  color: var(--text-primary);
}

[data-theme="dark"] .adaptive-icon {
  filter: invert(1) brightness(1.8);
}

.stack-card span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.stack-card.custom-stack .custom-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-primary);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   8. PROJECTS SECTION
   ========================================================================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.project-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.project-symbol {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.project-card:hover .project-symbol {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
}

.project-card h3 {
  font-size: 1.38rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.project-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 26px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   9. ACADEMIC ACHIEVEMENTS & MEMORIES
   ========================================================================== */
.achievement-grid {
  margin-bottom: 68px;
}

.achievement-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.achievement-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.achievement-image-wrap {
  background: var(--bg-primary);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-color);
}

.achievement-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.achievement-info {
  padding: 40px;
}

.achievement-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.achievement-info h3 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.achievement-info p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.gallery-heading {
  margin-bottom: 28px;
}

.gallery-heading h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.memory-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.memory-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.memory-img-box {
  overflow: hidden;
  height: 215px;
}

.memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.memory-card:hover img {
  transform: scale(1.05);
}

.memory-caption {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.memory-caption span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.memory-caption h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   10. INTERESTS SECTION
   ========================================================================== */
.interest-content {
  text-align: center;
  max-width: 820px;
}

.interest-content h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.interest-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.interest-list span {
  padding: 11px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.interest-list span:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   11. CONTACT SECTION & FOOTER
   ========================================================================== */
.contact-section {
  background-color: var(--bg-secondary);
}

.contact-box {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-box h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.contact-box h2 span {
  color: var(--text-muted);
}

.contact-box p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 30px;
  font-size: 1.03rem;
}

.contact-links {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.contact-links a {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.contact-links a:hover {
  color: var(--accent-primary);
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 56px;
  }

  .portrait-wrapper {
    max-width: 370px;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-socials,
  .hero-note {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .achievement-card {
    grid-template-columns: 1fr;
  }

  .achievement-image-wrap {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .memory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-menu {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 20px;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 76px 0;
  }

  .hero-section {
    padding: 44px 0 76px;
  }

  .portrait-wrapper {
    max-width: 320px;
    padding: 12px;
  }

  .profile-frame {
    height: 360px;
  }

  /* Responsive Docking for the 5 Floating Badges on Mobile */
  .floating-tech-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
  }

  .floating-tech {
    position: static;
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .floating-tech img {
    width: 22px;
    height: 22px;
  }

  .project-grid,
  .memory-grid {
    grid-template-columns: 1fr;
  }

  .stack-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .contact-box {
    padding: 44px 22px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}