/* ==========================================================================
   ARAVIND S - LIQUID IPHONE THEME STYLESHEET
   Ultra-Frosted Glassmorphism, Dynamic Island Nav, Fluid Aurora Orbs
   ========================================================================== */

/* --- Design Tokens & Color Palettes --- */
:root {
  /* Dark Liquid Theme (Default) */
  --bg-canvas: #070a12;
  --bg-secondary: #0d121f;
  --bg-card: rgba(18, 24, 38, 0.65);
  --bg-card-hover: rgba(26, 35, 56, 0.78);
  --bg-island: rgba(13, 18, 30, 0.75);
  
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-hover: rgba(56, 189, 248, 0.45);
  --border-specular: rgba(255, 255, 255, 0.22);
  --inner-shadow-glass: inset 0 1px 1px 0 rgba(255, 255, 255, 0.16);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Liquid Neon Accents */
  --liquid-cyan: #38bdf8;
  --liquid-indigo: #818cf8;
  --liquid-purple: #c084fc;
  --liquid-emerald: #34d399;
  --liquid-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --liquid-gradient-subtle: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(129, 140, 248, 0.15));

  --shadow-liquid-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-liquid-md: 0 12px 36px rgba(0, 0, 0, 0.38);
  --shadow-liquid-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.28);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-ios-sm: 12px;
  --radius-ios-md: 18px;
  --radius-ios-lg: 28px;
  --radius-ios-pill: 9999px;

  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 80px;
}

/* Light Liquid Theme */
[data-theme="light"] {
  --bg-canvas: #f2f5fa;
  --bg-secondary: #e9eef6;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.92);
  --bg-island: rgba(255, 255, 255, 0.82);

  --border-glass: rgba(0, 0, 0, 0.08);
  --border-glass-hover: rgba(2, 132, 199, 0.4);
  --border-specular: rgba(255, 255, 255, 0.8);
  --inner-shadow-glass: inset 0 1px 2px 0 rgba(255, 255, 255, 0.9);

  --text-primary: #090e17;
  --text-secondary: #475569;
  --text-muted: #8e9bb0;

  --liquid-cyan: #0284c7;
  --liquid-indigo: #4f46e5;
  --liquid-purple: #9333ea;
  --liquid-emerald: #059669;
  --liquid-gradient: linear-gradient(135deg, #0284c7 0%, #4f46e5 50%, #9333ea 100%);
  --liquid-gradient-subtle: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(79, 70, 229, 0.08));

  --shadow-liquid-sm: 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-liquid-md: 0 12px 30px rgba(0, 0, 0, 0.08);
  --shadow-liquid-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(2, 132, 199, 0.18);
}

/* --- Base & Resets --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease-smooth), color 0.4s var(--ease-smooth);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
}

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
}

/* ==========================================================================
   LIQUID BACKGROUND AURORA (iPhone Dynamic Fluid Orbs)
   ========================================================================== */
.liquid-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.liquid-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  transition: opacity 0.5s ease;
}

.orb-1 {
  width: 580px;
  height: 580px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.35) 0%, rgba(129, 140, 248, 0.2) 60%, transparent 80%);
  animation: floatOrb1 18s infinite alternate ease-in-out;
}

.orb-2 {
  width: 500px;
  height: 500px;
  bottom: 5%;
  left: -100px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.3) 0%, rgba(56, 189, 248, 0.18) 60%, transparent 80%);
  animation: floatOrb2 22s infinite alternate ease-in-out;
}

.orb-3 {
  width: 420px;
  height: 420px;
  top: 45%;
  right: 15%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.22) 0%, rgba(56, 189, 248, 0.15) 60%, transparent 80%);
  animation: floatOrb3 15s infinite alternate ease-in-out;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, 80px) scale(1.08); }
  100% { transform: translate(-120px, 40px) scale(0.95); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(0.95); }
  50% { transform: translate(80px, -60px) scale(1.1); }
  100% { transform: translate(40px, -110px) scale(1); }
}

@keyframes floatOrb3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-80px, -70px) scale(1.15); }
}

/* Layout Containers */
.section-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section-wrapper {
  padding: 6.5rem 0;
  position: relative;
}

/* Typography Helpers */
.liquid-gradient-text {
  background: var(--liquid-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.75rem;
}

.ios-section-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-ios-pill);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--liquid-cyan);
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.15);
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

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

/* ==========================================================================
   LIQUID GLASS CARDS (iPhone Widget Style)
   ========================================================================== */
.liquid-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-ios-lg);
  box-shadow: var(--shadow-liquid-sm), var(--inner-shadow-glass);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}

.liquid-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-liquid-md), var(--shadow-glow), var(--inner-shadow-glass);
  border-color: var(--border-glass-hover);
}

/* ==========================================================================
   LIQUID BUTTONS
   ========================================================================== */
.btn-liquid-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-ios-pill);
  background: var(--liquid-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: all 0.3s var(--ease-spring);
  white-space: nowrap;
}

.btn-liquid-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 32px rgba(56, 189, 248, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-liquid-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-liquid-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-ios-pill);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-liquid-sm), var(--inner-shadow-glass);
  transition: all 0.3s var(--ease-spring);
  white-space: nowrap;
}

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

.btn-liquid-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-ios-pill);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-liquid-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   TOP BAR: DYNAMIC ISLAND NAVIGATION & TOP CONNECT DOCK
   ========================================================================== */
.ios-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 1.25rem;
  pointer-events: none;
}

.ios-island-nav {
  pointer-events: auto;
  max-width: 1180px;
  margin: 0 auto;
  height: 64px;
  background: var(--bg-island);
  backdrop-filter: blur(32px) saturate(210%);
  -webkit-backdrop-filter: blur(32px) saturate(210%);
  border: 1px solid var(--border-glass);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), var(--inner-shadow-glass);
  border-radius: var(--radius-ios-pill);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  transition: all 0.3s ease;
}

/* Island Brand Logo */
.island-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-monogram {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--liquid-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}

.brand-fullname {
  letter-spacing: -0.3px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.2);
  color: var(--liquid-cyan);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* Nav Menu */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.2s ease;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--liquid-gradient);
  border-radius: var(--radius-ios-pill);
}

/* TOP CONNECT DOCK */
.top-connect-dock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-ios-pill);
  border: 1px solid var(--border-glass);
}

.dock-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  position: relative;
  transition: all 0.25s var(--ease-spring);
}

.dock-btn:hover {
  color: #ffffff;
  background: var(--liquid-gradient);
  transform: scale(1.18);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

.dock-tooltip {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #090e17;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-btn:hover .dock-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Island Controls */
.island-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* iOS Toggle Switch */
.ios-switch-btn {
  width: 50px;
  height: 28px;
  border-radius: var(--radius-ios-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  padding: 2px;
  position: relative;
  transition: background 0.3s ease;
}

.switch-handle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #090e17;
  transform: translateX(0);
  transition: transform 0.3s var(--ease-spring);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.switch-handle svg {
  width: 13px;
  height: 13px;
}

.switch-handle .sun-icon { display: none; }
.switch-handle .moon-icon { display: block; }

[data-theme="light"] .switch-handle {
  transform: translateX(22px);
  background: #090e17;
  color: #ffffff;
}

[data-theme="light"] .switch-handle .sun-icon { display: block; }
[data-theme="light"] .switch-handle .moon-icon { display: none; }

/* Resume Pill */
.ios-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-ios-pill);
  background: rgba(56, 189, 248, 0.15);
  color: var(--liquid-cyan);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: all 0.25s var(--ease-spring);
}

.ios-pill-btn:hover {
  background: var(--liquid-cyan);
  color: #090e17;
  transform: scale(1.04);
}

/* Hamburger */
.ios-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  padding: 4px;
}

.ios-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.ios-hamburger.active span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.ios-hamburger.active span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ==========================================================================
   1. HERO SECTION (Liquid iPhone Widget Layout)
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 5.5rem;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 3.5rem;
  align-items: center;
}

.liquid-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-ios-pill);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--liquid-cyan);
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(56, 189, 248, 0.15);
}

.liquid-dot {
  width: 8px;
  height: 8px;
  background: var(--liquid-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--liquid-emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.typewriter-container {
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--liquid-indigo);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.typewriter-prefix {
  color: var(--text-secondary);
  margin-right: 0.4rem;
}

.typewriter-cursor {
  color: var(--liquid-cyan);
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.6rem;
  max-width: 620px;
  line-height: 1.7;
}

/* Hero Contact & Social Strip (Clean & Organized) */
.hero-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
  align-items: center;
}

.hero-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-ios-pill);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-spring);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.hero-contact-pill:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--liquid-cyan);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.25);
}

.pill-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--liquid-cyan);
  flex-shrink: 0;
}

.pill-text {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
  letter-spacing: -0.1px;
}

.hero-contact-pill.location-pill {
  cursor: default;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.tech-pill-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.liquid-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-ios-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

/* ==========================================================================
   iOS GLASS CODE WIDGET
   ========================================================================== */
.ios-widget-glass {
  background: var(--bg-card);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-ios-lg);
  box-shadow: var(--shadow-liquid-lg), var(--shadow-glow), var(--inner-shadow-glass);
  overflow: hidden;
  position: relative;
}

.widget-header {
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ios-window-dots {
  display: flex;
  gap: 6px;
}

.ios-window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ios-window-dots span:nth-child(1) { background: #ff5f56; }
.ios-window-dots span:nth-child(2) { background: #ffbd2e; }
.ios-window-dots span:nth-child(3) { background: #27c93f; }

.widget-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.ios-mini-action {
  color: var(--text-secondary);
  background: transparent;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.ios-mini-action:hover {
  color: var(--liquid-cyan);
}

.widget-body {
  padding: 1.35rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: auto;
}

.token-keyword { color: #f472b6; font-weight: 600; }
.token-class { color: #38bdf8; font-weight: 700; }
.token-function { color: #60a5fa; }
.token-string { color: #34d399; }
.token-boolean { color: #fb923c; }

.widget-metrics {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-glass);
}

.metric-item {
  text-align: center;
}

.metric-val {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--liquid-cyan);
  line-height: 1.1;
}

.metric-lbl {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: var(--border-glass);
}

/* ==========================================================================
   2. ABOUT ME SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.story-card, .timeline-card {
  padding: 2.5rem;
}

.liquid-card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-ios-md);
  background: rgba(56, 189, 248, 0.12);
  color: var(--liquid-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.story-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.story-card p {
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
}

.about-highlights {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--text-primary);
}

.highlight-item svg {
  color: var(--liquid-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Timeline */
.timeline-header-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.timeline-header-title svg {
  color: var(--liquid-cyan);
}

.timeline-list {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 2px;
  background: var(--border-glass);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.8rem;
}

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

.timeline-marker {
  position: absolute;
  top: 5px;
  left: -1.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-glass);
  border: 2px solid var(--bg-canvas);
  transform: translateX(-1px);
}

.timeline-marker.active {
  background: var(--liquid-cyan);
  box-shadow: 0 0 12px var(--liquid-cyan);
}

.timeline-marker.future {
  background: var(--liquid-indigo);
  border: 2px dashed var(--liquid-indigo);
}

.timeline-period {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--liquid-cyan);
  margin-bottom: 0.25rem;
}

.badge-tag {
  background: rgba(56, 189, 248, 0.15);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
}

.timeline-org {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.timeline-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Special Martial Arts & Athletic Discipline Card */
.karate-card {
  padding: 2.25rem 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08) 0%, rgba(56, 189, 248, 0.08) 50%, rgba(129, 140, 248, 0.06) 100%);
  border: 1px solid rgba(234, 179, 8, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 25px rgba(234, 179, 8, 0.12);
}

.karate-header-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.2rem;
}

.karate-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-ios-md);
  background: linear-gradient(135deg, #eab308, #f59e0b);
  color: #090e17;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(234, 179, 8, 0.4);
  flex-shrink: 0;
}

.karate-header-text {
  flex-grow: 1;
}

.karate-kicker {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #eab308;
  margin-bottom: 2px;
}

.karate-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.karate-medals-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #facc15;
}

.karate-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.karate-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-ios-md);
  border: 1px solid var(--border-glass);
}

.k-stat-item {
  text-align: center;
}

.k-stat-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #eab308;
  line-height: 1.2;
}

.k-stat-lbl {
  font-size: 0.74rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Competencies Bar */
.competencies-block {
  padding: 1.75rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.competencies-title {
  font-size: 1.1rem;
  font-weight: 800;
}

.competency-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.comp-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-ios-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.comp-tag:hover {
  border-color: var(--liquid-cyan);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   3. SKILLS SECTION
   ========================================================================== */
.skills-filter-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-ios-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-liquid-sm);
  transition: all 0.25s ease;
}

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

.filter-btn.active {
  background: var(--liquid-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.skill-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-ios-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.icon-python { color: #38bdf8; }
.icon-django { color: #10b981; }
.icon-js { color: #facc15; }
.icon-mysql { color: #38bdf8; }
.icon-html { color: #f97316; }
.icon-css { color: #38bdf8; }
.icon-bootstrap { color: #a855f7; }
.icon-api { color: #06b6d4; }
.icon-auth { color: #ec4899; }
.icon-ds { color: #818cf8; }

.framework-tag {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
}

.skill-meta {
  flex-grow: 1;
}

.skill-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.skill-type {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.skill-level-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--liquid-cyan);
}

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

.liquid-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-ios-pill);
  overflow: hidden;
}

.liquid-progress-bar {
  height: 100%;
  background: var(--liquid-gradient);
  border-radius: var(--radius-ios-pill);
  transition: width 1s ease-in-out;
}

/* ==========================================================================
   4. SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
}

.service-card {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
}

.service-badge-num {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.35;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-ios-md);
  background: rgba(56, 189, 248, 0.12);
  color: var(--liquid-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

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

.service-features {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.25rem;
}

.service-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--liquid-cyan);
  font-weight: bold;
}

.liquid-arrow-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--liquid-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.25s ease;
}

.liquid-arrow-link:hover {
  transform: translateX(4px);
}

/* ==========================================================================
   5. FEATURED PROJECTS SECTION (3 Featured Cards + Archive Banner)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-header-banner {
  height: 120px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.banner-hms {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%),
              radial-gradient(circle at top right, rgba(56, 189, 248, 0.35), transparent 60%);
}

.banner-phishing {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%),
              radial-gradient(circle at top right, rgba(168, 85, 247, 0.35), transparent 60%);
}

.banner-ecommerce {
  background: linear-gradient(135deg, rgba(4, 120, 87, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%),
              radial-gradient(circle at top right, rgba(52, 211, 153, 0.35), transparent 60%);
}

.banner-finance {
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%),
              radial-gradient(circle at top right, rgba(251, 146, 60, 0.35), transparent 60%);
}

.project-badge-tag {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-ios-pill);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-tech-icons {
  display: flex;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.project-tech-icons span {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-ios-sm);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
}

.project-body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.project-stack-meta {
  font-size: 0.85rem;
  color: var(--liquid-cyan);
  margin-bottom: 1.1rem;
  font-family: var(--font-mono);
}

.project-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.project-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feat-item strong {
  color: var(--text-primary);
}

.feat-item svg {
  color: var(--liquid-emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.p-tag {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-ios-pill);
  color: var(--text-secondary);
}

.project-actions {
  margin-top: auto;
}

/* 10+ Projects Archive Banner */
.projects-archive-banner {
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(129, 140, 248, 0.08) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.archive-banner-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 820px;
}

.archive-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-ios-md);
  background: var(--liquid-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.archive-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

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

/* ==========================================================================
   6. CERTIFICATIONS SECTION
   ========================================================================== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.cert-card {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
}

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

.cert-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-ios-md);
  background: rgba(56, 189, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.2);
}

.cert-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.cert-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-ios-pill);
  background: rgba(56, 189, 248, 0.15);
  color: var(--liquid-cyan);
}

.cert-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cert-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.cert-issuer {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--liquid-cyan);
  margin-bottom: 0.85rem;
}

.cert-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.cert-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-glass);
}

.cert-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--liquid-emerald);
}

.cert-verified-pill svg {
  color: var(--liquid-emerald);
}

/* ==========================================================================
   7. CONTACT US SECTION (PRIVACY PROTECTED - NO PHONE NUMBER)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-subheading {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.contact-lead-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.c-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-ios-md);
  background: rgba(56, 189, 248, 0.12);
  color: var(--liquid-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-details {
  flex-grow: 1;
}

.c-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

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

.c-val:hover {
  color: var(--liquid-cyan);
}

.c-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.c-action-btn:hover {
  color: #ffffff;
  background: var(--liquid-gradient);
  transform: scale(1.1);
}

/* Contact Form */
.contact-form-col {
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

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

.required {
  color: #ef4444;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-ios-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="light"] .form-input {
  background: rgba(255, 255, 255, 0.85);
}

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

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

.error-msg {
  display: none;
  font-size: 0.775rem;
  color: #ef4444;
}

.form-group.has-error .form-input {
  border-color: #ef4444;
}

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

.form-status {
  display: none;
  padding: 0.85rem;
  border-radius: var(--radius-ios-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding-top: 4.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-brand {
  max-width: 380px;
}

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-col-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--liquid-cyan);
}

.footer-social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-spring);
}

.social-btn:hover {
  color: #ffffff;
  background: var(--liquid-gradient);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.4);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.back-to-top-btn:hover {
  color: var(--liquid-cyan);
}

/* ==========================================================================
   MODALS (Resume & Project Architectures)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-ios-lg);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-liquid-lg);
  transform: scale(0.95);
  transition: transform 0.35s var(--ease-spring);
  overflow: hidden;
}

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

.modal-lg {
  max-width: 860px;
}

.modal-sm {
  max-width: 460px;
}

/* Confirmation Popup Modal */
.confirmation-card {
  text-align: center;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow-liquid-lg), 0 0 35px rgba(56, 189, 248, 0.15);
}

.confirmation-header {
  border-bottom: 1px solid var(--border-glass);
}

.confirmation-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.775rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-ios-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.confirmation-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 2rem 2rem;
  gap: 1.15rem;
}

.confirmation-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(52, 211, 153, 0.2));
  border: 2px solid rgba(56, 189, 248, 0.45);
  color: var(--liquid-cyan);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
}

.confirmation-icon-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(56, 189, 248, 0.35);
  animation: rotateConfirmRing 14s linear infinite;
}

@keyframes rotateConfirmRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.confirmation-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.02em;
}

.confirmation-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.confirmation-desc strong {
  color: var(--text-primary);
}

.confirmation-desc span {
  color: var(--liquid-cyan);
  font-weight: 600;
}

.confirmation-info-box {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-ios-md);
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
}

[data-theme="light"] .confirmation-info-box {
  background: rgba(0, 0, 0, 0.04);
}

.confirm-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
}

.confirm-info-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.confirm-info-val {
  color: var(--text-primary);
  font-weight: 600;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.confirm-status-tag {
  color: #34d399;
  font-size: 0.775rem;
  font-weight: 700;
}

.confirmation-note {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.confirm-done-btn {
  width: 100%;
  margin-top: 0.25rem;
}

.modal-header {
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-secondary);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
}

.modal-title-wrap svg {
  color: var(--liquid-cyan);
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-close-btn {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-secondary);
  background: transparent;
  padding: 0 0.5rem;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #ef4444;
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  line-height: 1.6;
}

/* Document Format Inside Resume Modal */
.resume-document {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-ios-md);
  padding: 2.5rem;
}

.doc-header {
  text-align: center;
  border-bottom: 2px solid var(--border-glass);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.doc-name {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.doc-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--liquid-cyan);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.doc-contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.doc-section {
  margin-bottom: 1.6rem;
}

.doc-section-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.doc-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.doc-skill-line {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.doc-skill-line strong {
  color: var(--text-primary);
}

.doc-row-between {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.doc-bold {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.doc-italic {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}

.doc-org {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.doc-project-item, .doc-exp-item, .doc-edu-item {
  margin-bottom: 1.1rem;
}

.doc-project-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.doc-project-sub {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--liquid-cyan);
  margin-bottom: 0.4rem;
}

.doc-bullets {
  list-style: disc;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.doc-bullets li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Architecture Visualizer in Project Modal */
.arch-diagram-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-ios-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.arch-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  text-align: center;
}

.arch-node {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-ios-sm);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.arch-node.highlight {
  border-color: var(--liquid-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.arch-node-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.arch-node-tech {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--liquid-cyan);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-ios-pill);
  box-shadow: var(--shadow-liquid-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s var(--ease-spring);
  pointer-events: auto;
}

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

.toast-success {
  border-left: 4px solid var(--liquid-emerald);
}

.toast-info {
  border-left: 4px solid var(--liquid-cyan);
}

/* ==========================================================================
   PRINT STYLESHEET (Privacy Compliant Resume)
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }

  #resumeModal, #resumeModal * {
    visibility: visible;
  }

  #resumeModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: #ffffff;
    padding: 0;
    margin: 0;
    display: block;
    opacity: 1;
  }

  .modal-card {
    border: none;
    box-shadow: none;
    background: #ffffff;
    color: #000000;
    max-width: 100%;
    transform: none;
  }

  .modal-header, .modal-actions, .modal-close-btn, .ios-header, .site-footer, .liquid-bg-container {
    display: none !important;
  }

  .resume-document {
    border: none;
    padding: 0;
    background: #ffffff;
    color: #000000;
  }

  .doc-name, .doc-section-title, .doc-project-heading, .doc-bold {
    color: #000000 !important;
  }

  .doc-text, .doc-bullets li, .doc-org, .doc-skill-line {
    color: #333333 !important;
  }

  .doc-subtitle, .doc-project-sub {
    color: #1a56db !important;
  }

  a {
    color: #000000 !important;
    text-decoration: none !important;
  }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile & Tablet Optimization)
   ========================================================================== */

/* --- TABLETS & MEDIUM SCREENS (<= 1024px) --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .hero-visual {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

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

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

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- SMALL TABLETS & LARGE PHONES (<= 860px) --- */
@media (max-width: 860px) {
  .ios-header {
    padding: 0.75rem 1rem;
  }

  .ios-island-nav {
    height: 56px;
    border-radius: var(--radius-ios-lg);
    padding: 0 1rem;
  }

  .island-nav-menu {
    display: none;
  }

  .island-nav-menu.open {
    display: block;
    position: fixed;
    top: 70px;
    left: 1rem;
    right: 1rem;
    background: var(--bg-card);
    backdrop-filter: blur(32px) saturate(210%);
    -webkit-backdrop-filter: blur(32px) saturate(210%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-ios-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-liquid-lg);
    z-index: 1001;
  }

  .island-nav-menu.open .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
  }

  .island-nav-menu.open .nav-link {
    font-size: 1.05rem;
    width: 100%;
    padding: 0.35rem 0;
  }

  .ios-hamburger {
    display: flex;
  }

  .ios-pill-btn span {
    display: none;
  }

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

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .competencies-block {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- MOBILE SCREENS (<= 640px) --- */
@media (max-width: 640px) {
  /* Prevent Header Collision & Overflow on Phones */
  .ios-header {
    padding: 0.55rem 0.75rem;
  }

  .ios-island-nav {
    height: 50px;
    padding: 0 0.75rem;
    border-radius: 20px;
  }

  .top-connect-dock {
    display: none; /* Keeps the dynamic island header clean, sleek, and zero-overflow */
  }

  .brand-monogram {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .brand-fullname {
    font-size: 0.95rem;
  }

  .island-controls {
    gap: 0.35rem;
  }

  .ios-switch-btn {
    width: 40px;
    height: 22px;
  }

  .ios-switch-btn .switch-handle {
    width: 16px;
    height: 16px;
  }

  .ios-switch-btn .switch-handle svg {
    width: 11px;
    height: 11px;
  }

  .ios-pill-btn {
    padding: 0.32rem 0.65rem;
  }

  .ios-hamburger {
    width: 34px;
    height: 34px;
  }

  /* Section Spacing on Phone (Removes giant vertical voids) */
  .section-wrapper {
    padding: 3.5rem 0;
  }

  .section-container {
    padding: 0 1rem;
  }

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

  .section-title {
    font-size: 1.85rem;
    letter-spacing: -0.02em;
  }

  .section-desc {
    font-size: 0.92rem;
  }

  /* Hero Section Phone View */
  .hero-section {
    padding-top: calc(var(--nav-height) + 0.85rem);
    padding-bottom: 3.25rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.2rem;
    line-height: 1.15;
    margin-bottom: 0.65rem;
  }

  .typewriter-container {
    font-size: 1.15rem;
    min-height: 2.8rem;
    margin-bottom: 1.15rem;
  }

  .hero-bio {
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 1.35rem;
  }

  /* 2x2 Clean Balanced Grid for Hero Links on Mobile */
  .hero-contact-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .hero-contact-pill {
    width: 100%;
    justify-content: center;
    padding: 0.6rem 0.5rem;
    font-size: 0.82rem;
    gap: 0.45rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  }

  .pill-text {
    font-size: 0.82rem;
  }

  /* Hero Action Buttons on Mobile: Clean 2-column + 1 full */
  .hero-cta-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group .btn-liquid-primary,
  .hero-cta-group .btn-liquid-secondary {
    width: 100%;
    padding: 0.75rem 0.65rem;
    font-size: 0.86rem;
    text-align: center;
    justify-content: center;
  }

  .hero-cta-group .btn-liquid-ghost {
    grid-column: 1 / -1;
    width: 100%;
    padding: 0.7rem 0.65rem;
    font-size: 0.85rem;
    justify-content: center;
  }

  .tech-pill-row {
    gap: 0.35rem;
  }

  .liquid-tag {
    font-size: 0.72rem;
    padding: 0.22rem 0.55rem;
  }

  /* Hero Code Widget on Mobile */
  .hero-visual {
    width: 100%;
    max-width: 100%;
  }

  .widget-header {
    padding: 0.7rem 1rem;
  }

  .widget-body {
    padding: 1rem 0.9rem;
    font-size: 0.74rem;
    line-height: 1.55;
  }

  .widget-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
    padding: 0.75rem 0.4rem;
  }

  .metric-divider {
    display: none;
  }

  .metric-val {
    font-size: 1.05rem;
  }

  .metric-lbl {
    font-size: 0.62rem;
    letter-spacing: 0.3px;
  }

  /* About Me Cards */
  .story-card, .timeline-card {
    padding: 1.4rem 1.15rem;
    border-radius: var(--radius-ios-md);
  }

  .about-highlights {
    gap: 0.65rem;
  }

  .highlight-item {
    font-size: 0.85rem;
  }

  .karate-card {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-ios-md);
  }

  .karate-header-wrap {
    gap: 0.75rem;
  }

  .karate-icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  .karate-title {
    font-size: 1.15rem;
  }

  .karate-stats-strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    padding: 0.85rem 0.75rem;
  }

  .k-stat-val {
    font-size: 1.05rem;
  }

  .timeline-header-title {
    font-size: 1.2rem;
  }

  .timeline-item {
    gap: 0.85rem;
  }

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

  .competencies-block {
    padding: 1.25rem 1rem;
    gap: 0.75rem;
    border-radius: var(--radius-ios-md);
  }

  .comp-tags {
    gap: 0.35rem;
  }

  .comp-pill {
    font-size: 0.74rem;
    padding: 0.28rem 0.6rem;
  }

  /* Skills Grid */
  .skills-filter-bar {
    gap: 0.4rem;
    margin-bottom: 2rem;
  }

  .filter-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
  }

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

  .skill-card {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-ios-md);
  }

  /* Projects Grid */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .project-header-banner {
    height: 85px;
    padding: 1rem;
  }

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

  .project-title {
    font-size: 1.25rem;
  }

  .project-summary {
    font-size: 0.9rem;
  }

  .projects-archive-banner {
    padding: 1.35rem 1.15rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
    border-radius: var(--radius-ios-md);
  }

  .archive-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .archive-icon {
    width: 44px;
    height: 44px;
  }

  .archive-title {
    font-size: 1.15rem;
  }

  .archive-desc {
    font-size: 0.86rem;
  }

  /* Certifications */
  .certs-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .cert-card {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-ios-md);
  }

  /* Contact Section */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form-col {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-ios-md);
  }

  .contact-item {
    padding: 0.85rem 0.95rem;
    border-radius: var(--radius-ios-md);
  }

  .c-val {
    font-size: 0.88rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
  }

  /* Modals */
  .modal-overlay {
    padding: 0.65rem;
  }

  .modal-card {
    border-radius: var(--radius-ios-md);
    max-height: 94vh;
  }

  .modal-header {
    padding: 1rem 1.15rem;
  }

  .modal-body {
    padding: 1.15rem;
  }

  .resume-document {
    padding: 1.15rem;
  }

  .doc-name {
    font-size: 1.5rem;
  }

  .doc-subtitle {
    font-size: 0.95rem;
  }

  .doc-contact-row {
    font-size: 0.76rem;
    gap: 0.35rem;
  }
}

/* --- ULTRA-COMPACT PHONES (<= 380px) --- */
@media (max-width: 380px) {
  .brand-fullname {
    display: none; /* Keeps clean [AS] monogram only to prevent header squish */
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-contact-pill {
    padding: 0.52rem 0.35rem;
    font-size: 0.76rem;
  }

  .pill-text {
    font-size: 0.76rem;
  }

  .hero-cta-group .btn-liquid-primary,
  .hero-cta-group .btn-liquid-secondary {
    font-size: 0.82rem;
    padding: 0.7rem 0.4rem;
  }

  .widget-metrics {
    padding: 0.65rem 0.25rem;
  }

  .metric-val {
    font-size: 0.95rem;
  }

  .metric-lbl {
    font-size: 0.58rem;
  }
}
