/* ==========================================================================
   SAGAR ANCHAL - SENIOR SOFTWARE DEVELOPER PORTFOLIO STYLESHEET
   6+ Years Experience · Full-Stack, Modern Web & Scalable APIs
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES / DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Dynamic Accent Color System (Default: Modern Cyan) */
  --accent-primary: #00f0ff;
  --accent-primary-rgb: 0, 240, 255;
  --accent-secondary: #6366f1;
  --accent-secondary-rgb: 99, 102, 241;
  --accent-glow: rgba(0, 240, 255, 0.4);
  --accent-glow-subtle: rgba(0, 240, 255, 0.12);
  --accent-text: #00f0ff;

  /* Refined Modern Dark Palette */
  --bg-darkest: #06080e;
  --bg-dark: #0a0e17;
  --bg-panel: rgba(14, 20, 32, 0.75);
  --bg-panel-solid: #0d1322;
  --bg-card: rgba(18, 26, 42, 0.65);
  --bg-card-hover: rgba(26, 36, 58, 0.88);

  /* Borders & Glass Dividers */
  --border-glass: rgba(255, 255, 255, 0.09);
  --border-accent: rgba(0, 240, 255, 0.35);
  --border-glow: 0 0 20px rgba(0, 240, 255, 0.2);

  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-highlight: #38bdf8;

  /* Status Colors */
  --color-green: #10b981;
  --color-yellow: #f59e0b;
  --color-red: #ef4444;
  --color-purple: #a855f7;

  /* Layout & Transitions */
  --header-height: 75px;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
}

/* Color Accent Variations via data-accent attribute on <html> */
html[data-accent="emerald"] {
  --accent-primary: #10b981;
  --accent-primary-rgb: 16, 185, 129;
  --accent-secondary: #06b6d4;
  --accent-secondary-rgb: 6, 182, 212;
  --accent-glow: rgba(16, 185, 129, 0.4);
  --accent-glow-subtle: rgba(16, 185, 129, 0.12);
  --accent-text: #10b981;
  --border-accent: rgba(16, 185, 129, 0.35);
  --border-glow: 0 0 20px rgba(16, 185, 129, 0.2);
}

html[data-accent="violet"] {
  --accent-primary: #a855f7;
  --accent-primary-rgb: 168, 85, 247;
  --accent-secondary: #ec4899;
  --accent-secondary-rgb: 236, 72, 153;
  --accent-glow: rgba(168, 85, 247, 0.4);
  --accent-glow-subtle: rgba(168, 85, 247, 0.12);
  --accent-text: #c084fc;
  --border-accent: rgba(168, 85, 247, 0.35);
  --border-glow: 0 0 20px rgba(168, 85, 247, 0.2);
}

html[data-accent="amber"] {
  --accent-primary: #f59e0b;
  --accent-primary-rgb: 245, 158, 11;
  --accent-secondary: #f97316;
  --accent-secondary-rgb: 249, 115, 22;
  --accent-glow: rgba(245, 158, 11, 0.4);
  --accent-glow-subtle: rgba(245, 158, 11, 0.12);
  --accent-text: #fbbf24;
  --border-accent: rgba(245, 158, 11, 0.35);
  --border-glow: 0 0 20px rgba(245, 158, 11, 0.2);
}

html[data-accent="crimson"] {
  --accent-primary: #ff3366;
  --accent-primary-rgb: 255, 51, 102;
  --accent-secondary: #ff758c;
  --accent-secondary-rgb: 255, 117, 140;
  --accent-glow: rgba(255, 51, 102, 0.4);
  --accent-glow-subtle: rgba(255, 51, 102, 0.12);
  --accent-text: #ff4d79;
  --border-accent: rgba(255, 51, 102, 0.35);
  --border-glow: 0 0 20px rgba(255, 51, 102, 0.2);
}

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

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-darkest);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darkest);
}
::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-primary-rgb), 0.3);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

::selection {
  background: var(--accent-primary);
  color: #000;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   3. CUSTOM SUBTLE CURSOR (Desktop only)
   -------------------------------------------------------------------------- */
.custom-cursor-dot {
  width: 5px;
  height: 5px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
  box-shadow: 0 0 8px var(--accent-primary);
}

.custom-cursor-outline {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(var(--accent-primary-rgb), 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}

body:hover .custom-cursor-outline.cursor-hover {
  width: 44px;
  height: 44px;
  border-color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.08);
}

@media (max-width: 1024px), (pointer: coarse) {
  .custom-cursor-dot, .custom-cursor-outline {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   4. BACKGROUND PARTICLES CANVAS & AMBIENT GLOW
   -------------------------------------------------------------------------- */
#neuralCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 35px 35px;
  pointer-events: none;
  z-index: 1;
}

.bg-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  top: -100px;
  left: -150px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
  bottom: 5%;
  right: -150px;
  animation-duration: 25s;
}

.orb-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: 40%;
  left: 35%;
  opacity: 0.12;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 25px) scale(1.06); }
  100% { transform: translate(-25px, 45px) scale(0.96); }
}

/* --------------------------------------------------------------------------
   5. GLASSMORPHISM & UTILITIES
   -------------------------------------------------------------------------- */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--border-accent);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), var(--border-glow);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #fff 50%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.accent-text {
  color: var(--accent-primary);
  text-shadow: 0 0 12px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   6. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.cyber-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(6, 8, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  transition: all var(--transition-smooth);
}

.cyber-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-primary-rgb), 0.5), rgba(var(--accent-secondary-rgb), 0.5), transparent);
  pointer-events: none;
}

.cyber-header.scrolled {
  background: rgba(6, 8, 14, 0.96);
  border-bottom-color: rgba(var(--accent-primary-rgb), 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.logo-hexagon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.15), rgba(var(--accent-secondary-rgb), 0.15));
  border: 1.5px solid var(--accent-primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent-glow);
  transform: rotate(45deg);
  transition: transform var(--transition-smooth);
}

.logo-hexagon .logo-symbol {
  transform: rotate(-45deg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-shadow: 0 0 8px var(--accent-primary);
}

.brand-logo:hover .logo-hexagon {
  transform: rotate(225deg);
}
.brand-logo:hover .logo-hexagon .logo-symbol {
  transform: rotate(-225deg);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #fff;
  background: rgba(var(--accent-primary-rgb), 0.15);
  border: 1px solid var(--border-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.control-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  position: relative;
  transition: all var(--transition-fast);
}

.control-btn:hover {
  background: rgba(var(--accent-primary-rgb), 0.12);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-live-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-primary);
}

.theme-picker-wrapper {
  position: relative;
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--bg-panel-solid);
  border: 1px solid var(--border-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  min-width: 160px;
  display: none;
  flex-direction: column;
  gap: 0.45rem;
  z-index: 100;
}

.theme-dropdown.show {
  display: flex;
  animation: fadeIn 0.2s ease forwards;
}

.dropdown-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.accent-options {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.accent-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform var(--transition-fast);
}

.accent-dot:hover {
  transform: scale(1.2);
}

.accent-dot.active {
  border-color: #fff;
  box-shadow: 0 0 8px currentColor;
}

/* --------------------------------------------------------------------------
   7. BUTTONS & ACTIONS
   -------------------------------------------------------------------------- */
.cyber-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  z-index: 1;
  text-align: center;
}

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

.cyber-btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #05070c;
  box-shadow: 0 0 16px var(--accent-glow);
  border: 1px solid transparent;
}

.cyber-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--accent-primary);
  color: #000;
}

.cyber-btn-secondary {
  background: rgba(var(--accent-primary-rgb), 0.1);
  color: var(--accent-primary);
  border: 1px solid var(--border-accent);
}

.cyber-btn-secondary:hover {
  background: rgba(var(--accent-primary-rgb), 0.18);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.cyber-btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.cyber-btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.06);
  transform: translateY(-2px);
}

.nav-contact-btn {
  display: inline-flex;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1001;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover {
  background: rgba(var(--accent-primary-rgb), 0.1);
  border-color: var(--accent-primary);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent-primary);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent-primary);
}

/* Mobile Drawer Backdrop */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(2, 4, 8, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  pointer-events: none;
}

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

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 86vw);
  height: 100vh;
  height: 100dvh;
  background: rgba(8, 12, 22, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-left: 1px solid var(--border-accent);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.2rem;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.9);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

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

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-hexagon.sm {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 7px;
}
.logo-hexagon.sm .logo-symbol {
  font-size: 0.72rem;
}

.drawer-brand-text {
  display: flex;
  flex-direction: column;
}

.drawer-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.drawer-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--accent-primary);
}

.drawer-close {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-fast);
}

.drawer-close:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--color-red);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.2rem;
}

.drawer-link {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.drawer-link i {
  color: var(--accent-primary);
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
}

.drawer-link:hover, .drawer-link:active {
  background: rgba(var(--accent-primary-rgb), 0.1);
  border-color: var(--border-accent);
  color: #fff;
  transform: translateX(4px);
}

.drawer-actions-box {
  margin-top: 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-resume-btn {
  width: 100%;
  padding: 0.65rem;
  font-size: 0.85rem;
  background: rgba(var(--accent-primary-rgb), 0.08);
  border-color: var(--border-accent);
  color: var(--accent-primary);
}

.drawer-theme-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.drawer-section-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.drawer-accent-options {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.drawer-accent-options .accent-dot {
  width: 24px;
  height: 24px;
}

.drawer-socials {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.drawer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.drawer-social-btn:hover {
  background: rgba(var(--accent-primary-rgb), 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

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

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-green);
}

.status-pulse {
  width: 8px;
  height: 8px;
  background: var(--color-green);
  border-radius: 50%;
  animation: pulseGreen 1.5s infinite;
}

/* --------------------------------------------------------------------------
   8. HERO SECTION & DEVELOPER CARD
   -------------------------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 3.5rem;
  position: relative;
  z-index: 2;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

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

.cyber-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(var(--accent-primary-rgb), 0.08);
  border: 1px solid var(--border-accent);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-primary);
  width: fit-content;
  letter-spacing: 0.04em;
  box-shadow: 0 0 15px var(--accent-glow-subtle);
  max-width: 100%;
}

.radar-ping {
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
  animation: pingGlow 1.8s infinite;
}

@keyframes pingGlow {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.4); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.9; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  word-break: break-word;
}

.greeting-prefix {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--accent-primary);
}

.hero-name-glitch {
  color: #fff;
}

.hero-role-wrapper {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  color: var(--text-highlight);
  display: flex;
  align-items: center;
  margin-top: 0.1rem;
  flex-wrap: wrap;
}

.role-prefix {
  color: var(--accent-primary);
  margin-right: 0.3rem;
}

.dynamic-typing {
  color: var(--text-main);
  word-break: break-word;
}

.typing-cursor {
  color: var(--accent-primary);
  animation: blinkCursor 0.8s infinite;
}

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

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
}

.hero-bio strong {
  color: #fff;
  font-weight: 600;
}

/* Stats Matrix */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 0.3rem 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.65rem;
  text-align: center;
  transition: all var(--transition-smooth);
}

.stat-card:hover {
  background: rgba(var(--accent-primary-rgb), 0.06);
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.stat-number-wrapper {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.stat-suffix {
  color: var(--accent-primary);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 0.25rem;
  display: block;
  line-height: 1.3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.hero-social-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}

.social-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: rgba(var(--accent-primary-rgb), 0.12);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 12px var(--accent-glow-subtle);
}

/* Developer Right Card */
.hero-visual {
  position: relative;
  width: 100%;
}

.hologram-frame {
  background: rgba(11, 16, 28, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(var(--accent-primary-rgb), 0.15);
  overflow: hidden;
  width: 100%;
}

.hologram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-glass);
}

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

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.hologram-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--color-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-green);
}

.hologram-body {
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Code Preview Box */
.code-preview-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.55;
  overflow-x: auto;
}

.code-line {
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.indent-1 {
  padding-left: 1rem;
}

.c-keyword { color: #f43f5e; }
.c-def { color: #38bdf8; }
.c-prop { color: #a5b4fc; }
.c-str { color: #34d399; }
.c-num { color: #fbbf24; }
.c-green { color: var(--color-green); font-weight: 600; }

/* Telemetry Bars */
.telemetry-bars {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.t-bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.t-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.t-percent {
  color: var(--accent-primary);
}

.t-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.t-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  border-radius: 2px;
  box-shadow: 0 0 6px var(--accent-primary);
  transition: width 1.2s ease-in-out;
}

.hologram-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ping-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
}

.interactive-ping-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-primary);
  border: 1px solid var(--border-accent);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  background: rgba(var(--accent-primary-rgb), 0.06);
  transition: all var(--transition-fast);
}

.interactive-ping-btn:hover {
  background: var(--accent-primary);
  color: #000;
  box-shadow: 0 0 10px var(--accent-primary);
}

/* Scroll Down Mouse */
.scroll-down-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.scroll-mouse {
  width: 18px;
  height: 26px;
  border: 1.5px solid var(--text-dim);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
}

.scroll-wheel {
  width: 3px;
  height: 5px;
  background: var(--accent-primary);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  animation: mouseWheel 1.5s infinite;
}

@keyframes mouseWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(9px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   9. SECTION HEADERS & UTILITIES
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.08);
  border: 1px solid var(--border-accent);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.96rem;
  max-width: 600px;
}

/* --------------------------------------------------------------------------
   10. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

.about-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-glass);
}

.panel-icon {
  font-size: 1.1rem;
  color: var(--accent-primary);
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
}

.about-narrative {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.about-narrative strong {
  color: #fff;
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-main);
}

.highlight-item i {
  color: var(--color-green);
}

/* Right Pillars */
.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar-card {
  padding: 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pillar-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: var(--radius-sm);
  background: rgba(var(--accent-primary-rgb), 0.08);
  border: 1px solid var(--border-accent);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.pillar-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.pillar-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   11. EXPERIENCE SECTION (TIMELINE)
   -------------------------------------------------------------------------- */
.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.timeline-spine {
  position: absolute;
  top: 0;
  left: 20px;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
  transition: height 0.3s ease;
}

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

.timeline-node {
  position: absolute;
  top: 1.6rem;
  left: 11px;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.node-ring {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  background: var(--bg-darkest);
}

.node-core {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.timeline-card {
  padding: 1.6rem 1.8rem;
  position: relative;
}

.current-badge {
  position: absolute;
  top: -10px;
  right: 18px;
  background: var(--color-green);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.role-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
}

.company-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--accent-primary);
  margin-top: 0.2rem;
  font-weight: 500;
}

.location-tag {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 400;
}

.role-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.role-description p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.role-impact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.impact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.48;
}

.impact-item i {
  color: var(--accent-primary);
  margin-top: 0.25rem;
  font-size: 0.78rem;
}

.impact-item strong {
  color: var(--accent-primary);
}

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

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-highlight);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   12. SKILLS MATRIX SECTION
   -------------------------------------------------------------------------- */
.skill-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.skill-tabs-wrapper::-webkit-scrollbar {
  display: none;
}

.skill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  background: rgba(14, 20, 32, 0.8);
  border: 1px solid var(--border-glass);
  padding: 0.35rem;
  border-radius: var(--radius-full);
}

.skill-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.skill-tab-btn:hover {
  color: #fff;
}

.skill-tab-btn.active {
  background: var(--accent-primary);
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 15px var(--accent-glow);
}

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

.skill-card {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.skill-card-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.skill-icon-box {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.2rem;
}

.skill-meta h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: #fff;
}

.skill-exp {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-dim);
}

.skill-level-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.level-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  border-radius: 3px;
}

.skill-footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

.skill-status {
  color: var(--color-green);
}

.skill-num {
  color: var(--accent-primary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. FEATURED PROJECTS SECTION
   -------------------------------------------------------------------------- */
.project-filter-wrapper {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.proj-filter-btn {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.proj-filter-btn:hover {
  border-color: var(--border-accent);
  color: #fff;
}

.proj-filter-btn.active {
  background: rgba(var(--accent-primary-rgb), 0.12);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-glow-subtle);
}

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

.project-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.proj-type-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.08);
  border: 1px solid var(--border-accent);
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius-full);
}

.proj-metric-chip {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--color-green);
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.proj-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
}

.proj-summary {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.proj-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 0.78rem;
  color: var(--text-main);
}

.proj-highlights i {
  color: var(--accent-primary);
  margin-right: 0.25rem;
}

.proj-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
}

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

.proj-details-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.proj-details-btn:hover {
  transform: translateX(3px);
  text-shadow: 0 0 8px var(--accent-primary);
}

.proj-links {
  display: flex;
  gap: 0.45rem;
}

.proj-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.proj-link-icon:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   14. TESTIMONIALS SECTION
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

.testimonial-stars {
  color: var(--color-yellow);
  font-size: 0.8rem;
  display: flex;
  gap: 3px;
}

.testimonial-quote {
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.65;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-glass);
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(var(--accent-primary-rgb), 0.08);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 0.95rem;
}

.author-info h5 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: #fff;
}

.author-info span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   15. CONTACT SECTION & FORMS
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-info-panel, .contact-form-panel {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

.contact-lead strong {
  color: #fff;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.95rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  overflow: hidden;
}

.contact-method-card:hover {
  background: rgba(var(--accent-primary-rgb), 0.05);
  border-color: var(--border-accent);
}

.method-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 6px;
  background: rgba(var(--accent-primary-rgb), 0.08);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.method-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.method-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.method-value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn, .external-link-btn {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.35rem;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.copy-btn:hover, .external-link-btn:hover {
  color: var(--accent-primary);
}

.cyber-status-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.status-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 8px var(--color-green);
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 0.9; }
}

.status-text-live {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-green);
  font-weight: 600;
}

.status-note {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.45;
}

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

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

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

.form-label i {
  color: var(--accent-primary);
  margin-right: 0.25rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(5, 7, 13, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom */
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-glow-subtle);
  background: rgba(8, 12, 22, 0.95);
}

.form-select option {
  background: var(--bg-panel-solid);
  color: #fff;
}

.form-submit-btn {
  width: 100%;
  margin-top: 0.3rem;
}

.form-feedback {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: center;
  display: none;
  padding: 0.55rem;
  border-radius: 4px;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--color-green);
  color: var(--color-green);
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid var(--color-red);
  color: var(--color-red);
}

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.cyber-footer {
  background: #04060a;
  border-top: 1px solid var(--border-glass);
  padding: 3.5rem 0 1.6rem;
  position: relative;
  z-index: 2;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-desc {
  color: var(--text-dim);
  font-size: 0.84rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-links-group h4 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-group a {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.footer-links-group a:hover {
  color: var(--accent-primary);
  padding-left: 2px;
}

.footer-telemetry {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-telemetry h4 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.telemetry-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.back-to-top {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(var(--accent-primary-rgb), 0.08);
  border: 1px solid var(--border-accent);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.3rem;
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  background: var(--accent-primary);
  color: #000;
  box-shadow: 0 0 15px var(--accent-primary);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1.6rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.8rem;
}

.designed-tag {
  color: var(--accent-primary);
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   17. MODALS (RESUME & PROJECT CASE STUDY)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.25s ease forwards;
}

.modal-card {
  width: 100%;
  max-width: 800px;
  max-height: 88vh;
  max-height: 88dvh;
  background: #090e1a;
  border: 1px solid var(--border-accent);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 25px var(--accent-glow-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow: hidden;
}

.accent-icon {
  color: var(--accent-primary);
  font-size: 1.05rem;
}

.modal-title-group h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.modal-close-btn {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--color-red);
}

.modal-body {
  padding: 1.4rem;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Resume Print Area */
.resume-modal-body {
  background: #060910;
  color: #e2e8f0;
}

.resume-header {
  text-align: center;
  border-bottom: 2px solid var(--border-accent);
  padding-bottom: 0.9rem;
  margin-bottom: 1.3rem;
}

.resume-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 0.03em;
}

.resume-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-primary);
  margin-top: 0.2rem;
}

.resume-contact-line {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.resume-section {
  margin-bottom: 1.3rem;
}

.resume-section-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-primary);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.25rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.resume-exp-item {
  margin-bottom: 0.9rem;
}

.exp-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #fff;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.exp-company {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-primary);
  margin-bottom: 0.3rem;
}

.resume-exp-item ul {
  list-style: disc;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
  max-width: 90vw;
}

.toast {
  background: var(--bg-panel-solid);
  border: 1px solid var(--border-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px var(--accent-glow-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   18. SCROLL REVEAL UTILITY
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --------------------------------------------------------------------------
   19. COMPREHENSIVE RESPONSIVE MEDIA QUERIES (DESKTOP TO 320px)
   -------------------------------------------------------------------------- */

/* Laptops & Tablets (1024px and down) */
@media (max-width: 1024px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Tablets & Small Laptops (768px and down) */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

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

  .section {
    padding: 3.5rem 0;
  }

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

  /* Nav adjustments */
  .nav-menu, .nav-contact-btn {
    display: none !important;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  /* Hero Section */
  .hero-section {
    padding-top: calc(var(--header-height) + 1.2rem);
    padding-bottom: 2.2rem;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2rem, 5.5vw, 2.8rem);
  }

  .hero-role-wrapper {
    min-height: 1.6em;
  }

  .hero-bio {
    font-size: 0.96rem;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .scroll-down-indicator {
    display: none;
  }

  /* Timeline */
  .timeline-spine {
    left: 14px;
  }

  .timeline-node {
    left: 15px;
    top: 1.35rem;
  }

  .timeline-item {
    padding-left: 36px;
    margin-bottom: 1.8rem;
  }

  .timeline-card {
    padding: 1.2rem 1.1rem;
  }

  .current-badge {
    position: static;
    display: inline-block;
    margin-bottom: 0.6rem;
  }

  .role-header {
    flex-direction: column;
    gap: 0.4rem;
  }

  .role-period {
    align-self: flex-start;
  }

  .about-card, .contact-info-panel, .contact-form-panel {
    padding: 1.4rem 1.2rem;
  }

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

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

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

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

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

/* Medium Mobile Devices (600px and down) */
@media (max-width: 600px) {
  /* Hide desktop resume button in header to prevent any navbar cramp */
  #openResumeBtn {
    display: none;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .brand-logo {
    gap: 0.6rem;
  }

  .logo-hexagon {
    width: 35px;
    height: 35px;
    min-width: 35px;
  }

  .logo-name {
    font-size: 1.08rem;
  }

  .logo-sub {
    font-size: 0.58rem;
  }

  /* Horizontal swipeable filter bars */
  .skill-tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
  }
  .skill-tabs-wrapper::-webkit-scrollbar {
    display: none;
  }

  .skill-tabs {
    display: inline-flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 0.35rem;
    padding: 0.3rem 0.45rem;
  }

  .skill-tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.74rem;
    padding: 0.38rem 0.85rem;
  }

  .project-filter-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    width: 100%;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
  }
  .project-filter-wrapper::-webkit-scrollbar {
    display: none;
  }

  .proj-filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.74rem;
    padding: 0.38rem 0.85rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

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

  .hologram-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .interactive-ping-btn {
    width: 100%;
    text-align: center;
  }
}

/* Small Mobile Phones (480px and down) */
@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

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

  .section {
    padding: 3rem 0;
  }

  .cyber-badge {
    font-size: clamp(0.62rem, 2.5vw, 0.7rem);
    padding: 0.32rem 0.7rem;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.35rem);
  }

  .greeting-prefix {
    font-size: 0.84rem;
  }

  .hero-role-wrapper {
    font-size: clamp(0.92rem, 3.5vw, 1.15rem);
    min-height: 1.6em;
  }

  .hero-bio {
    font-size: 0.91rem;
    line-height: 1.58;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
  }

  .stat-card {
    padding: 0.65rem 0.45rem;
  }

  .stat-number-wrapper {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }

  .hologram-body {
    padding: 1.1rem 0.85rem;
  }

  .code-preview-box {
    padding: 0.75rem 0.6rem;
    font-size: 0.68rem;
    line-height: 1.5;
  }

  .about-card, .contact-info-panel, .contact-form-panel {
    padding: 1.2rem 0.9rem;
  }

  .pillar-card {
    padding: 0.95rem 0.85rem;
    gap: 0.75rem;
  }

  .pillar-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.95rem;
  }

  .pillar-content h4 {
    font-size: 0.92rem;
  }

  .pillar-content p {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .timeline-spine {
    left: 12px;
  }

  .timeline-node {
    left: 13px;
    top: 1.3rem;
    width: 15px;
    height: 15px;
  }

  .node-ring {
    width: 15px;
    height: 15px;
  }

  .timeline-item {
    padding-left: 32px;
    margin-bottom: 1.6rem;
  }

  .timeline-card {
    padding: 1.1rem 0.95rem;
  }

  .role-title {
    font-size: 1.05rem;
  }

  .company-name {
    font-size: 0.85rem;
  }

  .impact-item {
    font-size: 0.82rem;
    line-height: 1.44;
  }

  .skill-card {
    padding: 1rem 0.85rem;
    gap: 0.7rem;
  }

  .skill-icon-box {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1.05rem;
  }

  .skill-meta h4 {
    font-size: 0.86rem;
  }

  .skill-exp {
    font-size: 0.64rem;
  }

  .project-card {
    padding: 1.2rem 0.95rem;
    gap: 0.85rem;
  }

  .proj-title {
    font-size: 1.05rem;
  }

  .proj-summary {
    font-size: 0.84rem;
  }

  .proj-details-btn {
    font-size: 0.74rem;
    padding: 0.4rem 0.2rem;
  }

  .proj-link-icon {
    width: 34px;
    height: 34px;
  }

  .testimonial-card {
    padding: 1.2rem 0.95rem;
  }

  .testimonial-quote {
    font-size: 0.86rem;
  }

  .contact-method-card {
    padding: 0.7rem 0.75rem;
    gap: 0.65rem;
  }

  .method-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 0.85rem;
  }

  .method-value {
    font-size: 0.78rem;
  }

  .copy-btn, .external-link-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .form-input, .form-select, .form-textarea {
    font-size: 16px;
    padding: 0.75rem 0.85rem;
  }

  .form-submit-btn {
    min-height: 48px;
    font-size: 0.9rem;
  }

  .modal-backdrop {
    padding: 0.4rem;
  }

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

  .modal-header {
    padding: 0.75rem 0.9rem;
  }

  .modal-body {
    padding: 0.95rem 0.85rem;
    font-size: 0.84rem;
  }

  .toast-container {
    right: 0.8rem;
    bottom: 0.8rem;
    left: 0.8rem;
    max-width: none;
  }

  .toast {
    width: 100%;
    font-size: 0.72rem;
  }
}

/* Extra Small Phones (360px and down - iPhone SE, Galaxy Fold) */
@media (max-width: 360px) {
  .logo-sub {
    display: none;
  }

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

  .cyber-badge {
    font-size: 0.62rem;
    padding: 0.25rem 0.55rem;
  }

  .hero-stats-grid {
    gap: 0.35rem;
  }

  .stat-card {
    padding: 0.55rem 0.35rem;
  }

  .stat-number-wrapper {
    font-size: 1.15rem;
  }

  .timeline-item {
    padding-left: 28px;
  }

  .timeline-spine {
    left: 10px;
  }

  .timeline-node {
    left: 11px;
  }

  .timeline-card {
    padding: 1rem 0.8rem;
  }
}

/* Print Styles for Resume */
@media print {
  body * {
    visibility: hidden;
  }
  #resumeModal, #resumeModal * {
    visibility: visible;
  }
  #resumeModal {
    position: absolute;
    left: 0;
    top: 0;
    background: #fff;
    color: #000;
    display: block;
    width: 100%;
    padding: 0;
  }
  .modal-header, .modal-actions {
    display: none !important;
  }
  .resume-modal-body {
    background: #fff;
    color: #000;
  }
  .resume-header h2, .resume-section-title, .exp-row strong {
    color: #000 !important;
  }
  .resume-sub, .exp-company {
    color: #2563eb !important;
  }
}
