/* ==============================================================================
   ALI KHAN — PERSONAL PORTFOLIO STYLESHEET (ENHANCED GLOSSY & ANIMATED EDITION)
   Vanilla CSS3 • Zero Frameworks • Mobile-First • Ultra-Responsive • Glassmorphism
   ============================================================================== */

:root {
  /* Color Palette - Dark Mode Default (Deep Midnight Glass Theme) */
  --bg: #060913;
  --bg-secondary: #0c1222;
  --surface: rgba(16, 24, 43, 0.65);
  --surface-hover: rgba(24, 35, 62, 0.85);
  --surface-solid: #0f172a;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(99, 102, 241, 0.45);
  --border-focus: #6366f1;

  --glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.01) 60%);
  --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
  --glass-highlight: rgba(255, 255, 255, 0.05);

  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  /* Accent Colors (Syncable from Admin, default matched to active theme) */
  --primary: #377dc8;
  --primary-hover: #2968ad;
  --primary-light: rgba(55, 125, 200, 0.14);
  --primary-border: rgba(55, 125, 200, 0.32);
  --primary-glow: rgba(55, 125, 200, 0.35);

  --accent-cyan: #38bdf8;
  --accent-cyan-bg: rgba(56, 189, 248, 0.12);
  --accent-amber: #fbbf24;
  --accent-amber-bg: rgba(251, 191, 36, 0.12);
  --accent-emerald: #34d399;
  --accent-emerald-bg: rgba(52, 211, 153, 0.12);
  --accent-purple: #a855f7;
  --accent-purple-bg: rgba(168, 85, 247, 0.12);

  --danger: #f87171;

  /* Typography */
  --font-editorial: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout & Geometry */
  --max-w: 1180px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 25px rgba(255, 77, 46, 0.25);

  /* Transitions */
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Light Theme Variables (Editorial Cream & Warm Obsidian) */
[data-theme="light"] {
  --bg: #fbf9f5;
  --bg-secondary: #f4efe6;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-hover: rgba(255, 255, 255, 0.96);
  --surface-solid: #ffffff;

  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(255, 77, 46, 0.4);
  --border-focus: #ff4d2e;

  --glass-sheen: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.3) 60%);
  --glass-glow: 0 8px 30px 0 rgba(0, 0, 0, 0.06);
  --glass-highlight: rgba(255, 255, 255, 0.9);

  --text: #11141c;
  --text-muted: #575a66;
  --text-subtle: #7a7f8e;

  --primary: #377dc8;
  --primary-hover: #2968ad;
  --primary-light: rgba(55, 125, 200, 0.1);
  --primary-border: rgba(55, 125, 200, 0.25);
  --primary-glow: rgba(55, 125, 200, 0.22);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.09);
  --shadow-glow: 0 0 20px rgba(55, 125, 200, 0.15);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* -------------------------------------------------------------
   AMBIENT GLOWING ORBS (BACKGROUND EFFECTS)
   ------------------------------------------------------------- */
.ambient-glow-wrapper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.22;
  will-change: transform;
}

[data-theme="light"] .ambient-orb {
  opacity: 0.14;
  filter: blur(90px);
}

.ambient-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1 0%, rgba(99, 102, 241, 0) 70%);
  top: -100px;
  right: -50px;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #38bdf8 0%, rgba(56, 189, 248, 0) 70%);
  top: 40%;
  left: -120px;
  animation: floatOrb 22s ease-in-out infinite alternate-reverse;
}

.ambient-orb-3 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #a855f7 0%, rgba(168, 85, 247, 0) 70%);
  bottom: 5%;
  right: 5%;
  animation: floatOrb 16s ease-in-out infinite alternate;
}

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

/* Subtle background noise texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 1;
}

[data-theme="light"] body::before {
  background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 0);
}

main, header, footer {
  position: relative;
  z-index: 2;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
}

/* -------------------------------------------------------------
   CONTAINER & LAYOUT
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(12, 18, 34, 0.5) 50%, transparent 100%);
}

[data-theme="light"] .section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(238, 243, 251, 0.6) 50%, transparent 100%);
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: var(--accent-cyan-bg);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.25;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.65rem;
  max-width: 650px;
  line-height: 1.6;
}

/* -------------------------------------------------------------
   SCROLL REVEAL ANIMATIONS
   ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* -------------------------------------------------------------
   GLOSSY GLASS CARDS (UNIVERSAL COMPONENT)
   ------------------------------------------------------------- */
.glass-panel {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-glow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-sheen);
  pointer-events: none;
}

.glass-panel:hover {
  border-color: var(--border-hover);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), var(--shadow-glow);
}

/* Glossy highlight sweep across card on hover */
.glass-hover-sheen {
  position: relative;
  overflow: hidden;
}

.glass-hover-sheen::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-hover-sheen:hover::after {
  opacity: 1;
  animation: shineSheen 0.85s ease-out forwards;
}

@keyframes shineSheen {
  0% { left: -60%; }
  100% { left: 140%; }
}

/* -------------------------------------------------------------
   FLOATING GLASS PILL NAVBAR (REFERENCE INSPIRED)
   ------------------------------------------------------------- */
.navbar-wrapper {
  position: fixed;
  top: 1.25rem;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 1.25rem;
  transition: top 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}

.navbar-glass-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: 1080px;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  background: rgba(12, 18, 34, var(--nav-glass-alpha, 0.25));
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 34px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease, max-width 0.35s ease;
}

.navbar-glass-pill:hover {
  background: rgba(18, 27, 48, calc(var(--nav-glass-alpha, 0.25) + 0.1));
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 38px rgba(0, 0, 0, 0.32);
}

/* Glossy highlight line along the top of pill */
.navbar-glass-pill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  pointer-events: none;
}

/* Specular reflection tracking cursor */
.nav-gloss-sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 140px at var(--nav-mouse-x, 50%) var(--nav-mouse-y, 50%), rgba(255, 255, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar-glass-pill:hover .nav-gloss-sheen {
  opacity: 1;
}

/* Scrolled state: morphs smoothly into compact semi-transparent glass */
.navbar-wrapper.scrolled {
  top: 0.65rem;
}

.navbar-wrapper.scrolled .navbar-glass-pill {
  padding: 0.48rem 1.2rem;
  max-width: 1000px;
  background: rgba(8, 12, 22, calc(var(--nav-glass-alpha, 0.25) + 0.2));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .navbar-glass-pill {
  background: rgba(255, 255, 255, calc(var(--nav-glass-alpha, 0.25) * 0.5 + 0.45));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 30px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .navbar-glass-pill:hover {
  background: rgba(255, 255, 255, calc(var(--nav-glass-alpha, 0.25) * 0.5 + 0.55));
  border-color: rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .navbar-glass-pill::before {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

[data-theme="light"] .navbar-wrapper.scrolled .navbar-glass-pill {
  background: rgba(255, 255, 255, calc(var(--nav-glass-alpha, 0.25) * 0.5 + 0.5));
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Brand Logo & Pill Badge */
.nav-brand-wrap {
  display: flex;
  align-items: center;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(255, 77, 46, 0.14);
  color: var(--primary);
  border: 1px solid rgba(255, 77, 46, 0.32);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(255, 77, 46, 0.15);
}

/* Center Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.865rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.38rem 0.75rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: var(--primary);
  background: rgba(0, 0, 0, 0.04);
}

/* Right Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* View Resume Pill Button (Reference Inspired CTA) */
.nav-resume-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 16px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

.nav-resume-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px var(--primary-glow);
  background: var(--primary-hover);
  color: #ffffff;
}

.nav-cta-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s ease;
}

.nav-resume-cta:hover .nav-cta-arrow {
  transform: translateX(3px);
}

/* Icon Buttons */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-muted);
  transition: var(--transition);
}

.btn-icon:hover {
  color: var(--text);
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(8, 12, 22, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-8px);
  opacity: 0;
  transition: all 0.28s ease;
}

.mobile-drawer.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

[data-theme="light"] .mobile-drawer {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.1);
}

.mobile-drawer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-drawer-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}

.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  background: rgba(255, 77, 46, 0.12);
  color: var(--primary);
}

/* -------------------------------------------------------------
   BUTTONS (GLOSSY & TACTILE)
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.4rem;
  font-size: 0.935rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  pointer-events: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7175f3 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.835rem;
}

/* -------------------------------------------------------------
   HERO SECTION (PREMIUM EDITORIAL & 3D CYBER VISUAL)
   ------------------------------------------------------------- */
.hero-section {
  padding: 8.5rem 0 5.5rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
}

/* Atmospheric Ambient Glow Orbs */
.hero-bg-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
  opacity: 0.45;
}

.hero-glow-1 {
  top: -40px;
  right: 12%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
}

.hero-glow-2 {
  bottom: 20px;
  left: 6%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
}

/* =============================================================
   OVERSIZED EDITORIAL DISPLAY TYPOGRAPHY (REFERENCE INSPIRED)
   ============================================================= */
.hero-editorial-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.08em;
  margin-bottom: 2.25rem;
  user-select: none;
  position: relative;
  z-index: 1;
}

.editorial-line {
  font-family: var(--font-editorial);
  font-size: clamp(2.8rem, 8vw, 7.2rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--text);
  transform-origin: left center;
  will-change: transform;
  transition: transform 0.16s ease-out;
}

/* Highlighted Editorial Line with red/orange accent, italic serif & deco cross */
.editorial-line-2.accent-highlight {
  color: var(--primary);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 800;
  display: inline-flex;
  align-items: baseline;
  gap: 0.25em;
  width: fit-content;
  position: relative;
}

.editorial-highlight-text {
  position: relative;
  z-index: 2;
}

.editorial-deco-cross {
  font-style: normal;
  font-size: 0.45em;
  color: var(--primary);
  vertical-align: super;
  opacity: 0.75;
  margin-left: 0.15em;
  position: relative;
  top: -0.1em;
}

.editorial-underline-bar {
  position: absolute;
  bottom: -0.06em;
  left: 0;
  width: 100%;
  height: 3px;
  background: currentColor;
  opacity: 0.85;
  border-radius: 2px;
}

/* =============================================================
   HERO TWO-COLUMN EDITORIAL CONTENT & 3D VISUAL GRID
   ============================================================= */
.hero-editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

.hero-badge-wrap {
  margin-bottom: 1.35rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  width: fit-content;
}

[data-theme="light"] .hero-badge {
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2s infinite;
}

.hero-lead-title {
  font-size: clamp(1.4rem, 2.7vw, 2.15rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--text);
  margin-bottom: 0.95rem;
  letter-spacing: -0.02em;
}

.hero-lead-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

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

.hero-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--border);
  font-size: 0.835rem;
  color: var(--text-subtle);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* =============================================================
   INTERACTIVE 3D TECHNOLOGY VISUAL (CYBER CORE)
   ============================================================= */
.hero-visual-col {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1000px;
}

.tech-visual-stage {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.cyber-core-3d {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

/* Hologram Base Glow Disc */
.core-hologram-disc {
  position: absolute;
  bottom: 15px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  transform: rotateX(75deg);
  filter: blur(14px);
  pointer-events: none;
}

/* Revolving Cyber Orbit Rings */
.core-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--primary-border);
  pointer-events: none;
  transform-style: preserve-3d;
}

.core-orbit-1 {
  width: 320px;
  height: 320px;
  transform: rotateX(65deg) rotateY(15deg);
  animation: spinOrbit1 20s linear infinite;
}

.core-orbit-2 {
  width: 260px;
  height: 260px;
  transform: rotateX(60deg) rotateY(-30deg);
  animation: spinOrbit2 28s linear infinite reverse;
}

.core-orbit-3 {
  width: 350px;
  height: 350px;
  transform: rotateX(70deg) rotateY(45deg);
  border-style: dotted;
  border-color: rgba(56, 189, 248, 0.35);
  animation: spinOrbit1 35s linear infinite;
}

/* Central 3D Isometric Cyber Cube */
.core-cube-scene {
  width: 130px;
  height: 130px;
  position: relative;
  transform-style: preserve-3d;
}

.core-cube {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(28deg);
  animation: floatCube 8s ease-in-out infinite;
}

.cube-face {
  width: 130px;
  height: 130px;
  position: absolute;
  background: rgba(12, 17, 30, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-hover);
  box-shadow: 0 0 25px var(--primary-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  border-radius: 10px;
}

[data-theme="light"] .cube-face {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 77, 46, 0.35);
}

.cube-front  { transform: translateZ(65px); }
.cube-back   { transform: rotateY(180deg) translateZ(65px); }
.cube-right  { transform: rotateY(90deg) translateZ(65px); }
.cube-left   { transform: rotateY(-90deg) translateZ(65px); }
.cube-top    { transform: rotateX(90deg) translateZ(65px); background: rgba(255, 77, 46, 0.18); }
.cube-bottom { transform: rotateX(-90deg) translateZ(65px); background: rgba(0, 0, 0, 0.6); }

.cube-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.cube-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
}

.code-ok {
  color: var(--accent-emerald);
  font-weight: 700;
}

.cube-icon {
  font-size: 1.75rem;
  color: var(--primary);
  filter: drop-shadow(0 0 10px var(--primary));
}

.cube-back-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-subtle);
  margin-top: 0.35rem;
}

.cube-stat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.cube-stat-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* Floating Orbit Satellite Badges */
.satellite-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-hover);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 10;
  animation: satBob 6s ease-in-out infinite;
}

[data-theme="light"] .satellite-pill {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.sat-1 { top: 30px; left: 10px; animation-delay: 0s; }
.sat-2 { bottom: 45px; left: 20px; animation-delay: 2s; }
.sat-3 { top: 60px; right: 5px; animation-delay: 4s; }

.sat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.sat-dot-cyan {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.sat-dot-amber {
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
}

/* Particle Canvas */
.hero-particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

/* Custom 3D Artwork Image Container */
.custom-artwork-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  justify-content: center;
}

.custom-artwork-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.45));
  animation: floatCube 8s ease-in-out infinite;
}

/* 3D Animations Keyframes */
@keyframes spinOrbit1 {
  from { transform: rotateX(65deg) rotateY(15deg) rotateZ(0deg); }
  to { transform: rotateX(65deg) rotateY(15deg) rotateZ(360deg); }
}

@keyframes spinOrbit2 {
  from { transform: rotateX(60deg) rotateY(-30deg) rotateZ(0deg); }
  to { transform: rotateX(60deg) rotateY(-30deg) rotateZ(360deg); }
}

@keyframes floatCube {
  0%, 100% { transform: translateY(0) rotateX(-18deg) rotateY(28deg); }
  50% { transform: translateY(-14px) rotateX(-14deg) rotateY(35deg); }
}

@keyframes satBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =============================================================
   RESPONSIVE DESIGN (EDITORIAL HERO & NAVBAR)
   ============================================================= */
@media (max-width: 1024px) {
  .hero-editorial-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .hero-visual-col {
    order: -1;
  }

  .tech-visual-stage {
    width: 320px;
    height: 320px;
  }
}

@media (max-width: 768px) {
  .navbar-wrapper {
    top: 0.7rem;
    padding: 0 0.7rem;
  }

  .navbar-glass-pill {
    min-width: 0;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
  }

  .nav-brand-wrap,
  .nav-actions {
    min-width: 0;
  }

  .brand-logo {
    min-width: 0;
  }

  .brand-logo-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-resume-cta {
    display: none;
  }

  .editorial-line {
    font-size: clamp(1.4rem, 6.2vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
  }

  .hero-editorial-wrap {
    margin-bottom: 1.15rem;
    gap: 0.1em;
  }

  .hero-section {
    padding: 5rem 0 2rem;
  }

  .tech-visual-stage {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .core-cube-scene {
    width: 80px;
    height: 80px;
  }

  .cube-face {
    width: 80px;
    height: 80px;
    font-size: 0.7rem;
  }

  .cube-front  { transform: translateZ(40px); }
  .cube-back   { transform: rotateY(180deg) translateZ(40px); }
  .cube-right  { transform: rotateY(90deg) translateZ(40px); }
  .cube-left   { transform: rotateY(-90deg) translateZ(40px); }
  .cube-top    { transform: rotateX(90deg) translateZ(40px); }
  .cube-bottom { transform: rotateX(-90deg) translateZ(40px); }

  .core-orbit-1 { width: 170px; height: 170px; }
  .core-orbit-2 { width: 205px; height: 205px; }
  .core-orbit-3 { width: 235px; height: 235px; }
  .satellite-pill { font-size: 0.65rem; padding: 0.2rem 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .core-orbit-1,
  .core-orbit-2,
  .core-orbit-3,
  .core-cube,
  .satellite-pill,
  .custom-artwork-img {
    animation: none !important;
  }
}

/* -------------------------------------------------------------
   CURRENT FOCUS CARDS (GLOSSY & HOVER LIFT)
   ------------------------------------------------------------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr));
  gap: 1.5rem;
}

.focus-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.focus-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-sheen);
  pointer-events: none;
}

.focus-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.focus-icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

[data-theme="light"] .focus-icon-box {
  color: var(--primary);
}

.focus-card:hover .focus-icon-box {
  transform: scale(1.08) rotate(3deg);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.focus-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.focus-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

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

.about-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--glass-glow);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-sheen);
  pointer-events: none;
}

.about-bio {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

.about-details-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.detail-label {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 0.35rem;
  letter-spacing: 0.04em;
}

.detail-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

/* -------------------------------------------------------------
   SKILLS SECTION (GLOSSY BADGES)
   ------------------------------------------------------------- */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1.5rem;
}

.skill-category-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-sheen);
  pointer-events: none;
}

.skill-category-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.category-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.915rem;
  transition: var(--transition);
}

[data-theme="light"] .skill-item {
  background: rgba(255, 255, 255, 0.6);
}

.skill-item:hover {
  border-color: var(--border-hover);
  transform: translateX(3px);
  background: var(--surface-hover);
}

.skill-name {
  font-weight: 500;
}

/* Level Badges */
.level-badge {
  font-size: 0.735rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.level-beginner {
  background: var(--accent-amber-bg);
  color: var(--accent-amber);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.level-learning {
  background: var(--accent-cyan-bg);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.level-intermediate {
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

/* -------------------------------------------------------------
   PROJECTS SECTION (GLASS CARDS & GLOSS HOVER)
   ------------------------------------------------------------- */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.filter-btn {
  padding: 0.45rem 1.15rem;
  font-size: 0.865rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
  transform: translateY(-1px);
}

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

.project-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--glass-glow);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-sheen);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-card-header {
  padding: 1.65rem 1.65rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--accent-cyan);
  background: var(--accent-cyan-bg);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.project-status {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

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

.project-card-body {
  padding: 0 1.65rem 1.35rem;
  flex-grow: 1;
}

.project-title {
  font-size: 1.38rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
  line-height: 1.3;
}

.project-desc {
  font-size: 0.935rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.35rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.tag-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

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

.project-card-footer {
  padding: 1.15rem 1.65rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="light"] .project-card-footer {
  background: rgba(0, 0, 0, 0.02);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* -------------------------------------------------------------
   EXPERIENCE SECTION (INTERNSHIP)
   ------------------------------------------------------------- */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.experience-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-glow);
  transition: var(--transition);
}

.experience-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-sheen);
  pointer-events: none;
}

.experience-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.exp-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.exp-role {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.exp-company {
  font-size: 1.08rem;
  color: #a5b4fc;
  font-weight: 600;
}

[data-theme="light"] .exp-company {
  color: var(--primary);
}

.exp-duration {
  font-family: var(--font-mono);
  font-size: 0.835rem;
  color: var(--text-subtle);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

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

.exp-desc {
  font-size: 0.965rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
  line-height: 1.65;
}

.exp-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.65rem;
}

.exp-highlights li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.935rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.exp-highlights li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* -------------------------------------------------------------
   EDUCATION SECTION
   ------------------------------------------------------------- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.75rem;
}

.edu-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-glow);
}

.edu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-sheen);
  pointer-events: none;
}

.edu-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.edu-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  background: var(--accent-cyan-bg);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.edu-degree {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.55rem;
  line-height: 1.35;
}

.edu-institution {
  font-size: 0.965rem;
  color: #a5b4fc;
  margin-bottom: 0.85rem;
  font-weight: 500;
}

[data-theme="light"] .edu-institution {
  color: var(--primary);
}

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

/* -------------------------------------------------------------
   CERTIFICATIONS & EVENTS SECTION
   ------------------------------------------------------------- */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
}

.cert-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-glow);
}

.cert-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-sheen);
  pointer-events: none;
}

.cert-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.cert-status-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.15rem;
  align-self: flex-start;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Distinguish per specification */
.cert-status-certified {
  background: var(--accent-emerald-bg);
  color: var(--accent-emerald);
  border: 1px solid rgba(52, 211, 153, 0.4);
}

.cert-status-applied {
  background: var(--accent-amber-bg);
  color: var(--accent-amber);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.cert-status-attended {
  background: var(--accent-cyan-bg);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.cert-status-participated {
  background: var(--accent-purple-bg);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.cert-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.cert-issuer {
  font-size: 0.885rem;
  color: var(--text-subtle);
  margin-bottom: 0.85rem;
}

.cert-desc {
  font-size: 0.915rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

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

.cert-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.cert-card-top .cert-status-badge {
  margin-bottom: 0;
}

.cert-card-footer {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.view-cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.05rem;
  font-weight: 600;
  font-size: 0.84rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.view-cert-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.cert-direct-link {
  padding: 0.45rem 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cert-pending-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.775rem;
  font-family: var(--font-mono);
  color: var(--text-subtle);
  background: rgba(0, 0, 0, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

/* Certificate Preview Modal */
.cert-modal-box {
  max-width: 820px;
  width: 92%;
}

.cert-modal-body {
  padding: 1.5rem;
}

.cert-preview-wrapper {
  width: 100%;
  min-height: 280px;
  max-height: 68vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .cert-preview-wrapper {
  background: rgba(0, 0, 0, 0.05);
}

.cert-img-preview {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.cert-iframe-preview {
  width: 100%;
  height: 65vh;
  border: none;
  border-radius: var(--radius-sm);
}

.cert-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}


/* -------------------------------------------------------------
   LEARNING JOURNEY (TIMELINE)
   ------------------------------------------------------------- */
.timeline-wrap {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-left: 2.25rem;
}

.timeline-wrap::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent-cyan) 60%, rgba(99, 102, 241, 0.1) 100%);
}

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

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

.timeline-marker {
  position: absolute;
  left: -2.25rem;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  transition: var(--transition);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.25);
  border-color: var(--accent-cyan);
}

.timeline-content {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  box-shadow: var(--glass-glow);
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-sheen);
  pointer-events: none;
}

.timeline-content:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.timeline-desc {
  font-size: 0.945rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* -------------------------------------------------------------
   CONTACT SECTION
   ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-info-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: var(--glass-glow);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-sheen);
  pointer-events: none;
}

.contact-direct-item {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
}

.contact-icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="light"] .contact-icon {
  color: var(--primary);
}

.contact-label {
  font-size: 0.775rem;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.social-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text);
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

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

.social-pill:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  color: #a5b4fc;
}

.contact-form-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--glass-glow);
  position: relative;
  overflow: hidden;
}

.contact-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-sheen);
  pointer-events: none;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.865rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.8rem 1.1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  transition: var(--transition);
  font-size: 0.95rem;
}

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

.form-input:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

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

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
/* -------------------------------------------------------------
   NETWORK FOOTER (GLOSSY DARK WITH ORANGE/RED SVG CONNECTION LINES)
   ------------------------------------------------------------- */
:root {
  --footer-accent: var(--primary);
  --footer-accent-rgb: 99, 102, 241;
  --footer-line-dim: rgba(99, 102, 241, 0.16);
  --footer-node-dim: rgba(99, 102, 241, 0.35);
}

[data-theme="light"] {
  --footer-accent: var(--primary);
  --footer-accent-rgb: 79, 70, 229;
  --footer-line-dim: rgba(79, 70, 229, 0.18);
  --footer-node-dim: rgba(79, 70, 229, 0.32);
}

.network-footer {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 2.5rem;
  color: var(--text);
  transition: var(--transition);
}

.network-footer::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 20%;
  width: 600px;
  height: 320px;
  background: radial-gradient(ellipse at center, var(--primary-light) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.55;
  filter: blur(50px);
}

.footer-network-wrapper {
  position: relative;
  width: 100%;
}

/* SVG Connection Overlay */
.footer-svg-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.network-path {
  fill: none;
  stroke: var(--footer-line-dim);
  stroke-width: 1.2;
  transition: stroke 0.3s ease, stroke-width 0.3s ease, filter 0.3s ease;
}

.network-path.active {
  stroke: var(--footer-accent) !important;
  stroke-width: 1.8 !important;
  stroke-dasharray: 5 4;
  filter: drop-shadow(0 0 6px rgba(var(--footer-accent-rgb), 0.8));
  animation: footerDash 1.2s linear infinite;
}

.network-path.network-instagram.active {
  stroke: #e1306c !important;
  filter: drop-shadow(0 0 6px rgba(225, 48, 108, 0.8));
}

.network-path.network-linkedin.active {
  stroke: #0a66c2 !important;
  filter: drop-shadow(0 0 6px rgba(10, 102, 194, 0.8));
}

.network-path.network-github.active {
  stroke: #f8fafc !important;
  filter: drop-shadow(0 0 6px rgba(248, 250, 252, 0.75));
}

[data-theme="light"] .network-path.network-github {
  stroke: #24292f;
  filter: drop-shadow(0 0 3px rgba(36, 41, 47, 0.35));
}

.network-path.network-youtube.active {
  stroke: #ff0000 !important;
  filter: drop-shadow(0 0 6px rgba(255, 0, 0, 0.8));
}

.network-particle {
  fill: var(--footer-accent);
  filter: drop-shadow(0 0 6px var(--footer-accent));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.network-path.active + .network-particle,
.network-particle.active {
  opacity: 1;
}

@keyframes footerDash {
  to {
    stroke-dashoffset: -18;
  }
}

.network-footer[data-intensity="low"] .network-path.active {
  animation-duration: 2.2s;
}

.network-footer[data-intensity="high"] .network-path.active {
  animation-duration: 0.65s;
}

.network-footer.no-animation .network-path.active {
  animation: none !important;
  stroke-dasharray: none !important;
}

.network-footer.no-animation .network-particle {
  display: none !important;
}

/* 4-column Open Network Grid - Compact columns with wide open channels for lines */
.footer-network-grid {
  display: grid;
  grid-template-columns: 220px minmax(140px, 170px) minmax(190px, 220px) minmax(180px, 220px);
  justify-content: space-between;
  align-items: start;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

/* Left Profile / Core Hub Card (Only card with frosted glass boundary) */
.footer-profile-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-profile-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  transition: var(--transition);
}

.footer-profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--glass-sheen);
  pointer-events: none;
}

.footer-profile-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 25px rgba(var(--footer-accent-rgb), 0.15);
}

.footer-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.hub-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--footer-accent);
  background: rgba(var(--footer-accent-rgb), 0.1);
  border: 1px solid rgba(var(--footer-accent-rgb), 0.25);
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
}

.hub-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--footer-accent);
  box-shadow: 0 0 6px var(--footer-accent);
  animation: pulse-dot 2s infinite;
}

.hub-version {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-subtle);
}

.footer-brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.footer-brand-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--footer-accent);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.footer-brand-bio {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Connection pins on the profile card */
.network-pin {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 2px solid var(--footer-node-dim);
  transition: var(--transition);
  z-index: 5;
}

.pin-right {
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
}

.pin-bottom {
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
}

.network-pin.active {
  border-color: var(--footer-accent);
  background: var(--footer-accent);
  box-shadow: 0 0 10px var(--footer-accent);
}

/* Socials dock below profile card */
.footer-socials-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.15rem 0 0;
}

.footer-social-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer-social-btn:hover,
.footer-social-btn.active {
  color: #ffffff;
  border-color: var(--footer-accent);
  box-shadow: 0 0 14px rgba(var(--footer-accent-rgb), 0.4);
  transform: translateY(-2px);
}

[data-theme="light"] .footer-social-btn {
  background: rgba(255, 255, 255, 0.75);
}

[data-theme="light"] .footer-social-btn:hover,
[data-theme="light"] .footer-social-btn.active {
  color: var(--primary);
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(var(--footer-accent-rgb), 0.25);
}

.footer-social-btn .pin-social-top {
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--footer-node-dim);
  transition: var(--transition);
}

.footer-social-btn[data-platform="instagram"] { color: #e1306c; }
.footer-social-btn[data-platform="linkedin"] { color: #0a66c2; }
.footer-social-btn[data-platform="github"] { color: #f8fafc; }
.footer-social-btn[data-platform="youtube"] { color: #ff0000; }

[data-theme="light"] .footer-social-btn[data-platform="github"] {
  color: #24292f;
}

.footer-social-btn:hover .pin-social-top,
.footer-social-btn.active .pin-social-top {
  background: var(--footer-accent);
  box-shadow: 0 0 8px var(--footer-accent);
}

/* Column Titles (Borderless, typography-first) */
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--footer-accent);
  margin-bottom: 1.15rem;
  text-transform: uppercase;
}

/* Navigation & Focus list (Compact, zero box borders) */
.footer-nav-list,
.footer-focus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}

.footer-nav-item,
.footer-focus-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  padding: 0.12rem 0;
  width: fit-content;
}

.footer-nav-item:hover,
.footer-nav-item.active,
.footer-focus-item:hover,
.footer-focus-item.active {
  color: var(--text);
  transform: translateX(2px);
}

[data-theme="light"] .footer-nav-item:hover,
[data-theme="light"] .footer-nav-item.active,
[data-theme="light"] .footer-focus-item:hover,
[data-theme="light"] .footer-focus-item.active {
  color: var(--primary);
}

.footer-node {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--footer-node-dim);
  transition: var(--transition);
  flex-shrink: 0;
}

.footer-nav-item:hover .footer-node,
.footer-nav-item.active .footer-node,
.footer-focus-item:hover .footer-node,
.footer-focus-item.active .footer-node {
  background: var(--footer-accent);
  box-shadow: 0 0 8px var(--footer-accent);
  transform: scale(1.35);
}

.footer-item-label {
  font-weight: 500;
  white-space: nowrap;
}

.footer-item-sub {
  font-size: 0.72rem;
  color: var(--text-subtle);
  line-height: 1.3;
  margin-top: 0.1rem;
}

/* Contact Column (Compact, zero box borders) */
.footer-contact-box {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.835rem;
  color: var(--text-muted);
  position: relative;
  transition: var(--transition);
  padding: 0.12rem 0;
  width: fit-content;
}

.footer-contact-item:hover,
.footer-contact-item.active {
  color: var(--text);
  transform: translateX(2px);
}

[data-theme="light"] .footer-contact-item:hover,
[data-theme="light"] .footer-contact-item.active {
  color: var(--primary);
}

.footer-contact-item:hover .footer-node,
.footer-contact-item.active .footer-node {
  background: var(--footer-accent);
  box-shadow: 0 0 8px var(--footer-accent);
  transform: scale(1.35);
}

.footer-item-icon {
  color: var(--footer-accent);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-contact-link {
  color: inherit;
  word-break: break-all;
}

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

.footer-resume-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.785rem;
  font-weight: 600;
  white-space: nowrap;
  width: fit-content;
}

.footer-resume-pill:hover,
.footer-resume-pill.active {
  background: var(--footer-accent);
  border-color: var(--footer-accent);
  box-shadow: 0 0 14px rgba(var(--footer-accent-rgb), 0.45);
  color: #ffffff;
  transform: translateY(-2px);
}

[data-theme="light"] .footer-resume-pill {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--primary-border);
}

[data-theme="light"] .footer-resume-pill:hover,
[data-theme="light"] .footer-resume-pill.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
}

/* Bottom Bar */
.footer-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-subtle);
  position: relative;
  z-index: 2;
}

.admin-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.785rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}

.admin-portal-link:hover {
  color: var(--footer-accent);
  border-color: rgba(var(--footer-accent-rgb), 0.4);
  transform: translateY(-1px);
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-svg-connections {
    display: block !important;
    pointer-events: none;
  }

  .network-pin {
    display: block !important;
  }

  .footer-network-wrapper {
    overflow: visible;
  }

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

@media (max-width: 768px) {
  .network-footer {
    padding: 3.5rem 0 2rem;
  }

  /* Completely suppress cross-column SVG connection lines on mobile to prevent overlapping */
  .footer-svg-connections {
    display: none !important;
  }

  .network-pin {
    display: none !important;
  }

  .footer-network-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-network-grid > .footer-col {
    position: relative;
    z-index: 2;
  }

  .footer-profile-card {
    padding: 1.25rem;
  }

  .footer-bottom-bar {
    margin-top: 2rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .network-path.active {
    animation: none !important;
    stroke-dasharray: none !important;
  }
  .hub-dot {
    animation: none !important;
  }
}

/* -------------------------------------------------------------
   MODAL DIALOG (FROSTED GLASS)
   ------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
  position: relative;
  animation: modal-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.65rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 2rem;
}

.modal-close-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
  transform: rotate(90deg);
}

/* -------------------------------------------------------------
   TOAST NOTIFICATIONS (FROSTED GLASS)
   ------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: min(calc(100vw - 3rem), 400px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.885rem;
  animation: toast-in 0.25s ease-out;
}

[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.92);
}

.toast-leaving {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast-success { border-left: 4px solid var(--accent-emerald); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--accent-amber); }
.toast-info { border-left: 4px solid var(--primary); }

.toast-close {
  margin-left: auto;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
}

.toast-close:hover { color: var(--text); }

/* -------------------------------------------------------------
   EMPTY STATE COMPONENT
   ------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   ALL-DEVICE RESPONSIVENESS (MOBILE OPTIMIZED: COMPACT SIZING & 3-SLIDE CAROUSEL)
   ------------------------------------------------------------- */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding: 2.35rem 0 !important;
  }

  .section-header {
    margin-bottom: 1.25rem !important;
  }

  .section-label {
    font-size: 0.66rem !important;
    padding: 0.15rem 0.5rem !important;
    margin-bottom: 0.25rem !important;
  }

  .section-title {
    font-size: clamp(1.25rem, 4.4vw, 1.55rem) !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.25 !important;
  }

  .section-subtitle {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
  }

  /* Compact Navbar */
  .navbar-wrapper {
    top: 0.5rem;
    padding: 0 0.5rem;
  }

  .navbar-glass-pill {
    padding: 0.42rem 0.75rem;
    gap: 0.5rem;
  }

  .brand-logo-text {
    font-size: 1.05rem;
  }

  .mobile-toggle {
    display: flex;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0.45rem;
  }

  .nav-menu {
    position: fixed;
    top: 4.2rem;
    left: 0;
    right: 0;
    background: rgba(6, 9, 19, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 1.15rem;
    align-items: flex-start;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }

  [data-theme="light"] .nav-menu {
    background: rgba(248, 250, 253, 0.96);
  }

  .nav-menu.active {
    display: flex;
    animation: menuSlideDown 0.25s ease-out;
  }

  @keyframes menuSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Compact Hero Content & Actions */
  .hero-section {
    padding: 4.8rem 0 1.5rem !important;
  }

  .hero-badge-wrap {
    margin-bottom: 0.65rem !important;
  }

  .hero-badge {
    font-size: 0.72rem !important;
    padding: 0.2rem 0.6rem !important;
  }

  .hero-lead-title {
    font-size: clamp(1.15rem, 4.4vw, 1.45rem) !important;
    line-height: 1.32 !important;
    margin-bottom: 0.5rem !important;
  }

  .hero-lead-desc {
    font-size: 0.84rem !important;
    line-height: 1.48 !important;
    margin-bottom: 0.95rem !important;
  }

  .hero-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  .hero-actions .btn {
    padding: 0.42rem 0.85rem !important;
    font-size: 0.8rem !important;
    min-height: 38px !important;
  }

  .hero-meta-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    margin-top: 0.85rem !important;
  }

  .hero-meta-bar .meta-item {
    font-size: 0.72rem !important;
    padding: 0.25rem 0.55rem !important;
    gap: 0.35rem !important;
  }

  /* =============================================================
     HORIZONTAL SLIDE / CAROUSEL FOR MULTI-CARD SECTIONS ("3 KI SLIDE")
     ============================================================= */
  .projects-grid,
  .certs-grid,
  .focus-grid,
  .skills-container,
  .education-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.85rem !important;
    padding: 0.35rem 1rem 0.85rem 1rem !important;
    padding-right: 1.75rem !important;
    margin-left: -1rem !important;
    margin-right: -1rem !important;
    scrollbar-width: none !important;
  }

  .projects-grid::-webkit-scrollbar,
  .certs-grid::-webkit-scrollbar,
  .focus-grid::-webkit-scrollbar,
  .skills-container::-webkit-scrollbar,
  .education-grid::-webkit-scrollbar {
    display: none !important;
  }

  .projects-grid > .project-card,
  .certs-grid > .cert-card,
  .focus-grid > .focus-card,
  .skills-container > .skill-category-card,
  .education-grid > .edu-card {
    flex: 0 0 84% !important;
    width: 84% !important;
    max-width: 84% !important;
    min-width: 84% !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
  }

  /* Slide Indicator & Dots Navigation Bar */
  .mobile-slide-navigator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
    padding: 0 0.25rem;
  }

  .slide-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .slide-dots-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .slide-dot-pill {
    width: 7px;
    height: 7px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.22);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  [data-theme="light"] .slide-dot-pill {
    background: rgba(0, 0, 0, 0.16);
  }

  .slide-dot-pill.active {
    width: 20px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
  }

  .slide-count-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-subtle);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
  }

  /* Compact Project Cards */
  .project-filters {
    gap: 0.35rem !important;
    margin-bottom: 1rem !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    padding-bottom: 0.35rem !important;
    -webkit-overflow-scrolling: touch !important;
    justify-content: flex-start !important;
  }

  .filter-btn {
    padding: 0.28rem 0.65rem !important;
    font-size: 0.74rem !important;
  }

  .project-card {
    padding: 1.05rem !important;
    border-radius: var(--radius-md) !important;
  }

  .project-card-header {
    margin-bottom: 0.65rem !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .project-category {
    font-size: 0.66rem !important;
    padding: 0.15rem 0.45rem !important;
  }

  .project-status {
    font-size: 0.66rem !important;
  }

  .project-title {
    font-size: 1.05rem !important;
    margin-bottom: 0.35rem !important;
    line-height: 1.3 !important;
  }

  .project-desc {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.75rem !important;
  }

  .project-tags {
    gap: 0.3rem !important;
    margin-bottom: 0.75rem !important;
  }

  .tag-badge {
    font-size: 0.66rem !important;
    padding: 0.15rem 0.42rem !important;
  }

  .project-card-footer {
    margin-top: 0.75rem !important;
    padding-top: 0.65rem !important;
  }

  .view-project-btn {
    padding: 0.35rem 0.7rem !important;
    font-size: 0.76rem !important;
  }

  .project-links .btn-icon {
    width: 1.85rem !important;
    height: 1.85rem !important;
  }

  /* Compact Certificate Cards */
  .cert-card {
    padding: 1.05rem !important;
    border-radius: var(--radius-md) !important;
  }

  .cert-card-top {
    margin-bottom: 0.65rem !important;
  }

  .cert-status-badge {
    font-size: 0.66rem !important;
    padding: 0.15rem 0.45rem !important;
  }

  .cert-date {
    font-size: 0.7rem !important;
  }

  .cert-title {
    font-size: 1.02rem !important;
    margin-bottom: 0.3rem !important;
    line-height: 1.3 !important;
  }

  .cert-issuer {
    font-size: 0.76rem !important;
    margin-bottom: 0.4rem !important;
  }

  .cert-desc {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
  }

  .cert-card-footer {
    margin-top: 0.85rem !important;
    padding-top: 0.7rem !important;
  }

  .view-cert-btn {
    padding: 0.36rem 0.8rem !important;
    font-size: 0.76rem !important;
  }

  .cert-direct-link {
    padding: 0.36rem 0.5rem !important;
  }

  /* Compact Focus Cards */
  .focus-card {
    padding: 1rem !important;
    border-radius: var(--radius-md) !important;
  }

  .focus-icon-box {
    width: 2.15rem !important;
    height: 2.15rem !important;
    margin-bottom: 0.65rem !important;
  }

  .focus-title {
    font-size: 0.98rem !important;
    margin-bottom: 0.3rem !important;
  }

  .focus-desc {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
  }

  /* Compact Skill Cards */
  .skill-category-card {
    padding: 1.05rem !important;
    border-radius: var(--radius-md) !important;
  }

  .category-title {
    font-size: 0.95rem !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.55rem !important;
  }

  .skill-item {
    padding: 0.3rem 0.6rem !important;
    margin-bottom: 0.35rem !important;
  }

  .skill-name {
    font-size: 0.78rem !important;
  }

  .skill-level-badge {
    font-size: 0.64rem !important;
    padding: 0.1rem 0.38rem !important;
  }

  /* Compact Education Cards */
  .edu-card {
    padding: 1.05rem !important;
    border-radius: var(--radius-md) !important;
  }

  .edu-period {
    font-size: 0.7rem !important;
  }

  .edu-degree {
    font-size: 0.98rem !important;
    margin-bottom: 0.3rem !important;
  }

  .edu-institution {
    font-size: 0.78rem !important;
    margin-bottom: 0.3rem !important;
  }

  .edu-desc {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
  }

  /* Compact About Me */
  .about-card {
    padding: 1.15rem !important;
  }

  .about-bio {
    font-size: 0.86rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.15rem !important;
  }

  .about-details-list {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem 0.65rem !important;
  }

  .detail-label {
    font-size: 0.68rem !important;
    margin-bottom: 0.15rem !important;
  }

  .detail-val {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
  }

  /* Compact Timeline */
  .timeline-wrap {
    padding-left: 1.25rem !important;
  }

  .timeline-marker {
    left: -1.25rem !important;
    width: 13px !important;
    height: 13px !important;
  }

  .timeline-card {
    padding: 0.9rem 1rem !important;
  }

  .timeline-date {
    font-size: 0.7rem !important;
  }

  .timeline-title {
    font-size: 0.92rem !important;
  }

  .timeline-desc {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
  }

  /* Compact Contact */
  .contact-grid {
    gap: 1.25rem !important;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 1.15rem !important;
  }

  .contact-direct-item {
    gap: 0.65rem !important;
    margin-bottom: 0.85rem !important;
  }

  .contact-icon {
    width: 2.1rem !important;
    height: 2.1rem !important;
  }

  .contact-label {
    font-size: 0.68rem !important;
  }

  .contact-value {
    font-size: 0.82rem !important;
  }

  .contact-social-grid {
    gap: 0.45rem !important;
  }

  .contact-social-item {
    padding: 0.38rem 0.65rem !important;
    font-size: 0.76rem !important;
  }

  .contact-form .form-group {
    margin-bottom: 0.75rem !important;
  }

  .contact-form .form-input {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.82rem !important;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13.5px;
  }

  .container {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .editorial-line {
    font-size: clamp(1.3rem, 6vw, 1.85rem) !important;
  }

  .tech-visual-stage {
    width: 175px !important;
    height: 175px !important;
  }

  .cyber-core-3d {
    transform: scale(0.52) !important;
  }

  .projects-grid > .project-card,
  .certs-grid > .cert-card,
  .focus-grid > .focus-card,
  .skills-container > .skill-category-card,
  .education-grid > .edu-card {
    flex: 0 0 86% !important;
    max-width: 86% !important;
    min-width: 86% !important;
  }

  .about-details-list {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .brand-badge {
    display: none;
  }

  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 360px) {
  html {
    font-size: 12.5px;
  }

  .brand-logo-text {
    font-size: 1rem;
  }

  .hero-lead-title {
    font-size: 1.15rem !important;
  }

  .projects-grid > .project-card,
  .certs-grid > .cert-card,
  .focus-grid > .focus-card,
  .skills-container > .skill-category-card,
  .education-grid > .edu-card {
    flex: 0 0 90% !important;
    max-width: 90% !important;
    min-width: 90% !important;
  }
}
