/* ==============================================================================
   NIROB PORTFOLIO - MODERN MINIMAL DESIGN SYSTEM
   Clean, modern, minimal aesthetic with high contrast & one primary accent
   ============================================================================== */

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

/* --- Root Design Tokens (Light Mode Default) --- */
:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Accent Color (Single vibrant royal indigo) */
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: rgba(79, 70, 229, 0.08);
  --accent-border: rgba(79, 70, 229, 0.2);
  --accent-glow: rgba(79, 70, 229, 0.25);
  --accent-contrast: #ffffff;

  /* Surfaces & Backgrounds */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --card-bg: rgba(255, 255, 255, 0.92);
  --nav-bg: rgba(248, 250, 252, 0.88);

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Borders & Shadows */
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --card-shadow-hover: 0 20px 32px -4px rgba(15, 23, 42, 0.12), 0 8px 12px -2px rgba(15, 23, 42, 0.05);

  /* Spacing & Layout */
  --container-max: 1200px;
  --header-height: 76px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Dark Mode Theme Overrides --- */
[data-theme="dark"] {
  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-light: rgba(129, 140, 248, 0.14);
  --accent-border: rgba(129, 140, 248, 0.3);
  --accent-glow: rgba(129, 140, 248, 0.35);
  --accent-contrast: #0b0f19;

  --bg-primary: #0a0d16;
  --bg-secondary: #0f1424;
  --bg-tertiary: #161c2e;
  --card-bg: rgba(15, 20, 36, 0.82);
  --nav-bg: rgba(10, 13, 22, 0.88);

  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --card-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.45);
  --card-shadow-hover: 0 20px 40px -4px rgba(0, 0, 0, 0.7), 0 0 25px rgba(129, 140, 248, 0.15);
}

/* --- CSS Reset & Base Elements --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  line-height: 1.65;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

/* --- Layout Utility Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- Section Spacing & Headers --- */
.section {
  padding: 80px 0;
  position: relative;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

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

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

/* --- Fixed Top Navigation Bar with Blur on Scroll --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(10, 13, 22, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition-normal), backdrop-filter var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.site-header.scrolled {
  background: rgba(10, 13, 22, 0.94) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(248, 250, 252, 0.94) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

main {
  padding-top: var(--header-height);
}

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

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

.nav-logo-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #9333ea);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.nav-logo span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo .logo-sub {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 4px;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover {
  color: #818cf8;
}

[data-theme="light"] .nav-link:hover {
  color: #4f46e5;
}

/* Active page link: clear indigo text and underline */
.nav-link.active {
  color: #818cf8 !important;
  font-weight: 700;
}

[data-theme="light"] .nav-link.active {
  color: #4f46e5 !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: #818cf8;
  border-radius: var(--radius-full);
}

[data-theme="light"] .nav-link.active::after {
  background: #4f46e5;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--bg-primary);
  padding: 30px 24px;
  border-top: 1px solid var(--border-color);
  flex-direction: column;
  gap: 20px;
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.mobile-drawer.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-drawer .nav-link {
  font-size: 1.25rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* --- Clickable Elements & Keyboard Focus Outlines --- */
:focus-visible {
  outline: 2px solid #818cf8 !important;
  outline-offset: 2px !important;
}

[data-theme="light"] :focus-visible {
  outline: 2px solid #4f46e5 !important;
  outline-offset: 2px !important;
}

a,
button,
[role="button"],
.btn,
.nav-link,
.theme-toggle,
.mobile-nav-toggle,
.filter-btn,
.tool-card,
.project-card,
.cert-card,
.hero-social-btn,
.footer-back-to-top,
.footer-quick-link,
.modal-close-btn,
.lightbox-zoom-close {
  cursor: pointer;
}

/* --- Common Buttons (At least 48px tall) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
  color: #ffffff;
}

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

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* --- HERO SECTION (Home Page) --- */
.hero-section {
  position: relative;
  padding: 60px 0 85px;
  overflow: hidden;
}

/* Soft dark gradient overlay behind the text column (fading to transparent toward photo) */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(90deg, 
    #0a0d16 0%, 
    rgba(10, 13, 22, 0.94) 36%, 
    rgba(10, 13, 22, 0.74) 52%, 
    rgba(10, 13, 22, 0.22) 75%, 
    rgba(10, 13, 22, 0) 100%
  );
}

[data-theme="light"] .hero-section::before {
  background: linear-gradient(90deg, 
    #f8fafc 0%, 
    rgba(248, 250, 252, 0.95) 36%, 
    rgba(248, 250, 252, 0.74) 52%, 
    rgba(248, 250, 252, 0.22) 75%, 
    rgba(248, 250, 252, 0) 100%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

/* --- HERO BADGE (above main heading) --- */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.12) !important;
  border: 1px solid rgba(129, 140, 248, 0.35) !important;
  font-size: 14px;
  font-weight: 600;
  color: #818cf8 !important;
  margin-bottom: 22px;
  line-height: 1.4;
  cursor: default;
  user-select: none;
  transition: none !important;
}

.hero-status-pill:hover {
  background: rgba(99, 102, 241, 0.12) !important;
  border-color: rgba(129, 140, 248, 0.35) !important;
  color: #818cf8 !important;
  transform: none !important;
  box-shadow: none !important;
}

/* GREEN DOT & LIVE PULSE RING ANIMATION */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  flex-shrink: 0;
}

/* Expanding pulse ring behind the dot: scale 1 -> 2.5, fading 60% -> 0% every 1.5s */
.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #22c55e;
  transform: scale(1);
  opacity: 0.6;
  animation: greenPulseRing 1.5s ease-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes greenPulseRing {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Accessibility sr-only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 2-Line Typewriter Hero Heading with line-height 1.1 and 24px bottom gap */
.typewriter-hero-heading {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px; /* Exactly 24px gap between heading and paragraph */
  color: #ffffff;
}

[data-theme="light"] .typewriter-hero-heading {
  color: #0f172a;
}

.heading-visual {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.1;
}

.hero-line {
  display: block;
  line-height: 1.1;
  white-space: nowrap;
}

/* Line 1: Pure white (#ffffff) with name highlight in light blue (#60a5fa) */
.hero-line-1 {
  color: #ffffff;
  font-weight: 800;
}

[data-theme="light"] .hero-line-1 {
  color: #0f172a;
}

.hero-name-highlight {
  color: #60a5fa !important;
  -webkit-text-fill-color: #60a5fa;
  font-weight: 800;
}

[data-theme="light"] .hero-name-highlight {
  color: #2563eb !important;
  -webkit-text-fill-color: #2563eb;
}

/* Line 2: Animated typewriter role */
.hero-line-2 {
  color: #ffffff;
  font-weight: 800;
}

[data-theme="light"] .hero-line-2 {
  color: #0f172a;
}

/* Reserved height so the page below NEVER jumps while text changes */
.typewriter-role-wrapper {
  display: inline-flex;
  align-items: center;
  min-height: 1.18em;
  height: 1.18em;
  line-height: 1.1;
}

.typewriter-output {
  display: inline-block;
  white-space: nowrap;
  color: #ffffff;
  font-weight: 800;
}

[data-theme="light"] .typewriter-output {
  color: #0f172a;
}

/* Thin blinking vertical cursor in light blue */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background-color: #60a5fa;
  margin-left: 6px;
  border-radius: 2px;
  vertical-align: middle;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.7);
  animation: cursorBlink 1s step-start infinite;
}

[data-theme="light"] .typewriter-cursor {
  background-color: #2563eb;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}

@keyframes cursorBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Paragraph text: light gray-blue (#cbd5e1), 18px (17px mobile), line-height 1.7, max 60ch */
.hero-intro {
  font-size: 18px;
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: 28px;
  text-shadow: 0 1px 12px rgba(10, 13, 22, 0.8);
}

[data-theme="light"] .hero-intro {
  color: #334155;
  text-shadow: none;
}

/* --- HERO BUTTON ROW (at least 48px tall with clear focus outlines) --- */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* 1. Primary Button: solid blue/indigo gradient with soft glow */
.btn-hero-primary {
  min-height: 48px;
  background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 13px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.4);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-hero-primary:hover {
  transform: translateY(-2.5px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 26px rgba(79, 70, 229, 0.6);
  color: #ffffff !important;
}

/* 2 & 3. Dark rounded buttons with thin border */
.btn-hero-dark {
  min-height: 48px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 13px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

[data-theme="light"] .btn-hero-dark {
  background: #0f172a;
  color: #ffffff !important;
  border: 1px solid #334155;
}

.btn-hero-dark:hover {
  transform: translateY(-2.5px);
  border-color: #60a5fa;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
  background: rgba(15, 23, 42, 0.92);
}

[data-theme="light"] .btn-hero-dark:hover {
  background: #1e293b;
  border-color: #3b82f6;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.25);
}

.btn-cv-icon {
  flex-shrink: 0;
  stroke: currentColor;
}

/* --- FULL-WIDTH CONTACT BAR CONTAINER --- */
.hero-bottom-bar-wrap {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 14px;
}

/* --- THIN DIVIDER LINE --- */
.hero-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(99, 102, 241, 0.35) 50%, rgba(255, 255, 255, 0.05) 100%);
  margin: 0 0 20px 0;
}

[data-theme="light"] .hero-divider {
  background: linear-gradient(90deg, #e2e8f0 0%, rgba(79, 70, 229, 0.3) 50%, transparent 100%);
}

/* --- HERO CONTACT BAR (darker translucent background with backdrop blur) --- */
.hero-contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 20px;
  flex-wrap: wrap;
  background: rgba(10, 13, 22, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 22px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .hero-contact-bar {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.hero-contact-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.hero-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #cbd5e1;
  font-weight: 500;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(10, 13, 22, 0.8);
}

[data-theme="light"] .hero-contact-item {
  color: #334155;
  text-shadow: none;
}

.hero-contact-icon {
  color: #818cf8 !important;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}

.hero-contact-link {
  color: #cbd5e1;
  transition: color var(--transition-fast);
  cursor: pointer;
  text-shadow: 0 1px 12px rgba(10, 13, 22, 0.8);
}

.hero-contact-link:hover {
  color: #ffffff;
}

[data-theme="light"] .hero-contact-link {
  color: #334155;
  text-shadow: none;
}

[data-theme="light"] .hero-contact-link:hover {
  color: #2563eb;
}

/* Square rounded social icon buttons with thin border */
.hero-social-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-social-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all var(--transition-fast);
  cursor: pointer;
}

[data-theme="light"] .hero-social-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #64748b;
}

.hero-social-btn:hover {
  transform: translateY(-3px);
  border-color: #6366f1;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.45);
}

[data-theme="light"] .hero-social-btn:hover {
  background: rgba(79, 70, 229, 0.08);
  border-color: #4f46e5;
  color: #4f46e5;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

/* Tooltip on Social Icon Hover */
.hero-social-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #0f172a;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  z-index: 30;
}

.hero-social-btn::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: #0f172a transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 30;
}

.hero-social-btn:hover::after,
.hero-social-btn:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ==============================================================================
   PROFILE PHOTO FRAME (hero, right side)
   - Large rounded-square frame (border radius 32px)
   - Thin rotating gradient border (blue #3b82f6 to purple #a855f7)
   - Soft glowing halo (blue on left/bottom, purple on top-right, dark navy background #0a0d16)
   - Small circular lightning bolt badge with gentle pulse
   - Fades in with slight scale-up on page load
   - 6-8px floating animation
   - 3D mouse tilt on hover & brighter glow
   ============================================================================== */

@property --border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes rotateBorderAngle {
  0% { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1200px;
}

/* Soft glowing halo behind the frame */
.hero-halo-glow {
  position: absolute;
  width: 108%;
  height: 108%;
  top: -4%;
  left: -4%;
  border-radius: 46px;
  background: 
    radial-gradient(circle at 85% 15%, rgba(168, 85, 247, 0.55) 0%, transparent 62%),
    radial-gradient(circle at 15% 85%, rgba(59, 130, 246, 0.55) 0%, transparent 62%);
  filter: blur(48px);
  z-index: 0;
  pointer-events: none;
  animation: haloBreathe 5.5s ease-in-out infinite alternate;
  transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

@keyframes haloBreathe {
  0% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  100% {
    opacity: 0.95;
    transform: scale(1.06);
  }
}

.hero-visual:hover .hero-halo-glow {
  filter: blur(58px);
  opacity: 1;
  transform: scale(1.12);
}

/* Rounded-square outer frame container */
.hero-profile-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  padding: 3px; /* Thin gradient border */
  background: conic-gradient(from var(--border-angle, 0deg), #3b82f6 0%, #a855f7 40%, #3b82f6 75%, #a855f7 100%);
  animation: frameEntrance 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             frameFloat 6.5s ease-in-out infinite 0.85s,
             rotateBorderAngle 7s linear infinite;
  box-shadow: 0 16px 45px -10px rgba(10, 13, 22, 0.7);
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  will-change: transform;
}

@keyframes frameEntrance {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.hero-profile-frame:hover {
  box-shadow: 0 25px 60px -12px rgba(10, 13, 22, 0.85), 0 0 35px rgba(168, 85, 247, 0.25);
}

/* Inner card surface */
.hero-photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 29px;
  overflow: hidden;
  background: #0a0d16;
  position: relative;
  z-index: 2;
}

/* Black & white portrait photo */
.hero-bw-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(100%) contrast(1.08) brightness(0.98);
  display: block;
  border-radius: 29px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.hero-profile-frame:hover .hero-bw-portrait {
  transform: scale(1.035);
  filter: grayscale(100%) contrast(1.14) brightness(1.02);
}

/* Small circular badge overlapping the bottom-right corner */
.hero-corner-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
  border: 4px solid #0a0d16; /* Dark ring around it */
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 16px rgba(168, 85, 247, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  animation: badgePulse 2.8s ease-in-out infinite;
  pointer-events: none;
}

.badge-bolt-icon {
  width: 22px;
  height: 22px;
  fill: #ffffff;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.6));
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6), 0 0 12px rgba(168, 85, 247, 0.4);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.75), 0 0 24px rgba(59, 130, 246, 0.8), 0 0 32px rgba(168, 85, 247, 0.7);
  }
}

/* --- STATUS PILL OVERLAPPING BOTTOM OF PROFILE PHOTO --- */
.hero-status-tag {
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(10, 13, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 12px rgba(16, 185, 129, 0.18);
  z-index: 6;
  white-space: nowrap;
  pointer-events: none;
}

.status-green-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: greenDotGlow 2.2s infinite ease-in-out;
}

@keyframes greenDotGlow {
  0%, 100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.75);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0), 0 0 14px rgba(16, 185, 129, 0.9);
  }
}

.status-tag-text {
  font-size: 13px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: 0.02em;
}

/* --- PRIMARY CREATIVE & DESIGN TOOLS & ACADEMIC TOOLS (INFINITE MARQUEE) --- */
.tools-section,
.tools-software-section {
  padding: 85px 0 95px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .tools-section,
[data-theme="dark"] .tools-software-section {
  background: #090e1a;
}

.tools-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

/* Full-width marquee container with edge fade masks */
.tools-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 16px 0;
  cursor: grab;
  /* Left and right edges fade into the background */
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.tools-marquee-container:active {
  cursor: grabbing;
}

/* Single horizontal scrolling row */
.tools-marquee-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  will-change: transform;
  /* Continuous loop from RIGHT to LEFT: from 0 to -50% */
  animation: toolsMarqueeScroll 35s linear infinite;
}

#academic-tools-marquee-track {
  animation: toolsMarqueeScroll 50s linear infinite;
}

@keyframes toolsMarqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pause marquee when mouse hovers over the track (fine pointer only to avoid sticky touch hover) */
@media (hover: hover) and (pointer: fine) {
  .tools-marquee-container:hover .tools-marquee-track:not(.is-running) {
    animation-play-state: paused;
  }
}

.tools-marquee-track.is-paused {
  animation-play-state: paused !important;
}

.tools-marquee-track.is-running {
  animation-play-state: running !important;
}

/* Card Design:
   Dark rounded card (border radius about 24px) with a thin subtle border, on the dark navy background (#0d1424) */
.tool-card {
  width: 360px;
  min-width: 360px;
  max-width: 360px;
  flex-shrink: 0;
  background: #0d1424;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  cursor: default;
  user-select: none;
}

/* Hover: lift slightly, with an indigo border glow */
.tool-card:hover {
  transform: translateY(-5px);
  border-color: #6366f1;
  background: #111a30;
  box-shadow: 0 14px 32px -4px rgba(99, 102, 241, 0.35), 0 0 20px rgba(99, 102, 241, 0.22);
}

[data-theme="light"] .tool-card {
  background: #0d1424;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Small rounded square icon box on the left with the tool's logo */
.tool-icon-wrapper {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.tool-card:hover .tool-icon-wrapper {
  transform: scale(1.08);
}

.tool-icon-wrapper svg {
  width: 32px;
  height: 32px;
  display: block;
}

.tool-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

/* Bold white tool name */
.tool-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* Muted gray description below it */
.tool-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- FEATURED PROJECTS & CARDS --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent);
}

.project-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-tertiary);
  overflow: hidden;
}

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

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

.project-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.project-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-card-client {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.project-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.project-tools-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tool-tag {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.project-view-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

/* --- FILTER TABS (Design & Certificates) --- */
.filter-tabs-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

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

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

.filter-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* --- MODAL / DETAIL LIGHTBOX --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--card-shadow-hover);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: sticky;
  top: 16px;
  right: 16px;
  float: right;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.modal-hero-image-wrap {
  width: 100%;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  cursor: zoom-in;
  position: relative;
}

.modal-hero-image-wrap img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  margin: 0 auto;
}

.modal-hero-image-wrap::after {
  content: 'Click image to zoom';
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  pointer-events: none;
}

.modal-body {
  padding: 0 32px 32px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 20px 0;
}

.meta-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.meta-field span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-detail-block {
  margin-bottom: 22px;
}

.modal-detail-block h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-detail-block h4::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
}

.modal-detail-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Lightbox Full Zoom View */
.lightbox-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.94);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.lightbox-zoom-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-zoom-overlay img {
  max-width: 95vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.lightbox-zoom-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background var(--transition-fast);
}

.lightbox-zoom-close:hover {
  background: var(--accent);
}

/* --- EDUCATION BACKGROUND STYLES --- */
.education-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 32px !important;
  margin-bottom: 60px !important;
  align-items: stretch !important;
}

.education-card {
  background: #0d1424 !important;
  background: rgba(13, 20, 36, 0.92) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 20px !important;
  padding: 32px 30px !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(56, 189, 248, 0.08) !important;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast) !important;
  position: relative !important;
  backdrop-filter: blur(14px) !important;
}

.education-card:hover {
  transform: translateY(-5px) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 18px 42px -6px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.22) !important;
}

.education-card-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-bottom: 20px !important;
}

.education-icon-box {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25) !important;
  flex-shrink: 0 !important;
}

.education-status-badges {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.edu-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  padding: 6px 14px !important;
  border-radius: 9999px !important;
}

.edu-badge-group {
  background: rgba(168, 85, 247, 0.14) !important;
  color: #c084fc !important;
  border: 1px solid rgba(168, 85, 247, 0.35) !important;
}

.edu-badge-period {
  background: rgba(56, 189, 248, 0.14) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
}

.education-degree-title {
  font-size: 1.28rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 8px !important;
  line-height: 1.35 !important;
}

.education-institution {
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  color: #38bdf8 !important;
  margin-bottom: 8px !important;
}

.education-location {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 0.85rem !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  margin-bottom: 18px !important;
}

.education-location svg {
  color: #64748b !important;
  flex-shrink: 0 !important;
}

.education-details-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 22px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  flex-grow: 1 !important;
}

.education-details-list li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: 0.92rem !important;
  color: #cbd5e1 !important;
  line-height: 1.55 !important;
}

.education-details-list .bullet-check {
  flex-shrink: 0 !important;
  margin-top: 3px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: rgba(34, 197, 94, 0.15) !important;
  border: 1px solid rgba(34, 197, 94, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.3) !important;
}

.education-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.education-tags .tag-pill {
  display: inline-block !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
  transition: all 0.2s ease !important;
}

@media (max-width: 820px) {
  .education-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* Light Theme Adaptations for Education */
[data-theme="light"] .education-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .education-card:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.14) !important;
}

[data-theme="light"] .education-icon-box {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  color: #0284c7 !important;
}

[data-theme="light"] .education-degree-title {
  color: #0f172a !important;
}

[data-theme="light"] .education-institution {
  color: #0284c7 !important;
}

[data-theme="light"] .education-details-list li {
  color: #334155 !important;
}

[data-theme="light"] .edu-badge-period {
  background: rgba(2, 132, 199, 0.08) !important;
  color: #0284c7 !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
}

[data-theme="light"] .education-tags {
  border-top-color: #e2e8f0 !important;
}

/* --- ACADEMIC PROJECTS STYLES --- */
.academic-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.academic-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.academic-card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
  box-shadow: 0 16px 36px -8px rgba(59, 130, 246, 0.25), 0 0 18px rgba(59, 130, 246, 0.12);
}

.academic-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.3);
  line-height: 1.35;
}

.course-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  flex-shrink: 0;
}

.course-badge-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.course-badge-text {
  letter-spacing: -0.01em;
}

.academic-semester-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.academic-semester-badge svg {
  color: #94a3b8;
  flex-shrink: 0;
}

[data-theme="light"] .course-badge {
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.25);
}

[data-theme="light"] .course-badge-icon {
  color: #4f46e5;
}

[data-theme="light"] .academic-semester-badge {
  color: #475569;
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .academic-semester-badge svg {
  color: #475569;
}

.academic-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.academic-card-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.academic-card-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.academic-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: #cbd5e1;
  border: 1px solid var(--border-color);
}

[data-theme="light"] .tech-pill {
  color: #334155;
}

.academic-card-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
}

.academic-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.academic-link-btn:hover {
  text-decoration: underline;
}

.academic-linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #60a5fa !important;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.35);
  padding: 7px 15px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  text-decoration: none !important;
}

.academic-linkedin-btn:hover {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
  text-decoration: none !important;
}

[data-theme="light"] .academic-linkedin-btn {
  color: #1d4ed8 !important;
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .academic-linkedin-btn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff !important;
}

/* ==============================================================================
   ACTIVITY TREE & TIMELINE (Leadership & Extracurricular Experience)
   ============================================================================== */

/* Filter Tabs */
.timeline-filter-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 5;
}

.timeline-filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.7);
  padding: 6px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.timeline-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.timeline-filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.timeline-filter-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(129, 140, 248, 0.22));
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

/* Tree Container */
.timeline-tree-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0 60px;
}

/* Glowing Center Spine */
.timeline-tree-spine {
  position: absolute;
  top: 15px;
  bottom: 25px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #38bdf8 0%, #818cf8 35%, #c084fc 70%, rgba(56, 189, 248, 0.3) 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.55), 0 0 24px rgba(129, 140, 248, 0.3);
  border-radius: 3px;
  z-index: 1;
}

.timeline-tree-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: relative;
  z-index: 2;
}

/* Tree Item (Desktop 3-Column Alternating Layout) */
.timeline-tree-item {
  display: grid;
  grid-template-columns: 1fr 72px 1fr;
  align-items: start;
  position: relative;
  width: 100%;
}

.timeline-slot {
  display: flex;
  position: relative;
}

.timeline-slot-left {
  justify-content: flex-end;
  padding-right: 28px;
}

.timeline-slot-center {
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.timeline-slot-right {
  justify-content: flex-start;
  padding-left: 28px;
}

.timeline-mobile-view {
  display: none;
}

/* Horizontal Connector Lines on Desktop */
.timeline-tree-item.item-left .timeline-slot-left .timeline-tree-card-wrap::after {
  content: '';
  position: absolute;
  right: -28px;
  top: 36px;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), rgba(56, 189, 248, 0.8));
}

.timeline-tree-item.item-left .timeline-slot-right .timeline-tree-date-wrap::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 36px;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.8), rgba(56, 189, 248, 0.15));
}

.timeline-tree-item.item-right .timeline-slot-left .timeline-tree-date-wrap::after {
  content: '';
  position: absolute;
  right: -28px;
  top: 36px;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.15), rgba(56, 189, 248, 0.8));
}

.timeline-tree-item.item-right .timeline-slot-right .timeline-tree-card-wrap::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 36px;
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.8), rgba(56, 189, 248, 0.15));
}

/* Glowing Circular Spine Node */
.timeline-tree-node-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  position: relative;
  z-index: 3;
}

.timeline-tree-node {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #090e1a;
  border: 2px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6), inset 0 0 8px rgba(56, 189, 248, 0.2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: default;
}

.timeline-tree-node:hover {
  transform: scale(1.15);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.9), inset 0 0 12px rgba(56, 189, 248, 0.4);
}

.timeline-tree-node.node-internship {
  border-color: #38bdf8;
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.6);
}

.timeline-tree-node.node-leadership {
  border-color: #fbbf24;
  color: #fbbf24;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.6);
}

.timeline-tree-node.node-design {
  border-color: #c084fc;
  color: #c084fc;
  box-shadow: 0 0 16px rgba(192, 132, 252, 0.6);
}

.timeline-tree-node.node-volunteering {
  border-color: #34d399;
  color: #34d399;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.6);
}

/* Date Pill Opposite the Card */
.timeline-tree-date-wrap {
  display: flex;
  align-items: center;
  margin-top: 16px;
  width: 100%;
  position: relative;
}

.timeline-slot-left .timeline-tree-date-wrap {
  justify-content: flex-end;
}

.timeline-slot-right .timeline-tree-date-wrap {
  justify-content: flex-start;
}

.timeline-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(12, 19, 35, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-size: 0.88rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.timeline-date-pill .date-icon {
  color: #38bdf8;
  flex-shrink: 0;
}

/* Activity Card */
.timeline-tree-card-wrap {
  width: 100%;
  max-width: 530px;
  position: relative;
}

.timeline-slot-left .timeline-tree-card-wrap {
  margin-left: auto;
}

.timeline-slot-right .timeline-tree-card-wrap {
  margin-right: auto;
}

.timeline-tree-card {
  background: rgba(13, 20, 36, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 20px;
  padding: 24px 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.timeline-tree-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(56, 189, 248, 0.18);
}

/* Badges Row */
.timeline-tree-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-category.badge-internship {
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.badge-category.badge-leadership {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.badge-category.badge-design {
  background: rgba(192, 132, 252, 0.12);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.35);
}

.badge-category.badge-volunteering {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.badge-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(129, 140, 248, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.3);
}

.badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Title, Organization, Location */
.timeline-tree-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 6px;
}

.timeline-tree-card-org {
  font-size: 0.98rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 6px;
}

.timeline-tree-card-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 14px;
}

.timeline-tree-card-loc svg {
  color: #64748b;
  flex-shrink: 0;
}

/* Green Checkmark Bullets */
.timeline-tree-card-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-tree-card-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.55;
}

.bullet-check {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

/* Tag Pills */
.timeline-tree-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tag-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  transition: all 0.2s ease;
}

.timeline-tree-card:hover .tag-pill {
  border-color: rgba(56, 189, 248, 0.2);
  color: #cbd5e1;
}

/* Empty message */
.timeline-empty-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 900px) {
  .timeline-tree-spine {
    left: 24px;
    transform: none;
    top: 10px;
    bottom: 20px;
  }

  .timeline-tree-list {
    gap: 36px;
  }

  .timeline-tree-item {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 58px;
    width: 100%;
  }

  .timeline-slot-left,
  .timeline-slot-right {
    display: none !important;
  }

  .timeline-slot-center {
    position: absolute;
    left: 24px;
    top: 0;
    transform: translateX(-50%);
    margin-top: 0;
    z-index: 3;
  }

  .timeline-tree-node {
    width: 38px;
    height: 38px;
  }

  .timeline-mobile-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .timeline-tree-card-wrap {
    max-width: 100%;
  }

  .timeline-date-pill {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  .timeline-tree-card {
    padding: 20px;
    border-radius: 16px;
  }

  .timeline-tree-card-title {
    font-size: 1.15rem;
  }

  .timeline-filter-tabs {
    border-radius: 18px;
    padding: 4px;
  }

  .timeline-filter-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
}

/* Light Theme Adaptations */
[data-theme="light"] .timeline-filter-tabs {
  background: #f1f5f9;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .timeline-filter-btn {
  color: #475569;
}

[data-theme="light"] .timeline-filter-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #0f172a;
}

[data-theme="light"] .timeline-filter-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

[data-theme="light"] .timeline-tree-spine {
  background: linear-gradient(180deg, #0284c7 0%, #6366f1 35%, #a855f7 70%, rgba(2, 132, 199, 0.25) 100%);
  box-shadow: 0 0 10px rgba(2, 132, 199, 0.35);
}

[data-theme="light"] .timeline-tree-node {
  background: #ffffff;
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.35);
}

[data-theme="light"] .timeline-date-pill {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0284c7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .timeline-date-pill .date-icon {
  color: #0284c7;
}

[data-theme="light"] .timeline-tree-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .timeline-tree-card:hover {
  border-color: #0284c7;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1), 0 0 20px rgba(2, 132, 199, 0.15);
}

[data-theme="light"] .timeline-tree-card-title {
  color: #0f172a;
}

[data-theme="light"] .timeline-tree-card-org {
  color: #0284c7;
}

[data-theme="light"] .timeline-tree-card-bullets li {
  color: #334155;
}

[data-theme="light"] .tag-pill {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .timeline-tree-item.item-left .timeline-slot-left .timeline-tree-card-wrap::after,
[data-theme="light"] .timeline-tree-item.item-left .timeline-slot-right .timeline-tree-date-wrap::before,
[data-theme="light"] .timeline-tree-item.item-right .timeline-slot-left .timeline-tree-date-wrap::after,
[data-theme="light"] .timeline-tree-item.item-right .timeline-slot-right .timeline-tree-card-wrap::before {
  background: #cbd5e1;
}

/* --- CERTIFICATES & CREDENTIALS SECTION (Modern Reference Design) --- */
.certs-header-wrapper {
  margin-bottom: 28px;
}

.certs-filter-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.certs-filter-btn {
  background: rgba(13, 20, 36, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 9999px;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  user-select: none;
}

.certs-filter-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
}

.certs-filter-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.28);
}

.certs-filter-count {
  background: rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  min-width: 18px;
  text-align: center;
}

.certs-filter-btn.active .certs-filter-count {
  background: #38bdf8;
  color: #090e1a;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.cert-card {
  background: rgba(13, 20, 36, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.cert-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 28px rgba(56, 189, 248, 0.18);
}

.cert-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #060a12;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cert-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  user-select: none;
}

.cert-card:hover .cert-image {
  transform: scale(1.035);
}

.cert-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 26, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cert-frame:hover .cert-overlay {
  opacity: 1;
}

.cert-inspect-pill {
  background: rgba(13, 20, 36, 0.95);
  border: 1px solid #38bdf8;
  border-radius: 9999px;
  padding: 8px 18px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.cert-frame:hover .cert-inspect-pill {
  transform: translateY(0);
}

.cert-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cert-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cert-issuer-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.02em;
}

.cert-date-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.cert-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin: 0 0 10px;
}

.cert-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 14px;
}

.cert-credential-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.80rem;
  margin-bottom: 14px;
}

.cert-credential-label {
  color: #64748b;
  font-weight: 600;
}

.cert-credential-code {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #e2e8f0;
}

.cert-skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.cert-skill-pill {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #cbd5e1;
}

.cert-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cert-inspect-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #38bdf8;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.cert-inspect-link-btn:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.cert-verify-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.80rem;
  font-weight: 700;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cert-verify-link-btn:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  .certs-grid {
    grid-template-columns: 1fr;
  }
}
  gap: 12px;
}

/* --- ACHIEVEMENTS SHOWCASE HERO SLIDER --- */
.achievements-section {
  padding: 70px 0 60px;
  position: relative;
}

.achievements-header {
  margin-bottom: 36px;
}

.achievements-showcase-wrapper {
  max-width: 1180px;
  margin: 0 auto;
}

.achievements-hero-viewport {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: 24px;
  overflow: hidden;
  background: #090e1a;
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(56, 189, 248, 0.1);
}

.achievements-slides-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.achievement-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.03);
  z-index: 1;
  pointer-events: none;
}

.achievement-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
  pointer-events: auto;
}

.achievement-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
}

.achievement-slide-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(9, 14, 26, 0.98) 0%, rgba(9, 14, 26, 0.8) 42%, rgba(9, 14, 26, 0.35) 75%, rgba(9, 14, 26, 0.6) 100%),
    linear-gradient(to right, rgba(9, 14, 26, 0.96) 0%, rgba(9, 14, 26, 0.6) 55%, transparent 100%);
}

.achievement-slide-content {
  position: absolute;
  bottom: 34px;
  left: 40px;
  right: 40px;
  z-index: 3;
  max-width: 760px;
}

.achievement-slide.active .achievement-slide-content {
  animation: achContentFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ach-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ach-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.ach-date-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.ach-slide-title {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.ach-slide-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 16px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.ach-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #38bdf8;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Top Right Controls */
.achievements-top-controls {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.achievements-counter-badge {
  background: rgba(13, 20, 36, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 9999px;
  color: #f8fafc;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.achievements-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(13, 20, 36, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.achievements-ctrl-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
  transform: scale(1.05);
}

/* Nav Arrows */
.achievements-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 20, 36, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 10;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.achievements-nav-arrow:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.achievements-nav-prev {
  left: 24px;
}

.achievements-nav-next {
  right: 24px;
}

/* Progress Bar */
.achievements-progress-bar-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.achievements-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  transition: width 0.1s linear;
}

/* Bottom Thumbnails Navigation Grid */
.achievements-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  width: 100%;
}

.ach-thumb-card {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  background: rgba(13, 20, 36, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.ach-thumb-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(17, 26, 48, 0.95);
}

.ach-thumb-card.active {
  border-color: #38bdf8;
  background: rgba(17, 26, 48, 0.98);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.28), inset 0 0 12px rgba(56, 189, 248, 0.08);
}

.ach-thumb-img {
  width: 52px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.ach-thumb-card.active .ach-thumb-img {
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.ach-thumb-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  min-width: 0;
  flex: 1;
}

.ach-thumb-date {
  font-size: 0.70rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ach-thumb-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

@media (max-width: 900px) {
  .achievements-hero-viewport {
    height: 480px;
  }
  .ach-slide-title {
    font-size: 1.65rem;
  }
  .achievements-thumbnails-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .achievements-hero-viewport {
    height: 440px;
  }
  .achievement-slide-content {
    left: 20px;
    right: 20px;
    bottom: 24px;
  }
  .ach-slide-title {
    font-size: 1.35rem;
  }
  .ach-slide-desc {
    font-size: 0.88rem;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .achievements-nav-arrow {
    display: none;
  }
  .achievements-thumbnails-grid {
    grid-template-columns: 1fr;
  }
}

/* Achievements List */
.achievements-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.achievement-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  transition: all var(--transition-fast);
}

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

.achievement-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.achievement-content {
  flex-grow: 1;
}

.achievement-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

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

.achievement-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.achievement-org {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

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

/* --- CONTACT SECTION STYLES --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 50px;
  align-items: flex-start;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--card-shadow);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-info span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.contact-social-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Form inputs */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

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

/* --- FOOTER (MATCHING REFERENCE SCREENSHOT - ALL PAGES) --- */
.site-footer {
  margin-top: auto;
  background: #090d1a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 68px 0 0;
  position: relative;
  z-index: 10;
  color: var(--text-secondary);
}

.footer-grid-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.15fr;
  gap: 56px;
  padding-bottom: 54px;
}

/* LEFT COLUMN (Brand) */
.footer-col-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-brand-logo:hover {
  opacity: 0.92;
}

.footer-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.38);
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.footer-brand-name {
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.015em;
}

.footer-brand-role {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #818cf8;
  margin-top: 4px;
}

.footer-bio {
  font-size: 0.93rem;
  line-height: 1.62;
  color: #94a3b8;
  max-width: 420px;
  margin-top: 20px;
}

/* MIDDLE & RIGHT COLUMNS (Headings & Lists) */
.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links-list a:hover {
  color: #ffffff;
}

/* Quick links with small indigo icons */
.footer-quick-link .footer-quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  flex-shrink: 0;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-quick-link:hover .footer-quick-icon {
  color: #a5b4fc;
}

/* BOTTOM BAR */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0 26px;
  background: transparent;
}

.footer-bottom-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright-text {
  font-size: 0.88rem;
  color: #94a3b8;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-built-with {
  font-size: 0.88rem;
  color: #94a3b8;
}

.footer-back-to-top {
  font-size: 0.86rem;
  font-weight: 600;
  color: #818cf8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.2);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.footer-back-to-top:hover {
  background: rgba(129, 140, 248, 0.16);
  color: #ffffff;
  border-color: rgba(129, 140, 248, 0.4);
  transform: translateY(-2px);
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer-grid-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }

  .footer-bio {
    max-width: 100%;
  }

  .footer-bottom-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-bottom-right {
    flex-direction: column;
    gap: 10px;
  }
}

/* --- FADE-IN ON SCROLL ANIMATION --- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Photo moves above the text on mobile */
  .hero-visual {
    order: -1;
    margin-bottom: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-content {
    order: 1;
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .hero-status-pill {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-intro {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-bottom-bar-wrap {
    order: 2;
    margin-top: 24px;
  }

  .hero-profile-frame {
    max-width: 320px;
    width: 85%;
  }

  .hero-corner-badge {
    width: 44px;
    height: 44px;
    bottom: -8px;
    right: -8px;
    border-width: 3.5px;
  }

  .badge-bolt-icon {
    width: 19px;
    height: 19px;
  }

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

/* Prefers-reduced-motion accessibility for profile frame and pulse dot */
@media (prefers-reduced-motion: reduce) {
  .hero-profile-frame,
  .hero-halo-glow,
  .hero-corner-badge {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }

  .pulse-dot::after {
    display: none !important;
    animation: none !important;
  }
}

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

  .mobile-nav-toggle {
    display: flex;
  }

  .mobile-drawer {
    display: flex;
  }

  .section {
    padding: 50px 0;
  }

  /* Mobile Hero: heading responsive, paragraph 17px, stacked full-width 48px buttons */
  .typewriter-hero-heading {
    font-size: clamp(1.5rem, 6.5vw, 2.2rem);
    margin-bottom: 20px;
  }

  .hero-intro {
    font-size: 17px !important;
    line-height: 1.7;
    margin-bottom: 24px;
    padding: 0 4px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

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

  /* Mobile Contact Bar: translucent card with stacked items */
  .hero-contact-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 16px;
  }

  .hero-contact-items {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
  }

  .hero-social-group {
    width: 100%;
    justify-content: center;
    padding-top: 4px;
  }

  .timeline-container::before {
    left: 14px;
  }

  .timeline-item {
    padding-left: 40px;
  }

  .timeline-dot {
    left: 7px;
  }

  .achievement-card {
    flex-direction: column;
    gap: 14px;
  }

  .footer-grid-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}



/* --- SCROLL PROGRESS INDICATOR (all pages) --- */
.scroll-progress-bar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 3.5px !important;
  background: linear-gradient(90deg, #3b82f6 0%, #a855f7 50%, #22c55e 100%) !important;
  z-index: 99999 !important;
  transform-origin: left center !important;
  transform: scaleX(0);
  will-change: transform;
  pointer-events: none !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7), 0 0 18px rgba(168, 85, 247, 0.5), 0 0 8px rgba(34, 197, 94, 0.4) !important;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress-bar {
    transition: none !important;
  }
}

/* --- FADE-IN ON SCROLL & STAGGER ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}

.reveal-delay-5 {
  transition-delay: 0.40s;
}

/* Filter Card Transition Animation */
@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-card-in {
  animation: cardAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-image-wrapper {
    max-width: 340px;
  }

  .hero-bottom-bar-wrap {
    order: 2;
    margin-top: 28px;
  }

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

/* --- ACCESSIBILITY: PREFERS REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .status-green-dot,
  .badge-bolt-icon,
  .hero-corner-badge,
  .hero-halo-glow,
  .hero-profile-frame {
    animation: none !important;
    transform: none !important;
  }

  /* Stop marquee scrolling and render in a clean wrapped grid (3 per row on desktop, 1 per row on mobile) */
  .tools-marquee-container {
    mask-image: none !important;
    -webkit-mask-image: none !important;
    overflow: visible !important;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
  }

  .tools-marquee-track {
    animation: none !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
  }

  /* Hide duplicate cards in static reduced-motion grid */
  .tools-marquee-track .tool-card-duplicate {
    display: none !important;
  }

  .tool-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
  .tools-marquee-track {
    grid-template-columns: 1fr !important;
  }
}

/* ==============================================================================
   VANTA.NET 3D CONSTELLATION BACKGROUND
   Color: #2e3787, Background: #0a0d16
   ============================================================================== */
#vanta-bg {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  opacity: 0.65;
  transition: opacity var(--transition-normal);
}

[data-theme="light"] #vanta-bg {
  opacity: 0.32;
}

@media (max-width: 768px) {
  #vanta-bg {
    opacity: 0.18; /* ~10-15% effective network opacity on mobile */
  }
}

#vanta-bg canvas.vanta-canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  pointer-events: none !important;
}

main {
  position: relative;
  z-index: 2;
  background: transparent !important;
}

.site-footer {
  position: relative;
  z-index: 10;
  background: #090d1a !important;
}

.section {
  background-color: transparent !important;
  position: relative;
  z-index: 2;
}

/* Content layer over 3D net */
.container,
.hero-grid,
.hero-bottom-bar-wrap,
.tools-marquee-container {
  position: relative;
  z-index: 2;
}

/* Glassmorphism for cards so 3D constellations softly float behind them */
.tool-card,
.project-card,
.academic-card,
.timeline-card,
.contact-card,
.cert-card {
  background: var(--card-bg) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ==============================================================================
   SECTION: FOCUS AREAS & CORE STRENGTHS
   ============================================================================== */
.focus-section {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
  z-index: 2;
}

/* Ambient dots & thin grid lines background with subtle slow drift */
.focus-section-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 1.5px 1.5px, rgba(99, 102, 241, 0.22) 1.5px, transparent 1.5px),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px, 64px 64px, 64px 64px;
  opacity: 0.8;
  animation: focusGridDrift 50s linear infinite;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, #000 35%, transparent 100%);
}

@keyframes focusGridDrift {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 64px 64px, 64px 64px, 64px 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .focus-section-bg {
    animation: none !important;
  }
}

.focus-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.focus-section-header .section-title {
  color: #ffffff;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 10px;
  margin-bottom: 14px;
}

.focus-section-header .section-description {
  color: #94a3b8;
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto;
}

/* 3 Equal Cards in a Row Grid */
.focus-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .focus-cards-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* Focus Card Styling */
.focus-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(13, 20, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 34px 28px 26px 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.32s ease,
              box-shadow 0.32s ease;
  will-change: transform, box-shadow;
}

/* Accent Theming */
.focus-card[data-accent="blue"] {
  --card-accent: #3b82f6;
  --card-accent-rgb: 59, 130, 246;
}

.focus-card[data-accent="purple"] {
  --card-accent: #a855f7;
  --card-accent-rgb: 168, 85, 247;
}

.focus-card[data-accent="green"] {
  --card-accent: #22c55e;
  --card-accent-rgb: 34, 197, 94;
}

/* Hover Effect: slight lift + soft glow in card's accent color */
.focus-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--card-accent-rgb), 0.45);
  box-shadow: 0 16px 36px -12px rgba(var(--card-accent-rgb), 0.28),
              0 0 24px rgba(var(--card-accent-rgb), 0.12);
}

/* Top-Left Rounded Icon Box */
.focus-card-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--card-accent-rgb), 0.45);
  background: rgba(var(--card-accent-rgb), 0.1);
  color: var(--card-accent);
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.focus-card:hover .focus-card-icon-box {
  transform: scale(1.08);
}

.focus-card-icon-box svg {
  width: 22px;
  height: 22px;
}

/* Bold White Card Title */
.focus-card-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

/* Colored Subtitle Under Title */
.focus-card-subtitle {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--card-accent);
  margin: 0 0 22px 0;
  line-height: 1.45;
}

/* Bullets List */
.focus-card-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.focus-card-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.focus-card-bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--card-accent);
  box-shadow: 0 0 6px var(--card-accent);
  margin-top: 8px;
  flex-shrink: 0;
}

/* Thin Divider Line Near Bottom */
.focus-card-divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  margin-top: auto;
  margin-bottom: 20px;
}

/* Bottom-Left Tag in Monospace Font */
.focus-card-tag {
  align-self: flex-start;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
  font-weight: 500;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 5px 12px;
  border-radius: 9999px;
  letter-spacing: 0.025em;
  line-height: 1.3;
}

/* Light Mode Overrides */
[data-theme="light"] .focus-section-header .section-title {
  color: #0f172a;
}

[data-theme="light"] .focus-section-header .section-description {
  color: #475569;
}

[data-theme="light"] .focus-section-bg {
  background-image: 
    radial-gradient(circle at 1.5px 1.5px, rgba(79, 70, 229, 0.16) 1.5px, transparent 1.5px),
    linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  opacity: 0.6;
}

[data-theme="light"] .focus-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .focus-card-title {
  color: #0f172a;
}

[data-theme="light"] .focus-card-bullet-item {
  color: #334155;
}

[data-theme="light"] .focus-card-divider {
  background: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .focus-card-tag {
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.35);
}