/* ==========================================================================
   Rahul Kumar Purbey - Personal Portfolio Stylesheet
   Design Philosophy: Vercel / Linear / Apple / OpenAI Minimal Dark Glassmorphism
   Color Palette: Slate Dark (#0f172a), Glass Card (#1e293b), Accents (#3b82f6, #06b6d4)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Imports & CSS Custom Properties (Variables)
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Tokens */
  --bg-dark: #0f172a;
  --bg-darker: #0b0f19;
  --bg-card: #1e293b;
  --bg-card-hover: rgba(30, 41, 59, 0.95);
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-bg-hover: rgba(38, 53, 74, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-glow: rgba(59, 130, 246, 0.4);

  /* Accents */
  --accent-primary: #3b82f6;
  --accent-secondary: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --accent-gradient-hover: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  --accent-glow: rgba(59, 130, 246, 0.35);
  --accent-glow-cyan: rgba(6, 182, 212, 0.35);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Shadows & Effects */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.15);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.35);

  /* Layout & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'Fira Code', monospace;
  --navbar-height: 80px;
}

/* --------------------------------------------------------------------------
   2. Global Resets & Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-darker);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

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

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

ul {
  list-style: none;
}

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

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
  display: inline-block;
  font-weight: 600;
}

.section-title {
  font-size: 2.75rem;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.section-title span {
  position: relative;
}

.section-line {
  width: 70px;
  height: 4px;
  background: var(--accent-gradient);
  margin: 1rem auto 0;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   3. Preloader
   -------------------------------------------------------------------------- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-darker);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  animation: pulseGlow 2s infinite ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand-logo-img {
  max-width: 170px;
  max-height: 100px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.5));
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(59, 130, 246, 0.15);
  border-radius: 50%;
  border-top-color: var(--accent-primary);
  border-right-color: var(--accent-secondary);
  animation: spin 1s infinite linear;
  margin: 0 auto;
}

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

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.97); }
}

/* --------------------------------------------------------------------------
   4. Reading Progress Bar & Navbar
   -------------------------------------------------------------------------- */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  height: 70px;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow-glow);
  padding: 5px;
  overflow: hidden;
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

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

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

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

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

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

.btn-resume-nav {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.btn-resume-nav:hover {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: calc(var(--navbar-height) + 2rem);
  padding-bottom: 4rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #071329 0%, #030712 80%);
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--glass-border);
  width: fit-content;
  font-size: 0.85rem;
  color: var(--accent-secondary);
  backdrop-filter: blur(8px);
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-typing-container {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.typed-text {
  color: var(--accent-secondary);
  font-weight: 600;
  font-family: var(--font-mono);
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.7;
}

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

/* Primary Button */
.btn-primary {
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-glow);
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
  background: var(--accent-gradient-hover);
}

/* Secondary Glass Button */
.btn-secondary {
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(38, 53, 74, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  color: var(--accent-secondary);
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.social-icon:hover {
  color: var(--text-primary);
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-glow);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  overflow: hidden;
  border: 3px solid rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-lg);
  animation: morphing 10s ease-in-out infinite;
  background: var(--bg-card);
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes morphing {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
  50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
  75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.floating-tech-card {
  position: absolute;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

.tech-card-1 {
  top: 10%;
  left: -20px;
}

.tech-card-2 {
  bottom: 10%;
  right: -20px;
  animation-delay: -2s;
}

.floating-tech-card i {
  font-size: 1.4rem;
  color: var(--accent-secondary);
}

.floating-tech-card div span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.floating-tech-card div strong {
  font-size: 0.9rem;
  color: var(--text-primary);
}

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

/* --------------------------------------------------------------------------
   6. About Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.about-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.about-image-card:hover img {
  transform: scale(1.05);
}

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

.about-bio {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-bio strong {
  color: var(--text-primary);
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.interest-tag {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

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

.interest-tag:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  color: #fff;
}

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

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent-secondary);
}

.stat-label {
  font-size: 0.825rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   7. Education & Experience Timelines
   -------------------------------------------------------------------------- */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 1.5rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent-primary);
  box-shadow: var(--shadow-glow);
  z-index: 2;
  transition: var(--transition-fast);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-secondary);
  transform: scale(1.3);
}

.timeline-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  position: relative;
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: var(--shadow-lg);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.timeline-title {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.timeline-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.timeline-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.timeline-item:nth-child(odd) .timeline-tags {
  justify-content: flex-end;
}

.tag {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--accent-primary);
  font-size: 0.775rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   8. Skills Section
   -------------------------------------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.skill-category-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: var(--shadow-lg);
}

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

.category-icon {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.3rem;
}

.category-title {
  font-size: 1.25rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-badge {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--glass-border);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
  color: var(--text-primary);
}

.skill-badge i {
  color: var(--accent-secondary);
}

.skill-badge:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

.skill-badge:hover i {
  color: #fff;
}

/* --------------------------------------------------------------------------
   9. Projects Section
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: var(--shadow-lg);
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-card);
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.project-card:hover .project-image-wrapper img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: var(--transition-fast);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-fast);
}

.project-overlay-btn:hover {
  transform: scale(1.15);
}

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

.project-title {
  font-size: 1.35rem;
  line-height: 1.3;
}

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

/* RAG Pipeline Infographic Diagram */
.pipeline-visual {
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed rgba(6, 182, 212, 0.3);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.pipeline-step {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.pipeline-arrow {
  color: var(--text-muted);
}

.project-features {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.project-features li {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 0.3rem;
  position: relative;
}

.project-features li::marker {
  color: var(--accent-primary);
}

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

.tech-tag {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--glass-border);
  color: var(--accent-secondary);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.project-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-project-link {
  flex: 1;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.btn-project-code {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-project-code:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-project-demo {
  background: var(--accent-gradient);
  color: #fff;
}

.btn-project-demo:hover {
  opacity: 0.9;
  box-shadow: var(--shadow-glow);
}

/* --------------------------------------------------------------------------
   10. Certifications & Coursework
   -------------------------------------------------------------------------- */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.cert-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
}

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

.cert-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

.cert-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.cert-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.coursework-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.coursework-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.course-chip {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--glass-border);
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
}

.course-chip i {
  color: var(--accent-secondary);
}

.course-chip:hover {
  border-color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-3px);
  color: #fff;
}

/* --------------------------------------------------------------------------
   11. GitHub Stats Section
   -------------------------------------------------------------------------- */
.github-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: center;
}

.github-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(12px);
  text-align: center;
  transition: var(--transition-normal);
}

.github-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.4);
}

.github-card img {
  max-width: 100%;
  border-radius: var(--radius-md);
}

.github-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   12. Contact Section
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

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

.contact-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
}

.contact-card:hover {
  transform: translateX(5px);
  border-color: var(--accent-primary);
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.contact-text p, .contact-text a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-form-wrapper {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

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

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

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

.form-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.2rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-main);
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
  background: rgba(15, 23, 42, 0.9);
}

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

.form-status {
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  display: none;
  text-align: center;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #34d399;
}

/* --------------------------------------------------------------------------
   13. Footer & Back to Top Button
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0;
  text-align: center;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 999;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
}

/* --------------------------------------------------------------------------
   14. Premium Experience Card & Latest Badge Styling
   -------------------------------------------------------------------------- */
.latest-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1px solid rgba(6, 182, 212, 0.5);
  color: var(--accent-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
  margin-bottom: 1rem;
}

.latest-badge i {
  color: #38bdf8;
  animation: pulseGlow 1.8s infinite ease-in-out;
}

.timeline-card.highlight-card {
  border: 1px solid rgba(6, 182, 212, 0.35);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.15);
}

.timeline-card.highlight-card:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.6), 0 0 35px rgba(6, 182, 212, 0.3);
  transform: translateY(-6px);
}

.company-logo-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  background: #0e3285;
}

.experience-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.meta-tag {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.825rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

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

.experience-list-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.experience-card-item {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  margin: 0 auto !important;
  position: relative !important;
}

.experience-card-item .timeline-card {
  width: 100%;
  max-width: 100% !important;
  margin: 0 auto;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Special Section Additions: Mission, Philosophy, Roadmap & Why Work With Me
   -------------------------------------------------------------------------- */
.highlight-mission-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.1);
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  transition: var(--transition-normal);
}

.highlight-mission-card:hover {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 30px rgba(6, 182, 212, 0.2);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.mission-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-fast);
}

.mission-box:hover {
  transform: translateY(-4px);
  border-color: var(--accent-secondary);
}

.mission-box h4 {
  font-size: 1.1rem;
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.mission-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.why-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.why-work-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-fast);
}

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

.why-work-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.why-work-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.roadmap-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  transition: var(--transition-normal);
}

.roadmap-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-secondary);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
}

.roadmap-step-badge {
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.roadmap-card h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.roadmap-card p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.learning-chip {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
.availability-chip {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.availability-chip:hover {
  background: rgba(34, 197, 94, 0.25);
  border-color: #22c55e;
  transform: translateY(-2px);
  color: #ffffff;
}




