/* ===================================================================
   NIKHITH BIRRU - PORTFOLIO DESIGN SYSTEM & STYLESHEET
   Clean, Professional, Modern Dark/Light Theme with Rich Micro-Interactions
   =================================================================== */

/* --- 1. CSS Custom Properties / Design Tokens --- */
:root {
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Accent Colors (Consistent in both themes) */
  --primary: #3b82f6;
  --primary-rgb: 59, 130, 246;
  --primary-hover: #2563eb;
  --cyan: #06b6d4;
  --cyan-rgb: 6, 182, 212;
  --emerald: #10b981;
  --emerald-rgb: 16, 185, 129;
  --purple: #8b5cf6;
  --purple-rgb: 139, 92, 246;
  --amber: #f59e0b;
  --amber-rgb: 245, 158, 11;
  --red: #ef4444;
}

/* --- Dark Theme Tokens (Default) --- */
[data-theme="dark"] {
  --bg-canvas: #090d16;
  --bg-surface: #0f172a;
  --bg-surface-elevated: #151e34;
  --bg-card: rgba(18, 26, 45, 0.7);
  --bg-card-hover: rgba(24, 36, 62, 0.9);
  --bg-glass: rgba(15, 23, 42, 0.75);
  --bg-input: #111a2e;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(59, 130, 246, 0.3);
  --border-card: rgba(255, 255, 255, 0.08);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --text-inverse: #090d16;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
  --glow-primary: 0 0 30px rgba(59, 130, 246, 0.25);
  --glow-cyan: 0 0 30px rgba(6, 182, 212, 0.25);

  --card-spotlight: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(59, 130, 246, 0.12), transparent 40%);
}

/* --- Light Theme Tokens --- */
[data-theme="light"] {
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-input: #f8fafc;

  --border-subtle: #e2e8f0;
  --border-highlight: rgba(59, 130, 246, 0.4);
  --border-card: rgba(226, 232, 240, 0.8);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-faint: #94a3b8;
  --text-inverse: #ffffff;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.12);
  --glow-primary: 0 0 30px rgba(59, 130, 246, 0.18);
  --glow-cyan: 0 0 30px rgba(6, 182, 212, 0.18);

  --card-spotlight: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(59, 130, 246, 0.08), transparent 40%);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* Selection */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: var(--text-main);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-faint);
}

/* --- 3. Scroll Progress & Ambient Cursor --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--cyan), var(--purple));
  z-index: 1000;
  transition: width 0.05s linear;
}



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

.section {
  padding: 6.5rem 0;
  position: relative;
  z-index: 1;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

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

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- 5. Buttons & Badges --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #60a5fa 0%, var(--primary) 100%);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--text-main);
  background: var(--bg-surface-elevated);
  border-color: var(--border-subtle);
}

.btn-light {
  background: #ffffff;
  color: #0f172a;
  box-shadow: var(--shadow-md);
}

.btn-light:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.btn-block {
  width: 100%;
}

/* Text Accent Colors */
.text-cyan { color: var(--cyan); }
.text-emerald { color: var(--emerald); }
.text-blue { color: var(--primary); }
.text-purple { color: var(--purple); }
.text-amber { color: var(--amber); }

/* --- 6. Site Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.1rem 0;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4);
}

.logo-text .text-accent {
  color: var(--cyan);
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

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

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

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

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--emerald);
}

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

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

/* Theme Toggle */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 1.15rem;
  transition: all var(--transition-normal);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: rotate(15deg);
}

[data-theme="dark"] .light-icon { display: block; }
[data-theme="dark"] .dark-icon { display: none; }
[data-theme="light"] .light-icon { display: none; }
[data-theme="light"] .dark-icon { display: block; }

/* Mobile Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- 7. Hero Section --- */
.hero-section {
  padding-top: 9.5rem;
  padding-bottom: 5rem;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: radial-gradient(circle at 75% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 60%, rgba(6, 182, 212, 0.06) 0%, transparent 40%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.hero-subtitle-wrapper {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.static-prefix {
  color: var(--text-faint);
}

.typing-text {
  color: var(--cyan);
  font-weight: 600;
}

.typing-cursor {
  color: var(--primary);
  font-weight: 400;
  animation: blink 1s infinite;
}

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

.hero-description {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.25rem;
}

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

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

.hero-social-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-chip:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.social-chip .copy-icon {
  font-size: 0.85rem;
  opacity: 0.6;
}

.social-chip.copy-chip {
  cursor: pointer;
  border: 1px dashed var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.social-chip.copy-chip:hover {
  border-style: solid;
  border-color: var(--primary);
}

.footer-contact a.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact a.footer-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* --- Hero 3D Card & Floating Badges --- */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.profile-card-3d {
  position: relative;
  width: 360px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  perspective: 1000px;
  transition: transform var(--transition-spring);
}

.avatar-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--glow-primary);
  border: 2px solid var(--border-subtle);
  background: var(--bg-surface);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-card-3d:hover .profile-img {
  transform: scale(1.04);
}

.card-glow-layer {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(6, 182, 212, 0.2), transparent 70%);
  z-index: -1;
  filter: blur(14px);
  opacity: 0.8;
  transition: opacity var(--transition-normal);
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: transform var(--transition-normal);
  animation: float-gentle 4s ease-in-out infinite alternate;
}

.floating-badge i {
  font-size: 1.45rem;
}

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

.badge-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

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

.badge-top-right {
  top: -15px;
  right: -25px;
  animation-delay: 0s;
}

.badge-bottom-left {
  bottom: 25px;
  left: -35px;
  animation-delay: 1.3s;
}

.badge-bottom-right {
  bottom: -20px;
  right: 10px;
  animation-delay: 2.5s;
}

@keyframes float-gentle {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* Stats Strip */
.hero-stats-bar {
  margin-top: 4.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

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

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-plus {
  color: var(--primary);
  font-size: 0.85em;
}

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

/* --- 8. About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: stretch;
}

.narrative-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.narrative-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
}

.card-icon-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary);
}

.card-icon-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.narrative-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.narrative-card strong {
  color: var(--text-main);
}

.about-keypoints {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.keypoint-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

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

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.bg-blue-subtle { background: rgba(59, 130, 246, 0.12); color: var(--primary); }
.bg-emerald-subtle { background: rgba(16, 185, 129, 0.12); color: var(--emerald); }
.bg-purple-subtle { background: rgba(139, 92, 246, 0.12); color: var(--purple); }
.bg-amber-subtle { background: rgba(245, 158, 11, 0.12); color: var(--amber); }

.pillar-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- 9. Experience Timeline --- */
.timeline-container {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 3rem;
}

.timeline-line {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 1.25rem;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--cyan) 60%, var(--border-subtle) 100%);
}

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

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

.timeline-dot {
  position: absolute;
  top: 1.5rem;
  left: -2.35rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--primary);
  z-index: 2;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.timeline-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
}

.timeline-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.company-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.timeline-period.current {
  color: var(--emerald);
  font-weight: 600;
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.timeline-summary {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

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

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-size: 1rem;
}

.timeline-bullets strong {
  color: var(--text-main);
}

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

.pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.25rem 0.65rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* --- 10. Projects Showcase --- */
.project-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

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

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

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

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

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  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);
  position: relative;
}

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

.project-image-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-surface);
}

.project-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 22, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.project-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(9, 13, 22, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #f1f5f9;
  font-weight: 500;
  z-index: 2;
}

/* Abstract header for code projects */
.project-card-abstract-header {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  position: relative;
}

.bg-gradient-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.05) 100%), #111827;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}
.bg-gradient-violet {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(109, 40, 217, 0.05) 100%), #111827;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}
.bg-gradient-cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(14, 116, 144, 0.05) 100%), #111827;
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.abstract-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #ffffff;
}

.abstract-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.abstract-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.project-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.project-highlight-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

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

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--bg-surface-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.project-card-footer {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.card-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition-fast);
}

.card-text-link:hover {
  gap: 0.6rem;
}

/* --- 11. Technical Skills Matrix --- */
.skill-search-wrapper {
  max-width: 540px;
  margin: 0 auto 3rem auto;
  position: relative;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 1.1rem;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 1.15rem;
}

.skill-search-wrapper input {
  width: 100%;
  padding: 0.85rem 3rem 0.85rem 2.85rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.skill-search-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.clear-search-btn {
  position: absolute;
  top: 50%;
  right: 1.1rem;
  transform: translateY(-50%);
  color: var(--text-faint);
  font-size: 1.1rem;
}

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

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

.skill-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.skill-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.icon-blue { background: rgba(59, 130, 246, 0.15); color: var(--primary); }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--emerald); }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: var(--purple); }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: var(--amber); }

.skill-card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.skill-card-sub {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.skill-chips-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.skill-chip {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.skill-chip:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
  transform: translateX(3px);
}

.skill-chip.highlighted {
  border-color: var(--primary) !important;
  background: rgba(59, 130, 246, 0.22) !important;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.45) !important;
  transform: translateY(-2px) scale(1.02);
  opacity: 1 !important;
}

[data-theme="light"] .skill-chip.highlighted {
  border-color: var(--primary) !important;
  background: rgba(59, 130, 246, 0.12) !important;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25) !important;
}

.skill-chip.dimmed {
  opacity: 0.22 !important;
  filter: grayscale(60%);
}

.chip-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.chip-level {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* --- 12. Education & Accolades --- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.edu-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  gap: 1.5rem;
  position: relative;
  transition: all var(--transition-normal);
}

.edu-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.edu-badge {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.edu-timeline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  display: block;
  margin-bottom: 0.35rem;
}

.edu-degree {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.edu-school {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.edu-gpa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  color: var(--emerald);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

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

.accolade-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-normal);
}

.accolade-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.accolade-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.icon-azure { background: rgba(59, 130, 246, 0.15); color: #0078d4; }
.icon-gold { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.accolade-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.35rem;
}

.accolade-text h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.accolade-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- 13. Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-info-card, .contact-form-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3, .contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.contact-sub, .form-subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.method-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.method-card:not(.static):hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateX(4px);
}

.method-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.method-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.method-label {
  font-size: 0.76rem;
  color: var(--text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.method-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.copy-inline-btn {
  padding: 0.4rem;
  border-radius: 6px;
  color: var(--text-faint);
  font-size: 1.05rem;
  transition: all var(--transition-fast);
}

.copy-inline-btn:hover {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.15);
}

.open-external {
  color: var(--text-faint);
  font-size: 1rem;
}

/* Resume Box CTA */
.resume-cta-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(6, 182, 212, 0.06));
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.resume-cta-box h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.resume-cta-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact Form Elements */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

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

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

.form-group .required {
  color: var(--red);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-input.is-invalid, .form-textarea.is-invalid {
  border-color: var(--red);
}

.textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.error-msg {
  color: var(--red);
  font-size: 0.78rem;
  min-height: 1.1em;
}

.form-feedback {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald);
}

.form-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--red);
}

/* --- 14. Site Footer --- */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem 0;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-bio {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 360px;
}

.footer-nav h4, .footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

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

.footer-contact p {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

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

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* --- 15. Modals (Project & Resume) --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

/* Modal Content Styles */
.modal-content {
  padding: 2.5rem;
}

.modal-project-header {
  margin-bottom: 1.75rem;
}

.modal-project-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
}

.modal-project-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.modal-section-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.5rem 0 0.75rem 0;
}

.modal-arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.modal-arch-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.modal-arch-box h5 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.modal-arch-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Resume Modal Details */
.resume-modal-dialog {
  max-width: 900px;
}

.resume-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.resume-header-titles h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.resume-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.resume-actions-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.resume-modal-body {
  padding: 2.5rem;
}

/* Printable Resume Document */
.resume-doc {
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.55;
}

.resume-doc-header {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-subtle);
}

.resume-name {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.resume-location {
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.resume-contacts {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.resume-contacts a {
  color: var(--primary);
}

.resume-section {
  margin-bottom: 1.5rem;
}

.resume-sec-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.resume-entry {
  margin-bottom: 1rem;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.96rem;
}

.entry-sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

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

.entry-bullets li {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.entry-bullets strong {
  color: var(--text-main);
}

/* --- 16. Toast Notification --- */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--emerald);
  color: var(--text-main);
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

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

.toast-icon {
  color: var(--emerald);
  font-size: 1.2rem;
}

/* --- 17. Scroll Reveal Utility Classes --- */
.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.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- 18. Responsive Breakpoints --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-badge, .hero-subtitle-wrapper, .hero-cta-group, .hero-social-strip {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    order: -1;
  }

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

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

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

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

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

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

@media (max-width: 768px) {
  .site-header .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-subtle);
    padding: 6rem 2rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-normal);
  }

  .site-header .nav-menu.open {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .section {
    padding: 4.5rem 0;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

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

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

  .floating-badge {
    display: none; /* Hide on small mobile to prevent overflow */
  }
}

/* --- 19. Print Stylesheet (Clean Executive Resume) --- */
@media print {
  /* Hide non-printable elements */
  .site-header,
  .site-footer,
  .scroll-progress,
  .modal-backdrop:not(#resumeModal),
  .resume-actions-group,
  .modal-close-btn,
  .hero-section,
  .about-section,
  .experience-section,
  .projects-section,
  .skills-section,
  .education-section,
  .contact-section {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }

  #resumeModal {
    position: static !important;
    background: none !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .resume-modal-dialog {
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    transform: none !important;
  }

  .resume-modal-header {
    display: none !important;
  }

  .resume-doc {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .resume-doc-header {
    border-bottom: 2px solid #000000 !important;
  }

  .resume-name {
    color: #000000 !important;
  }

  .resume-sec-title {
    color: #000000 !important;
    border-bottom: 1px solid #333333 !important;
  }

  .entry-bullets li, .resume-text {
    color: #111111 !important;
  }

  a {
    color: #000000 !important;
    text-decoration: underline !important;
  }
}
