/* ==========================================================================
   CHRIS CASTALDI PORTFOLIO DESIGN SYSTEM
   Dark Glassmorphism & Cybernetic Neural Theme
   Ultra-Responsive Layout Engine
   ========================================================================== */

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(28, 37, 58, 0.9);
  --bg-nav: rgba(7, 9, 14, 0.92);
  
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 240, 255, 0.35);
  --border-violet: rgba(157, 78, 221, 0.4);
  
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.3);
  --violet: #9d4edd;
  --violet-glow: rgba(157, 78, 221, 0.3);
  --emerald: #10b981;
  --amber: #ffb703;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Fira Code', monospace;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.2);
  --shadow-card: 0 12px 35px -8px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Animation Canvas (PlexisNode Mesh Engine) */
#bg-canvas,
#plexis-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
  transform: translateZ(0);
  will-change: transform;
}

/* Typography & Links */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  letter-spacing: -0.02em;
  font-weight: 700;
}

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

a:hover {
  color: #70f3ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 5rem 0;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.brand-logo img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

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

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

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

.nav-btn {
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #000 !important;
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  transition: var(--transition);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.7);
  color: #000 !important;
  text-shadow: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* Hero Section */
.hero {
  padding-top: 8.5rem;
  padding-bottom: 4.5rem;
  display: flex;
  align-items: center;
  min-height: 85vh;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-glow);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, var(--cyan) 70%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-code);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.tech-tag:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #00a6ff);
  color: #000 !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.7);
  color: #000 !important;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main) !important;
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan) !important;
  background: rgba(0, 240, 255, 0.06);
  transform: translateY(-3px);
}

/* Hero Profile Card Widget */
.hero-profile-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  text-align: center;
  width: 100%;
}

.hero-profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.profile-avatar-wrap {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.25rem auto;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.profile-name {
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.profile-company {
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

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

.stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.stat-item .stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Company Focus Banner */
.focus-banner {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.06), rgba(157, 78, 221, 0.06));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.focus-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.focus-icon {
  width: 54px;
  height: 54px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--cyan);
  flex-shrink: 0;
}

.focus-title-wrap h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.focus-company-link {
  color: var(--cyan);
  font-weight: 600;
  font-size: 1rem;
}

.focus-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 1.75rem;
}

@media (max-width: 1100px) {
  .focus-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .focus-highlights {
    grid-template-columns: 1fr;
  }
}

.focus-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: var(--transition);
}

.focus-card:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.14);
}

.focus-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
  font-size: 1.15rem;
  transition: var(--transition);
}

.focus-card:hover .focus-icon-wrap {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--cyan);
  box-shadow: 0 0 14px var(--cyan-glow);
  color: #ffffff;
}

.focus-text strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

/* Section Header */
.section-title-wrap {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  color: var(--cyan);
  font-family: var(--font-code);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
}

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

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

/* Filter Controls */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

/* Fluid Responsive Card Grids */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
  gap: 2rem;
  width: 100%;
}

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

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.project-thumb-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #0d111a;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-thumb {
  transform: scale(1.06);
}

.project-cat-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glow);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  cursor: pointer;
}

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

.play-btn-circle {
  width: 56px;
  height: 56px;
  background: var(--cyan);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 25px var(--cyan);
  transition: transform 0.2s ease;
}

.play-btn-circle:hover {
  transform: scale(1.15);
}

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

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

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

.project-links {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.proj-link-btn {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
}

.proj-link-btn:hover {
  background: var(--cyan);
  color: #000 !important;
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* GitHub Open Source Lab Grid */
.github-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.75rem;
  width: 100%;
}

.repo-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.repo-card:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px -5px rgba(0, 240, 255, 0.25);
}

.repo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.repo-name {
  font-size: 1.15rem;
  color: #fff;
  font-family: var(--font-code);
  font-weight: 600;
}

.repo-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

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

.repo-lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  font-weight: 600;
}

/* Video Showcase Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
  gap: 1.75rem;
  width: 100%;
}

.video-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  border-color: var(--cyan);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px -5px rgba(0, 240, 255, 0.25);
}

.video-thumb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-thumb-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumb-container img {
  transform: scale(1.08);
}

.video-card-title {
  padding: 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  flex-grow: 1;
}

/* Resume Timeline Section */
.resume-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--violet), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 0.35rem;
  left: -2rem;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.timeline-period {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}

.timeline-role {
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

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

.timeline-bullets {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* Skills Matrix Cards */
.skills-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.skills-cat-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skills-list-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Video Lightbox Modal */
body.modal-open .navbar {
  display: none !important;
}

body.modal-open #bg-canvas {
  display: none !important;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 5, 10, 0.97);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  padding: 1.5rem;
}

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

.modal-content {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: #000;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cyan);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95);
}

.modal-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.modal-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(18, 24, 38, 0.9);
  border: 1px solid var(--border-glow);
  color: #fff;
  font-size: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--cyan);
  color: #000;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  background: rgba(4, 6, 10, 0.95);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1.25rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--cyan);
  color: #000 !important;
  box-shadow: 0 0 15px var(--cyan);
}

.copyright {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   BREAKPOINTS & RESPONSIVE LAYOUT ENGINE (100% FLUID)
   ========================================================================== */

@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.2rem;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-profile-card {
    max-width: 480px;
    margin: 0 auto;
  }

  .resume-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .brand-logo {
    font-size: 1.1rem;
  }

  .brand-logo img {
    width: 32px;
    height: 32px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.8rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

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

  .focus-banner {
    padding: 1.5rem 1.2rem;
  }

  .focus-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-item::before {
    left: -1.5rem;
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ==========================================================================
   404 NOT FOUND PAGE STYLING
   ========================================================================== */
.error-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 3rem 1.5rem;
}

.error-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 680px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-card), 0 0 40px rgba(0, 240, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.error-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff0055, var(--violet), var(--cyan));
}

.error-glitch-title {
  font-family: var(--font-heading);
  font-size: clamp(4.5rem, 12vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff 15%, var(--cyan) 55%, var(--violet) 85%, #ff0055 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
}

.error-heading {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.error-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.error-terminal {
  background: rgba(4, 6, 12, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 2rem;
  line-height: 1.6;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
}

.error-terminal .term-dim {
  color: var(--text-dim);
}

.error-terminal .term-err {
  color: #ff3366;
  font-weight: 600;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

