/* ==========================================================================
   PRAGYA AWASTHI - PORTFOLIO DESIGN SYSTEM & STYLESHEET
   Professional, high-contrast, modern engineering design system
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Themes
   -------------------------------------------------------------------------- */
:root {
  /* Dark Theme (Default) - Crisp, Technical, High Contrast */
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-surface: #17223b;
  --bg-surface-elevated: #1e2d4d;
  --bg-surface-glass: rgba(15, 23, 42, 0.82);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #090d16;

  --accent-primary: #38bdf8;       /* Tech Sky Cyan */
  --accent-secondary: #818cf8;     /* Indigo */
  --accent-tertiary: #10b981;      /* Emerald Green */
  --accent-glow: rgba(56, 189, 248, 0.18);

  --border-color: rgba(255, 255, 255, 0.09);
  --border-color-hover: rgba(56, 189, 248, 0.45);

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 14px 38px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.22);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Layout & Animation */
  --container-max-width: 1200px;
  --nav-height: 76px;
  --transition-fast: 0.16s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode - Ultra-Clean Corporate Slate */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-surface: #f1f5f9;
  --bg-surface-elevated: #e2e8f0;
  --bg-surface-glass: rgba(255, 255, 255, 0.88);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --accent-primary: #0284c7;
  --accent-secondary: #4f46e5;
  --accent-tertiary: #059669;
  --accent-glow: rgba(2, 132, 199, 0.14);

  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(2, 132, 199, 0.45);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 14px 32px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.18);
}

/* Accessibility: Skip to Content Link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top 0.2s ease;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.skip-to-content:focus {
  top: 1.25rem;
  outline: 3px solid #ffffff;
}

/* Global Focus-Visible Outline for Keyboard Accessibility */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
  min-height: 100vh;
}

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

ul {
  list-style: none;
}

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

img, svg {
  vertical-align: middle;
}

/* Background Ambient Glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  transition: opacity var(--transition-normal);
}

.bg-glow-1 {
  width: 550px;
  height: 550px;
  top: -120px;
  right: -60px;
  background: radial-gradient(circle, var(--accent-primary) 0%, rgba(56, 189, 248, 0) 70%);
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  top: 45%;
  left: -180px;
  background: radial-gradient(circle, var(--accent-secondary) 0%, rgba(129, 140, 248, 0) 70%);
}

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

/* --------------------------------------------------------------------------
   3. Typography & Utility Classes
   -------------------------------------------------------------------------- */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  background-color: var(--accent-glow);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.w-full {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1.05rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
  background-color: var(--bg-surface-elevated);
}

/* --------------------------------------------------------------------------
   4. Site Header & Brand
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: background-color var(--transition-normal);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  flex-shrink: 1;
}

.brand-avatar-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
  flex-shrink: 0;
  background-color: #ffffff;
}

.brand-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.brand-role {
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 500;
}

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

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

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

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

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

/* Theme Toggle Sun/Moon */
[data-theme="dark"] #themeToggle .sun-icon { display: block; }
[data-theme="dark"] #themeToggle .moon-icon { display: none; }
[data-theme="light"] #themeToggle .sun-icon { display: none; }
[data-theme="light"] #themeToggle .moon-icon { display: block; }

.mobile-menu-btn {
  display: none;
}
.mobile-menu-btn .close-icon { display: none; }
.mobile-menu-btn.active .menu-icon { display: none; }
.mobile-menu-btn.active .close-icon { display: block; }

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-profile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-avatar {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--accent-primary);
  background-color: #ffffff;
}

.mobile-nav-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.mobile-nav-title {
  font-size: 0.8rem;
  color: var(--accent-primary);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mobile-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  padding: 0.4rem 0;
}

.mobile-nav-link:hover {
  color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   5. Hero Section (Elevated with Profile Photo)
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 5rem 0 4.5rem 0;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.95rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.5rem, 4.8vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.hero-subtitle-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.45rem;
}

.subtitle-divider {
  color: var(--text-muted);
}

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

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.72;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-meta-chips {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.meta-chip svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

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

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-chip:hover {
  color: var(--accent-primary);
  border-color: var(--border-color-hover);
  transform: translateY(-1px);
}

/* Hero Profile Portrait Card */
.profile-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 26px;
  padding: 1.25rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  max-width: 440px;
  margin: 0 auto;
}

.profile-image-frame {
  position: relative;
  width: 100%;
  height: 460px;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  transition: transform 0.45s ease;
}

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

.profile-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 13, 22, 0.45) 0%, transparent 40%);
  pointer-events: none;
}

/* Floating Badges on Portrait */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color-hover);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 2;
  transition: transform var(--transition-fast);
}

.floating-badge:hover {
  transform: translateY(-2px);
}

.badge-top-right {
  top: -12px;
  right: -16px;
}

.badge-bottom-left {
  bottom: 82px;
  left: -18px;
}

.badge-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.badge-content {
  display: flex;
  flex-direction: column;
}

.badge-strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.badge-sub {
  font-size: 0.74rem;
  color: var(--accent-primary);
  font-weight: 500;
}

.profile-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  margin-top: 0.4rem;
  border-top: 1px solid var(--border-color);
}

.profile-footer-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.profile-footer-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-tertiary);
  background-color: rgba(16, 185, 129, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   6. Key Metrics & Impact Section
   -------------------------------------------------------------------------- */
.stats-section {
  padding: 2.25rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.stat-card {
  padding: 1.35rem 1.15rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

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

.stat-number {
  font-size: 2.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. About Me Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: start;
}

.lead-text {
  font-size: 1.14rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.about-text-content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

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

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 2rem;
}

.pillar-card {
  display: flex;
  gap: 1.15rem;
  padding: 1.15rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

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

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.55;
}

/* About Quick Facts Card with Avatar */
.info-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

.info-card-header-with-avatar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.info-card-avatar {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--accent-primary);
  background: #ffffff;
  box-shadow: 0 0 12px var(--accent-glow);
}

.info-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.info-card-role {
  font-size: 0.8rem;
  color: var(--accent-primary);
  font-weight: 600;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 1.85rem;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  gap: 0.5rem;
}

.info-label {
  color: var(--text-muted);
  font-weight: 500;
}

.info-val {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.badge-green {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   8. Technical Skills Section
   -------------------------------------------------------------------------- */
.skills-filter-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-btn {
  padding: 0.5rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.skills-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  width: 100%;
  max-width: 340px;
}

.skills-search input {
  color: var(--text-primary);
  font-size: 0.9rem;
  width: 100%;
}

.skills-search input::placeholder {
  color: var(--text-muted);
}

.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.skill-category-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

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

.cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.cat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-devops { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.icon-cloud { background: rgba(129, 140, 248, 0.15); color: #818cf8; }
.icon-monitoring { background: rgba(244, 114, 182, 0.15); color: #f472b6; }
.icon-web { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.icon-ml { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.icon-prog { background: rgba(167, 139, 250, 0.15); color: #a78bfa; }

.cat-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.cat-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-tag .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  opacity: 0.75;
}

.skill-tag:hover {
  background-color: var(--bg-surface-elevated);
  border-color: var(--border-color-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.skill-tag.featured-tag {
  border-color: var(--accent-primary);
  background-color: var(--accent-glow);
  color: var(--accent-primary);
  font-weight: 600;
}

.skill-tag.search-match {
  background-color: var(--accent-primary) !important;
  color: #ffffff !important;
  border-color: var(--accent-primary) !important;
}

/* --------------------------------------------------------------------------
   9. Work Experience (Timeline)
   -------------------------------------------------------------------------- */
.experience-section {
  background-color: var(--bg-secondary);
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 1.75rem;
  position: relative;
  margin-bottom: 2.5rem;
}

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

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.marker-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 4px solid var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-glow);
  z-index: 2;
  margin-top: 6px;
}

.marker-line {
  position: absolute;
  top: 24px;
  bottom: -40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--border-color));
  z-index: 1;
}

.exp-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

.exp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.exp-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  background-color: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.current-badge {
  background-color: rgba(56, 189, 248, 0.15);
  color: var(--accent-primary);
  border: 1px solid var(--accent-glow);
}

.exp-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.exp-company {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: 0.25rem;
}

.exp-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.exp-date {
  font-weight: 600;
  color: var(--text-primary);
}

.exp-summary {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  line-height: 1.6;
}

.exp-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.exp-bullets li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.exp-bullets strong {
  color: var(--text-primary);
}

.exp-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.tech-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-surface-elevated);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   10. Featured Projects Section
   -------------------------------------------------------------------------- */
.project-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.75rem;
}

.proj-filter-btn {
  padding: 0.55rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.proj-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
}

.proj-filter-btn.active {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

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

.project-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-card-banner {
  height: 130px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.banner-healthcare {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #0d9488 100%);
  color: #a7f3d0;
}

.banner-ml {
  background: linear-gradient(135deg, #3730a3 0%, #4f46e5 50%, #7c3aed 100%);
  color: #c7d2fe;
}

.banner-nlp {
  background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #d97706 100%);
  color: #fed7aa;
}

.banner-devops {
  background: linear-gradient(135deg, #1e3a8a 0%, #0284c7 50%, #06b6d4 100%);
  color: #bae6fd;
}

.project-type-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

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

.project-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.project-status {
  color: var(--accent-tertiary);
  font-weight: 600;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.project-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.feat-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.feat-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-primary);
  background-color: var(--accent-glow);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color-hover);
}

.project-footer {
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   11. Education & Certifications Section
   -------------------------------------------------------------------------- */
.edu-cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.column-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.column-title svg {
  color: var(--accent-primary);
}

.edu-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

.edu-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.edu-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.degree-badge {
  background-color: rgba(56, 189, 248, 0.15);
  color: var(--accent-primary);
}

.training-badge {
  background-color: rgba(129, 140, 248, 0.15);
  color: var(--accent-secondary);
}

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

.edu-degree {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.edu-institution {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.3rem;
}

.edu-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

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

/* Certifications Column */
.certs-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  transition: all var(--transition-fast);
}

.cert-item:hover {
  border-color: var(--border-color-hover);
  transform: translateX(4px);
}

.cert-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-gold { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.icon-blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.icon-green { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.cert-info {
  display: flex;
  flex-direction: column;
}

.cert-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.cert-issuer {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.cert-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   12. Contact Section
   -------------------------------------------------------------------------- */
.contact-section {
  background-color: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-col-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.contact-col-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.85rem;
}

.contact-cards-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  position: relative;
  transition: all var(--transition-fast);
}

.contact-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--accent-glow);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.contact-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.contact-card-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-card-val:hover {
  color: var(--accent-primary);
}

.copy-btn, .link-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.copy-btn:hover, .link-btn:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background-color: var(--accent-glow);
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

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

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

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* Button Loading & Disabled States */
.btn:disabled,
.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed !important;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

.spinner {
  display: inline-block;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* Contact Form Feedback Alerts */
.form-feedback {
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all var(--transition-normal);
  animation: fadeIn 0.3s ease;
  margin-top: 0.5rem;
}

.form-feedback.success {
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-feedback.error {
  background-color: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-feedback.info {
  background-color: rgba(2, 132, 199, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.form-feedback-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.form-feedback-content {
  flex: 1;
}

.form-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem 0;
  position: relative;
  z-index: 10;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-avatar {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--accent-primary);
  background: #ffffff;
}

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

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

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

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

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

.back-to-top-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.back-to-top-btn:hover {
  background-color: var(--accent-glow);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   14. Modals (Project & Resume)
   -------------------------------------------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 2rem 1rem;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  padding: 2.25rem;
  animation: modal-appear 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-appear {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.modal-close-btn.static {
  position: static;
}

.modal-close-btn:hover {
  color: #ef4444;
  border-color: #ef4444;
}

/* Project Modal Details */
.modal-project-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-project-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.4rem;
}

.modal-project-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
}

.modal-project-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.modal-body-section {
  margin-bottom: 1.5rem;
}

.modal-body-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.modal-body-section p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
  margin-bottom: 0.85rem;
}

.modal-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.modal-feature-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.modal-feature-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent-tertiary);
  font-size: 0.85rem;
}

.modal-tech-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
}

/* Resume Modal Details */
.resume-modal-card {
  max-width: 880px;
  padding: 0;
  background-color: var(--bg-surface);
}

.resume-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.75rem;
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-color);
}

.resume-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.resume-modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.resume-modal-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.printable-resume-paper {
  padding: 2.5rem;
  background-color: #ffffff;
  color: #1f2937;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  line-height: 1.5;
}

.cv-header {
  border-bottom: 2px solid #0284c7;
  padding-bottom: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.cv-date-tag {
  font-size: 0.78rem;
  color: #6b7280;
  font-style: italic;
  position: absolute;
  top: 0;
  right: 0;
}

.cv-header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.cv-header-text {
  flex-grow: 1;
}

.cv-avatar {
  width: 78px;
  height: 78px;
  border-radius: var(--radius-md);
  object-fit: cover;
  object-position: center top;
  border: 2px solid #0284c7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cv-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.cv-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0284c7;
  margin-bottom: 0.65rem;
}

.cv-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.86rem;
  color: #4b5563;
}

.cv-section {
  margin-bottom: 1.6rem;
}

.cv-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1.5px solid #e5e7eb;
  padding-bottom: 0.35rem;
  margin-bottom: 0.85rem;
}

.cv-summary-text {
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.6;
}

.cv-item {
  margin-bottom: 1.15rem;
}

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

.cv-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 0.3rem;
}

.cv-item-aside {
  font-size: 0.86rem;
  color: #4b5563;
  text-align: right;
}

.cv-desc {
  font-size: 0.9rem;
  color: #4b5563;
  margin-bottom: 0.4rem;
}

.cv-list {
  padding-left: 1.25rem;
  list-style: disc;
}

.cv-list li {
  font-size: 0.88rem;
  color: #374151;
  margin-bottom: 0.25rem;
  line-height: 1.55;
}

.cv-skills-block p {
  font-size: 0.88rem;
  color: #374151;
  margin-bottom: 0.45rem;
  line-height: 1.5;
}

.cv-skills-block strong {
  color: #111827;
}

/* --------------------------------------------------------------------------
   15. Toast Alert
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.35rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  pointer-events: auto;
  animation: toast-in 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.toast-icon {
  color: var(--accent-primary);
  display: flex;
  align-items: center;
}

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

/* --------------------------------------------------------------------------
   16. Print Stylesheet (@media print)
   -------------------------------------------------------------------------- */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }

  .site-header,
  .hero-section,
  .stats-section,
  .about-section,
  .skills-section,
  .experience-section,
  .projects-section,
  .education-section,
  .contact-section,
  .site-footer,
  .bg-glow,
  .modal-overlay:not(.resume-modal-overlay),
  .no-print,
  .toast-container {
    display: none !important;
  }

  .resume-modal-overlay {
    display: block !important;
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
  }

  .resume-modal-card {
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .printable-resume-paper {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    color: #000000 !important;
  }

  .cv-header {
    border-bottom: 2pt solid #000000 !important;
  }

  .cv-name { color: #000000 !important; }
  .cv-title { color: #333333 !important; }
  .cv-section-title {
    border-bottom: 1pt solid #666666 !important;
    color: #000000 !important;
  }

  .cv-item-header strong,
  .cv-skills-block strong {
    color: #000000 !important;
  }
}

/* --------------------------------------------------------------------------
   17. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-visual {
    order: -1;
    display: flex;
    justify-content: center;
  }

  .profile-card {
    max-width: 380px;
  }

  .profile-image-frame {
    height: 400px;
  }

  .badge-top-right {
    top: -10px;
    right: -10px;
  }

  .badge-bottom-left {
    bottom: 70px;
    left: -10px;
  }

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

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

  .info-card {
    position: static;
  }

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

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

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

  .desktop-nav .nav-list {
    gap: 1.15rem;
  }

  .nav-link {
    font-size: 0.88rem;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding: 3.75rem 0;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 5.5vw, 2.25rem);
  }

  /* Header mobile fixes - eliminates horizontal overflow */
  .brand-logo {
    gap: 0.55rem;
  }

  .brand-avatar-wrapper {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .brand-role {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 155px;
  }

  .header-actions {
    gap: 0.5rem;
    flex-shrink: 0;
  }

  /* Hide header resume button on mobile; already accessible inside mobile drawer & hero */
  .header-actions #viewResumeBtn {
    display: none;
  }

  .mobile-nav-drawer {
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    padding: 1.25rem 1rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 2.75rem 0 2.25rem 0;
  }

  .hero-title {
    font-size: clamp(2rem, 6.5vw, 2.85rem);
    word-break: break-word;
  }

  .hero-subtitle-wrapper {
    font-size: 1.1rem;
    gap: 0.5rem;
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .profile-card {
    width: 100%;
    max-width: min(340px, 100%);
    padding: 1rem;
    border-radius: 20px;
  }

  .profile-image-frame {
    height: 350px;
    border-radius: 16px;
  }

  .badge-top-right {
    top: -8px;
    right: 0;
  }

  .badge-bottom-left {
    bottom: 24px;
    left: 0;
  }

  .floating-badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .social-chip {
    max-width: 100%;
  }

  .social-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
  }

  /* Stats Section */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-card {
    padding: 1.15rem 0.85rem;
  }

  .stat-number {
    font-size: 2rem;
  }

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

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

  .cat-header {
    gap: 0.75rem;
    margin-bottom: 1rem;
  }

  .cat-icon {
    width: 40px;
    height: 40px;
  }

  .cat-title {
    font-size: 1.02rem;
  }

  .skills-filter-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .skills-search {
    max-width: 100%;
  }

  .skill-tag {
    font-size: 0.82rem;
    padding: 0.3rem 0.65rem;
    max-width: 100%;
    word-break: break-word;
  }

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

  .project-card-banner {
    height: 110px;
    padding: 1rem;
  }

  .project-card-body {
    padding: 1.25rem 1rem;
  }

  .project-title {
    font-size: 1.18rem;
  }

  .proj-filter-pills {
    gap: 0.45rem;
  }

  .proj-filter-btn {
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
  }

  /* Experience Section */
  .timeline-item {
    grid-template-columns: 20px 1fr;
    gap: 0.85rem;
  }

  .marker-dot {
    width: 14px;
    height: 14px;
    border-width: 3px;
  }

  .marker-line {
    top: 18px;
  }

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

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

  .exp-meta {
    align-items: flex-start;
  }

  .exp-role {
    font-size: 1.1rem;
  }

  .exp-bullets li {
    font-size: 0.88rem;
    padding-left: 1.2rem;
  }

  .tech-pill {
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
  }

  /* About Section */
  .about-pillars {
    gap: 0.85rem;
  }

  .pillar-card {
    padding: 1rem;
    gap: 0.85rem;
  }

  .pillar-icon {
    width: 38px;
    height: 38px;
  }

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

  /* Contact Section */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  /* Modals */
  .modal-card {
    padding: 1.25rem 1rem;
    max-height: 85vh;
  }

  .resume-modal-header {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .resume-modal-controls {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
  }

  .printable-resume-paper {
    padding: 1.25rem 1rem;
  }

  .cv-header-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .cv-avatar {
    width: 60px;
    height: 60px;
  }

  .cv-name {
    font-size: 1.6rem;
  }

  .cv-date-tag {
    position: static;
    display: block;
    margin-bottom: 0.5rem;
  }

  .cv-item-header {
    flex-direction: column;
    gap: 0.2rem;
  }

  .cv-item-aside {
    text-align: left;
  }

  /* Footer */
  .site-footer {
    padding: 2.25rem 0 1.5rem 0;
  }

  .footer-links {
    gap: 1rem;
  }

  .footer-bottom {
    flex-direction: column-reverse;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .brand-role {
    max-width: 125px;
  }

  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .cv-contact-bar {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (max-width: 360px) {
  .brand-role {
    display: none;
  }

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

/* --------------------------------------------------------------------------
   18. Core Web Vitals Performance Optimization
   -------------------------------------------------------------------------- */
@supports (content-visibility: auto) {
  .experience-section,
  .projects-section,
  .education-section,
  .contact-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 700px;
  }
}
