/* ============================================
   N4L2 Neural Portfolio — Main Stylesheet
   ============================================ */


/* --- CSS Variables --- */
:root {
  /* Background (matches the brain image palette) */
  --bg-primary: #000000;   /* main */
  --bg-secondary: #000000; /* secondary */
  --bg-card: rgba(7, 16, 31, 0.82);
  --text-primary: #e0e0ec;
  --text-secondary: #8888aa;
  --text-muted: #555577;
  --accent-cyan: #00e5ff;
  --accent-magenta: #ff0080;
  --accent-purple: #a855f7;
  --accent-blue: #3b82f6;
  --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.3), 0 0 60px rgba(0, 229, 255, 0.1);
  --glow-magenta: 0 0 20px rgba(255, 0, 128, 0.3), 0 0 60px rgba(255, 0, 128, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) var(--bg-primary);
}

body {
  /* Deep black background */
  background-color: #000000;
  background-image: radial-gradient(circle at center, #0a0a0a 0%, #000000 60%, #000000 100%);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  width: 6px;
}
body::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
body::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 3px;
}

/* --- Background Particles (canvas) --- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Page Loading --- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent-cyan);
  letter-spacing: 0.5em;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

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

.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: 1px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  border-radius: 1px;
  animation: loaderFill 1.8s ease forwards;
}

@keyframes loaderFill {
  to { width: 100%; }
}

/* ============================================
   HERO SECTION — Brain Node Map
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

/* Fixed header (logo stays visible while scrolling) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 1.4rem 1rem 1rem;
  pointer-events: none;
}

.logo-link {
  pointer-events: auto;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s var(--transition-smooth), border-color 0.35s var(--transition-smooth);
}

.logo-link:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 229, 255, 0.28);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #ffffff 40%, var(--accent-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.35));
  user-select: none;
}

/* Logo */
.logo {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.logo h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #ffffff 40%, var(--accent-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.4));
  user-select: none;
}

/* Brain Container */
.brain-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brain-image-wrapper {
  position: relative;
  width: clamp(546px, 67.6vmin, 780px);
  height: clamp(546px, 67.6vmin, 780px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brain-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Remove drop-shadows so the PNG's rectangular bounds never "glow" */
  filter: none;
  animation: brainFloat 6s ease-in-out infinite;

  /* Keep edges clean across browsers (no masking that can create a halo) */
  background: transparent;
}

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

.brain-glow {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

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

/* SVG Lines Canvas */
.lines-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
}

.node-line {
  stroke: rgba(0, 229, 255, 0.15);
  stroke-width: 1;
  fill: none;
  transition: stroke 0.5s var(--transition-smooth), stroke-width 0.5s var(--transition-smooth);
}

.node-line.active {
  stroke: var(--accent-cyan);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.6));
}

.node-line-glow {
  stroke: rgba(0, 229, 255, 0);
  stroke-width: 4;
  fill: none;
  transition: stroke 0.5s var(--transition-smooth);
}

.node-line-glow.active {
  stroke: rgba(0, 229, 255, 0.2);
}

/* Navigation Nodes */
.nav-node {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.5s var(--transition-smooth);
  user-select: none;
}

.nav-node:hover {
  transform: translate(var(--hover-x, 0), var(--hover-y, 0));
}

.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.6), 0 0 30px rgba(0, 229, 255, 0.2);
  flex-shrink: 0;
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
}

.nav-node:hover .node-dot {
  transform: scale(1.6);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.8), 0 0 50px rgba(0, 229, 255, 0.4);
}

.node-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(240, 250, 255, 0.9);
  white-space: nowrap;
  transition: color 0.4s var(--transition-smooth), text-shadow 0.4s var(--transition-smooth);
}

.nav-node:hover .node-label {
  color: var(--accent-cyan);
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

/* Node positions (desktop) — match the reference (About/TL top, Skills/Projects mid, Contacts bottom) */
.nav-node[data-section="about"] {
  top: 28%;
  left: 10%;
  --hover-x: 12px;
  --hover-y: -4px;
}

.nav-node[data-section="timeline"] {
  top: 28%;
  right: 10%;
  --hover-x: -12px;
  --hover-y: -4px;
}

.nav-node[data-section="skills"] {
  top: 56%;
  left: 8%;
  --hover-x: 14px;
  --hover-y: 0px;
}

.nav-node[data-section="projects"] {
  top: 56%;
  right: 8%;
  --hover-x: -14px;
  --hover-y: 0px;
}

/* Bottom: Education (left) + Contact (right) */
.nav-node[data-section="education"] {
  bottom: 14%;
  left: 8%;
  --hover-x: 12px;
  --hover-y: -10px;
}

.nav-node[data-section="contact"] {
  bottom: 14%;
  right: 8%;
  --hover-x: -12px;
  --hover-y: -10px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.scroll-arrow {
  width: 16px;
  height: 16px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
}

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

/* ============================================
   CONTENT SECTIONS — Shared Styles
   ============================================ */
.content-sections {
  position: relative;
  z-index: 2;
}

.section {
  min-height: 100vh;
  padding: 6rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}

.section-inner {
  max-width: 1000px;
  width: 100%;
}

.section-header {
  margin-bottom: 3rem;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--text-primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  margin-top: 1rem;
}

/* Fade-in animation for sections */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.metric-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: var(--glow-cyan);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-transform: uppercase;
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.timeline-track {
  position: relative;
  padding-left: 2.5rem;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-magenta), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

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

.timeline-dot {
  position: absolute;
  left: -2.85rem;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.timeline-item:nth-child(even) .timeline-dot {
  background: var(--accent-magenta);
  box-shadow: 0 0 10px rgba(255, 0, 128, 0.5);
}

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

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.03em;
}

.timeline-company {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

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

.tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  background: rgba(0, 229, 255, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.15);
  text-transform: uppercase;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.4s ease, transform 0.3s ease;
}

.skill-category:hover {
  border-color: rgba(0, 229, 255, 0.2);
  transform: translateY(-3px);
}

.skill-cat-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

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

.skill-item {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.3rem 0.7rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
}

.skill-item:hover {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent-cyan);
  border-color: rgba(0, 229, 255, 0.3);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  cursor: default;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), var(--glow-cyan);
  transform: translateY(-4px);
}

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

.project-icon {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  color: var(--accent-cyan);
  font-family: var(--font-display);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.project-period {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

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

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.project-tech .tag {
  font-size: 0.55rem;
  padding: 0.2rem 0.5rem;
}

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

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-magenta), var(--accent-cyan));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.education-card:hover {
  border-color: rgba(255, 0, 170, 0.22);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), var(--glow-magenta);
  transform: translateY(-4px);
}

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

.education-degree {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.education-school {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.education-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.education-dot {
  opacity: 0.6;
}

/* Project modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

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

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  max-width: 650px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2.5rem;
  transform: translateY(20px);
  transition: transform 0.4s var(--transition-smooth);
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.modal-header {
  position: relative;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.modal-period {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.modal-highlights {
  margin-bottom: 1.5rem;
}

.modal-highlights h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.highlight-item::before {
  content: '▸';
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 1px;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.4s ease;
}

.contact-item:hover {
  border-color: rgba(0, 229, 255, 0.3);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.contact-icon {
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.08);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-type {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 2;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .brain-image-wrapper {
    width: clamp(416px, 72.8vmin, 598px);
    height: clamp(416px, 72.8vmin, 598px);
  }

  .nav-node[data-section="about"] { top: 24%; left: 6%; }
  .nav-node[data-section="timeline"] { top: 24%; right: 6%; }
  .nav-node[data-section="skills"] { top: 58%; left: 5%; }
  .nav-node[data-section="projects"] { top: 58%; right: 5%; }
  .nav-node[data-section="education"] { bottom: 12%; left: 5%; }
  .nav-node[data-section="contact"] { bottom: 12%; right: 5%; }

  .node-label {
    font-size: 0.8rem;
  }

  .logo-text {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 6rem 1rem 3rem;
    flex-direction: column;
  }

  .brain-container {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .brain-image-wrapper {
    width: 260px;
    height: 260px;
  }

  .lines-svg {
    display: none;
  }

  .nav-node {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    justify-content: center;
  }

  .nav-nodes-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 2rem 1rem;
    width: 100%;
    max-width: 400px;
  }

  .nav-node:hover {
    transform: none !important;
  }

  .section {
    padding: 4rem 1.5rem;
    min-height: auto;
  }

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

  .section-title {
    font-size: 1.5rem;
  }

  .logo h1 {
    font-size: 1.6rem;
  }

  .modal-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .about-metrics {
    grid-template-columns: 1fr;
  }

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

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


/* --- Project Modal Actions --- */
.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.14), rgba(255, 0, 128, 0.12));
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.16);
  transition: transform 0.25s var(--transition-smooth), border-color 0.25s var(--transition-smooth), box-shadow 0.25s var(--transition-smooth);
}

.modal-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.7);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.28), 0 0 42px rgba(255, 0, 128, 0.12);
}
