/* ==========================================================================
   WAHYU NUGROHO INDRAWINATA — EXECUTIVE PORTFOLIO DESIGN SYSTEM
   Modern, Clean, High-End Tech & Data Engineering Aesthetic
   ========================================================================== */

:root {
  /* Dark Theme (Default) */
  --bg-body: #080c14;
  --bg-surface: #0e1526;
  --bg-surface-elevated: #162035;
  --bg-card: rgba(16, 24, 42, 0.75);
  --bg-card-hover: rgba(24, 36, 62, 0.9);
  --bg-glass: rgba(14, 21, 38, 0.7);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: #38bdf8;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0b0f19;

  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;

  --gradient-accent: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px -5px rgba(56, 189, 248, 0.2);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  --nav-height: 76px;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.8);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.15);
  --border-focus: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.2);
  --accent-blue: #2563eb;
  --accent-indigo: #4f46e5;
  --accent-emerald: #059669;

  --gradient-accent: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.08) 0%, transparent 70%);
  --gradient-card: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, transparent 100%);

  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 30px -5px rgba(2, 132, 199, 0.15);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  background-image:
    radial-gradient(at 10% 10%, rgba(56, 189, 248, 0.04) 0px, transparent 50%),
    radial-gradient(at 90% 25%, rgba(99, 102, 241, 0.04) 0px, transparent 50%),
    radial-gradient(at 50% 75%, rgba(16, 185, 129, 0.03) 0px, transparent 50%);
  background-attachment: fixed;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

::selection {
  background: var(--accent-cyan);
  color: #0b0f19;
}

/* ==========================================================================
   LAYOUT CONTAINERS & UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 3rem 0 4.5rem;
}

.section-header {
  margin-bottom: 2.25rem;
  max-width: 720px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-pill);
  margin-bottom: 0.9rem;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(56, 189, 248, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.05);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: var(--bg-surface-elevated);
  transform: translateY(-2px);
}

/* ==========================================================================
   NAVIGATION BAR (STICKY & GLASS)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-color var(--transition-normal);
  background: transparent;
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
  filter: blur(4.5px) brightness(0.92);
  transition: filter 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: filter, transform;
  cursor: pointer;
}

.nav-brand:hover .brand-avatar,
.brand-avatar:hover,
.brand-avatar:active {
  filter: blur(0px) brightness(1);
  transform: scale(1.06);
  box-shadow: 0 0 18px var(--accent-cyan);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-role {
  font-size: 0.72rem;
  color: var(--accent-cyan);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.4rem 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Language Switcher Pill */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  padding: 3px;
  position: relative;
}

.lang-btn {
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--accent-cyan);
  color: var(--text-inverse);
  box-shadow: 0 2px 6px var(--accent-cyan-glow);
}

/* Theme Toggle Button */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* Navbar CV Button - Hidden on Beranda, appears smoothly on scroll */
#nav-cv-btn {
  opacity: 0;
  visibility: hidden;
  max-width: 0;
  padding-left: 0;
  padding-right: 0;
  margin-left: -0.8rem;
  border-width: 0;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  transform: scale(0.85);
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              padding 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              margin-left 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s;
}

#nav-cv-btn.visible {
  opacity: 1;
  visibility: visible;
  max-width: 170px;
  padding: 0.5rem 1rem;
  margin-left: 0;
  border-width: 1px;
  transform: scale(1);
  pointer-events: auto;
}

/* Mobile Hamburger */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
}

.mobile-toggle svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   HERO SECTION (EXECUTIVE POSITIONING)
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.4rem;
  width: fit-content;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.3rem;
  line-height: 1.35;
}

.hero-statement {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-social-link {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.hero-social-link:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: var(--bg-surface-elevated);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(56, 189, 248, 0.15);
}

.hero-social-link svg {
  width: 20px;
  height: 20px;
}

/* Avatar Metrics Grid (Directly Under Portrait Photo) */
.avatar-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 1rem;
}

.avatar-metrics-grid .metric-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-fast);
}

.avatar-metrics-grid .metric-item:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-surface);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.12);
}

.avatar-metrics-grid .metric-number {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1.1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.avatar-metrics-grid .metric-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.3;
}

/* Hero Visual / Avatar Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-card-wrapper {
  position: relative;
  max-width: 380px;
  width: 100%;
}

.avatar-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(99, 102, 241, 0.12) 50%, transparent 70%);
  filter: blur(35px);
  z-index: 0;
  pointer-events: none;
}

.avatar-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.avatar-card:hover {
  transform: translateY(-4px);
}

.avatar-img-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  aspect-ratio: 1 / 1.08;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Default state: Foto blur ketika pertama kali masuk */
.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: blur(14px) brightness(0.92);
  transform: scale(1.08);
  transition: filter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: filter, transform;
}

/* Hover state: Ketika kursor ke foto, foto menjadi jelas & tajam */
.avatar-img-container:hover .avatar-img,
.avatar-img-container:focus-visible .avatar-img,
.avatar-img-container.is-revealed .avatar-img {
  filter: blur(0px) brightness(1);
  transform: scale(1.02);
}

/* Badge hint interaktif di atas foto blur */
.avatar-blur-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.85rem;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-pill);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.avatar-blur-hint svg {
  flex-shrink: 0;
  animation: pulse-eye 2.4s ease-in-out infinite;
}

@keyframes pulse-eye {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.avatar-img-container:hover .avatar-blur-hint,
.avatar-img-container:focus-visible .avatar-blur-hint,
.avatar-img-container.is-revealed .avatar-blur-hint {
  opacity: 0;
  transform: translate(-50%, 6px);
  pointer-events: none;
}

/* Avatar metrics styles are defined under .avatar-metrics-grid */

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-narrative p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-narrative strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-fast);
}

.pillar-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
}

.pillar-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   EXPERIENCE SECTION (EXECUTIVE TIMELINE)
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, rgba(99, 102, 241, 0.3) 70%, transparent 100%);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 3.5rem;
}

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

.timeline-node {
  position: absolute;
  left: 18px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan-glow);
  z-index: 2;
  transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-node {
  transform: scale(1.25);
  background: var(--accent-cyan);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.timeline-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.timeline-badge.current {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.timeline-body p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

.timeline-bullets {
  list-style: none;
  margin: 0.85rem 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

.timeline-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.timeline-card:hover .tech-tag {
  border-color: rgba(56, 189, 248, 0.25);
}

/* ==========================================================================
   SKILLS & DOMAIN MATRIX SECTION
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: all var(--transition-fast);
}

.skill-category-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.skill-cat-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-cat-icon svg {
  width: 20px;
  height: 20px;
}

.skill-cat-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-cat-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}

.skill-name {
  color: var(--text-primary);
  font-weight: 500;
}

.skill-level-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* ==========================================================================
   PROJECTS SHOWCASE SECTION
   ========================================================================== */
.projects-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.filter-btn.active {
  background: var(--accent-cyan);
  color: var(--text-inverse);
  border-color: var(--accent-cyan);
  box-shadow: 0 2px 10px var(--accent-cyan-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card.featured {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .project-card.featured {
    grid-column: span 1;
  }
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface-elevated);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image {
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.2) 0%, rgba(8, 12, 20, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.project-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.75rem;
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.project-content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.project-subtitle {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-impact {
  background: var(--bg-surface-elevated);
  border-left: 3px solid var(--accent-cyan);
  padding: 0.6rem 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.project-impact strong {
  color: var(--text-primary);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ==========================================================================
   EDUCATION & CERTIFICATIONS
   ========================================================================== */
.credentials-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .credentials-grid {
    grid-template-columns: 1fr;
  }
}

.credential-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.credential-card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.credential-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.credential-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.credential-org {
  font-size: 0.92rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.credential-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT & EXECUTIVE CTA
   ========================================================================== */
.contact-card {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-surface-elevated) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .contact-card {
    padding: 2rem 1.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.contact-info-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.channel-item:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-icon svg {
  width: 20px;
  height: 20px;
}

.channel-text {
  display: flex;
  flex-direction: column;
}

.channel-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.channel-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 0.94rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 2.5rem 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   MODAL DIALOG (PROJECT DETAILS)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform var(--transition-fast);
}

.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 12, 20, 0.6);
  border: 1px solid var(--border-medium);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--accent-cyan);
  color: #0b0f19;
}

.modal-image-wrap {
  width: 100%;
  max-height: 360px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-body {
  padding: 2rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.modal-meta-item {
  display: flex;
  flex-direction: column;
}

.modal-meta-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.modal-meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 2.25rem 0;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-copy {
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Premium Back to Top Pill */
.footer-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.6rem 0.45rem 1.15rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.footer-back-to-top:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  background: var(--bg-surface);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.18);
}

.footer-back-to-top .top-icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.footer-back-to-top:hover .top-icon-wrap {
  transform: translateY(-2px);
  background: var(--accent-cyan);
  color: #0b0f19;
}

/* ==========================================================================
   MOBILE MENU DRAWER
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-medium);
  z-index: 1500;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 993px) {
  .mobile-drawer,
  .drawer-backdrop {
    display: none !important;
  }
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.drawer-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.drawer-link:hover,
.drawer-link.active {
  color: var(--accent-cyan);
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1400;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   DRAWER ACTIONS & FOOTER
   ========================================================================== */
.drawer-footer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.drawer-lang-row,
.drawer-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.drawer-action-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   Desktop (>= 1280px) remains completely unchanged.
   ========================================================================== */

/* Tablet Landscape & Medium Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .hero-visual {
    order: -1;
  }
  .avatar-card-wrapper {
    max-width: 320px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Tablet Portrait & Small Laptops (<= 992px) */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .project-card.featured {
    grid-column: span 2;
  }
  .contact-card {
    padding: 2.5rem 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Tablets Portrait & Large Mobiles (<= 768px) */
@media (max-width: 768px) {
  /* Mobile Navbar Header: Display ONLY [ Logo / Name ] on left and [ ☰ ] on right */
  .navbar .nav-actions .lang-switcher,
  .navbar .nav-actions .theme-toggle,
  .navbar .nav-actions .cv-download-btn {
    display: none !important;
  }

  .navbar .nav-actions {
    gap: 0;
  }

  .nav-brand .brand-role {
    display: none;
  }

  .section-padding {
    padding: 2.5rem 0 3.5rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title,
  #about-title,
  #experience-title,
  #skills-title,
  #projects-title,
  #credentials-title,
  #contact-title {
    text-wrap: balance;
  }

  /* Content-Driven Section Heights - Absolutely No Overflow/Hanging */
  section,
  #home,
  #about,
  #experience,
  #skills,
  #projects,
  #credentials,
  #contact {
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
  }

  /* Hero Section: Natural Content Flow */
  .hero {
    min-height: auto !important;
    height: auto !important;
    padding-top: calc(var(--nav-height) + 1.25rem);
    padding-bottom: 2.75rem;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }

  .hero-content {
    order: 1; /* Content first */
    width: 100%;
  }

  .hero-visual {
    order: 2; /* Profile Card follows naturally beneath content */
    width: 100%;
    margin-top: 0.5rem;
  }

  .avatar-card-wrapper {
    max-width: min(270px, 80vw);
    width: 100%;
    margin: 0 auto;
  }

  .avatar-card {
    padding: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .hero-socials {
    gap: 0.75rem;
  }

  .hero-social-link {
    width: 44px;
    height: 44px;
  }

  /* About Section: 1 Column Natural Vertical Flow */
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }

  .about-narrative {
    width: 100%;
  }

  .about-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .pillar-card {
    width: 100%;
    box-sizing: border-box;
    position: relative;
    transform: none !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    padding: 1.25rem;
  }

  .avatar-metrics-grid {
    gap: 0.5rem;
  }

  .avatar-metrics-grid .metric-item {
    padding: 0.65rem 0.5rem;
  }

  .avatar-metrics-grid .metric-number {
    font-size: 1.35rem;
  }

  .avatar-metrics-grid .metric-label {
    font-size: 0.7rem;
  }

  /* Timeline mobile adjustments */
  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-item {
    padding-left: 38px;
    margin-bottom: 2.25rem;
  }

  .timeline-node {
    left: 3px;
    top: 5px;
    width: 18px;
    height: 18px;
  }

  .timeline-card {
    padding: 1.35rem 1.15rem;
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .timeline-role {
    font-size: 1.15rem;
  }

  .timeline-company {
    font-size: 0.88rem;
  }

  .timeline-badge {
    margin-top: 0.25rem;
    font-size: 0.74rem;
    padding: 0.25rem 0.65rem;
  }

  /* Skills & Projects mobile stack */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .skill-category-card {
    padding: 1.35rem 1.15rem;
  }

  .projects-filter {
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .filter-btn {
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
    min-height: 38px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .project-content {
    padding: 1.35rem 1.15rem;
  }

  /* Form & Contact mobile touch friendliness */
  .contact-card {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .contact-info-title {
    font-size: 1.65rem;
  }

  .channel-item {
    padding: 0.75rem 1rem;
    min-height: 52px;
  }

  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevents iOS auto-zoom on input focus */
    min-height: 48px;
    padding: 0.85rem 1rem;
  }

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

  #form-submit-btn {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer-copy {
    font-size: 0.8rem;
  }
}

/* Small Mobile Screens (375px, 390px, 414px, 430px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section-padding {
    padding: 2rem 0 3rem;
  }

  .section-title {
    font-size: clamp(1.55rem, 6.2vw, 1.85rem);
    line-height: 1.24;
    text-wrap: balance;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7.2vw, 2.25rem);
    line-height: 1.16;
    letter-spacing: -0.02em;
  }

  #hero-greeting {
    font-size: 0.98rem;
    margin-bottom: 0.25rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.35;
    margin-bottom: 1rem;
  }

  .hero-statement {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
  }

  .hero-pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1.15rem;
  }

  .brand-name {
    font-size: 0.92rem;
  }

  .brand-avatar {
    width: 34px;
    height: 34px;
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 0.74rem;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .mobile-toggle {
    width: 42px;
    height: 42px;
  }

  .avatar-card-wrapper {
    max-width: 240px;
  }

  .avatar-card {
    padding: 0.85rem;
    border-radius: var(--radius-lg);
  }

  .stat-chip {
    padding: 0.5rem 0.75rem;
    gap: 0.65rem;
  }

  .stat-chip-icon {
    width: 30px;
    height: 30px;
  }

  .stat-chip-icon svg {
    width: 15px;
    height: 15px;
  }

  .stat-chip-value {
    font-size: 0.88rem;
  }

  .stat-chip-label {
    font-size: 0.7rem;
  }

  .avatar-metrics-grid {
    gap: 0.4rem;
  }

  .avatar-metrics-grid .metric-item {
    padding: 0.5rem 0.35rem;
  }

  .avatar-metrics-grid .metric-number {
    font-size: 1.25rem;
  }

  .avatar-metrics-grid .metric-label {
    font-size: 0.68rem;
  }

  .modal-card {
    width: 95%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
  }

  .modal-body {
    padding: 1.25rem;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-meta-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .modal-actions .btn {
    width: 100%;
    min-height: 44px;
  }

  .mobile-drawer {
    width: min(300px, 85vw);
    padding: 1.5rem 1.25rem;
  }

  .drawer-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
  }
}

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