@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-color: #000000;
  --bg-gradient: radial-gradient(circle at top center, rgba(30, 30, 30, 0.4) 0%, #000000 40%);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --accent-color: #ffffff;
  --accent-glow: rgba(255, 255, 255, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.06);
  --bento-radius: 24px;
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  background-image: url('assets/math_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  cursor: none;
}

/* Math Background Container */
#math-background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-gradient); /* Overlay gradient for readability */
}

/* Math Particles */
.math-particle {
  position: absolute;
  color: var(--accent-color);
  font-family: 'Courier New', Courier, monospace;
  font-weight: bold;
  user-select: none;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 0 5px var(--accent-glow));
  animation: floatMath linear infinite;
}

@keyframes floatMath {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: var(--max-opacity, 0.5);
  }
  90% {
    opacity: var(--max-opacity, 0.5);
  }
  100% {
    transform: translateY(-20vh) rotate(var(--rotation, 360deg)) scale(1.2);
    opacity: 0;
  }
}

/* Custom Cursor */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 15px var(--accent-glow), 0 0 30px rgba(129, 140, 248, 0.2);
}

.cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(129, 140, 248, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-dot.hovering {
  width: 16px;
  height: 16px;
  background: rgba(129, 140, 248, 0.6);
}

.cursor-ring.hovering {
  width: 60px;
  height: 60px;
  border-color: rgba(129, 140, 248, 0.2);
}

/* Particles Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(129, 140, 248, 0.3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(129, 140, 248, 0.5);
}

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

/* Floating Navigation */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, 94%);
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  top: 0.8rem;
  background: rgba(9, 9, 11, 0.9);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
  transition: opacity 0.2s ease;
}

.nav-brand:hover {
  opacity: 0.9;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #818cf8;
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.4);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  border-radius: 1px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  text-shadow: 0 0 12px rgba(129, 140, 248, 0.4);
}

.nav-badge {
  font-size: 0.7rem;
  padding: 1px 6px;
  background: rgba(99, 102, 241, 0.25);
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 50px;
  color: #c7d2fe;
  font-weight: 700;
}

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

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(129, 140, 248, 0.4);
}

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

.section-header {
  margin-bottom: 3.5rem;
  text-align: left;
}

.section-title {
  font-size: 2.8rem;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

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

.hero-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.12) 0%, rgba(99, 102, 241, 0.05) 40%, rgba(0,0,0,0) 70%);
  z-index: 0;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
  letter-spacing: 1px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -1.5px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title span, .gradient-text {
  background: linear-gradient(135deg, #ffffff 10%, #c7d2fe 45%, #818cf8 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 6s ease-in-out infinite;
}

.hero-role-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: clamp(1.05rem, 2.5vw, 1.45rem);
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-role-dynamic {
  color: #38bdf8;
  border-bottom: 2px solid rgba(56, 189, 248, 0.4);
  padding-bottom: 2px;
  min-height: 1.8rem;
  display: inline-block;
  transition: opacity 0.3s ease;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 2rem auto;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Quick Hero Stats Row */
.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto 2.5rem auto;
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero-stat-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(129, 140, 248, 0.3);
  transform: translateY(-2px);
}

.hero-stat-chip i {
  color: #818cf8;
  font-size: 0.95rem;
}

.hero-stat-chip strong {
  color: #fff;
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
  padding: 0.85rem 1.8rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
  color: #ffffff;
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: rgba(129, 140, 248, 0.3);
  color: #ffffff;
  transform: translateY(-3px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Skip Intro Button */
.skip-intro-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 10001;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  font-family: inherit;
}

.skip-intro-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: fadeInUp 0.8s ease-out 1s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-color), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 40px; }
  50% { opacity: 1; height: 50px; }
}

.scroll-text {
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Glass Card / Bento Box Base */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--bento-radius);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
  border-radius: inherit;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(129, 140, 248, 0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 30px rgba(129, 140, 248, 0.05);
}

/* About Section */
.about {
  padding: 8rem 0;
}

.about-bento {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
}

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

.about-text p { margin-bottom: 1.2rem; }
.about-text p:last-child { margin-bottom: 0; }

.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.profile-img-container {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent-color), rgba(99, 102, 241, 0.3), rgba(0,0,0,0));
  margin-bottom: 1.5rem;
  animation: profileGlow 4s ease-in-out infinite;
}

@keyframes profileGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(129, 140, 248, 0.1); }
  50% { box-shadow: 0 0 40px rgba(129, 140, 248, 0.25); }
}

.profile-img-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-color);
}

/* About Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.1rem 0.8rem;
  background: rgba(255,255,255,0.02);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, 0.25);
  background: rgba(255,255,255,0.04);
}

.stat-card .stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--accent-color);
  display: block;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* About Pillars Grid */
.about-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.pillar-card {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.pillar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pillar-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.skill-category-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.75rem;
}

.skill-category-header i {
  color: #818cf8;
}

/* Skills Section */
.skills { padding: 8rem 0; }

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

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: none;
  animation: floatSkill 4s ease-in-out infinite;
}

/* Stagger animations for skill pills */
.skill-pill:nth-child(2n) { animation-delay: 0.5s; }
.skill-pill:nth-child(3n) { animation-delay: 1.2s; }
.skill-pill:nth-child(5n) { animation-delay: 1.8s; }

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

.skill-pill i {
  color: var(--accent-color);
  font-size: 1.1rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

/* Original Brand Colors */
.skill-pill:hover .fa-python { color: #3776AB; }
.skill-pill:hover .fa-js { color: #F7DF1E; }
.skill-pill:hover .fa-react { color: #61DAFB; }
.skill-pill:hover .fa-database { color: #00758F; } /* SQL */
.skill-pill:hover .fa-chart-pie { color: #F2C811; } /* Power BI */
.skill-pill:hover .fa-brain { color: #F7931E; } /* Scikit-learn */
.skill-pill:hover .fa-network-wired { color: #FF6F00; } /* TensorFlow */
.skill-pill:hover .fa-html5 { color: #E34F26; }
.skill-pill:hover .fa-table { color: #150458; } /* Pandas */
.skill-pill:hover .fa-square-root-alt { color: #4D77CF; } /* NumPy */
.skill-pill:hover .fa-php { color: #777BB4; }
.skill-pill:hover .fa-leaf { color: #47A248; } /* MongoDB */

.skill-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-8px) scale(1.15) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.1) inset;
  z-index: 10;
  animation: none; /* pause floating on hover */
}

.skill-pill:hover i {
  transform: scale(1.3) rotate(-10deg) translateY(-2px);
  text-shadow: 0 0 15px currentColor;
}

/* Projects Section */
.projects { padding: 8rem 0; }

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

.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--bento-radius);
  overflow: hidden;
}

.project-image {
  height: 200px;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  transition: transform 0.4s ease;
}

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

.project-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(9, 9, 11, 0.3) 100%);
  pointer-events: none;
}

.project-image i {
  font-size: 4rem;
  color: rgba(129, 140, 248, 0.25);
  transition: all 0.4s ease;
  z-index: 1;
}

.project-card:hover .project-image i {
  transform: scale(1.15) rotate(5deg);
  color: rgba(129, 140, 248, 0.5);
}

.project-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

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

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

.project-link {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  cursor: none;
}

.project-link:hover {
  background: var(--text-primary);
  color: var(--bg-color);
  transform: scale(1.1);
}

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

.project-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex: 1;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.15);
  border-radius: 6px;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Contact Section */
.contact { padding: 8rem 0; margin-bottom: 2rem; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.contact-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-form {
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 15px rgba(129, 140, 248, 0.15);
}

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

.contact-form button[type="submit"] {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Light mode overrides for form */
body.light-mode .form-group input,
body.light-mode .form-group textarea {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(79, 70, 229, 0.15);
  color: var(--text-primary);
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
  background: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.15);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  cursor: none;
}

.contact-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 16px;
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  background: var(--accent-color);
  color: white;
  box-shadow: 0 8px 25px rgba(129, 140, 248, 0.3);
}

.contact-details h3 { font-size: 1.1rem; margin-bottom: 0.15rem; }
.contact-details p { color: var(--text-secondary); font-size: 0.85rem; }

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

/* ==========================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ========================================== */
@media (max-width: 820px) {
  .container {
    padding: 0 1.25rem;
  }

  /* Fixed Mobile Top Bar */
  .navbar {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    padding: 0.75rem 1.25rem;
    background: rgba(9, 9, 11, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar.scrolled {
    top: 0;
  }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4.5px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
  }

  .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .mobile-menu-btn .bar {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .mobile-menu-btn.active .bar-1 {
    transform: translateY(6.5px) rotate(45deg);
  }

  .mobile-menu-btn.active .bar-2 {
    opacity: 0;
    transform: scale(0);
  }

  .mobile-menu-btn.active .bar-3 {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  /* Sliding Mobile Navigation Drawer */
  .nav-links {
    position: fixed;
    top: 57px;
    left: 0;
    width: 100%;
    background: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(129, 140, 248, 0.25);
    padding: 1.25rem 1.25rem 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85);
  }

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

  .nav-link {
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(129, 140, 248, 0.12);
    border-color: rgba(129, 140, 248, 0.3);
    color: #ffffff;
  }

  .nav-cv-link {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15)) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
    color: #38bdf8 !important;
  }

  /* Section Spacing on Mobile */
  .about, .skills, .projects, .contact, .education, .certifications {
    padding: 4.5rem 0 !important;
  }

  .section-title { font-size: 2.1rem; }
  .section-header { text-align: center; margin-bottom: 2.2rem; }

  /* Hero Section Mobile */
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 3.5rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 7.5vw, 3rem);
    letter-spacing: -1px;
    margin-top: 1rem;
  }

  .hero-role-wrapper {
    font-size: 1.05rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-description {
    font-size: 0.98rem;
    padding: 0 0.5rem;
    margin-bottom: 1.75rem;
  }

  .hero-stats-row {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .hero-stat-chip {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.5rem 0.85rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* About Bento Mobile */
  .about-bento {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

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

  /* Skills Categories Mobile */
  .skills-categories-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Timeline Mobile */
  .education-timeline::before { left: 20px; }
  .timeline-dot { width: 40px; height: 40px; min-width: 40px; font-size: 0.95rem; }
  .timeline-item { gap: 0.85rem; }
  .timeline-header { flex-direction: column; align-items: flex-start; gap: 0.4rem; }

  /* Certifications & Google Visibility on Mobile */
  .spec-spotlight-card {
    padding: 1.35rem 1.15rem;
    margin-bottom: 1.75rem;
    border-radius: 18px;
  }

  .spec-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .spec-title-group h3 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .spec-desc {
    font-size: 0.88rem;
  }

  .spec-courses-pills {
    gap: 0.35rem;
  }

  .spec-course-chip {
    font-size: 0.74rem;
    padding: 0.35rem 0.65rem;
    width: 100%;
    justify-content: flex-start;
  }

  /* Sticky & Wrapped Filter Pills Container on Mobile */
  .certs-controls.sticky-certs-nav {
    top: 56px;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
  }

  .certs-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    overflow-x: visible;
    width: 100%;
    padding: 0.15rem 0;
  }

  .filter-pill {
    white-space: nowrap;
    flex: 0 1 auto;
    font-size: 0.78rem;
    padding: 0.42rem 0.72rem;
  }

  .certs-results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .certs-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cert-card {
    padding: 1.35rem;
    border-radius: 18px;
  }

  .cert-title {
    font-size: 1.05rem;
  }

  .cert-card-actions {
    flex-direction: row;
    gap: 0.5rem;
  }

  .btn-inspect, .btn-pdf-link {
    font-size: 0.82rem;
    padding: 0.65rem 0.75rem;
  }

  /* Modal Lightbox Mobile */
  .cert-modal-dialog {
    width: 95%;
    max-width: 95%;
    padding: 1.5rem 1.25rem;
    max-height: 85vh;
    border-radius: 20px;
  }

  .cert-modal-title {
    font-size: 1.35rem;
  }

  .cert-modal-summary {
    font-size: 0.88rem;
    padding: 0.95rem;
  }

  .cert-modal-actions {
    flex-direction: column;
    gap: 0.65rem;
  }

  .cert-modal-actions .btn {
    width: 100%;
  }

  /* Projects & Contact Mobile */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-bento {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem 1.25rem;
  }

  /* Touch Cursor */
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
  body { cursor: auto; }
  .btn, .skill-pill, .contact-card, .project-link, .nav-link, .theme-toggle, .filter-pill, .btn-inspect, .btn-pdf-link {
    cursor: pointer;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered children animation */
.reveal.active .skill-pill,
.reveal.active .contact-card {
  animation: staggerFadeIn 0.5s ease-out forwards;
  opacity: 0;
}

@keyframes staggerFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal.active .skill-pill:nth-child(1) { animation-delay: 0.05s; }
.reveal.active .skill-pill:nth-child(2) { animation-delay: 0.1s; }
.reveal.active .skill-pill:nth-child(3) { animation-delay: 0.15s; }
.reveal.active .skill-pill:nth-child(4) { animation-delay: 0.2s; }
.reveal.active .skill-pill:nth-child(5) { animation-delay: 0.25s; }
.reveal.active .skill-pill:nth-child(6) { animation-delay: 0.3s; }
.reveal.active .skill-pill:nth-child(7) { animation-delay: 0.35s; }
.reveal.active .skill-pill:nth-child(8) { animation-delay: 0.4s; }
.reveal.active .skill-pill:nth-child(9) { animation-delay: 0.45s; }
.reveal.active .skill-pill:nth-child(10) { animation-delay: 0.5s; }
.reveal.active .skill-pill:nth-child(11) { animation-delay: 0.55s; }
.reveal.active .skill-pill:nth-child(12) { animation-delay: 0.6s; }

/* ==========================================
   LIGHT MODE
   ========================================== */
body.light-mode {
  --bg-color: #f0f4ff;
  --bg-gradient: radial-gradient(circle at top center, rgba(200, 210, 255, 0.5) 0%, #f0f4ff 40%);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-color: #4f46e5;
  --accent-glow: rgba(79, 70, 229, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(79, 70, 229, 0.15);
  --glass-hover: rgba(255, 255, 255, 0.75);
  background-image: none;
}

body.light-mode .hero-title span {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #3730a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .section-title {
  background: linear-gradient(to right, #0f172a, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .hero-glow {
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, rgba(99, 102, 241, 0.04) 40%, rgba(0,0,0,0) 70%);
}

body.light-mode ::-webkit-scrollbar-thumb {
  background: rgba(79, 70, 229, 0.3);
}

body.light-mode .navbar {
  background: rgba(240, 244, 255, 0.75);
  border-color: rgba(79, 70, 229, 0.15);
  box-shadow: 0 4px 30px rgba(79, 70, 229, 0.08);
}

body.light-mode .navbar.scrolled {
  background: rgba(240, 244, 255, 0.9);
}

body.light-mode .glass-card {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(79, 70, 229, 0.12);
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.06);
}

body.light-mode .glass-card:hover {
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.12);
}

body.light-mode .stat-card {
  background: rgba(79, 70, 229, 0.05);
  border-color: rgba(79, 70, 229, 0.1);
}

body.light-mode .skill-pill {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(79, 70, 229, 0.15);
}

body.light-mode .skill-pill:hover {
  background: rgba(79, 70, 229, 0.08);
}

body.light-mode .tech-tag {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
}

body.light-mode .timeline-line {
  background: linear-gradient(to bottom, #4f46e5, rgba(79, 70, 229, 0.1));
}

body.light-mode .timeline-dot {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  box-shadow: 0 0 16px rgba(79, 70, 229, 0.4);
}

body.light-mode .timeline-badge {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}

body.light-mode .cert-card .cert-icon {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.15);
}

body.light-mode .cert-link {
  color: #4f46e5;
}

body.light-mode .contact-icon {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.15);
}

body.light-mode #particles-canvas {
  opacity: 0.4;
}

body.light-mode .hero-stat-chip {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(79, 70, 229, 0.15);
  color: #0f172a;
}

body.light-mode .hero-stat-chip strong {
  color: #0f172a;
}

body.light-mode .btn-glass {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(79, 70, 229, 0.2);
  color: #0f172a;
}

body.light-mode .pillar-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(79, 70, 229, 0.12);
}

body.light-mode .spec-spotlight-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(56, 189, 248, 0.08) 100%);
  border-color: rgba(79, 70, 229, 0.2);
}

body.light-mode .spec-course-chip {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(79, 70, 229, 0.15);
  color: #0f172a;
}

body.light-mode .certs-search-input {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(79, 70, 229, 0.2);
  color: #0f172a;
}

body.light-mode .filter-pill {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(79, 70, 229, 0.15);
  color: #475569;
}

body.light-mode .filter-pill.active {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #ffffff;
  border-color: #4f46e5;
}

body.light-mode .cert-card {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(79, 70, 229, 0.12);
}

body.light-mode .cert-title {
  color: #0f172a;
}

body.light-mode .cert-skill-tag {
  background: rgba(79, 70, 229, 0.06);
  border-color: rgba(79, 70, 229, 0.12);
  color: #475569;
}

body.light-mode .btn-pdf-link {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
  color: #4f46e5;
}

body.light-mode .cert-modal-dialog {
  background: #ffffff;
  border-color: rgba(79, 70, 229, 0.2);
}

body.light-mode .cert-modal-title {
  color: #0f172a;
}

body.light-mode .cert-modal-summary {
  background: rgba(79, 70, 229, 0.04);
  border-color: rgba(79, 70, 229, 0.1);
  color: #334155;
}

body.light-mode .cert-modal-close {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.15);
  color: #0f172a;
}

/* ==========================================
   THEME TOGGLE BUTTON
   ========================================== */
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--glass-hover);
  color: var(--accent-color);
  border-color: rgba(129, 140, 248, 0.3);
  transform: rotate(20deg);
}

@media (max-width: 768px) {
  .theme-toggle { cursor: pointer; }
}

/* ==========================================
   EDUCATION SECTION
   ========================================== */
.education {
  padding: 8rem 0;
}

.education-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.education-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-color), rgba(129, 140, 248, 0.1));
  border-radius: 2px;
  z-index: 0;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
}

.timeline-dot {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-color), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  z-index: 1;
  box-shadow: 0 0 20px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 30px var(--accent-glow), 0 8px 24px rgba(0,0,0,0.4);
}

.timeline-card {
  flex: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.timeline-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--accent-color);
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.timeline-place {
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

@media (max-width: 768px) {
  .education-timeline::before { left: 22px; }
  .timeline-dot { width: 44px; height: 44px; min-width: 44px; font-size: 1rem; }
  .timeline-item { gap: 1rem; }
  .timeline-header { flex-direction: column; }
}

/* ==========================================
   CERTIFICATIONS SECTION (REVAMPED)
   ========================================== */
.certifications {
  padding: 8rem 0;
  position: relative;
}

/* Specialization Spotlight Banner */
.spec-spotlight-card {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(99, 102, 241, 0.08) 50%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--bento-radius);
  padding: 2.2rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.spec-spotlight-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

.spec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.spec-badge-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-pill.purple {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.spec-title-group h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.spec-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 900px;
  line-height: 1.6;
}

.spec-courses-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.spec-course-chip {
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.spec-course-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

.spec-course-chip i {
  color: #4ade80;
  font-size: 0.7rem;
}

/* Controls: Search & Category Filters */
.certs-controls {
  margin-bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Sticky Certifications Controls to keep categories visible during scroll */
.certs-controls.sticky-certs-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 72px;
  z-index: 95;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 0.9rem 1.2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

body.light-mode .certs-controls.sticky-certs-nav {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.certs-search-bar {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.certs-search-bar i.search-icon {
  position: absolute;
  left: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1rem;
  pointer-events: none;
  transition: color 0.3s ease;
}

.certs-search-input {
  width: 100%;
  padding: 0.95rem 3rem 0.95rem 3.2rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  backdrop-filter: blur(12px);
  outline: none;
  transition: all 0.3s ease;
}

.certs-search-input:focus {
  border-color: #818cf8;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 25px rgba(129, 140, 248, 0.25);
}

.clear-search-btn {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  display: none;
  padding: 0.3rem;
  transition: color 0.2s ease;
}

.clear-search-btn:hover {
  color: var(--text-primary);
}

/* Filter Tabs */
.certs-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.filter-pill.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
  border-color: rgba(129, 140, 248, 0.5);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.filter-count {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  font-weight: 600;
}

.filter-pill.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.certs-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0 0.5rem;
}

/* Cert Grid */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Card Styling */
.cert-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: var(--bento-radius);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--card-accent, #6366f1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-7px);
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(129, 140, 248, 0.1);
}

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

.cert-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cert-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--card-accent, #818cf8);
  transition: all 0.3s ease;
}

.cert-card:hover .cert-icon-box {
  transform: scale(1.08) rotate(-4deg);
  background: var(--card-accent, #6366f1);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

.cert-category-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--card-accent, var(--text-secondary));
}

.cert-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: #4ade80;
  font-weight: 500;
}

.verified-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  display: inline-block;
}

.cert-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.cert-card:hover .cert-title {
  color: #ffffff;
}

.cert-issuer-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.cert-issuer-meta i {
  color: var(--card-accent, #818cf8);
}

.cert-skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.cert-skill-tag {
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.cert-card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-inspect {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-inspect:hover {
  background: var(--card-accent, #6366f1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
}

.btn-pdf-link {
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.3s ease;
}

.btn-pdf-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Modal Lightbox */
.cert-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cert-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cert-modal-dialog {
  background: #0d111a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 50px rgba(99, 102, 241, 0.15);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 2.2rem;
  position: relative;
}

.cert-modal-backdrop.open .cert-modal-dialog {
  transform: scale(1) translateY(0);
}

.cert-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cert-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: rotate(90deg);
}

.cert-modal-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.cert-modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.cert-modal-issuer {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cert-modal-summary {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.7;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.cert-modal-skills-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.cert-modal-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.8rem;
}

.cert-modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Intro Screen (Solar System) */
#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #09090b;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#intro-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.solar-system {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sun-profile {
  position: absolute;
  width: 0px;
  height: 0px;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0;
  z-index: 10;
  box-shadow: 0 0 40px rgba(129, 140, 248, 0.8), 0 0 100px rgba(99, 102, 241, 0.5);
  border: 4px solid var(--accent-color);
  transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              height 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              opacity 0.4s ease;
}

.sun-profile.revealed {
  width: 180px;
  height: 180px;
  opacity: 1;
}

.sun-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(129, 140, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.orbit-1 { width: 150px; height: 150px; animation: spin 4s linear infinite; }
.orbit-2 { width: 220px; height: 220px; animation: spin 6s linear infinite reverse; }
.orbit-3 { width: 290px; height: 290px; animation: spin 8s linear infinite; }
.orbit-4 { width: 360px; height: 360px; animation: spin 10s linear infinite reverse; }
.orbit-5 { width: 440px; height: 440px; animation: spin 12s linear infinite; }

.planet {
  position: absolute;
  top: -15px;
  width: 30px;
  height: 30px;
  background: var(--glass-bg);
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--accent-color);
  box-shadow: 0 0 15px rgba(129, 140, 248, 0.5);
  animation: counter-spin linear infinite;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.orbit-1 .planet { animation-duration: 4s; background: rgba(55, 118, 171, 0.2); color: #3776AB; }
.orbit-2 .planet { animation-duration: 6s; animation-direction: reverse; background: rgba(247, 223, 30, 0.2); color: #F7DF1E; }
.orbit-3 .planet { animation-duration: 8s; background: rgba(97, 218, 251, 0.2); color: #61DAFB; }
.orbit-4 .planet { animation-duration: 10s; animation-direction: reverse; background: rgba(51, 103, 145, 0.2); color: #336791; }
.orbit-5 .planet { animation-duration: 12s; background: rgba(255, 111, 0, 0.2); color: #FF6F00; }

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

/* Convergence State */
.solar-system.converge .orbit {
  width: 0 !important;
  height: 0 !important;
  border-color: transparent;
  opacity: 0;
}

.solar-system.converge .planet {
  top: 0;
  width: 0;
  height: 0;
  font-size: 0;
  border: none;
  box-shadow: none;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Design System
   ========================================================================== */

/* Google Filter Pill Styling (Desktop & Mobile) */
.filter-pill.google-pill {
  background: rgba(66, 133, 244, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.35);
  color: #60a5fa;
  font-weight: 600;
  transition: all 0.25s ease;
}

.filter-pill.google-pill:hover {
  background: rgba(66, 133, 244, 0.18);
  border-color: #4285F4;
  box-shadow: 0 0 15px rgba(66, 133, 244, 0.3);
  transform: translateY(-2px);
}

.filter-pill.google-pill.active {
  background: linear-gradient(135deg, #4285F4, #2563eb);
  border-color: #4285F4;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(66, 133, 244, 0.45);
}

/* Base Mobile Overflows & Touch Helpers */
@media (hover: none) or (max-width: 820px) {
  #cursor-dot,
  #cursor-ring {
    display: none !important;
  }
}

/* Tablet & Mobile Screens (<= 992px) */
@media (max-width: 992px) {
  .hero-content {
    max-width: 100%;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Primary Mobile Breakpoint (<= 820px) */
@media (max-width: 820px) {
  /* Layout Containers */
  .container {
    padding: 0 1.15rem;
    width: 100%;
  }

  /* Fixed Mobile Header Navigation */
  .navbar {
    top: 0.65rem;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    max-width: calc(100% - 1.5rem);
    transform: none;
    border-radius: 14px;
    padding: 0.55rem 0.9rem;
    background: rgba(13, 15, 23, 0.92);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  }

  body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  }

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

  .nav-brand {
    font-size: 0.95rem;
    gap: 0.55rem;
  }

  .nav-avatar {
    width: 30px;
    height: 30px;
  }

  /* Mobile Hamburger Button */
  .mobile-menu-btn {
    display: flex;
  }

  /* Sliding Drawer Nav Links */
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(13, 15, 23, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.85rem 0.6rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8);
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 10000;
  }

  body.light-mode .nav-links {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  }

  .nav-links.mobile-open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
    transition: all 0.2s ease;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-primary);
  }

  .nav-link::after {
    display: none;
  }

  .nav-badge {
    margin-left: auto;
  }

  /* Hero Section Mobile */
  .hero {
    padding-top: 115px;
    padding-bottom: 50px;
    text-align: center;
    min-height: auto;
  }

  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge {
    margin-bottom: 1rem;
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.8vw, 2.5rem);
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .hero-role-wrapper {
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 100%;
  }

  .hero-stats-row {
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    width: 100%;
  }

  .hero-stat-chip {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
    max-width: 220px;
  }

  .hero-actions {
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Section Headers Mobile */
  .section-header {
    margin-bottom: 2rem;
    text-align: center;
  }

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

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

  /* About Bento Grid Mobile */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bento-item {
    padding: 1.25rem 1rem;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
  }

  .profile-details {
    text-align: center;
  }

  .profile-stats-bento {
    justify-content: center;
  }

  .profile-bio-bullets {
    text-align: left;
  }

  /* Skills Section Mobile */
  .skills-wrapper {
    gap: 0.45rem;
  }

  .skill-pill {
    font-size: 0.8rem;
    padding: 0.45rem 0.75rem;
  }

  /* Timeline Mobile */
  .education-timeline {
    padding-left: 1.5rem;
  }

  .education-timeline::before {
    left: 8px;
  }

  .timeline-dot {
    left: -1.5rem;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .timeline-card {
    padding: 1.15rem 1rem;
  }

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

  .timeline-badge {
    font-size: 0.72rem;
  }

  /* Specialization Spotlight Mobile */
  .spec-spotlight-card {
    padding: 1.25rem 1rem;
    border-radius: 16px;
    margin-bottom: 1.75rem;
  }

  .spec-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .spec-badge-group {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .spec-pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }

  .spec-title-group h3 {
    font-size: 1.2rem;
  }

  .spec-desc {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .spec-courses-pills {
    gap: 0.4rem;
  }

  .spec-course-chip {
    font-size: 0.74rem;
    padding: 0.35rem 0.65rem;
    flex: 1 1 100%;
    max-width: 100%;
    white-space: normal;
  }

  /* Certifications Controls Mobile (Sticky & Wrapped Category Filter Tabs) */
  .certs-controls.sticky-certs-nav {
    top: 56px;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
  }

  .certs-search-bar {
    width: 100%;
    margin-bottom: 0.65rem;
  }

  .certs-search-input {
    font-size: 0.88rem;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    border-radius: 12px;
  }

  .certs-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0.15rem 0;
    gap: 0.35rem;
    justify-content: center;
  }

  .filter-pill {
    white-space: nowrap;
    flex: 0 1 auto;
    padding: 0.42rem 0.72rem;
    font-size: 0.78rem;
    border-radius: 50px;
  }

  .certs-results-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
  }

  /* Certifications Grid Mobile */
  .certs-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .cert-card {
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }

  .cert-icon-box {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }

  .cert-title {
    font-size: 1.1rem;
    line-height: 1.35;
  }

  .cert-issuer-meta {
    font-size: 0.82rem;
  }

  .cert-summary {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .cert-card-actions {
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
  }

  .cert-card-actions .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.65rem 1rem;
  }

  /* Certifications Directory Page Hero Mobile */
  .certifications-hero {
    padding-top: 110px !important;
    padding-bottom: 30px !important;
  }

  .certifications-hero .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.6rem) !important;
  }

  .certifications-hero .hero-stats-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .certifications-hero .hero-stat-chip {
    flex: 1 1 calc(50% - 0.5rem);
    max-width: none;
    font-size: 0.78rem;
  }

  /* Projects Mobile */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-card {
    border-radius: 16px;
  }

  /* Contact Mobile */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card {
    padding: 1.25rem 1rem;
  }

  .contact-info-list {
    gap: 1rem;
  }

  .contact-item {
    padding: 0.75rem;
  }

  /* Certificate Modal Lightbox Mobile */
  .cert-modal-backdrop {
    padding: 1rem;
  }

  .cert-modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }

  .cert-modal-header {
    gap: 0.75rem;
  }

  .cert-modal-icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .cert-modal-title {
    font-size: 1.15rem;
  }

  .cert-modal-actions {
    flex-direction: column;
    gap: 0.6rem;
  }

  .cert-modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Extra Small Mobile Devices (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-stat-chip {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .certifications-hero .hero-stat-chip {
    flex: 1 1 100%;
  }

  .spec-course-chip {
    font-size: 0.72rem;
  }

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