/* ==========================================================================
   VIKRAM R - MODERN ENGINEERING PORTFOLIO STYLESHEET
   Inspirations: Linear.app, Vercel, Raycast, Stripe & Silicon Valley Tech Portfolios
   Themes: Obsidian Emerald (Default), Cyber Midnight, and Editorial Clean Light
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Theme Palettes & Design Tokens
   -------------------------------------------------------------------------- */

:root,
[data-theme="obsidian"],
[data-theme="dark"] {
  /* Obsidian Emerald (Linear / Supabase / Developer Terminal Inspired) */
  --theme-name: 'obsidian';
  --bg-primary: #08090d;
  --bg-secondary: #0e1118;
  --bg-card: rgba(15, 20, 31, 0.68);
  --bg-card-hover: rgba(21, 28, 44, 0.88);
  --bg-glass: rgba(10, 14, 23, 0.82);
  --bg-elevated: #151b28;
  --bg-input: rgba(255, 255, 255, 0.04);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-primary: #10b981;    /* Vibrant Emerald */
  --accent-secondary: #06b6d4;  /* Tech Cyan */
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;
  
  --gradient-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #6366f1 100%);
  --gradient-accent: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.16), transparent 70%);
  --spotlight-color: rgba(16, 185, 129, 0.12);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.14);
  --border-hover: rgba(16, 185, 129, 0.45);
  --border-badge: rgba(16, 185, 129, 0.25);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.22);
  --shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.22);

  --grid-pattern: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  --ambient-top-glow: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(16, 185, 129, 0.12), transparent 80%);
}

[data-theme="cyber"] {
  /* Cyber Midnight (Vercel / Next.js / Raycast Inspired) */
  --theme-name: 'cyber';
  --bg-primary: #050508;
  --bg-secondary: #0b0c14;
  --bg-card: rgba(16, 17, 32, 0.72);
  --bg-card-hover: rgba(25, 26, 48, 0.9);
  --bg-glass: rgba(8, 9, 18, 0.85);
  --bg-elevated: #16172e;
  --bg-input: rgba(255, 255, 255, 0.045);
  
  --text-primary: #ffffff;
  --text-secondary: #a3a6c2;
  --text-muted: #6c7094;
  
  --accent-primary: #8b5cf6;    /* Electric Violet */
  --accent-secondary: #ec4899;  /* Neon Magenta */
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;
  
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.2), transparent 70%);
  --spotlight-color: rgba(139, 92, 246, 0.14);
  
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-highlight: rgba(255, 255, 255, 0.18);
  --border-hover: rgba(139, 92, 246, 0.5);
  --border-badge: rgba(139, 92, 246, 0.3);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 32px rgba(139, 92, 246, 0.28);
  --shadow-glow-cyan: 0 0 32px rgba(56, 189, 248, 0.25);

  --grid-pattern: radial-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px);
  --ambient-top-glow: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(139, 92, 246, 0.14), transparent 80%);
}

[data-theme="light"] {
  /* Editorial Clean Light (Stripe / GitHub / Apple Minimalist Inspired) */
  --theme-name: 'light';
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-elevated: #ffffff;
  --bg-input: #ffffff;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent-primary: #059669;    /* Forest Emerald */
  --accent-secondary: #0284c7;  /* High-Tech Sky */
  --accent-cyan: #0284c7;
  --accent-emerald: #059669;
  --accent-indigo: #4f46e5;
  --accent-purple: #7c3aed;
  --accent-amber: #d97706;
  
  --gradient-primary: linear-gradient(135deg, #059669 0%, #0284c7 50%, #4f46e5 100%);
  --gradient-accent: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.12), transparent 70%);
  --spotlight-color: rgba(2, 132, 199, 0.06);
  
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-highlight: rgba(15, 23, 42, 0.14);
  --border-hover: rgba(5, 150, 105, 0.5);
  --border-badge: rgba(5, 150, 105, 0.2);
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 25px rgba(5, 150, 105, 0.16);
  --shadow-glow-cyan: 0 0 25px rgba(2, 132, 199, 0.16);

  --grid-pattern: radial-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 1px);
  --ambient-top-glow: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(2, 132, 199, 0.07), transparent 80%);
}

/* --------------------------------------------------------------------------
   2. Base Reset & Typography
   -------------------------------------------------------------------------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background-image: 
    var(--ambient-top-glow),
    var(--grid-pattern);
  background-size: 100% 900px, 28px 28px;
  background-repeat: no-repeat, repeat;
  background-attachment: scroll, fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-primary);
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--accent-primary);
}

/* Container */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

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

.mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* --------------------------------------------------------------------------
   3. Header Navigation (Glassmorphic Dock)
   -------------------------------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-highlight);
}

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

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo-badge {
  color: var(--accent-primary);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.15rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-badge);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.85rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.35rem 0;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 9999px;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

/* Modern Multi-Theme Switcher Pill */
.theme-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.theme-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  transition: all 0.2s ease;
  position: relative;
}

.theme-pill-btn:hover {
  color: var(--text-primary);
}

.theme-pill-btn.active {
  background: var(--bg-elevated);
  color: var(--accent-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-highlight);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: #ffffff;
  padding: 0.68rem 1.4rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 0.68rem 1.4rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

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

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-primary);
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid var(--border-badge);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

/* Mobile Hamburger */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  font-size: 1.15rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 4.75rem;
  left: 0;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 2rem 2rem;
  z-index: 999;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

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

.mobile-nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

/* --------------------------------------------------------------------------
   4. Hero Section (Linear / Silicon Valley Style)
   -------------------------------------------------------------------------- */

.hero-section {
  padding: 9.5rem 0 6rem;
  position: relative;
  overflow: hidden;
}

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

/* Live Status Beacon */
.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--border-badge);
  color: var(--accent-primary);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulse-beacon 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-beacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

/* Hero Typography */
.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
}

.hero-prompt-prefix {
  color: var(--accent-primary);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.35rem;
  margin-right: 0.5rem;
}

.typewriter {
  color: var(--accent-secondary);
  border-right: 2px solid var(--accent-primary);
  white-space: nowrap;
  animation: blink-cursor 0.75s step-end infinite;
  padding-right: 4px;
}

@keyframes blink-cursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--accent-primary); }
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 620px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

/* Hero Bento Metrics */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-item .metric-number {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.2;
}

.metric-item .metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Hero Avatar Showcase */
.hero-image-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.profile-avatar-card {
  position: relative;
  width: 330px;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar-glow {
  position: absolute;
  width: 110%;
  height: 110%;
  border-radius: 50%;
  background: var(--gradient-primary);
  filter: blur(36px);
  opacity: 0.32;
  animation: float-glow 7s ease-in-out infinite;
}

@keyframes float-glow {
  0%, 100% { transform: scale(1) translateY(0); opacity: 0.3; }
  50% { transform: scale(1.06) translateY(-8px); opacity: 0.42; }
}

.profile-avatar-ring {
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  border: 1px dashed var(--border-hover);
  animation: spin-ring 30s linear infinite;
}

@keyframes spin-ring {
  100% { transform: rotate(360deg); }
}

.profile-img-wrap {
  position: relative;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  padding: 4px;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow);
  z-index: 2;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.profile-img-wrap:hover {
  transform: scale(1.02);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  background: var(--bg-secondary);
  transition: transform 0.5s ease;
}

.profile-img-wrap:hover .profile-img {
  transform: scale(1.06);
}

/* Floating High-Tech Badges */
.floating-badge {
  position: absolute;
  z-index: 3;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-highlight);
  padding: 0.55rem 1.05rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  white-space: nowrap;
  animation: float-badge 5s ease-in-out infinite;
}

.badge-top-right {
  top: 15px;
  right: -25px;
  animation-delay: 0s;
}

.badge-bottom-left {
  bottom: 20px;
  left: -30px;
  animation-delay: 2.5s;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* --------------------------------------------------------------------------
   5. Sections & Section Headers
   -------------------------------------------------------------------------- */

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

.section-header {
  text-align: center;
  margin-bottom: 3.75rem;
}

.section-tag {
  color: var(--accent-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.65rem;
  display: inline-block;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-badge);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.section-title {
  font-size: 2.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   6. Pillars / Engineering Domains (Bento Grid)
   -------------------------------------------------------------------------- */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.75rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2.25rem 1.75rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

/* Inner Top Bevel Highlight */
.pillar-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-highlight), transparent);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon {
  font-size: 2.4rem;
  margin-bottom: 1.35rem;
  display: inline-block;
  line-height: 1;
}

.pillar-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

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

.pillar-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.76rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-primary);
  font-weight: 500;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  border-color: var(--border-hover);
  background: rgba(16, 185, 129, 0.1);
}

/* --------------------------------------------------------------------------
   7. Projects Showcase
   -------------------------------------------------------------------------- */

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.75rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.55rem 1.35rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

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

.filter-btn.active {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-highlight), transparent);
}

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

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

.project-category-badge {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-primary);
  border: 1px solid var(--border-badge);
}

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

.project-link-btn {
  color: var(--text-muted);
  font-size: 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.project-link-btn:hover {
  color: var(--accent-primary);
  border-color: var(--border-hover);
  background: rgba(16, 185, 129, 0.12);
  transform: translateY(-2px);
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.project-role {
  font-size: 0.86rem;
  color: var(--accent-secondary);
  font-weight: 600;
  margin-bottom: 0.95rem;
}

.project-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

.project-highlights {
  list-style: none;
  margin-bottom: 1.5rem;
}

.project-highlights li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

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

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   8. Technical Skills Matrix
   -------------------------------------------------------------------------- */

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2rem;
}

.skills-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.skills-category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-highlight), transparent);
}

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

.skills-category-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 1.35rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}

.skills-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-pill:hover {
  border-color: var(--accent-primary);
  background: rgba(16, 185, 129, 0.12);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --------------------------------------------------------------------------
   9. Interactive Resume Hub
   -------------------------------------------------------------------------- */

.resume-tabs-wrap {
  max-width: 920px;
  margin: 0 auto;
}

.resume-tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
  background: var(--bg-card);
  padding: 0.5rem;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.resume-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.resume-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

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

.resume-content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.resume-content-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-highlight), transparent);
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.5rem;
  gap: 1.5rem;
}

.resume-target-role {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.resume-summary-text {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

/* --------------------------------------------------------------------------
   10. Education & Timeline
   -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 2.25rem;
}

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

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

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

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.85rem;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.timeline-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

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

.timeline-org {
  font-size: 0.98rem;
  color: var(--accent-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-period {
  font-size: 0.84rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

/* --------------------------------------------------------------------------
   11. Contact Section
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
  max-width: 1050px;
  margin: 0 auto;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.65rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  border: 1px solid var(--border-badge);
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.2rem;
}

.contact-val {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-val:hover {
  color: var(--accent-primary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

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

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  position: relative;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-link {
  color: var(--text-secondary);
  font-size: 1.35rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-link:hover {
  color: var(--accent-primary);
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

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

.toast {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-highlight);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

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

.toast i {
  color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   13. Responsive Media Queries
   -------------------------------------------------------------------------- */

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-subtitle {
    justify-content: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-metrics {
    justify-content: center;
  }
  .hero-image-col {
    order: -1;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .mobile-drawer {
    display: flex;
  }
  .hero-title {
    font-size: 2.65rem;
  }
  .hero-subtitle {
    font-size: 1.25rem;
  }
  .profile-avatar-card {
    width: 260px;
    height: 260px;
  }
  .profile-avatar-ring {
    width: 245px;
    height: 245px;
  }
  .profile-img-wrap {
    width: 225px;
    height: 225px;
  }
  .badge-top-right {
    top: 5px;
    right: -10px;
  }
  .badge-bottom-left {
    bottom: 5px;
    left: -10px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .skills-container {
    grid-template-columns: 1fr;
  }
  .resume-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
