/* ────────────────────────────────────────────────────────
   GOKUL ARUNACHALAM — PORTFOLIO
   Automotive Embedded Software Architect
   ──────────────────────────────────────────────────────── */

/* ═══════ RESET & VARIABLES ═══════ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core palette */
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f18;
  --bg-card: #12121e;
  --bg-card-hover: #181828;
  --bg-elevated: #1a1a2e;

  /* Accent — Electric Blue */
  --accent: #00d4ff;
  --accent-dim: #0099cc;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --accent-glow-strong: rgba(0, 212, 255, 0.3);

  /* Secondary Accent — EV Green */
  --green: #00e676;
  --green-dim: #00c853;
  --green-glow: rgba(0, 230, 118, 0.15);

  /* Warning/Safety */
  --amber: #ffab00;
  --amber-glow: rgba(255, 171, 0, 0.15);

  /* Text */
  --text-primary: #e8e8f0;
  --text-secondary: #9898b0;
  --text-muted: #606078;

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);

  /* Layout */
  --container-max: 1200px;
  --section-pad: 120px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: #fff;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════ SECTION COMMON ═══════ */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 6px 16px 6px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 50px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════ NAVBAR ═══════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary) !important;
}

.logo-bracket { color: var(--accent); }
.logo-slash   { color: var(--green); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
}

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

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════ HERO ═══════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 160px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--accent-glow);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-greeting {
  display: block;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-name {
  display: block;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* Role Chips */
.hero-roles {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  animation: fadeInUp 0.8s ease 0.25s both;
}

.role-chip {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition: all 0.5s ease;
}

.role-chip.active {
  color: var(--accent);
  background: var(--accent-glow);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  margin-top: 24px;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.5s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: #fff;
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

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

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

.btn-ghost {
  padding: 14px 20px;
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-download {
  background: linear-gradient(135deg, var(--accent-dim), var(--green-dim));
  color: #fff;
}

.btn-download:hover {
  background: linear-gradient(135deg, var(--accent), var(--green));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 230, 118, 0.25);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.8s ease 0.6s both;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.8s ease 1s both;
}

.scroll-mouse {
  width: 28px;
  height: 46px;
  border: 2px solid var(--text-muted);
  border-radius: 14px;
  position: relative;
  transition: border-color 0.3s ease;
}

.scroll-indicator:hover .scroll-mouse {
  border-color: var(--accent);
}

.scroll-dot {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDotBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
}

.scroll-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--accent);
  animation: scrollChevronBounce 2s ease-in-out infinite;
  opacity: 0.7;
}

/* ═══════ ABOUT ═══════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.about-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

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

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.highlight {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.highlight-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
}

.highlight h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.highlight p {
  font-size: 0.88rem !important;
  margin-bottom: 0 !important;
  color: var(--text-muted) !important;
}

/* Code Window */
.about-visual {
  position: sticky;
  top: 120px;
}

.code-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dot.red    { background: #ff5f57; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green  { background: #28ca42; }

.code-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.code-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--text-secondary);
}

.code-body .kw  { color: #c678dd; }
.code-body .def { color: #e5c07b; }
.code-body .cm  { color: #5c6370; font-style: italic; }
.code-body .tp  { color: var(--accent); }

/* ═══════ EXPERTISE CARDS ═══════ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.expertise-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  overflow: hidden;
}

.expertise-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition-slow);
  pointer-events: none;
}

.expertise-card:hover .card-glow {
  opacity: 1;
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.card-icon.motor   { background: var(--accent-glow); color: var(--accent); }
.card-icon.bms     { background: var(--green-glow); color: var(--green); }
.card-icon.ecu     { background: rgba(167, 139, 250, 0.15); color: #a78bfa; }
.card-icon.charger { background: var(--amber-glow); color: var(--amber); }

.expertise-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.card-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}

.card-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══════ ARCHITECTURE ═══════ */
.architecture {
  background: var(--bg-secondary);
}

.arch-visual {
  max-width: 900px;
  margin: 0 auto 64px;
}

.arch-layer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.arch-layer:hover {
  border-color: rgba(0, 212, 255, 0.15);
}

.layer-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.reusable-badge {
  font-size: 0.65rem;
  background: var(--green-glow);
  color: var(--green);
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid rgba(0, 230, 118, 0.2);
  letter-spacing: 1.5px;
}

.layer-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module {
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-mono);
  transition: var(--transition);
}

.module.app { background: rgba(167, 139, 250, 0.1); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.15); }
.module.svc { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(0, 212, 255, 0.15); }
.module.proj { background: rgba(236, 130, 250, 0.1); color: #ec82fa; border: 1px solid rgba(236, 130, 250, 0.15); }
.module.drv { background: var(--green-glow); color: var(--green); border: 1px solid rgba(0, 230, 118, 0.15); }
.module.hw  { background: var(--amber-glow); color: var(--amber); border: 1px solid rgba(255, 171, 0, 0.15); }

/* Middleware Sub-layers */
.arch-sublayer {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 16px;
}

.sublayer-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.sublayer-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.sublayer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sublayer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sublayer-heading.svc {
  color: var(--accent);
}

.module:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.arch-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  position: relative;
}

.connector-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--border-light), var(--accent-dim), var(--border-light));
}

.connector-label {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Architecture Principles */
.arch-principles h3 {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.principle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.principle:hover {
  border-color: rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(0, 212, 255, 0.15);
  margin-bottom: 12px;
  line-height: 1;
}

.principle h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.principle p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
  transform: translateY(-4px);
}

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

.project-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.03), rgba(0, 230, 118, 0.03));
  border-color: rgba(0, 212, 255, 0.1);
}

.project-card.featured::before {
  opacity: 1;
}

.project-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.project-badge.asil {
  color: var(--amber);
  background: var(--amber-glow);
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.project-category {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.project-deliverables h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
}

.deliverable {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.deliverable-icon {
  color: var(--accent);
  flex-shrink: 0;
  font-size: 0.7rem;
  margin-top: 4px;
}

.project-impact {
  margin-top: 20px;
  padding: 16px;
  background: rgba(0, 212, 255, 0.05);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.impact-label {
  font-weight: 700;
  color: var(--accent);
}

.project-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags li {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
}

/* ═══════ EXPERIENCE / TIMELINE ═══════ */
.experience-section {
  background: var(--bg-secondary);
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

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

.timeline-marker {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--text-muted);
  z-index: 1;
}

.timeline-marker.current {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow-strong);
  animation: pulse 2s infinite;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.timeline-content p:last-child {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════ SKILLS ═══════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.skill-category:hover {
  border-color: rgba(0, 212, 255, 0.1);
}

.skill-category h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-icon {
  font-size: 1.2rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tags span {
  font-size: 0.8rem;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.skill-tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.skill-tags span.primary {
  border-color: rgba(0, 212, 255, 0.2);
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 500;
}

/* ═══════ EDUCATION ═══════ */
.education-section {
  background: var(--bg-secondary);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.edu-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
}

.edu-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.edu-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.edu-inst {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.edu-detail {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--accent);
}

.training-heading {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.training-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.training-item:hover {
  border-color: rgba(0, 212, 255, 0.1);
}

.training-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.training-badge.cert {
  background: var(--amber-glow);
  color: var(--amber);
}

/* ═══════ ARTICLES ═══════ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.article-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
  transform: translateY(-4px);
}

.article-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0, 212, 255, 0.08);
  line-height: 1;
  margin-bottom: 12px;
}

.article-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.article-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ═══════ CONTACT ═══════ */
.contact-section {
  background: var(--bg-secondary);
}

/* Resume Download Banner */
.resume-download-banner {
  max-width: 800px;
  margin: 0 auto 48px;
}

.download-content {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(0, 230, 118, 0.06));
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius);
  transition: var(--transition);
}

.download-content:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.08);
}

.download-icon-wrap {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
}

.download-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.download-content > div:nth-child(2) p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-download-lg {
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  transition: var(--transition);
  color: var(--text-primary);
}

a.contact-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
}

.contact-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ═══════ LEADERSHIP & MENTORSHIP ═══════ */
.leadership-section {
  background: var(--bg-secondary);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.leadership-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.leadership-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.leadership-card.featured {
  border-color: rgba(0, 212, 255, 0.2);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 212, 255, 0.04) 100%);
}

.leadership-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 20px;
}

.leadership-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.leadership-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════ FOOTER ═══════ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ═══════ ANIMATIONS ═══════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scrollDotBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(14px);
    opacity: 0.2;
  }
}

@keyframes scrollChevronBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

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

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

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

@media (max-width: 768px) {
  :root {
    --section-pad: 60px;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 48px;
  }

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

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

  .project-card.featured {
    grid-column: 1;
  }

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

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

  .timeline {
    padding-left: 32px;
  }

  .timeline-marker {
    left: -25px;
  }

  .scroll-indicator {
    display: none;
  }

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

  .download-content {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .btn-download-lg {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2.2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

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

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

/* ═══════ PROJECT MODAL ═══════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}

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

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  max-width: 860px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: var(--accent);
}

.modal-header {
  margin-bottom: 32px;
  padding-right: 48px;
}

.modal-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.modal-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 6px;
}

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

.modal-section {
  margin-bottom: 28px;
}

.modal-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.modal-section > p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Block Diagram */
.block-diagram {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.diagram-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.diagram-block {
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  text-align: center;
  min-width: 100px;
}

.diagram-block.app { background: rgba(167, 139, 250, 0.12); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.2); }
.diagram-block.svc { background: var(--accent-glow); color: var(--accent); border: 1px solid rgba(0, 212, 255, 0.2); }
.diagram-block.drv { background: var(--green-glow); color: var(--green); border: 1px solid rgba(0, 230, 118, 0.2); }
.diagram-block.hw { background: var(--amber-glow); color: var(--amber); border: 1px solid rgba(255, 171, 0, 0.2); }
.diagram-block.tool { background: rgba(236, 130, 250, 0.1); color: #ec82fa; border: 1px solid rgba(236, 130, 250, 0.2); }

.diagram-connector {
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  padding: 2px 0;
}

/* Modal Features List */
.modal-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.modal-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.modal-features li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Modal Tech Tags */
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tags span {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
}

/* Clickable card hint */
.project-card[data-project] {
  cursor: pointer;
}

.project-card[data-project]::after {
  content: 'Click for details \2192';
  display: block;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card[data-project]:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
  .modal {
    padding: 24px;
    max-height: 90vh;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .diagram-block {
    min-width: 70px;
    padding: 6px 10px;
    font-size: 0.7rem;
  }
}
