/* ==========================================================================
   MAHESH SINGH MADAI - DATA ANALYST & BI DEVELOPER PORTFOLIO
   Design System & Modern Dark Theme Architecture
   ========================================================================== */

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

:root {
  /* Color Palette - Premium Slate & Cyan/Indigo Theme */
  --bg-dark: #080c14;
  --bg-surface: #0f172a;
  --bg-card: rgba(18, 28, 45, 0.75);
  --bg-card-hover: rgba(28, 42, 66, 0.85);
  --bg-nav: rgba(8, 12, 20, 0.96);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.25);
  --border-accent: rgba(6, 182, 212, 0.4);

  /* Primary & Accent Colors */
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-teal: #14b8a6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #06b6d4 50%, #10b981 100%);
  --accent-gradient-text: linear-gradient(135deg, #818cf8 0%, #38bdf8 50%, #34d399 100%);

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-highlight: #38bdf8;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Glassmorphism */
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glow-shadow: 0 0 25px rgba(99, 102, 241, 0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
:root[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.98);

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(99, 102, 241, 0.3);
  --border-accent: rgba(6, 182, 212, 0.5);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-highlight: #2563eb;

  --accent-gradient-text: linear-gradient(135deg, #4f46e5 0%, #0284c7 50%, #059669 100%);
  --glass-shadow: 0 8px 30px 0 rgba(0, 0, 0, 0.08);
  --glow-shadow: 0 4px 20px rgba(99, 102, 241, 0.12);
}

/* Light Mode Overrides */
[data-theme="light"] body {
  background-image:
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(6, 182, 212, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
}

[data-theme="light"] .metrics-section {
  background: rgba(241, 245, 249, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .section[style*="background"] {
  background: rgba(241, 245, 249, 0.6) !important;
}

[data-theme="light"] .social-btn,
[data-theme="light"] .meta-pill,
[data-theme="light"] .job-period,
[data-theme="light"] .filter-btn,
[data-theme="light"] .skill-pill,
[data-theme="light"] .competency-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .btn-secondary {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #0f172a;
}

[data-theme="light"] .btn-secondary:hover {
  background: #f1f5f9;
}

[data-theme="light"] .proj-header-banner {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

[data-theme="light"] .profile-glass-badge {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] footer {
  background: #f1f5f9;
  border-top-color: rgba(0, 0, 0, 0.08);
}


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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(6, 182, 212, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

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

p {
  text-align: justify;
}

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

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

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}

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

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

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  transition: var(--transition);
}

/* Full Page Scroll Snap Architecture */
.snap-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: 100vh;
  max-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 0 1.5rem;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Compact Executive Summary Layout for 100vh single window fit */
#section-about {
  padding-top: 4.25rem;
  padding-bottom: 1rem;
}

#section-about .section-head {
  margin-bottom: 1rem;
}

#section-about .card.about-summary {
  padding: 1.25rem 1.5rem;
}

#section-about .about-summary p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

#section-about .highlight-list {
  margin-top: 0.6rem;
  gap: 0.45rem;
}

#section-about .highlight-list li {
  font-size: 0.86rem;
}

#section-about .competency-grid {
  gap: 0.75rem;
}

#section-about .competency-item {
  padding: 0.85rem 1rem;
}

#section-about .competency-icon {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

#section-about .competency-item h4 {
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

#section-about .competency-item p {
  font-size: 0.8rem;
  line-height: 1.35;
}

/* Compact Projects Layout for 100vh fit */
#section-projects {
  padding-top: 4.25rem;
  padding-bottom: 1rem;
}

#section-projects .section-head {
  margin-bottom: 1rem;
}

#section-projects .proj-header-banner {
  height: 100px;
}

#section-projects .proj-icon-lg {
  font-size: 2.2rem;
}

#section-projects .proj-body {
  padding: 1.25rem;
}

#section-projects .proj-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

/* Side Navigation Scroll Dots */
.scroll-nav-dots {
  position: fixed;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scroll-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.scroll-dot:hover,
.scroll-dot.active {
  background: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  transform: scale(1.35);
}

.scroll-dot .tooltip {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
}

.scroll-dot:hover .tooltip {
  opacity: 1;
}

[data-theme="light"] .scroll-dot {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.15);
}


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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.logo-badge {
  background: var(--accent-gradient);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

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

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--accent-indigo);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--accent-indigo);
  color: #fff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
  color: var(--accent-indigo);
  transform: rotate(15deg) scale(1.08);
}

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

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: 5rem 0 3.5rem;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

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

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
}

.meta-pill i {
  color: var(--accent-cyan);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-indigo);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-btn:hover {
  color: var(--text-main);
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
  transform: translateY(-3px);
}

.hero-profile-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));
  box-shadow: var(--glass-shadow);
}

.profile-img-wrap {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-surface);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 22%;
  transition: transform 0.5s ease;
}

.hero-profile-card:hover .profile-img {
  transform: scale(1.03);
}

.profile-glass-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
}

.badge-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.badge-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   METRICS HIGHLIGHT BAR
   ========================================================================== */
.metrics-section {
  padding: 2.5rem 0;
  border-y: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.5);
  margin-bottom: 4rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
}

.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--glow-shadow);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.metric-value span {
  color: var(--accent-cyan);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
  padding: 4rem 0;
}

.section:first-of-type {
  padding-top: 6.5rem;
}

.section-head {
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 700px;
  text-align: justify;
}

.text-center .section-desc,
.text-center p {
  text-align: center;
}

/* Cards & Glassmorphism */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

/* ==========================================================================
   ABOUT & COMPETENCIES SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about-summary p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
}

.highlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.highlight-list li i {
  color: var(--accent-emerald);
  margin-top: 0.25rem;
}

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

.competency-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.competency-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.competency-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.competency-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   EXPERIENCE PAGE & TIMELINE
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

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

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: 8px;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
  z-index: 2;
}

.timeline-item.active .timeline-marker {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
  background: var(--accent-indigo);
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.job-card:hover {
  border-color: var(--border-glow);
  transform: translateX(6px);
}

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

.job-title-group h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.job-company {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.job-period {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

.job-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.job-bullets li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.job-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

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

.tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent-indigo);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.tag-cyan {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
}

.tag-emerald {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--accent-emerald);
}

/* ==========================================================================
   PROJECTS PAGE & GRID
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-indigo);
  color: #fff;
  border-color: var(--accent-indigo);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

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

.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  height: 100%;
}

.proj-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.proj-header-banner {
  height: 140px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.proj-header-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0.15;
}

.proj-icon-lg {
  font-size: 2.75rem;
  color: var(--accent-cyan);
  z-index: 1;
}

.proj-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.proj-category {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.proj-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.proj-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.proj-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.proj-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   SKILLS PAGE MATRIX
   ========================================================================== */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.skill-category-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow-shadow);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.skill-cat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.skill-cat-title h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.skill-cat-title p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.skill-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-main);
  transition: var(--transition);
}

.skill-pill i {
  color: var(--accent-cyan);
  font-size: 0.9rem;
}

.skill-pill:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
  transform: translateY(-2px);
}

/* ==========================================================================
   EDUCATION & CERTIFICATIONS
   ========================================================================== */
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.edu-card:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
}

.edu-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.edu-details h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.edu-institution {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 0.2rem;
}

.edu-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
}

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

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

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

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

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

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

.footer-links a:hover {
  color: var(--accent-cyan);
}

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

/* Toast notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent-indigo);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ========================================================================== */

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ========================================================================== */

/* 1. Large Tablets & Small Laptops (< 992px) */
@media (max-width: 992px) {
  .snap-container {
    height: auto;
    overflow-y: visible;
    scroll-snap-type: none;
  }

  .snap-section {
    min-height: auto;
    height: auto;
    max-height: none !important;
    overflow: visible !important;
    padding: 6.5rem 0 2.5rem;
    justify-content: flex-start !important;
    scroll-snap-align: none;
  }

  #section-hero,
  .hero {
    padding-top: 7rem !important;
    padding-bottom: 2.5rem;
  }

  .scroll-nav-dots {
    display: none;
  }

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

  .hero-profile-card {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
  }

  .profile-img-wrap {
    width: 100%;
    aspect-ratio: 4/5;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

/* 2. Tablets & Mobile Landscape (< 768px) */
@media (max-width: 768px) {
  p {
    text-align: left;
  }

  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #080c14 !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    gap: 1rem;
    align-items: stretch;
    z-index: 1001;
    transform: translateY(-10px);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
  }

  [data-theme="light"] .navbar-nav {
    background: #ffffff !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  }

  .navbar-nav.show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .navbar-nav li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
  }

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

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

  .nav-cta {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  .theme-toggle-btn {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-md);
    gap: 0.5rem;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    padding-left: 36px;
    margin-bottom: 2rem;
  }

  .timeline-marker {
    left: -2px;
    width: 22px;
    height: 22px;
  }

  .job-card {
    padding: 1.5rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* 3. Small Mobile Devices (< 640px) */
@media (max-width: 640px) {
  .competency-grid {
    grid-template-columns: 1fr;
  }
}

/* 4. Mobile Portrait (< 576px) */
@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  #section-hero,
  .hero {
    padding-top: 7.5rem !important;
    padding-bottom: 2rem;
  }

  .section:first-of-type {
    padding-top: 7.5rem !important;
  }

  .nav-logo {
    font-size: 1.1rem;
    gap: 0.5rem;
  }

  .logo-badge {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-meta {
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .meta-pill {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

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

  .social-links {
    justify-content: center;
    width: 100%;
  }

  .hero-profile-card {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }

  .profile-img-wrap {
    width: 100%;
    aspect-ratio: 4/5;
  }

  .profile-glass-badge {
    padding: 0.75rem;
    gap: 0.75rem;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .badge-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .badge-text h4 {
    font-size: 0.85rem;
  }

  .badge-text p {
    font-size: 0.75rem;
  }

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

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

  .card {
    padding: 1.25rem;
  }

  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .job-title-group h3 {
    font-size: 1.15rem;
  }

  .job-card {
    padding: 1.25rem;
  }

  .job-bullets li {
    font-size: 0.88rem;
  }

  .edu-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }

  .edu-meta {
    flex-direction: column;
    gap: 0.4rem;
  }

  .skill-category-card {
    padding: 1.25rem;
  }

  .skill-pill {
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
  }

  .toast {
    bottom: 20px;
    right: 20px;
    left: 20px;
    text-align: center;
    font-size: 0.85rem;
  }
}

/* 5. Extra Small Devices (< 400px) */
@media (max-width: 400px) {

  #section-hero,
  .hero {
    padding-top: 8rem !important;
  }

  .hero-title {
    font-size: 1.65rem;
  }

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

  .metric-card {
    padding: 1rem;
  }

  .metric-value {
    font-size: 2rem;
  }
}