/* ==========================================================================
   ARYAN GUPTA — PORTFOLIO DESIGN SYSTEM & GLOBAL STYLES
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Cyber Dark & Emerald Luminescence */
  --bg-primary: #07090e;
  --bg-surface: #0e131f;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 34, 54, 0.9);
  --bg-glass: rgba(14, 19, 31, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(16, 185, 129, 0.35);
  --border-cyan: rgba(6, 182, 212, 0.35);

  /* Semantic Colors */
  --emerald-primary: #10b981;
  --emerald-light: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --cyan-primary: #06b6d4;
  --cyan-light: #22d3ee;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  --amber-accent: #f59e0b;
  --violet-accent: #8b5cf6;
  --rose-accent: #f43f5e;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-code: #38bdf8;

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--border-subtle);
  --shadow-emerald: 0 0 25px -5px rgba(16, 185, 129, 0.35);
  --shadow-cyan: 0 0 25px -5px rgba(6, 182, 212, 0.35);

  /* Layout */
  --max-width: 1240px;
  --nav-height: 72px;
}

/* Light Theme Complete Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --border-subtle: rgba(15, 23, 42, 0.12);
  --border-bright: rgba(16, 185, 129, 0.6);
  --border-cyan: rgba(6, 182, 212, 0.6);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 0 1px 1px var(--border-subtle);
}

[data-theme="light"] .ambient-grid {
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .ambient-glow-1 {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .ambient-glow-2 {
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #0f172a 20%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .site-nav {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .site-nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero-terminal-card {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .terminal-header {
  background: #f1f5f9;
  border-color: var(--border-subtle);
}

[data-theme="light"] .terminal-tabs {
  background: #e2e8f0;
}

[data-theme="light"] .term-tab {
  color: #475569;
}

[data-theme="light"] .term-tab.active {
  background: #ffffff;
  color: #0284c7;
}

[data-theme="light"] .terminal-body {
  background: #ffffff;
}

[data-theme="light"] .term-highlight {
  color: #0f172a;
}

[data-theme="light"] .term-val {
  color: #334155;
}

[data-theme="light"] .term-code {
  color: #0284c7;
}

[data-theme="light"] .sim-container-card {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sim-header {
  background: #f8fafc;
  border-color: var(--border-subtle);
}

[data-theme="light"] .sim-metrics-footer {
  background: #f1f5f9;
  border-color: var(--border-subtle);
}

[data-theme="light"] .timeline-marker {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .interactive-stego-box,
[data-theme="light"] .arima-visual-box,
[data-theme="light"] .project-interactive-preview {
  background: #f8fafc;
  border-color: var(--border-subtle);
}

[data-theme="light"] .connect-card {
  background: radial-gradient(circle at 50% 0%, #e2e8f0 0%, #f8fafc 100%);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .mobile-drawer {
  background: #ffffff;
}

[data-theme="light"] .modal-content {
  background: #ffffff;
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .icon-btn,
[data-theme="light"] .sim-btn,
[data-theme="light"] .contact-channel-btn,
[data-theme="light"] .btn-secondary,
[data-theme="light"] .skill-tab,
[data-theme="light"] .pipe-step,
[data-theme="light"] .kbd {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.12);
  color: #1e293b;
}

[data-theme="light"] .icon-btn:hover,
[data-theme="light"] .sim-btn:hover,
[data-theme="light"] .contact-channel-btn:hover,
[data-theme="light"] .btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .badge {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
  color: #334155;
}

[data-theme="light"] .badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .badge-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #0e7490;
  border-color: rgba(6, 182, 212, 0.3);
}

[data-theme="light"] .badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border-color: rgba(245, 158, 11, 0.3);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Cyber Grid & Noise */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 80%);
}

.ambient-glow-1 {
  position: absolute;
  top: -15%;
  left: 20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  animation: floatGlow 18s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  position: absolute;
  top: 40%;
  right: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  filter: blur(90px);
  animation: floatGlow 22s ease-in-out infinite alternate-reverse;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-30px, -20px) scale(0.95); }
}

/* Custom Interactive Cursor (Desktop) */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--emerald-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease-out, width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s;
  transform: translate(-50%, -50%);
  mix-blend-mode: exclusion;
  display: none;
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--emerald-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  display: none;
}

@media (pointer: fine) {
  .custom-cursor, .custom-cursor-dot {
    display: block;
  }
}

.cursor-hover {
  width: 52px;
  height: 52px;
  background-color: rgba(16, 185, 129, 0.15);
  border-color: var(--cyan-light);
}

.cursor-clicking {
  transform: translate(-50%, -50%) scale(0.75);
  background-color: var(--emerald-primary);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.font-mono {
  font-family: var(--font-mono);
}

.text-gradient {
  background: linear-gradient(135deg, #f8fafc 20%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyber {
  background: linear-gradient(135deg, #34d399 0%, #38bdf8 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Common Section Header */
.section-header {
  margin-bottom: 3.5rem;
  text-align: left;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald-primary);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: 0 0 8px var(--emerald-primary);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 650px;
}

/* General Link & Button Styles */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 99999;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--shadow-emerald);
  padding: 0.875rem 1.25rem;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

@keyframes toastIn {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.toast.toast-out {
  animation: toastOut 0.25s forwards;
}

@keyframes toastOut {
  to {
    transform: translateY(10px);
    opacity: 0;
  }
}
/* ==========================================================================
   ARYAN GUPTA — COMPONENTS & INTERACTIVE UI ELEMENTS
   ========================================================================== */

/* Navbar Container */
.site-nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: var(--max-width);
  height: 56px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 1000;
  transition: all var(--transition-normal);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.site-nav.scrolled {
  top: 0.75rem;
  background: rgba(14, 19, 31, 0.85);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

/* Nav Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-primary), var(--cyan-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #050811;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.8125rem;
  box-shadow: 0 0 12px var(--emerald-glow);
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--emerald-light);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Iconic Controls */
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  position: relative;
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.icon-btn.active {
  color: var(--emerald-light);
  border-color: var(--emerald-primary);
  background: rgba(16, 185, 129, 0.1);
}

.icon-btn svg {
  width: 17px;
  height: 17px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-primary) 0%, #059669 100%);
  color: #030712;
  box-shadow: 0 4px 18px var(--emerald-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, var(--emerald-light) 0%, var(--emerald-primary) 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-cyber {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(16, 185, 129, 0.15) 100%);
  color: var(--cyan-light);
  border: 1px solid var(--border-cyan);
}

.btn-cyber:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(16, 185, 129, 0.25) 100%);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.775rem;
}

.btn-icon-right svg {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon-right svg {
  transform: translateX(3px);
}

/* Glow Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.badge:hover {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.08);
  color: var(--emerald-light);
  border-color: rgba(16, 185, 129, 0.25);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.08);
  color: var(--cyan-light);
  border-color: rgba(6, 182, 212, 0.25);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.08);
  color: var(--amber-accent);
  border-color: rgba(245, 158, 11, 0.25);
}

.badge-violet {
  background: rgba(139, 92, 246, 0.08);
  color: #c084fc;
  border-color: rgba(139, 92, 246, 0.25);
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--emerald-light);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-primary);
  box-shadow: 0 0 10px var(--emerald-primary);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

/* Range Slider Control (Custom Neo-Cyber Style) */
.cyber-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  transition: background var(--transition-fast);
}

.cyber-slider:hover {
  background: rgba(255, 255, 255, 0.16);
}

.cyber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--emerald-primary);
  border: 2px solid #030712;
  cursor: pointer;
  box-shadow: 0 0 12px var(--emerald-primary);
  transition: transform var(--transition-fast);
}

.cyber-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), var(--shadow-emerald);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  padding: 2rem;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-bounce);
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* Keyboard Shortcut Item */
.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.875rem;
}

.shortcut-row:last-child {
  border-bottom: none;
}

.kbd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-code);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}
/* ==========================================================================
   ARYAN GUPTA — SECTIONS & INTERACTIVE SHOWCASES STYLING
   ========================================================================== */

/* Section Spacing */
section {
  padding: 6rem 0;
  position: relative;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: calc(100vh - 40px);
  padding-top: 8rem;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero-name {
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-tagline {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 580px;
}

.hero-tagline strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--emerald-light);
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Hero Interactive Terminal Widget */
.hero-terminal-card {
  background: rgba(14, 20, 32, 0.85);
  border: 1px solid var(--border-bright);
  box-shadow: var(--shadow-card), 0 0 35px -10px rgba(16, 185, 129, 0.2);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.terminal-header {
  background: rgba(8, 12, 20, 0.9);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-red { background: #ef4444; }
.t-yellow { background: #f59e0b; }
.t-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.terminal-tabs {
  display: flex;
  background: rgba(10, 15, 25, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.25rem 0.5rem;
}

.term-tab {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 0.85rem;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.term-tab.active {
  color: var(--cyan-light);
  background: rgba(6, 182, 212, 0.1);
  font-weight: 600;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.term-line {
  margin-bottom: 0.6rem;
  display: flex;
  gap: 0.5rem;
}

.term-prompt {
  color: var(--emerald-primary);
  user-select: none;
}

.term-key {
  color: var(--cyan-light);
}

.term-val {
  color: var(--text-secondary);
}

.term-highlight {
  color: #f8fafc;
  font-weight: 600;
}

.terminal-interactive-btn {
  margin-top: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--emerald-light);
  padding: 0.6rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.terminal-interactive-btn:hover {
  background: rgba(16, 185, 129, 0.22);
  transform: translateY(-1px);
}

/* ==========================================================================
   2. MARL PURSUIT-EVASION SIMULATION SHOWCASE
   ========================================================================== */
.sim-container-card {
  background: #090e18;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(16, 185, 129, 0.15);
  margin-top: 2rem;
}

.sim-header {
  padding: 1rem 1.5rem;
  background: #0d1424;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.sim-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sim-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--emerald-light);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
}

.sim-controls-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sim-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sim-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.sim-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--emerald-primary);
  color: var(--emerald-light);
}

.sim-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  background: radial-gradient(circle at 50% 50%, #0d1527 0%, #060a12 100%);
  overflow: hidden;
  cursor: crosshair;
}

#marlCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Canvas HUD Telemetry Overlays */
.sim-hud-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  font-family: var(--font-mono);
}

.hud-panel {
  background: rgba(9, 14, 24, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.hud-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.hud-val {
  color: var(--emerald-light);
  font-weight: 700;
}

.hud-val-cyan {
  color: var(--cyan-light);
  font-weight: 700;
}

.sim-hud-bottom {
  position: absolute;
  bottom: 0.75rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sim-instruction-hint {
  background: rgba(0, 0, 0, 0.6);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sim-metrics-footer {
  background: #0b1120;
  border-top: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.sim-metric-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sim-metric-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.sim-metric-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* ==========================================================================
   3. EXPERIENCE SECTION (MeitY & IBM Edunet)
   ========================================================================== */
.timeline-track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--emerald-primary) 0%, var(--cyan-primary) 70%, transparent 100%);
  opacity: 0.35;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.timeline-marker {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #0f1525;
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-light);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  z-index: 2;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2.25rem;
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: var(--shadow-card);
}

.timeline-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.timeline-role {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-company {
  font-size: 1.05rem;
  color: var(--emerald-light);
  font-weight: 600;
  margin-top: 0.2rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--emerald-primary);
  font-weight: 700;
}

/* MeitY Interactive QR Steganography Showcase */
.interactive-stego-box {
  background: rgba(10, 15, 26, 0.7);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.stego-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stego-title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--cyan-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stego-display-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: center;
}

.stego-visual-container {
  width: 200px;
  height: 200px;
  background: #000;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stego-canvas {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.stego-info-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stego-layer-indicator {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-weight: 600;
}

.stego-meta-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Edunet / IBM Cloud ARIMA Forecasting Visualizer */
.arima-visual-box {
  background: rgba(10, 15, 26, 0.7);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.arima-chart-canvas {
  width: 100%;
  height: 160px;
  display: block;
}

/* ==========================================================================
   4. PROJECTS GRID & SHOWCASES
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.6), var(--shadow-cyan);
  transform: translateY(-4px);
}

.project-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.project-name {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.65;
}

.project-interactive-preview {
  margin: 1.25rem 0;
  border-radius: 12px;
  background: rgba(8, 12, 20, 0.9);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

/* Fleet Interactive Sandbox */
.fleet-controls-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.fleet-stat-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-light);
  font-weight: 600;
}

/* Random Forest Calculator */
.rf-slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.rf-slider-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.rf-output-meter {
  margin-top: 0.85rem;
  padding: 0.65rem;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* Video Pipeline Stepper */
.pipeline-step-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
}

.pipe-step {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  transition: all var(--transition-fast);
}

.pipe-step.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--cyan-primary);
  color: var(--cyan-light);
}

/* ==========================================================================
   5. SKILLS MATRIX & UNIVERSE
   ========================================================================== */
.skills-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.skills-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tab {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.skill-tab:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.skill-tab.active {
  background: var(--emerald-primary);
  color: #030712;
  border-color: var(--emerald-light);
  font-weight: 700;
  box-shadow: 0 0 15px var(--emerald-glow);
}

.skills-search {
  position: relative;
  min-width: 240px;
}

.skills-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.45rem 1rem 0.45rem 2.25rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.skills-search input:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.skills-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.skill-card:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.skill-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.skill-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--emerald-primary), var(--cyan-primary));
  transition: width 0.8s ease;
}

/* ==========================================================================
   6. EDUCATION & LEADERSHIP
   ========================================================================== */
.edu-lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.column-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.edu-card, .lead-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.edu-card:hover, .lead-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.edu-degree {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.edu-school {
  color: var(--emerald-light);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.edu-coursework-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.coursework-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lead-role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lead-org {
  color: var(--cyan-light);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
}

.lead-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   7. CONNECT & FOOTER
   ========================================================================== */
.connect-card {
  background: radial-gradient(circle at 50% 0%, #111a2f 0%, #090d16 100%);
  border: 1px solid var(--border-bright);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-card), 0 0 50px -10px rgba(16, 185, 129, 0.2);
  position: relative;
  overflow: hidden;
}

.connect-heading {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.connect-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 2.5rem auto;
}

.contact-channels-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.contact-channel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.contact-channel-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--emerald-primary);
  color: var(--emerald-light);
  transform: translateY(-2px);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  margin-top: 5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
/* ==========================================================================
   ARYAN GUPTA — RESPONSIVE & MOBILE DESIGN BREAKPOINTS
   ========================================================================== */

/* Mobile Menu Drawer */
.mobile-nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #0d121f;
  border-left: 1px solid var(--border-subtle);
  z-index: 10001;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.mobile-drawer-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  display: block;
}

.mobile-drawer-link:hover, .mobile-drawer-link.active {
  color: var(--emerald-light);
}

/* Tablet & Smaller Desktops (Max 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .edu-lead-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sim-metrics-footer {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Devices (Max 768px) */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  section {
    padding: 4rem 0;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .hero-section {
    padding-top: 6.5rem;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline-track::before {
    left: 20px;
  }

  .timeline-item {
    grid-template-columns: 40px 1fr;
    gap: 1.25rem;
  }

  .timeline-marker {
    width: 40px;
    height: 40px;
  }

  .timeline-card {
    padding: 1.5rem;
  }

  .stego-display-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .sim-canvas-wrapper {
    height: 320px;
  }

  .sim-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sim-metrics-footer {
    grid-template-columns: 1fr;
  }

  .skills-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .skills-search {
    width: 100%;
  }

  .connect-card {
    padding: 2rem 1.25rem;
  }

  .contact-channels-grid {
    flex-direction: column;
  }

  .contact-channel-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ambient-glow-1, .ambient-glow-2 {
    display: none;
  }

  .custom-cursor, .custom-cursor-dot {
    display: none !important;
  }
}
