/* ==========================================================================
   KAIVALYA VIJAY KUBADE - PORTFOLIO STYLESHEET
   Design Theme: Modern Dark Matrix / Electric Cyan & Indigo + Clean Light Mode
   Typography: Syne (Headings), Plus Jakarta Sans (Body), JetBrains Mono (Data/Code)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Dark Theme (Default) */
  --bg-base: #060913;
  --bg-surface: #0b1120;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --bg-elevated: #1e293b;
  --bg-badge: rgba(56, 189, 248, 0.12);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-highlight: #ffffff;

  /* Accent Colors */
  --accent-cyan: #00f5d4;
  --accent-cyan-rgb: 0, 245, 212;
  --accent-blue: #38bdf8;
  --accent-blue-rgb: 56, 189, 248;
  --accent-indigo: #818cf8;
  --accent-purple: #c084fc;
  --accent-amber: #fbbf24;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00f5d4 0%, #38bdf8 50%, #818cf8 100%);
  --grad-subtle: linear-gradient(180deg, rgba(56, 189, 248, 0.08) 0%, rgba(15, 23, 42, 0) 100%);
  --grad-card: linear-gradient(145deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
  --grad-border: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(0, 245, 212, 0.1), rgba(255, 255, 255, 0.05));

  /* Borders & Shadows */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(56, 189, 248, 0.5);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(0, 245, 212, 0.2);
  --shadow-glow-blue: 0 0 30px rgba(56, 189, 248, 0.25);

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

  /* Transitions */
  --trans-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-elevated: #ffffff;
  --bg-badge: rgba(2, 132, 199, 0.1);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --text-highlight: #020617;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-focus: rgba(2, 132, 199, 0.5);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.15);
  --shadow-glow-blue: 0 0 25px rgba(2, 132, 199, 0.2);

  --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.8) 100%);
  --grad-border: linear-gradient(135deg, rgba(2, 132, 199, 0.3), rgba(15, 23, 42, 0.05));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--trans-normal), color var(--trans-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Data Grid Pattern Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.07) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(129, 140, 248, 0.05) 0%, transparent 50%),
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  color: var(--text-highlight);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

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

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

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

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   3. Typography & Utility Classes
   -------------------------------------------------------------------------- */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

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

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--trans-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-primary);
  color: #060913;
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.3);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 245, 212, 0.45);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Glass Card */
.glass-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-normal), border-color var(--trans-normal), box-shadow var(--trans-normal);
  position: relative;
}

.glass-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: var(--shadow-md);
}

/* Badge Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--bg-badge);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* --------------------------------------------------------------------------
   4. Sticky Header & Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--trans-fast), backdrop-filter var(--trans-fast), border-color var(--trans-fast);
}

.header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  transition: opacity var(--trans-fast);
}

.logo:hover {
  opacity: 0.95;
}

.logo-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  transition: transform var(--trans-normal), filter var(--trans-normal);
}

.logo:hover .logo-mark {
  transform: translateY(-1px) scale(1.05);
  filter: drop-shadow(0 0 10px rgba(0, 245, 212, 0.35));
}

.logo-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-status-ping {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border: 1.5px solid var(--bg-base);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-emerald);
  animation: logoPulse 2.5s infinite ease-in-out;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-name-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.logo-first-name {
  color: var(--text-highlight);
  font-weight: 800;
}

.logo-last-name {
  color: var(--text-muted);
  font-weight: 600;
  transition: color var(--trans-fast);
}

.logo:hover .logo-last-name {
  color: var(--accent-blue);
}

.logo-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  line-height: 1;
}

.logo-pulse-dot {
  width: 5px;
  height: 5px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-cyan);
  flex-shrink: 0;
}

/* Light Theme overrides for Logo contrast */
[data-theme="light"] .logo-first-name {
  color: #0f172a;
}

[data-theme="light"] .logo-last-name {
  color: #475569;
}

[data-theme="light"] .logo-sub {
  color: #0284c7;
}

[data-theme="light"] .logo-pulse-dot {
  background-color: #0284c7;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.4);
}

[data-theme="light"] .logo-status-ping {
  border-color: #ffffff;
}

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

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

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

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

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

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

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--trans-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.35rem;
  color: var(--text-main);
  background: transparent;
  padding: 0.5rem;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.hero-content-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-status-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.95rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #34d399;
}

.hero-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-blue);
}

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

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-greeting-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.greeting-wave {
  display: inline-block;
  animation: waveHand 2.5s infinite;
  transform-origin: 70% 70%;
}

@keyframes waveHand {
  0%, 100% { transform: rotate(0deg); }
  20%, 60% { transform: rotate(14deg); }
  40%, 80% { transform: rotate(-10deg); }
}

.hero-main-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text-highlight);
  margin-bottom: 1.25rem;
}

.hero-name-gradient {
  background: linear-gradient(135deg, #00f5d4 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
  filter: drop-shadow(0 0 25px rgba(0, 245, 212, 0.3));
}

[data-theme="light"] .hero-name-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #4f46e5 100%);
  filter: none;
}

/* Executive Dynamic Specialization Banner */
.hero-role-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 1.15rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.4rem;
  max-width: 100%;
}

[data-theme="light"] .hero-role-banner {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.role-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 245, 212, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

[data-theme="light"] .role-icon-box {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}

.role-text-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.role-prefix {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.role-dynamic {
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  font-weight: 600;
}

[data-theme="light"] .role-dynamic {
  color: #0284c7;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: var(--accent-cyan);
  animation: blink 0.8s infinite;
  vertical-align: middle;
}

[data-theme="light"] .typewriter-cursor {
  background-color: #0284c7;
}

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

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

.hero-description strong {
  color: var(--text-highlight);
}

/* Quick Tech Strip */
.hero-tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tech-chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 12px rgba(0, 245, 212, 0.15);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

[data-theme="light"] .stat-number {
  color: #0284c7;
}

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

/* Hero Visual / Metric Display Card */
.hero-visual {
  position: relative;
}

.hero-visual-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

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

.card-title-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-title-group i {
  color: var(--accent-cyan);
  font-size: 1.1rem;
}

.card-title-group span {
  font-size: 0.9rem;
  font-weight: 600;
}

.pulse-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-family: 'JetBrains Mono', monospace;
}

.pulse-indicator .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.hero-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mini-kpi {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.mini-kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.mini-kpi-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-highlight);
}

.mini-kpi-trend {
  font-size: 0.72rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.2rem;
}

.hero-chart-container {
  height: 160px;
  width: 100%;
  position: relative;
}

.floating-badge {
  position: absolute;
  bottom: -15px;
  right: -10px;
  background: var(--bg-surface);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-highlight);
  animation: floatCard 4s ease-in-out infinite;
}

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

/* --------------------------------------------------------------------------
   6. About Section
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.about-avatar-card {
  position: relative;
}

.avatar-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.avatar-wrapper img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  transition: transform var(--trans-slow);
}

.avatar-wrapper:hover img {
  transform: scale(1.03);
}

.avatar-overlay-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.badge-info p {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', monospace;
}

.about-text-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.about-bio {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

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

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

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.pillar-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.pillar-card p {
  font-size: 0.82rem;
  line-height: 1.5;
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.highlight-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.highlight-chip i {
  color: var(--accent-cyan);
}

/* --------------------------------------------------------------------------
   7. Skills Section
   -------------------------------------------------------------------------- */
.skills-filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.skill-tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--trans-fast);
}

.skill-tab-btn:hover,
.skill-tab-btn.active {
  background: var(--grad-primary);
  color: #060913;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.25);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--trans-normal);
  display: flex;
  flex-direction: column;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--shadow-md);
}

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

.skill-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-cyan);
}

.skill-info {
  flex: 1;
}

.skill-name {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.skill-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent-blue);
}

.skill-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  flex: 1;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. Projects Section
   -------------------------------------------------------------------------- */
.projects-filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.project-tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--trans-fast);
}

.project-tab-btn:hover,
.project-tab-btn.active {
  background: var(--grad-primary);
  color: #060913;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.25);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--trans-normal);
  backdrop-filter: blur(16px);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.project-thumb-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-surface);
}

.project-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}

.project-card:hover .project-thumb-wrapper img {
  transform: scale(1.05);
}

.project-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}

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

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-highlight);
}

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

.tech-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background: var(--bg-badge);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

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

.project-insight-box {
  background: rgba(56, 189, 248, 0.06);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}

.insight-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.insight-text {
  font-size: 0.82rem;
  color: var(--text-main);
  line-height: 1.45;
}

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

.project-actions .btn {
  flex: 1;
}

/* --------------------------------------------------------------------------
   9. Live Interactive Analytics Showcase (Bonus Section)
   -------------------------------------------------------------------------- */
.playground-wrapper {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.playground-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.scenario-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scenario-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all var(--trans-fast);
}

.scenario-btn:hover,
.scenario-btn.active {
  background: var(--accent-blue);
  color: #060913;
  border-color: var(--accent-blue);
}

.playground-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.pg-metric-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.pg-metric-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.pg-metric-sub {
  font-size: 0.7rem;
  color: var(--accent-emerald);
}

.playground-chart-canvas-container {
  height: 380px;
  width: 100%;
  position: relative;
}

/* --------------------------------------------------------------------------
   10. Education & Timeline Section
   -------------------------------------------------------------------------- */
.education-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

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

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

.timeline-dot {
  position: absolute;
  top: 0;
  left: 11px;
  width: 20px;
  height: 20px;
  background: var(--bg-surface);
  border: 3px solid var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-cyan);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--trans-normal);
}

.timeline-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
}

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

.degree-title {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.institute-name {
  color: var(--accent-blue);
  font-size: 0.95rem;
}

.timeline-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.cgpa-highlight-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid rgba(0, 245, 212, 0.35);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.cgpa-highlight-banner .cgpa-score {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.coursework-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.course-tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. Certifications Section
   -------------------------------------------------------------------------- */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all var(--trans-normal);
  position: relative;
}

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

.cert-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 245, 212, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.cert-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
}

.cert-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

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

.cert-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.cert-verify-link {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.cert-verify-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   12. Contact Section
   -------------------------------------------------------------------------- */
.contact-container-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info-card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.contact-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-info-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

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

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.method-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

.method-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.copy-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-top: 0.35rem;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.copy-email-btn:hover {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--accent-cyan);
}

.social-links-row {
  display: flex;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--trans-fast);
}

.social-icon-btn:hover {
  background: var(--grad-primary);
  color: #060913;
  transform: translateY(-3px);
  border-color: transparent;
}

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

.form-group {
  margin-bottom: 1.5rem;
}

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

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-highlight);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--trans-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.2);
}

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

/* --------------------------------------------------------------------------
   13. Modals (Project Detail & Resume)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 9, 19, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--trans-normal), visibility var(--trans-normal);
}

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

.modal-content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(20px) scale(0.96);
  transition: transform var(--trans-normal);
}

.modal-backdrop.active .modal-content-card {
  transform: translateY(0) scale(1);
}

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

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

.modal-body {
  padding: 2.25rem;
}

/* ==========================================================================
   13. RESUME MODAL & PREMIUM EXECUTIVE RESUME SHEET
   ========================================================================== */
.resume-modal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

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

.resume-modal-title i {
  font-size: 1.75rem;
}

.resume-modal-title h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-highlight);
}

.resume-modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
  font-family: var(--font-mono);
}

.resume-modal-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* --- The Executive Paper Sheet --- */
.resume-sheet {
  background: #ffffff;
  color: #1e293b;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.06);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  position: relative;
  overflow: hidden;
}

/* Gradient accent strip on top of sheet */
.resume-top-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0284c7 0%, #06b6d4 40%, #6366f1 80%, #8b5cf6 100%);
}

/* Header */
.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.resume-header-main {
  flex: 1;
  min-width: 280px;
}

.resume-name {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 2.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.resume-role-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.role-highlight {
  font-size: 1.02rem;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: -0.01em;
}

.role-separator {
  color: #cbd5e1;
  font-weight: 700;
}

.role-sub {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
}

.resume-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.84rem;
  color: #475569;
}

.resume-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.resume-contact-link:hover {
  color: #0284c7;
  text-decoration: underline;
}

.resume-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #475569;
  font-weight: 500;
}

.resume-header-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.resume-cgpa-box {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.75rem 1.15rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.cgpa-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.cgpa-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0284c7;
  line-height: 1.1;
  font-family: 'JetBrains Mono', monospace;
}

.cgpa-value small {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 600;
}

.cgpa-honors {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  margin-top: 0.2rem;
}

/* Sections */
.resume-section {
  margin-bottom: 1.6rem;
}

.resume-sec-title {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #f1f5f9;
  position: relative;
}

.resume-sec-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 38px;
  height: 2px;
  background: #0284c7;
  border-radius: 2px;
}

.sec-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: #0284c7;
  border-radius: 6px;
  font-size: 0.75rem;
}

.resume-summary-text {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.65;
  margin: 0;
}

.resume-summary-text strong {
  color: #0f172a;
  font-weight: 700;
}

/* Technical Competencies Grid */
.resume-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.resume-skill-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s;
}

.skill-card-head {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-tags-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.res-skill-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.3;
}

/* Projects */
.resume-project-card {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #e2e8f0;
}

.resume-project-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

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

.proj-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.proj-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
}

.proj-tech-badge {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.73rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.proj-metric-badge {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.resume-bullet-list {
  padding-left: 1.25rem;
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.55;
  margin: 0;
}

.resume-bullet-list li {
  margin-bottom: 0.35rem;
}

.resume-bullet-list li:last-child {
  margin-bottom: 0;
}

.resume-bullet-list strong {
  color: #0f172a;
}

/* Education Box */
.resume-edu-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.edu-main-info {
  flex: 1;
  min-width: 260px;
}

.edu-degree {
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.edu-inst {
  font-size: 0.83rem;
  font-weight: 600;
  color: #0284c7;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.edu-coursework {
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.5;
}

.edu-score-badge {
  background: #ffffff;
  border: 1.5px solid #0284c7;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  text-align: center;
  min-width: 140px;
}

.score-num {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0284c7;
  font-family: 'JetBrains Mono', monospace;
}

.score-desc {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #059669;
}

/* Competencies Pills */
.resume-competencies-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.comp-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.comp-pill i {
  color: #0284c7;
  font-size: 0.7rem;
}

/* ==========================================================================
   PRINT MEDIA STYLES FOR DEDICATED CRISP A4 PDF GENERATION
   ========================================================================== */
@media print {
  @page {
    margin: 8mm 10mm;
    size: A4 portrait;
  }

  body {
    background: #ffffff !important;
    color: #0f172a !important;
  }

  /* Hide everything on page except modal */
  body > *:not(#resumeModal) {
    display: none !important;
  }

  #resumeModal {
    position: static !important;
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    backdrop-filter: none !important;
  }

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

  .modal-body {
    padding: 0 !important;
  }

  .modal-close-btn,
  .resume-modal-toolbar {
    display: none !important;
  }

  .resume-sheet {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
  }

  .resume-top-banner {
    display: none !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 1rem 1.4rem;
  color: var(--text-highlight);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateX(100%);
  opacity: 0;
  transition: transform var(--trans-normal), opacity var(--trans-normal);
  pointer-events: auto;
}

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

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

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

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-links-col h4 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-highlight);
}

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

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

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

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

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

.back-to-top-btn:hover {
  background: var(--accent-cyan);
  color: #060913;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   15. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-avatar-card {
    max-width: 450px;
    margin: 0 auto;
  }
  .contact-container-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4.5rem 0;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform var(--trans-normal), opacity var(--trans-normal);
    z-index: 999;
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .about-pillars-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .playground-metrics-bar {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-main-title {
    font-size: 2.5rem;
  }
  .hero-role-banner {
    padding: 0.5rem 0.85rem;
    gap: 0.6rem;
  }
  .hero-tech-strip {
    gap: 0.4rem;
  }
  .tech-chip {
    font-size: 0.74rem;
    padding: 0.3rem 0.6rem;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .playground-metrics-bar {
    grid-template-columns: 1fr;
  }
  .resume-sheet {
    padding: 1.5rem;
  }
}
