/* Modern Glassmorphism & Cyber-Slate Design System */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: rgba(21, 28, 44, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(59, 130, 246, 0.4);
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --accent-primary: #3b82f6;
  --accent-secondary: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-teal: #14b8a6;
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;

  --gradient-hero: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15), transparent 70%);

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-code: 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.25);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(59, 130, 246, 0.5);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 35px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background Animated Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

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

.text-cyan { color: var(--accent-cyan); }
.text-teal { color: var(--accent-teal); }
.text-purple { color: var(--accent-purple); }
.text-amber { color: var(--accent-amber); }

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--accent-primary);
  font-family: var(--font-code);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0.75rem auto 0;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 250, 252, 0.85);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
}

.nav-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  position: relative;
}

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

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

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

.btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: scale(1.05);
}

.mobile-nav-toggle {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  font-family: var(--font-main);
}

.btn-primary {
  background: var(--gradient-hero);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
  color: #fff;
}

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

.btn-outline:hover {
  border-color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent-primary);
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
  position: relative;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 3.5rem;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-tag {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-avatar-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.avatar-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--gradient-hero);
  filter: blur(60px);
  opacity: 0.35;
  z-index: 0;
  animation: float-slow 6s ease-in-out infinite alternate;
}

@keyframes float-slow {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-15px) scale(1.05); }
}

/* Expanded Code Terminal Window Card (No horizontal scrollbar) */
.code-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 530px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-hover);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

[data-theme="light"] .code-card {
  background: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.code-filename {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: #94a3b8;
}

.code-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-code);
  font-size: 0.83rem;
  line-height: 1.6;
  color: #e2e8f0;
  overflow-x: hidden;
}

.code-body pre {
  margin: 0;
  font-family: inherit;
}

.code-kw { color: #f472b6; font-weight: 600; }
.code-type { color: #38bdf8; font-weight: 600; }
.code-str { color: #a3e635; }

.code-footer-badge {
  padding: 0.85rem 1.5rem;
  background: rgba(245, 158, 11, 0.1);
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.code-footer-badge strong {
  display: block;
  font-size: 0.85rem;
  color: #f59e0b;
}

.code-footer-badge p {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
}

/* Key Stats Banner */
.stats-banner {
  margin-top: -3rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* About / Summary Section */
.summary-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.summary-bio p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.summary-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.highlight-text p {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0;
}

.personal-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hobbies-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hobby-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.hobby-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* Filter Controls */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-purple) 50%, var(--glass-border) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  margin-bottom: 2.5rem;
  transition: all var(--transition-normal);
}

.timeline-node {
  position: absolute;
  left: 13px;
  top: 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
  z-index: 2;
  transition: all var(--transition-fast);
}

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

.timeline-content {
  position: relative;
}

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

.timeline-role {
  font-size: 1.3rem;
  color: var(--text-main);
}

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

.timeline-date {
  font-family: var(--font-code);
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
}

.timeline-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.25rem;
}

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

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

.tech-badge {
  font-family: var(--font-code);
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Skills Matrix */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-category-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.skill-bar-wrapper {
  margin-bottom: 1.25rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.skill-name {
  color: var(--text-main);
}

.skill-percentage {
  color: var(--text-dim);
  font-family: var(--font-code);
  font-size: 0.85rem;
}

.skill-progress-bg {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.skill-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-hero);
  width: 0; /* Animated via JS */
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.languages-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.language-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  text-align: center;
}

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

.language-level {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Education & Certification Cards */
.edu-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.edu-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.edu-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.edu-card.cert-highlight {
  border-color: rgba(245, 158, 11, 0.4);
}

.edu-card.cert-highlight .edu-icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.edu-title {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.edu-institution {
  font-size: 0.95rem;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.edu-year {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Connect Section Styling */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 950px;
  margin: 0 auto;
}

.connect-card-link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: var(--text-main);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.connect-card-link:hover {
  background: var(--bg-card-hover);
  border-color: #0077b5;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px -10px rgba(0, 119, 181, 0.4);
  color: var(--text-main);
}

.connect-card-location {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-main);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.connect-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(0, 119, 181, 0.15);
  color: #0077b5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-icon-wrapper {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.connect-details h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.connect-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.connect-badge-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: #0077b5;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Print Stylesheet for Exporting PDF */
@media print {
  #bg-canvas, .navbar, .btn, .filter-container {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .glass-card {
    border: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  section {
    padding: 1.5rem 0 !important;
    page-break-inside: avoid;
  }
  .timeline::before {
    background: #ccc !important;
  }
  .timeline-node {
    border-color: #333 !important;
    box-shadow: none !important;
  }
}

/* =============================================
   RESPONSIVE MEDIA QUERIES — MOBILE FIRST
   ============================================= */

/* --- Tablets & Small Laptops (≤ 992px) --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-tags, .hero-ctas {
    justify-content: center;
  }

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

  .summary-grid, .skills-grid, .connect-grid {
    grid-template-columns: 1fr;
  }

  .edu-cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .code-card {
    max-width: 100%;
  }

  .avatar-glow {
    width: 280px;
    height: 280px;
  }
}

/* --- Mobile Landscape & Large Phones (≤ 768px) --- */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* --- Navbar --- */
  .nav-logo span {
    font-size: 1.1rem;
  }

  .nav-links {
    position: fixed;
    top: 65px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 65px);
    background: var(--bg-secondary);
    border-left: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 2rem 1.5rem;
    align-items: flex-start;
    gap: 1.5rem;
    transition: right var(--transition-normal);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-link {
    font-size: 1.1rem;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  /* --- Hero --- */
  .hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.2rem;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-badge {
    font-size: 0.82rem;
  }

  .hero-tags {
    gap: 0.5rem;
  }

  .hero-tag {
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .avatar-glow {
    width: 220px;
    height: 220px;
    filter: blur(40px);
  }

  /* Terminal card full-width on mobile */
  .code-card {
    max-width: 100%;
    font-size: 0.78rem;
  }

  .code-body {
    font-size: 0.75rem;
    padding: 1rem 1.1rem;
    overflow-x: auto;
  }

  .code-body pre,
  .code-body code {
    white-space: pre-wrap;
    word-break: break-word;
  }

  /* --- Stats Banner --- */
  .stats-banner {
    margin-top: -1.5rem;
    margin-bottom: 2rem;
  }

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

  .stat-card {
    padding: 1.25rem 0.75rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

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

  /* --- Section Headers --- */
  .section-title {
    font-size: 1.9rem;
  }

  .section-subtitle {
    font-size: 0.97rem;
  }

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

  /* --- Summary section --- */
  .summary-highlights {
    grid-template-columns: 1fr;
  }

  .glass-card {
    padding: 1.5rem;
  }

  /* --- Timeline --- */
  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 48px;
    margin-bottom: 1.75rem;
  }

  .timeline-node {
    left: 4px;
    top: 20px;
    width: 20px;
    height: 20px;
  }

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

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

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

  .timeline-date {
    font-size: 0.78rem;
  }

  /* --- Filter Buttons --- */
  .filter-container {
    gap: 0.5rem;
    margin-bottom: 2.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }

  /* --- Skills --- */
  .skill-info {
    font-size: 0.88rem;
  }

  .languages-list {
    grid-template-columns: 1fr 1fr;
  }

  /* --- Education --- */
  .edu-cert-grid {
    grid-template-columns: 1fr;
  }

  /* --- Connect Cards --- */
  .connect-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .connect-card-link,
  .connect-card-location {
    padding: 1.5rem;
    gap: 1rem;
  }

  .connect-badge-btn {
    display: none; /* Too cramped on mobile; the card itself is already a link */
  }

  /* --- Buttons --- */
  .btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.4rem;
  }
}

/* --- Small Phones (≤ 480px) --- */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 1rem;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.65rem;
  }

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

  .stat-number {
    font-size: 2rem;
  }

  .stat-card {
    padding: 1rem 0.5rem;
  }

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

  .nav-logo-badge {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  /* Terminal card — tighten spacing */
  .code-card {
    border-radius: var(--radius-sm);
  }

  .code-body {
    padding: 0.85rem 1rem;
    font-size: 0.72rem;
    line-height: 1.5;
  }

  .code-footer-badge {
    padding: 0.65rem 1rem;
    gap: 0.6rem;
  }

  .code-footer-badge strong {
    font-size: 0.78rem;
  }

  .code-footer-badge p {
    font-size: 0.7rem;
  }

  .filter-container {
    gap: 0.4rem;
  }

  .filter-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .hero-ctas .btn {
    font-size: 0.88rem;
    padding: 0.65rem 1.1rem;
  }

  .connect-card-link,
  .connect-card-location {
    padding: 1.25rem;
  }

  .connect-icon-wrapper {
    width: 44px;
    height: 44px;
  }

  .connect-details h3 {
    font-size: 1.05rem;
  }

  .connect-details p {
    font-size: 0.85rem;
    word-break: break-all;
  }

  .glass-card {
    padding: 1.25rem;
  }

  footer {
    padding: 2rem 0;
    font-size: 0.85rem;
  }
}

/* --- Very Small / Older Phones (≤ 360px) --- */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .hero-tags {
    flex-direction: column;
    align-items: center;
  }

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