/* ==========================================================================
   Design System & Tokens - Himanshu Sarode Portfolio
   ========================================================================== */

:root {
  /* Core Color Palette - Light Theme with Vibrant Tech Accents */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-glass-heavy: rgba(255, 255, 255, 0.9);
  
  /* Text Colors */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Brand & Accent Colors */
  --primary: #4f46e5;
  --primary-rgb: 79, 70, 229;
  --primary-light: #818cf8;
  --primary-subtle: rgba(79, 70, 229, 0.08);
  --primary-glow: rgba(99, 102, 241, 0.25);
  
  --secondary: #0284c7;
  --secondary-rgb: 2, 132, 199;
  --secondary-light: #38bdf8;
  --secondary-subtle: rgba(2, 132, 199, 0.08);

  --accent-purple: #9333ea;
  --accent-emerald: #059669;
  --accent-emerald-subtle: rgba(5, 150, 105, 0.1);
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --gradient-accent: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
  --gradient-pill: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%);
  --gradient-border: linear-gradient(135deg, rgba(79, 70, 229, 0.3) 0%, rgba(14, 165, 233, 0.2) 100%);

  /* Borders & Shadows */
  --border-light: rgba(226, 232, 240, 0.8);
  --border-medium: #cbd5e1;
  --border-hover: rgba(99, 102, 241, 0.4);
  
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.08), 0 10px 15px -8px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(79, 70, 229, 0.15);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.18);

  /* Spacing */
  --container-max: 1200px;
  --nav-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --transition-fast: 0.18s 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.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Ambient Elements */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}

.bg-mesh-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.glow-orb-1 {
  top: -10%;
  right: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(99, 102, 241, 0) 70%);
}

.glow-orb-2 {
  top: 40%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, rgba(14, 165, 233, 0) 70%);
  animation-delay: -7s;
}

.glow-orb-3 {
  bottom: -10%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(168, 85, 247, 0) 70%);
  animation-delay: -12s;
}

/* Progress Scroll Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1001;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.6);
  transition: width 0.1s ease-out;
}

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

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

p {
  color: var(--text-muted);
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-body);
}

img, svg {
  vertical-align: middle;
}

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

.gradient-accent-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Section Common Header */
.section-padding {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: var(--gradient-pill);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
  color: var(--text-inverse);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(79, 70, 229, 0.4);
}

.btn-outline:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  transform: translateY(-2px);
}

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

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
}

.btn-icon:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */

.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition-normal);
}

.header-nav.scrolled {
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px -5px rgba(15, 23, 42, 0.05);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.3rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: var(--transition-normal);
}

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

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

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

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.mobile-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--text-main);
  border-radius: 4px;
  transition: var(--transition-normal);
  transform-origin: 1px;
}

.mobile-toggle.active span:first-child {
  transform: rotate(45deg);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(85vw, 360px);
  height: 100vh;
  background: var(--bg-secondary);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  z-index: 1005;
  padding: 5.5rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: var(--transition-bounce);
}

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

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4rem;
  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.4rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  background: var(--accent-emerald-subtle);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: var(--radius-full);
  color: var(--accent-emerald);
  font-size: 0.88rem;
  font-weight: 600;
  width: fit-content;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent-emerald);
  opacity: 0.6;
  animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

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

.hero-contact-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-subtle);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

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

/* Hero Visual Card Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-glass-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(226, 232, 240, 0.6);
  width: 100%;
  max-width: 440px;
  z-index: 2;
  transition: var(--transition-normal);
}

.hero-glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), 0 0 30px rgba(79, 70, 229, 0.15);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.avatar-container {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-primary);
  padding: 3px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
}

.profile-info h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.profile-info p {
  font-size: 0.88rem;
  color: var(--text-subtle);
  font-weight: 500;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.hero-stat-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
}

.hero-stat-box:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-subtle);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Floating Tech Badges around Hero */
.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  z-index: 3;
  animation: floatChip 6s ease-in-out infinite alternate;
}

.floating-chip-1 {
  top: -15px;
  right: -15px;
  border-left: 3px solid #02569B; /* Flutter Blue */
  animation-delay: 0s;
}

.floating-chip-2 {
  bottom: 25px;
  left: -25px;
  border-left: 3px solid #FF9900; /* AWS Orange */
  animation-delay: -2s;
}

.floating-chip-3 {
  top: 50%;
  right: -30px;
  border-left: 3px solid #FFCA28; /* Firebase Yellow */
  animation-delay: -4s;
}

/* ==========================================================================
   About & Core Pillars
   ========================================================================== */

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

.about-text-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-highlight-box {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
}

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

.pillar-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md), 0 0 15px var(--primary-subtle);
}

.pillar-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--gradient-pill);
  border: 1px solid rgba(79, 70, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
}

.pillar-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.pillar-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ==========================================================================
   Technical Skills Matrix
   ========================================================================== */

.skills-filter-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

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

.skill-category-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

.category-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-light);
}

.category-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.skill-items-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
}

.skill-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-subtle);
  transform: translateY(-1px);
}

.skill-pill.featured {
  border-color: rgba(79, 70, 229, 0.3);
  background: rgba(79, 70, 229, 0.04);
}

/* ==========================================================================
   Professional Experience Timeline
   ========================================================================== */

.experience-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 2rem;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, rgba(14, 165, 233, 0.6) 50%, rgba(226, 232, 240, 0.5) 100%);
  border-radius: 2px;
}

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

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

.timeline-dot {
  position: absolute;
  top: 6px;
  left: -2rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 3.5px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
  z-index: 2;
  transition: var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.25);
}

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.timeline-card:hover {
  transform: translateX(4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

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

.company-role-info h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.role-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.role-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--secondary);
  margin-top: 0.2rem;
}

.timeline-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--bg-tertiary);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
}

.live-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: var(--accent-emerald-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-fast);
}

.live-link-pill:hover {
  background: rgba(5, 150, 105, 0.2);
}

.timeline-points {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.timeline-point {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.point-bullet {
  color: var(--primary);
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.timeline-tech-stack {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* ==========================================================================
   Featured Projects Showcase
   ========================================================================== */

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

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-xl);
}

.project-banner {
  height: 190px;
  background: var(--gradient-card);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.project-banner-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-size: 20px 20px;
  background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px);
}

.project-illustration {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.project-badge-top {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--primary);
  box-shadow: var(--shadow-xs);
  z-index: 2;
}

.project-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1rem;
}

.project-title-area h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.project-subtitle {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--secondary);
}

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

.project-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.highlight-item i {
  color: var(--accent-emerald);
  margin-top: 0.2rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.8rem;
}

.project-footer {
  padding: 1.2rem 1.8rem;
  border-top: 1px solid var(--border-light);
  background: rgba(248, 250, 252, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Education & Accolades
   ========================================================================== */

.edu-awards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.edu-column, .awards-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.column-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.column-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--gradient-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
}

.column-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
}

.edu-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.edu-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.edu-degree-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.edu-institution {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.edu-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border-light);
  font-size: 0.85rem;
}

.edu-score {
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.edu-year {
  color: var(--text-subtle);
  font-weight: 500;
}

.award-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.award-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-amber);
  box-shadow: var(--shadow-md);
}

.award-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.award-details h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.award-details p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Interactive Contact Section
   ========================================================================== */

.contact-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-quick-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.contact-quick-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.contact-card-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-card-info h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-card-info p {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
}

.copy-btn {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.copy-btn:hover {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: var(--primary);
}

.contact-social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.social-connect-card {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-xs);
  transition: var(--transition-fast);
}

.social-connect-card:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
  margin-bottom: 1.2rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-main);
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem 0;
  position: relative;
}

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

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.6;
}

.footer-links-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-list a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links-list a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.4rem;
  background: var(--text-main);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-bounce);
}

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

/* Modal Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.2rem;
  position: relative;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: var(--transition-bounce);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--border-medium);
  color: var(--text-main);
}

/* ==========================================================================
   Responsive Breakpoints (Mobile, Tablet, Desktop)
   ========================================================================== */

/* Tablet & Smaller (< 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

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

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

  .hero-contact-strip {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
  }

  .hero-glass-card {
    max-width: 480px;
    margin: 0 auto;
  }

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

  .edu-awards-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-section-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

/* Mobile Devices (< 768px) */
@media (max-width: 768px) {
  .nav-links, .nav-actions .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .section-padding {
    padding: 4.5rem 0;
  }

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

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

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

  .experience-timeline {
    padding-left: 1.5rem;
  }

  .experience-timeline::before {
    left: 4px;
  }

  .timeline-dot {
    left: -1.5rem;
    width: 14px;
    height: 14px;
  }

  .timeline-card {
    padding: 1.4rem;
  }

  .floating-chip {
    display: none; /* Avoid overflowing tiny mobile screens */
  }
}

/* ==========================================================================
   Mermaid Architecture Diagram Styling (Clean, Compact, Anti-Clipping)
   ========================================================================== */
@keyframes flowDash {
  0% {
    stroke-dashoffset: 24;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes pulseGlowIcon {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.6);
  }
}

.project-illustration {
  animation: pulseGlowIcon 4s ease-in-out infinite;
}

.project-card:hover .project-illustration {
  transform: scale(1.12) rotate(4deg);
  transition: var(--transition-normal);
}

.project-diagram-wrapper {
  background: radial-gradient(circle at 50% 0%, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  margin: 1.2rem 0;
  overflow-x: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.project-diagram-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
  text-align: left;
}

.project-diagram-header i {
  color: #818cf8;
}

.project-diagram-wrapper .mermaid {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
}

/* Compact, proportional SVG sizing without giant stretched layout */
.project-diagram-wrapper svg {
  max-width: 100% !important;
  max-height: 260px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 auto !important;
  display: block !important;
}

/* Subtle glowing link paths */
.project-diagram-wrapper .edgePath path,
.project-diagram-wrapper .flowchart-link {
  stroke-dasharray: 6 3 !important;
  animation: flowDash 1.2s linear infinite !important;
  stroke: #818cf8 !important;
  stroke-width: 1.8px !important;
}

.project-diagram-wrapper marker path {
  fill: #818cf8 !important;
  stroke: #818cf8 !important;
}

.project-diagram-wrapper .node rect,
.project-diagram-wrapper .node polygon,
.project-diagram-wrapper .node circle {
  rx: 8px !important;
  ry: 8px !important;
}
