/* ==========================================================================
   MODERN PROFESSIONAL PORTFOLIO DESIGN SYSTEM
   ========================================================================== */

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

/* --- Theme Variables --- */
:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #0a0d14;
  --bg-secondary: #111726;
  --bg-tertiary: #192238;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(26, 36, 56, 0.85);
  --bg-glass: rgba(13, 18, 30, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --border-glow: rgba(99, 102, 241, 0.25);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0d14;
  
  /* Brand Accents */
  --accent-primary: #6366f1;       /* Indigo */
  --accent-secondary: #a855f7;     /* Purple */
  --accent-tertiary: #06b6d4;      /* Cyan */
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(168,85,247,0.15) 50%, rgba(6,182,212,0.15) 100%);
  --accent-glow: 0 0 25px rgba(99, 102, 241, 0.35);
  
  --success: #10b981;
  --success-glow: 0 0 15px rgba(16, 185, 129, 0.4);
  
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Shadows & Elevations */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
  
  /* Layout & Spacing */
  --container-max-width: 1200px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.82);
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --border-glow: rgba(99, 102, 241, 0.2);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #f8fafc;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
}

/* Ambient Background Lights */
.bg-ambient-light {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob-1 {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0) 70%);
  filter: blur(60px);
  animation: floatSlow 12s ease-in-out infinite alternate;
}

.ambient-blob-2 {
  position: absolute;
  top: 40%;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.14) 0%, rgba(168, 85, 247, 0) 70%);
  filter: blur(80px);
  animation: floatSlow 16s ease-in-out infinite alternate-reverse;
}

.ambient-blob-3 {
  position: absolute;
  bottom: 5%;
  right: 10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(6, 182, 212, 0) 70%);
  filter: blur(70px);
  animation: floatSlow 14s ease-in-out infinite alternate;
}

@keyframes floatSlow {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(60px) scale(1.08); }
}

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

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

ul {
  list-style: none;
}

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

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

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

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-primary);
  background: var(--accent-gradient-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

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

/* Placeholder Note Helper */
.placeholder-hint {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  border: 1px dashed rgba(99, 102, 241, 0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* --- Buttons & Links --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
  color: #ffffff;
}

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

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

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

.btn-icon {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

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

/* --- Modern Glass Cards --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

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

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-bottom var(--transition-normal);
}

.site-header.scrolled {
  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);
}

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

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.brand-badge {
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

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

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

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

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

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

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

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: rotate(15deg);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 5rem;
  position: relative;
}

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

.hero-content-centered {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content-centered .hero-description {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content-centered .hero-typewriter {
  justify-content: center;
}

.hero-content-centered .hero-ctas,
.hero-content-centered .hero-socials {
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #34d399;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- Hero Badges Group & Exploring Pill --- */
.hero-badges-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-badges-group .hero-badge {
  margin-bottom: 0;
}

.hero-exploring-badge {
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
}

.exploring-icon {
  color: var(--accent-primary);
  font-size: 0.85rem;
  animation: spinSlow 12s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.exploring-label {
  font-weight: 600;
  color: var(--text-primary);
}

.exploring-text {
  color: #a5b4fc;
  font-weight: 500;
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.exploring-text.fade-out {
  opacity: 0;
  transform: translateY(-4px);
}

[data-theme="light"] .hero-exploring-badge {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
  color: #4338ca;
}

[data-theme="light"] .exploring-text {
  color: #4f46e5;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-typewriter {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 1.5rem;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.typewriter-cursor {
  display: inline-block;
  color: var(--accent-primary);
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

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

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

.hero-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-social-label {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Interactive Visual / Card Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-card,
.code-mockup-card {
  width: 100%;
  max-width: 450px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 50px -10px rgba(139, 92, 246, 0.28), 0 0 35px -10px rgba(6, 182, 212, 0.28);
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-image-card:hover,
.code-mockup-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 60px -5px rgba(139, 92, 246, 0.38), 0 0 45px -5px rgba(6, 182, 212, 0.38);
}

.hero-image-container {
  overflow: hidden;
  border-bottom-left-radius: calc(var(--radius-lg) - 1px);
  border-bottom-right-radius: calc(var(--radius-lg) - 1px);
  aspect-ratio: 1 / 1;
  background: #090d16;
  position: relative;
}

.hero-graphic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-card:hover .hero-graphic-img {
  transform: scale(1.04);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mockup-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.code-keyword { color: #a855f7; }
.code-fn { color: #06b6d4; }
.code-str { color: #10b981; }
.code-prop { color: #6366f1; }
.code-num { color: #f59e0b; }
.code-comment { color: var(--text-muted); font-style: italic; }

.floating-pill {
  position: absolute;
  z-index: 5;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: floatCard 6s ease-in-out infinite alternate;
}

.pill-top-right {
  top: -18px;
  right: -15px;
}

.pill-bottom-left {
  bottom: -20px;
  left: -15px;
  animation-delay: -3s;
}

@keyframes floatCard {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.about-photo-wrapper {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}

.photo-frame {
  aspect-ratio: 1 / 1.15;
  border-radius: var(--radius-lg);
  position: relative;
  background: var(--accent-gradient-subtle);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--transition-normal);
}

.photo-frame:hover .profile-photo {
  transform: scale(1.04);
}

.avatar-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.avatar-icon-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 1.2rem;
  box-shadow: var(--accent-glow);
}

.avatar-badge-text {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.about-badge-exp {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1.3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-badge-exp .exp-icon {
  font-size: 1.4rem;
  color: var(--accent-primary);
  margin-bottom: 0.2rem;
}

.about-badge-exp .exp-status {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.exp-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1;
}

.exp-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.about-bio-text {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-block: 1.8rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
}

.highlight-icon {
  color: var(--accent-primary);
  font-size: 1.1rem;
  margin-top: 2px;
}

.highlight-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.highlight-item span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

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

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

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

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin-inline: auto;
}

.skill-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.skill-category-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

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

.skill-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-pill {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

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

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

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

.projects-grid.single-project {
  display: flex;
  justify-content: center;
}

.projects-grid.single-project .project-card {
  max-width: 680px;
  width: 100%;
}

.project-card {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.project-image-box {
  width: 100%;
  aspect-ratio: 927 / 352;
  background: #060911;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-badge-inline {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.project-mockup-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 0.5rem;
  transition: transform var(--transition-normal);
}

.project-mockup-graphic i {
  font-size: 2.5rem;
  color: var(--accent-primary);
}

.project-card:hover .project-mockup-graphic {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-tertiary);
}

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

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  transition: color var(--transition-fast);
}

.project-card:hover .project-title {
  color: var(--accent-primary);
}

.project-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

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

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.2rem;
}

.project-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.project-action-link:hover {
  color: var(--accent-primary);
}

/* --- Projects Showcase Portal Grid & GitHub Card --- */
.projects-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.projects-portal-box {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.portal-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.github-activity-card {
  padding: 2.25rem 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.github-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}

.github-card-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.github-card-header-left i {
  font-size: 1.6rem;
  color: var(--accent-primary);
}

.github-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin: 0;
}

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

.github-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.github-live-badge .pulse-dot {
  width: 6px;
  height: 6px;
}

.github-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.github-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.gh-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  object-fit: cover;
}

.gh-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.2;
}

.gh-handle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.gh-stat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.gh-stat-pill strong {
  color: var(--accent-primary);
  font-family: var(--font-mono);
}

.github-repo-preview {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

[data-theme="light"] .github-repo-preview {
  background: rgba(0, 0, 0, 0.02);
}

.github-repo-preview-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.github-repo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.gh-repo-name {
  font-weight: 600;
  color: var(--accent-primary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.gh-repo-name:hover {
  text-decoration: underline;
}

.gh-repo-lang {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

[data-theme="light"] .gh-repo-lang {
  background: rgba(0, 0, 0, 0.05);
}

.gh-repo-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   EXPERIENCE & EDUCATION TIMELINE
   ========================================================================== */
.timeline-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.timeline-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

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

.timeline-container::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 20px;
  width: 2px;
  background: var(--border-subtle);
}

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

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

.timeline-marker {
  position: absolute;
  top: 0;
  left: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
  transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.25);
  background: var(--accent-primary);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-fast);
}

.timeline-content:hover {
  border-color: var(--border-focus);
  transform: translateX(4px);
}

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

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

.timeline-date-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-secondary);
  background: rgba(168, 85, 247, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.timeline-org {
  font-size: 0.95rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.timeline-bullets {
  padding-left: 1.2rem;
  list-style-type: disc;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.timeline-bullets li {
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-icon {
  font-size: 2rem;
  color: var(--accent-primary);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.8rem;
}

.testimonial-author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-primary);
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

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

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

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

.contact-item-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient-subtle);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

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

.copy-email-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1rem;
  transition: color var(--transition-fast);
}

.copy-email-btn:hover {
  color: var(--accent-primary);
}

/* Contact Form */
.contact-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(14px);
}

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

.form-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
}

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

.form-input,
.form-textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

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

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-submit-btn {
  width: 100%;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

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

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

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

.back-to-top-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

/* Toast Message */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--success);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: all var(--transition-normal);
}

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

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

/* ==========================================================================
   RESPONSIVE DESIGN (TABLETS & PHONES)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .about-photo-wrapper {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  section {
    padding: 4.5rem 0;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
  }
  
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
  }
  
  .about-highlights-grid {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
  }
  
  .stat-item {
    text-align: center;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }
}

/* ==========================================================================
   RESUME MODAL POPUP & PRINT SYSTEM
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-dialog {
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.75rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  gap: 1rem;
}

.modal-title-area {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.modal-icon {
  font-size: 1.4rem;
  color: var(--accent-primary);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

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

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

.modal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.modal-close-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-card-hover);
  color: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.modal-body {
  overflow-y: auto;
  padding: 2rem;
  background: var(--bg-primary);
}

/* Resume Document Paper */
.resume-paper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.75rem 3rem;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.resume-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.resume-name {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.resume-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.85rem;
}

.resume-contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.resume-contact-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.resume-divider {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin: 1.75rem 0;
}

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

.resume-section:last-child {
  margin-bottom: 0;
}

.resume-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

.resume-summary-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

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

.resume-entry:last-child {
  margin-bottom: 0;
}

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

.resume-institution {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.resume-degree {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.resume-meta {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.resume-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.4rem;
}

.resume-bullets li {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.resume-skills-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.resume-skill-row {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.resume-skill-row strong {
  color: var(--text-primary);
  margin-right: 0.35rem;
}

@media (max-width: 640px) {
  .resume-paper {
    padding: 1.5rem 1.25rem;
  }

  .resume-entry-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .resume-meta {
    text-align: left;
  }
}

/* ==========================================================================
   PRINT MEDIA STYLES (Save to PDF / Print Dialog)
   ========================================================================== */
@media print {
  body * {
    visibility: hidden !important;
  }

  #resume-modal,
  #resume-modal * {
    visibility: visible !important;
  }

  #resume-modal {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    opacity: 1 !important;
  }

  .modal-dialog {
    max-width: 100% !important;
    max-height: none !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    transform: none !important;
  }

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

  .modal-body {
    padding: 0 !important;
    background: #ffffff !important;
    overflow: visible !important;
  }

  .resume-paper {
    background: #ffffff !important;
    color: #111827 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.5in 0.5in !important;
    max-width: 100% !important;
  }

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

  .resume-tagline {
    color: #4338ca !important;
  }

  .resume-contact-bar,
  .resume-contact-bar span,
  .resume-meta,
  .resume-summary-text,
  .resume-bullets li,
  .resume-skill-row {
    color: #374151 !important;
  }

  .resume-section-title {
    color: #111827 !important;
    border-bottom: 2px solid #4338ca !important;
  }

  .resume-divider {
    background: #e5e7eb !important;
  }

  .resume-institution,
  .resume-skill-row strong,
  .resume-bullets strong {
    color: #111827 !important;
  }
}

/* ==========================================================================
   QUICK SHARE & RECRUITER MODE STYLES
   ========================================================================== */
.nav-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-share-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.recruiter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.recruiter-toggle-btn:hover,
.recruiter-toggle-btn.active {
  background: rgba(245, 158, 11, 0.22);
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
  color: #fef3c7;
}

[data-theme="light"] .recruiter-toggle-btn {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.35);
  color: #b45309;
}

[data-theme="light"] .recruiter-toggle-btn:hover,
[data-theme="light"] .recruiter-toggle-btn.active {
  background: rgba(217, 119, 6, 0.18);
  color: #78350f;
}



/* ==========================================================================
   3D CARD TILT & SPECULAR GLARE
   ========================================================================== */
.card-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

/* ==========================================================================
   QUICK SHARE TOAST NOTIFICATION
   ========================================================================== */
.share-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2500;
  background: var(--bg-card);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--success-glow);
  padding: 1rem 1.4rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  pointer-events: none;
}

.share-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.share-toast-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.share-toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.share-toast-text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.share-toast-text span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   RECRUITER 1-MINUTE MODE ACTIVE STYLES & BANNER
   ========================================================================== */
.recruiter-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.4), 0 0 25px rgba(245, 158, 11, 0.2);
  padding: 0.85rem 0;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.recruiter-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.recruiter-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.recruiter-banner-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.recruiter-pill-tag {
  background: #f59e0b;
  color: #1e1b4b;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.recruiter-banner-summary {
  font-size: 0.9rem;
  color: #f8fafc;
}

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

.recruiter-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.recruiter-close-btn:hover {
  color: var(--text-primary);
}

/* Recruiter mode active content highlights */
.recruiter-mode-active .stat-item,
.recruiter-mode-active .highlight-item:first-child,
.recruiter-mode-active .highlight-item:nth-child(2) {
  border-color: #f59e0b !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25) !important;
}

.recruiter-mode-active .hero-badge {
  border-color: #f59e0b !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3) !important;
}

@media (max-width: 768px) {
  .recruiter-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .recruiter-toggle-text {
    display: none;
  }
}
