:root {
  /* Theme variables */
  --bg-dark: #0d1117;
  --bg-secondary: #161b22;
  --text-light: #e6edf3;
  --text-muted: #8b949e;
  
  /* Modern Color Palette */
  --primary-blue: #4A90E2;
  --vibrant-teal: #20B2AA;
  --modern-purple: #7B68EE;
  --emerald-green: #50C878;
  --coral-orange: #FF6B35;
  --electric-cyan: #00D4FF;
  --sunset-pink: #FF6B9D;
  --golden-yellow: #FFD700;
  
  /* Legacy for compatibility */
  --accent: var(--primary-blue);
  --accent-rgb: 74,144,226;
}

body.light-mode {
  /* Light theme overrides */
  --bg-dark: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-light: #1a1a1a;
  --text-muted: #666666;
  
  /* Darker variants for light mode */
  --primary-blue: #2B5CE6;
  --vibrant-teal: #1A8B7E;
  --modern-purple: #6A4FD4;
  --emerald-green: #3BA55C;
  --coral-orange: #E5441F;
  --electric-cyan: #00A8CC;
  --sunset-pink: #E5507A;
  --golden-yellow: #D4AF00;
}

/* Clean up any conflicting global text styles */
* {
  box-sizing: border-box;
}

/* Ensure no global text-transform conflicts */
p, span, div {
  text-transform: none !important;
}

/* Exception for specific elements that need uppercase */
.stat-label {
  color: var(--text-muted) !important;
  font-size: 1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  font-weight: 600 !important;
}

/* Modern Font System */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Elegant heading for main intro */
.modern-heading {
  font-family: 'Playfair Display', 'Times New Roman', serif !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
}

/* Modern subtext styling */
.modern-subtext {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  font-style: normal !important;
  letter-spacing: 0.5px !important;
  text-transform: none !important;
}

/* All headings get modern treatment */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Section headings get special treatment */
section h2 {
  font-family: 'Crimson Text', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Timeline and project headings */
.timeline-content h3,
.project h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Body text improvements */
p, li, span, div {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Navigation and buttons */
.nav-item, .tracker-btn, .resume-btn, .theme-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.025em;
}

/* Footer quote gets elegant treatment */
.quote-text {
  font-family: 'Crimson Text', serif !important;
  font-weight: 400 !important;
  font-style: italic !important;
}

/* Stats and labels */
.stat-number {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

/* Modern Floating Gradient Orbs Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 20% 20%, rgba(74, 144, 226, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(32, 178, 170, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(123, 104, 238, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(80, 200, 120, 0.3) 0%, transparent 50%);
  background-size: 800px 800px, 600px 600px, 1000px 1000px, 700px 700px, 900px 900px;
  filter: blur(100px);
  animation: modernFloat 20s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(circle at 60% 40%, rgba(255, 107, 157, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(0, 212, 255, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.2) 0%, transparent 50%);
  background-size: 500px 500px, 750px 750px, 600px 600px;
  filter: blur(80px);
  animation: modernFloat2 25s ease-in-out infinite reverse;
}

/* Light mode background - more subtle */
body.light-mode::before {
  background: 
    radial-gradient(circle at 20% 20%, rgba(74, 144, 226, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(32, 178, 170, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(123, 104, 238, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(80, 200, 120, 0.1) 0%, transparent 50%);
  filter: blur(120px);
}

body.light-mode::after {
  background: 
    radial-gradient(circle at 60% 40%, rgba(255, 107, 157, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.06) 0%, transparent 50%);
  filter: blur(100px);
}

@keyframes modernFloat {
  0%, 100% {
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateX(100px) translateY(-50px) rotate(90deg) scale(1.1);
  }
  50% {
    transform: translateX(-50px) translateY(100px) rotate(180deg) scale(0.9);
  }
  75% {
    transform: translateX(-100px) translateY(-25px) rotate(270deg) scale(1.05);
  }
}

@keyframes modernFloat2 {
  0%, 100% {
    transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  }
  33% {
    transform: translateX(-80px) translateY(60px) rotate(120deg) scale(1.15);
  }
  66% {
    transform: translateX(120px) translateY(-40px) rotate(240deg) scale(0.85);
  }
}

/* Fixed Tech Image Background */
.tech-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.tech-images {
  position: absolute;
  width: 100%;
  height: 100%;
}

.tech-image {
  position: absolute;
  width: 60px;
  height: 60px;
  opacity: 0.15;
  border-radius: 8px;
  animation: techImageFloat 20s linear infinite;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.7);
}

.tech-image:nth-child(odd) {
  animation-direction: reverse;
}

/* Tech Images with CSS backgrounds */
.tech-image:nth-child(1) { 
  left: 5%; 
  animation-delay: 0s; 
  background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/azure/azure-original.svg');
}
.tech-image:nth-child(2) { 
  left: 15%; 
  animation-delay: 3s; 
  background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/windows8/windows8-original.svg');
}
.tech-image:nth-child(3) { 
  left: 25%; 
  animation-delay: 6s; 
  background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/linux/linux-original.svg');
}
.tech-image:nth-child(4) { 
  left: 35%; 
  animation-delay: 9s; 
  background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/docker/docker-original.svg');
}
.tech-image:nth-child(5) { 
  left: 45%; 
  animation-delay: 12s; 
  background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/kubernetes/kubernetes-plain.svg');
}
.tech-image:nth-child(6) { 
  left: 55%; 
  animation-delay: 15s; 
  background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/powershell/powershell-original.svg');
}
.tech-image:nth-child(7) { 
  left: 65%; 
  animation-delay: 18s; 
  background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/grafana/grafana-original.svg');
}
.tech-image:nth-child(8) { 
  left: 75%; 
  animation-delay: 2s; 
  background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/amazonwebservices/amazonwebservices-plain-wordmark.svg');
}
.tech-image:nth-child(9) { 
  left: 85%; 
  animation-delay: 5s; 
  background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/mysql/mysql-original.svg');
}
.tech-image:nth-child(10) { 
  left: 10%; 
  animation-delay: 8s; 
  background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/git/git-original.svg');
}
.tech-image:nth-child(11) { 
  left: 20%; 
  animation-delay: 11s; 
  background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/python/python-original.svg');
}
.tech-image:nth-child(12) { 
  left: 30%; 
  animation-delay: 14s; 
  background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/nginx/nginx-original.svg');
}
.tech-image:nth-child(13) { 
  left: 40%; 
  animation-delay: 17s; 
  background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/redis/redis-original.svg');
}
.tech-image:nth-child(14) { 
  left: 50%; 
  animation-delay: 1s; 
  background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/postgresql/postgresql-original.svg');
}
.tech-image:nth-child(15) { 
  left: 60%; 
  animation-delay: 4s; 
  background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/javascript/javascript-original.svg');
}

/* Floating grid pattern */
.tech-grid-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(var(--accent-rgb), 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 30s linear infinite;
}

@keyframes techImageFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.15;
  }
  90% {
    opacity: 0.15;
  }
  100% {
    transform: translateY(-100px) rotate(180deg);
    opacity: 0;
  }
}

@keyframes boldPatternMove {
  0% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(20px) translateY(20px);
  }
  100% {
    transform: translateX(0) translateY(0);
  }
}

/* Light mode adjustments */
body.light-mode .tech-image {
  opacity: 0.2;
  filter: grayscale(100%) brightness(1.3);
}

body.light-mode .tech-grid-bg {
  background-image: 
    linear-gradient(rgba(var(--accent-rgb), 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.01) 1px, transparent 1px);
}

section {
  padding: 60px 20px;
  scroll-margin-top: 80px;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* About section specific spacing */
.about {
  padding-top: 40px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* Bio Content Styling - Modern Card Layout */
.journey-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 30px;
  padding: 15px 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:hover {
  transform: translateY(-5px);
}

.timeline-content {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(var(--accent-rgb), 0.02) 100%);
  padding: 25px 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: attr(data-step);
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--primary-blue);
  color: white;
  padding: 8px 16px;
  border-radius: 0 16px 0 16px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.9;
}

.timeline-item:nth-child(1) .timeline-content::before { background: var(--primary-blue); }
.timeline-item:nth-child(2) .timeline-content::before { background: var(--modern-purple); }
.timeline-item:nth-child(3) .timeline-content::before { background: var(--emerald-green); }
.timeline-item:nth-child(4) .timeline-content::before { background: var(--coral-orange); }
.timeline-item:nth-child(5) .timeline-content::before { background: var(--vibrant-teal); }

.timeline-content:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-blue);
}

.timeline-item:nth-child(1) .timeline-content:hover { border-color: var(--primary-blue); }
.timeline-item:nth-child(2) .timeline-content:hover { border-color: var(--modern-purple); }
.timeline-item:nth-child(3) .timeline-content:hover { border-color: var(--emerald-green); }
.timeline-item:nth-child(4) .timeline-content:hover { border-color: var(--coral-orange); }
.timeline-item:nth-child(5) .timeline-content:hover { border-color: var(--vibrant-teal); }

.timeline-content h3 {
  margin: 0 0 12px 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-content h3 i {
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
}

.timeline-item:nth-child(1) .timeline-content h3 i { 
  color: var(--primary-blue);
  background: rgba(74, 144, 226, 0.1);
}
.timeline-item:nth-child(2) .timeline-content h3 i { 
  color: var(--modern-purple);
  background: rgba(123, 104, 238, 0.1);
}
.timeline-item:nth-child(3) .timeline-content h3 i { 
  color: var(--emerald-green);
  background: rgba(80, 200, 120, 0.1);
}
.timeline-item:nth-child(4) .timeline-content h3 i { 
  color: var(--coral-orange);
  background: rgba(255, 107, 53, 0.1);
}
.timeline-item:nth-child(5) .timeline-content h3 i { 
  color: var(--vibrant-teal);
  background: rgba(32, 178, 170, 0.1);
}

.timeline-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  opacity: 0.9;
  text-align: left;
}

/* About Stats Cards - More Compact */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(var(--accent-rgb), 0.03) 100%);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-card:nth-child(1) { border-left: 4px solid var(--golden-yellow); }
.stat-card:nth-child(2) { border-left: 4px solid var(--emerald-green); }
.stat-card:nth-child(3) { border-left: 4px solid var(--coral-orange); }

.stat-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card:nth-child(1) .stat-icon { background: rgba(255, 215, 0, 0.1); }
.stat-card:nth-child(2) .stat-icon { background: rgba(80, 200, 120, 0.1); }
.stat-card:nth-child(3) .stat-icon { background: rgba(255, 107, 53, 0.1); }

.stat-icon i {
  font-size: 1.3rem;
}

.stat-card:nth-child(1) .stat-icon i { color: var(--golden-yellow); }
.stat-card:nth-child(2) .stat-icon i { color: var(--emerald-green); }
.stat-card:nth-child(3) .stat-icon i { color: var(--coral-orange); }

.stat-info h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: left;
}

.stat-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.3;
  text-align: left;
}

/* Light mode adjustments */
body.light-mode .timeline-content,
body.light-mode .stat-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(var(--accent-rgb), 0.03) 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Certifications Intro Styling */
.cert-intro {
  max-width: 700px;
  margin: 0 auto 40px;
  text-align: center;
  position: relative;
}

.cert-intro::before {
  content: '🎯';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  opacity: 0.7;
}

.cert-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
  font-style: italic;
  padding: 25px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(123, 104, 238, 0.05) 100%);
  border-radius: 12px;
  border-left: 4px solid var(--coral-orange);
  position: relative;
  margin: 0;
}

.cert-intro p::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 2rem;
  color: var(--coral-orange);
  opacity: 0.6;
  font-family: serif;
}

.cert-intro p::after {
  content: '"';
  position: absolute;
  bottom: 5px;
  right: 15px;
  font-size: 2rem;
  color: var(--coral-orange);
  opacity: 0.6;
  font-family: serif;
}

/* Light mode cert intro */
body.light-mode .cert-intro p {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.03) 0%, rgba(123, 104, 238, 0.03) 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Ultra-Modern Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, 
    rgba(13, 17, 23, 0.9) 0%, 
    rgba(22, 27, 34, 0.85) 50%, 
    rgba(13, 17, 23, 0.9) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-bottom: 1px solid rgba(74, 144, 226, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  padding: 18px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--primary-blue), 
    var(--vibrant-teal), 
    var(--electric-cyan), 
    transparent);
  opacity: 0.6;
}

body.light-mode .main-header {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(248, 249, 250, 0.9) 50%, 
    rgba(255, 255, 255, 0.95) 100%);
  border-bottom: 1px solid rgba(74, 144, 226, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Header scroll effect */
.main-header.scrolled {
  background: rgba(13, 17, 23, 0.95);
  padding: 12px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .main-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px 0;
  min-height: 100vh;
  margin-bottom: -20px;
}

.profile-pic {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 20px;
  border: 4px solid var(--text-light);
  box-shadow: 0 0 20px var(--primary-blue);
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px var(--electric-cyan);
}

.intro {
  font-size: 4.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary-blue); /* Fallback */
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--vibrant-teal) 50%, var(--modern-purple) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* Fallback for browsers that don't support background-clip */
@supports not (background-clip: text) {
  .intro {
    color: var(--primary-blue);
  }
}

.subtext {
  font-size: 1.8rem;
  margin-top: 15px;
  margin-bottom: 8px;
  color: var(--emerald-green);
  font-style: italic;
}

/* CLEAN HERO TEXT STYLES - NO CONFLICTS */
.subtext-future {
  font-size: 1.4rem !important;
  margin-top: 0 !important;
  margin-bottom: 25px !important;
  color: var(--electric-cyan) !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  animation: futureGlow 3s ease-in-out infinite !important;
  text-transform: none !important;
  /* Force the exact text display */
}

@keyframes futureGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 30px rgba(0, 212, 255, 0.4);
  }
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.social-links a {
  margin: 0 10px;
  font-weight: bold;
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
}

.social-links a:hover {
  transform: translateY(-3px);
}

.social-icon {
  font-size: 1.2rem;
  animation: bounce 3s infinite;
  transition: all 0.3s ease;
}

.social-links a:nth-child(1) .social-icon {
  animation-delay: 0s;
}

.social-links a:nth-child(2) .social-icon {
  animation-delay: 0.3s;
}

.social-links a:hover .social-icon {
  animation: bounceHover 0.6s ease-in-out;
  transform: scale(1.2);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
  60% {
    transform: translateY(-3px);
  }
}

@keyframes bounceHover {
  0%, 100% {
    transform: scale(1.2) translateY(0);
  }
  50% {
    transform: scale(1.3) translateY(-5px);
  }
}

.social-links a:nth-child(1):hover { color: var(--modern-purple); } /* GitHub */
.social-links a:nth-child(2):hover { color: var(--primary-blue); } /* LinkedIn */

.social-links a:nth-child(1):hover .social-icon { color: var(--modern-purple); }
.social-links a:nth-child(2):hover .social-icon { color: var(--primary-blue); }

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Section-specific header colors */
#about h2 { color: var(--primary-blue); }
#skills h2 { color: var(--emerald-green); }
#projects h2 { color: var(--modern-purple); }
#certifications h2 { color: var(--coral-orange); }
#experience h2 { color: var(--vibrant-teal); }

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 30px;
  justify-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.skill-category {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(var(--accent-rgb), 0.02) 100%);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  backdrop-filter: blur(10px);
  height: 320px;
  width: 100%;
  max-width: 350px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Light mode adjustments */
body.light-mode .skill-category {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(var(--accent-rgb), 0.03) 100%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Scroll indicator */
.skill-category::after {
  content: '⬇ Scroll';
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.6;
  pointer-events: none;
  font-weight: 500;
}

body.light-mode .skill-category::after {
  color: rgba(0, 0, 0, 0.4);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* Light mode header border */
body.light-mode .skill-category-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.skill-category:nth-child(1) .skill-category-header i { color: var(--primary-blue); }
.skill-category:nth-child(2) .skill-category-header i { color: var(--modern-purple); }
.skill-category:nth-child(3) .skill-category-header i { color: var(--emerald-green); }
.skill-category:nth-child(4) .skill-category-header i { color: var(--coral-orange); }
.skill-category:nth-child(5) .skill-category-header i { color: var(--golden-yellow); }
.skill-category:nth-child(6) .skill-category-header i { color: var(--vibrant-teal); }
.skill-category:nth-child(7) .skill-category-header i { color: var(--sunset-pink); }
.skill-category:nth-child(8) .skill-category-header i { color: var(--electric-cyan); }
.skill-category:nth-child(9) .skill-category-header i { color: var(--modern-purple); }

.skill-category-header i {
  font-size: 1.6rem;
  width: 28px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.skill-category-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0;
  letter-spacing: 0.5px;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.08);
}

/* Light mode scrollbar colors */
body.light-mode .skill-list {
  scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.08);
}

/* Custom scrollbar styling for WebKit browsers */
.skill-list::-webkit-scrollbar {
  width: 6px;
}

.skill-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.skill-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.skill-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Light mode WebKit scrollbar */
body.light-mode .skill-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
}

body.light-mode .skill-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
}

body.light-mode .skill-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

.skill-list li {
  padding: 10px 16px;
  color: var(--text-light);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid transparent;
  font-weight: 500;
  margin-bottom: 2px;
}

/* Light mode skill items */
body.light-mode .skill-list li {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.skill-category:nth-child(1) .skill-list li { border-left-color: var(--primary-blue); }
.skill-category:nth-child(2) .skill-list li { border-left-color: var(--modern-purple); }
.skill-category:nth-child(3) .skill-list li { border-left-color: var(--emerald-green); }
.skill-category:nth-child(4) .skill-list li { border-left-color: var(--coral-orange); }
.skill-category:nth-child(5) .skill-list li { border-left-color: var(--golden-yellow); }
.skill-category:nth-child(6) .skill-list li { border-left-color: var(--vibrant-teal); }
.skill-category:nth-child(7) .skill-list li { border-left-color: var(--sunset-pink); }
.skill-category:nth-child(8) .skill-list li { border-left-color: var(--electric-cyan); }
.skill-category:nth-child(9) .skill-list li { border-left-color: var(--modern-purple); }

/* Project & Certifications */
.project {
  background-color: var(--bg-secondary);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid var(--text-muted);
  transition: transform 0.3s;
  cursor: pointer;
  text-align: left;
  width: 100%;
  max-width: 100%;
  position: relative;
  box-sizing: border-box;
}

.project:hover {
  transform: translateY(-5px);
}

/* Different colors for different sections */
#projects .project:hover { border-left-color: var(--modern-purple); }
#certifications .project:hover { border-left-color: var(--coral-orange); }
#experience .project:hover { border-left-color: var(--vibrant-teal); }

/* Preview/Full Content System */
.project-preview {
  display: block !important;
}

.project-full-content {
  display: none !important;
}

.expanded-view .project-preview {
  display: none !important;
}

.expanded-view .project-full-content {
  display: block !important;
}

/* Tech Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.tech-tag {
  background: var(--modern-purple);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Different tag colors */
#projects .tech-tag { background: var(--modern-purple); }
#certifications .tech-tag { background: var(--coral-orange); }
#experience .tech-tag { background: var(--vibrant-teal); }

/* Expand Hint */
.expand-hint {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 15px;
  text-align: center;
  padding: 8px;
  border-top: 1px solid rgba(74, 144, 226, 0.2);
  transition: color 0.3s ease;
}

#projects .project:hover .expand-hint { color: var(--modern-purple); }
#certifications .project:hover .expand-hint { color: var(--coral-orange); }
#experience .project:hover .expand-hint { color: var(--vibrant-teal); }

.in-progress {
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Expanded View Fullscreen */
.expanded-view {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: rgba(13,17,23,0.9);
  z-index: 9999;
  scroll-behavior: smooth;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Light mode expanded view */
body.light-mode .expanded-view {
  background-color: rgba(255,255,255,0.95);
}

/* Improved expanded card layout */
.expanded-view.project {
  width: 95%;
  max-width: calc(100vw - 200px);
  min-height: 10vh;
  max-height: 85vh;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid rgba(74, 144, 226, 0.3);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  display: block;
}

body.light-mode .expanded-view.project {
  background: var(--bg-secondary);
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  border: 1px solid rgba(74, 144, 226, 0.2);
}

/* Expanded card content area */
.expanded-view h3 {
  font-size: 2.2rem;
  margin: 0 0 20px 0;
  color: var(--accent);
  padding: 30px 40px 0 40px;
  border-bottom: 2px solid rgba(var(--accent-rgb), 0.2);
  padding-bottom: 20px;
}

.expanded-view p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin: 20px 0;
  padding: 0 40px;
}

.expanded-view strong {
  color: var(--accent);
  font-weight: 600;
}

/* Content scrollable area */
.expanded-view .container {
  max-width: none;
  margin: 0;
  padding: 0;
  height: auto;
  padding-bottom: 40px;
}

.close-expand-btn {
  display: none;
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 1.8rem;
  background: rgba(var(--accent-rgb), 0.1);
  border: none;
  cursor: pointer;
  color: var(--accent);
  z-index: 10000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close-expand-btn:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
}

.expanded-view .close-expand-btn {
  display: flex;
}

/* Expanded view text colors for light mode */
body.light-mode .expanded-view h3 {
  color: var(--primary-blue);
}

body.light-mode .expanded-view p {
  color: var(--text-light);
}

body.light-mode .expanded-view .close-expand-btn {
  color: var(--primary-blue);
}

body.light-mode .expanded-view strong {
  color: var(--vibrant-teal);
}

/* Ensure the .in-progress span is visible in expanded view */
.expanded-view .in-progress {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
}

body.light-mode .expanded-view .in-progress {
  color: #666666;
}

/* Location/date styling in experience cards */
.expanded-view .location-date {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: normal;
  display: block;
  margin-top: 8px;
}

/* Icon styling in experience titles */
.expanded-view h3 i {
  margin-right: 10px;
  color: var(--accent);
}

/* Footer Styles - Compact */
.footer {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-dark) 100%);
  padding: 40px 20px 20px;
  position: relative;
  overflow: hidden;
  border-top: 2px solid var(--primary-blue);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--vibrant-teal), var(--primary-blue), var(--modern-purple), transparent);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.footer-content {
  text-align: center;
}

.footer-quote {
  margin-bottom: 30px;
  position: relative;
  padding: 15px 20px;
  background: linear-gradient(135deg, 
    rgba(74, 144, 226, 0.1) 0%, 
    rgba(32, 178, 170, 0.08) 50%, 
    rgba(123, 104, 238, 0.1) 100%);
  border-radius: 16px;
  border: 1px solid rgba(74, 144, 226, 0.2);
  backdrop-filter: blur(10px);
  overflow: hidden;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.footer-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(74, 144, 226, 0.1), 
    transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.quote-text {
  font-size: clamp(1.1rem, 4vw, 1.8rem);
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 8px;
  position: relative;
  text-align: center;
  font-weight: 500;
  line-height: 1.2;
  background: linear-gradient(135deg, 
    var(--text-light) 0%, 
    var(--electric-cyan) 50%, 
    var(--text-light) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textGlow 4s ease-in-out infinite;
}

@keyframes textGlow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
  }
}

.quote-text::before,
.quote-text::after {
  content: '"';
  font-size: 2.5rem;
  color: var(--electric-cyan);
  opacity: 0.8;
  font-family: serif;
  position: relative;
  animation: quotePulse 2s ease-in-out infinite;
}

@keyframes quotePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.quote-author {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  margin-top: 5px;
}

.quote-author::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--primary-blue), 
    var(--electric-cyan), 
    var(--primary-blue));
  border-radius: 1px;
  animation: underlineGlow 2s ease-in-out infinite;
}

@keyframes underlineGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
  }
}

/* CLEAN FOOTER STATS - NO CONFLICTS */
.footer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 25px auto;
  max-width: 900px;
  justify-items: center;
  width: 100%;
}

.stat-item {
  text-align: center;
  min-width: 120px;
}

.stat-number {
  font-size: 3.2rem;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.stat-item:nth-child(1) .stat-number { color: var(--emerald-green); }
.stat-item:nth-child(2) .stat-number { color: var(--primary-blue); }
.stat-item:nth-child(3) .stat-number { color: var(--coral-orange); }

.footer-tech-stack {
  margin: 25px 0;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tech-item {
  background: var(--bg-dark);
  border: 1px solid var(--text-muted);
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 0.85rem;
  color: var(--text-light);
  transition: all 0.3s ease;
  cursor: default;
}

.tech-item:hover {
  border-color: var(--electric-cyan);
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

.footer-social {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: var(--text-light);
  font-size: 1.3rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--text-muted);
}

.footer-social-link:hover {
  transform: translateY(-3px);
}

.footer-social-link:nth-child(1):hover { /* GitHub */
  background: var(--modern-purple);
  border-color: var(--modern-purple);
  box-shadow: 0 10px 20px rgba(123, 104, 238, 0.3);
}

.footer-social-link:nth-child(2):hover { /* LinkedIn */
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
}

.footer-social-link:nth-child(3):hover { /* Email */
  background: var(--emerald-green);
  border-color: var(--emerald-green);
  box-shadow: 0 10px 20px rgba(80, 200, 120, 0.3);
}

.footer-social-link:nth-child(4):hover { /* Resume */
  background: var(--coral-orange);
  border-color: var(--coral-orange);
  box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.scroll-to-top {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--vibrant-teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-to-top:hover {
  transform: translateY(-2px);
  background: var(--electric-cyan);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

/* Light mode scroll button */
body.light-mode .scroll-to-top {
  background: var(--vibrant-teal);
}

body.light-mode .scroll-to-top:hover {
  background: var(--electric-cyan);
}

.footer-animation {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-icons {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-icon {
  position: absolute;
  opacity: 0.06;
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  color: var(--primary-blue);
}

.floating-icon:nth-child(2) {
  top: 40%;
  right: 15%;
  animation-delay: 1s;
  color: var(--emerald-green);
}

.floating-icon:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 2s;
  color: var(--modern-purple);
}

.floating-icon:nth-child(4) {
  top: 60%;
  right: 30%;
  animation-delay: 3s;
  color: var(--coral-orange);
}

.floating-icon:nth-child(5) {
  bottom: 20%;
  right: 10%;
  animation-delay: 4s;
  color: var(--vibrant-teal);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.header-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 20px;
}

/* Header Logo */
.header-logo {
  display: flex;
  align-items: center;
  justify-self: start;
}

.logo-img {
  height: 48px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(74, 144, 226, 0.3));
}

.logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(74, 144, 226, 0.5));
}

/* Ultra-Modern Mobile Tracker */
.mobile-tracker {
  display: none;
  position: relative;
}

.tracker-btn {
  background: linear-gradient(135deg, 
    rgba(74, 144, 226, 0.1) 0%, 
    rgba(32, 178, 170, 0.08) 100%);
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 25px;
  padding: 12px 20px;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.tracker-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue), var(--vibrant-teal));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

body.light-mode .tracker-btn {
  background: linear-gradient(135deg, 
    rgba(74, 144, 226, 0.08) 0%, 
    rgba(32, 178, 170, 0.06) 100%);
  border: 1px solid rgba(74, 144, 226, 0.2);
  color: var(--text-light);
}

.tracker-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
  border-color: var(--electric-cyan);
}

.tracker-btn:hover::before {
  left: 0;
}

.tracker-btn:hover {
  color: white;
}

.tracker-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: linear-gradient(135deg, 
    rgba(22, 27, 34, 0.95) 0%, 
    rgba(13, 17, 23, 0.98) 100%);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
              0 0 0 1px rgba(74, 144, 226, 0.1);
  backdrop-filter: blur(25px) saturate(180%);
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1005;
  min-width: 180px;
  overflow: hidden;
}

body.light-mode .tracker-dropdown {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(248, 249, 250, 0.95) 100%);
  border: 1px solid rgba(74, 144, 226, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 
              0 0 0 1px rgba(74, 144, 226, 0.08);
}

.tracker-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.tracker-item {
  display: block;
  padding: 16px 24px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(74, 144, 226, 0.08);
  position: relative;
  overflow: hidden;
}

.tracker-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue), var(--vibrant-teal));
  transform: scaleY(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode .tracker-item {
  border-bottom: 1px solid rgba(74, 144, 226, 0.06);
}

.tracker-item:last-child {
  border-bottom: none;
}

.tracker-item:hover {
  background: linear-gradient(135deg, 
    rgba(74, 144, 226, 0.1) 0%, 
    rgba(32, 178, 170, 0.08) 100%);
  color: var(--electric-cyan);
  padding-left: 32px;
  transform: translateX(8px);
}

.tracker-item:hover::before {
  transform: scaleY(1);
}

/* Ultra-Modern Desktop Navigation */
.desktop-nav {
  display: flex;
  gap: 8px;
  background: linear-gradient(135deg, 
    rgba(74, 144, 226, 0.05) 0%, 
    rgba(32, 178, 170, 0.03) 100%);
  padding: 8px;
  border-radius: 25px;
  border: 1px solid rgba(74, 144, 226, 0.1);
  backdrop-filter: blur(10px);
  justify-self: center;
}

body.light-mode .desktop-nav {
  background: linear-gradient(135deg, 
    rgba(74, 144, 226, 0.04) 0%, 
    rgba(32, 178, 170, 0.02) 100%);
  border: 1px solid rgba(74, 144, 226, 0.08);
}

.nav-item {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 20px;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  letter-spacing: 0.5px;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    var(--primary-blue) 0%, 
    var(--vibrant-teal) 50%, 
    var(--electric-cyan) 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-item:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.nav-item:hover::before {
  left: 0;
}

.nav-item.active {
  color: white;
  background: linear-gradient(135deg, 
    var(--primary-blue) 0%, 
    var(--vibrant-teal) 50%, 
    var(--electric-cyan) 100%);
  box-shadow: 0 0 30px rgba(74, 144, 226, 0.6);
  animation: navGlow 3s ease-in-out infinite;
}

@keyframes navGlow {
  0%, 100% {
    box-shadow: 0 0 30px rgba(74, 144, 226, 0.6);
  }
  50% {
    box-shadow: 0 0 40px rgba(74, 144, 226, 0.8), 
                0 0 60px rgba(32, 178, 170, 0.4);
  }
}

/* Ultra-Modern Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.theme-btn {
  background: linear-gradient(135deg, 
    rgba(74, 144, 226, 0.1) 0%, 
    rgba(32, 178, 170, 0.08) 100%);
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.theme-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--golden-yellow), var(--coral-orange));
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

body.light-mode .theme-btn {
  background: linear-gradient(135deg, 
    rgba(74, 144, 226, 0.08) 0%, 
    rgba(32, 178, 170, 0.06) 100%);
  border: 1px solid rgba(74, 144, 226, 0.2);
}

.theme-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
  border-color: var(--electric-cyan);
}

.theme-btn:hover::before {
  opacity: 1;
}

.theme-btn:hover i {
  color: white;
  transform: rotate(180deg);
}

.theme-btn i {
  color: var(--text-light);
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, 
    var(--primary-blue) 0%, 
    var(--vibrant-teal) 50%, 
    var(--electric-cyan) 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.resume-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    var(--electric-cyan) 0%, 
    var(--sunset-pink) 50%, 
    var(--golden-yellow) 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.resume-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(74, 144, 226, 0.5);
  color: white;
}

.resume-btn:hover::before {
  left: 0;
}

.resume-btn:hover i {
  transform: translateY(-2px);
  animation: downloadPulse 0.6s ease-in-out;
}

@keyframes downloadPulse {
  0%, 100% { transform: translateY(-2px) scale(1); }
  50% { transform: translateY(-4px) scale(1.1); }
}

/* Modern Header Scroll Effects */
.main-header.scrolled {
  background: linear-gradient(135deg, 
    rgba(13, 17, 23, 0.98) 0%, 
    rgba(22, 27, 34, 0.95) 50%, 
    rgba(13, 17, 23, 0.98) 100%);
  padding: 14px 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 
              0 0 0 1px rgba(74, 144, 226, 0.1);
  backdrop-filter: blur(30px) saturate(200%);
}

body.light-mode .main-header.scrolled {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(248, 249, 250, 0.95) 50%, 
    rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 
              0 0 0 1px rgba(74, 144, 226, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
  section {
    padding: 40px 15px;
  }
  
  .container {
    padding: 0 10px;
    max-width: 100%;
  }
  
  .project {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .about {
    padding-top: 20px;
  }
  .intro {
    font-size: 2.2rem;
  }
  .subtext {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  
  .subtext-future {
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
  }
  h2 {
    font-size: 1.6rem;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }
  
  .skill-category {
    padding: 20px;
    height: 280px;
    max-width: 100%;
    min-width: auto;
    width: 100%;
  }
  
  .skill-category::after {
    font-size: 0.65rem;
    bottom: 6px;
    right: 10px;
  }
  
  .skill-category-header h3 {
    font-size: 1rem;
  }
  
  .skill-list {
    padding-right: 6px;
  }
  
  .skill-list li {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
  .hero {
    padding: 100px 20px 0;
    min-height: auto;
    margin-bottom: -10px;
  }
  .profile-pic {
    margin-top: 0;
  }
  
  .footer {
    padding: 30px 15px 20px;
  }
  
  .footer-container {
    max-width: 100%;
    padding: 0 10px;
  }
  
  .footer-quote {
    margin-bottom: 20px;
  }
  
  .quote-text::before,
  .quote-text::after {
    font-size: 2rem;
  }
  
  .quote-author {
    font-size: 0.9rem;
  }
  
  .footer-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px auto;
    max-width: 100%;
  }
  
  .stat-item {
    min-width: 0;
    padding: 0 5px;
  }
  
  .stat-number {
    font-size: 1.6rem;
    margin-bottom: 4px;
  }
  
  .stat-label {
    font-size: 0.65rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
  }
  
  .footer-tech-stack {
    margin: 20px 0;
  }
  
  .tech-grid {
    gap: 8px;
    justify-content: center;
    max-width: 100%;
  }
  
  .tech-item {
    padding: 5px 10px;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  
  .footer-social {
    gap: 10px;
    margin: 15px 0;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .footer-social-link {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
  }
  
  .footer-bottom p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  .scroll-to-top {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  /* Mobile expanded view fixes */
  .expanded-view {
    padding: 10px;
  }
  
  .expanded-view.project {
    width: 95%;
    max-width: calc(100vw - 20px);
    min-height: 10vh;
    max-height: 90vh;
    border-radius: 12px;
  }
  
  .expanded-view h3 {
    font-size: 1.6rem;
    padding: 20px 20px 0 20px;
    padding-bottom: 15px;
  }
  
  .expanded-view p {
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 20px;
    margin: 15px 0;
  }
  
  .close-expand-btn {
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }
  
  /* Mobile timeline styling - simplified cards */
  .journey-timeline {
    padding: 10px 0;
    margin-bottom: 20px;
  }
  
  .timeline-item {
    margin-bottom: 20px;
  }
  
  .timeline-content {
    padding: 20px;
    border-radius: 12px;
  }
  
  .timeline-content::before {
    padding: 6px 12px;
    font-size: 0.7rem;
  }
  
  .timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .timeline-content h3 i {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }
  
  .timeline-content p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .timeline-content {
    padding: 15px 18px;
  }
  
  .timeline-content h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  
  .timeline-content p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .stat-card {
    padding: 15px;
  }
  
  .stat-icon {
    width: 35px;
    height: 35px;
  }
  
  .stat-icon i {
    font-size: 1rem;
  }
  
  .stat-info h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
  }
  
  .stat-info p {
    font-size: 0.8rem;
  }
  
  /* Mobile cert intro styling */
  .cert-intro {
    margin-bottom: 30px;
  }
  
  .cert-intro::before {
    font-size: 1.5rem;
    top: -8px;
  }
  
  .cert-intro p {
    font-size: 1rem;
    line-height: 1.6;
    padding: 20px;
  }
  
  .cert-intro p::before,
  .cert-intro p::after {
    font-size: 1.5rem;
  }
  
  /* Header responsive */
  .header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
    min-height: 60px;
  }
  
  /* Logo - Left Column */
  .header-logo {
    position: static;
    justify-self: start;
  }
  
  .logo-img {
    height: 32px;
  }
  
  /* Mobile Tracker - Center Column */
  .mobile-tracker {
    display: block;
    position: relative;
    justify-self: center;
  }
  
  /* Hide Desktop Nav */
  .desktop-nav {
    display: none;
  }
  
  /* Actions - Right Column */
  .header-actions {
    position: static;
    justify-self: end;
    gap: 8px;
  }
  
  .tracker-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    min-width: 80px;
  }
  
  .tracker-btn i {
    font-size: 0.8rem;
  }
  
  /* CONSISTENT BUTTON SIZES */
  .theme-btn {
    width: 40px;
    height: 40px;
  }
  
  .theme-btn i {
    font-size: 0.9rem;
  }
  
  .resume-btn {
    height: 40px;
    padding: 8px 12px;
    border-radius: 20px;
    width: auto;
    font-size: 0.75rem;
    gap: 6px;
  }
  
  .resume-btn .resume-text {
    display: inline;
  }
  
  .resume-btn i {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 30px 10px;
  }
  
  .container {
    padding: 0 5px;
    max-width: 100%;
  }
  
  .project {
    padding: 15px;
    margin-bottom: 15px;
  }
  
  .project h3 {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  
  .project p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .header-content {
    padding: 0 12px;
    gap: 8px;
  }
  
  .logo-img {
    height: 40px;
  }
  
  .header-actions {
    gap: 6px;
  }
  
  .tracker-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    gap: 6px;
    min-width: 70px;
  }
  
  .tracker-btn i {
    font-size: 0.75rem;
  }
  
  /* CONSISTENT SMALLER BUTTON SIZES */
  .theme-btn {
    width: 36px;
    height: 36px;
  }
  
  .theme-btn i {
    font-size: 0.85rem;
  }
  
  .resume-btn {
    height: 36px;
    padding: 6px 10px;
    border-radius: 18px;
    font-size: 0.7rem;
    gap: 4px;
  }
  
  .resume-btn .resume-text {
    display: inline;
  }
  
  .resume-btn i {
    font-size: 0.85rem;
  }
  
  .tracker-dropdown {
    min-width: 140px;
    border-radius: 16px;
  }
  
  .tracker-item {
    padding: 12px 16px;
    font-size: 0.8rem;
  }
}

/* Extra small screens - stack if needed */
@media (max-width: 380px) {
  .header-content {
    padding: 0 8px;
    gap: 5px;
  }
  
  .logo-img {
    height: 36px;
  }
  
  .tracker-btn {
    padding: 5px 8px;
    font-size: 0.7rem;
    min-width: 60px;
  }
  
  .tracker-btn i {
    font-size: 0.7rem;
  }
  
  /* CONSISTENT TINY BUTTON SIZES */
  .theme-btn {
    width: 32px;
    height: 32px;
  }
  
  .theme-btn i {
    font-size: 0.8rem;
  }
  
  .resume-btn {
    height: 32px;
    padding: 4px 6px;
    font-size: 0.65rem;
  }
  
  .resume-btn .resume-text {
    display: none;
  }
  
  .resume-btn {
    border-radius: 50%;
    width: 32px;
    justify-content: center;
    padding: 0;
  }
  
  .resume-btn i {
    font-size: 0.8rem;
  }
}