/* ═══════════════════════════════════════════════════
   PORTFOLIO V2 - Dark Ocean Theme
   ═══════════════════════════════════════════════════ */

:root {
  --bg-primary: #0a1220;
  --bg-secondary: #1a2332;
  --text-primary: #e6f7ff;
  --text-secondary: #87ceeb;
  --accent: #00bfff;
  --accent-hover: #1e90ff;
  --card-bg: #1a2332;
  --card-hover: #243242;
  --success: #20b2aa;
  --highlight: #4682b4;
  --danger: #ff6b6b;
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ═══ NOISE TEXTURE OVERLAY ═══ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ═══ BOIDS CANVAS ═══ */
#boids-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* ═══ METRICS HUD ═══ */
#metrics-hud {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  background: rgba(10, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 191, 255, 0.25);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  color: var(--accent);
  cursor: grab;
  user-select: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#metrics-hud:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}

.hud-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

.hud-sep {
  color: rgba(0, 191, 255, 0.3);
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px var(--success); }
  50% { opacity: 0.4; box-shadow: none; }
}

/* ═══ BOID TOOLS TOOLBAR ═══ */
#boid-tools {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(10, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 191, 255, 0.25);
  border-radius: 12px;
  padding: 0.5rem;
}

.boid-tool-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(0, 191, 255, 0.2);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.boid-tool-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 191, 255, 0.1);
  border-color: var(--accent);
}

.boid-tool-btn.active {
  color: var(--bg-primary);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

/* ═══ LAYOUT ═══ */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

/* ═══ HEADER ═══ */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(6, 10, 22, 0.9);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  gap: 0.5rem;
}

.logo img {
  height: 32px;
  transition: transform 0.3s ease;
}

.logo:hover img {
  animation: logoJump 0.8s ease forwards;
}

@keyframes logoJump {
  0%   { transform: translateY(0); }
  40%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.logo .title {
  font-weight: 600;
  font-size: 1.2rem;
  background: linear-gradient(90deg, #00bfff, #4682b4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(0, 191, 255, 0.1);
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  width: 80%;
  height: 2px;
  bottom: -2px;
  left: 10%;
  background: linear-gradient(90deg, var(--accent), var(--highlight));
  border-radius: 2px;
}

/* ═══ HERO ═══ */
.hero {
  min-height: 380px;
  display: flex;
  align-items: center;
  padding: 120px 0 40px;
  position: relative;
  z-index: 10;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.profile-picture {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
              linear-gradient(90deg, var(--accent), var(--highlight)) border-box;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: oceanFloat 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.profile-picture:hover {
  transform: scale(1.05);
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-content {
  background: rgba(10, 15, 31, 0.95);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 191, 255, 0.1);
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.gradient-text {
  background: linear-gradient(90deg, #00bfff, #4682b4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 600px;
}

/* Typing animation for hero */
.typing-text {
  display: inline;
}

.hero h1::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--accent);
  font-weight: 300;
}

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

.social-icons {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.social-icons a:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4);
  border-color: var(--accent);
}

/* ═══ CONTENT WRAPPER (outer card for visual containment) ═══ */
.content-wrapper {
  background: rgba(8, 12, 26, 0.92);
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 191, 255, 0.08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* ═══ NAV CONTAINER / DASHBOARD HEADER ═══ */
.nav-container {
  background: rgba(10, 15, 31, 0.95);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 191, 255, 0.15);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.dashboard-title h2 {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.dashboard-title p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.dashboard-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ═══ PANEL SWITCHER ═══ */
.panel-switcher {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 3px;
  border: 1px solid rgba(0, 191, 255, 0.15);
}

.panel-switch-btn {
  padding: 0.4rem 1rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.panel-switch-btn.active {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 2px 8px rgba(0, 191, 255, 0.3);
}

.panel-switch-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* ═══ DASH PANELS ═══ */
.dash-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.dash-panel.active {
  display: block;
}

.dash-panel > .section {
  background: rgba(10, 15, 31, 0.95);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 191, 255, 0.1);
}

/* ═══ SECTIONS ═══ */
.section {
  padding: 1rem 0;
  scroll-margin-top: 80px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #00bfff, #4682b4, #20b2aa);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

/* ═══ TAB CONTENT ═══ */
.tab-content {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
  display: block;
}

#blog-content > .section {
  background: rgba(10, 15, 31, 0.95);
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid rgba(0, 191, 255, 0.1);
}


/* ═══ PROJECT CARDS ═══ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.75rem;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.project-card {
  background: #141e2e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  border: 1px solid rgba(0, 191, 255, 0.1);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, transparent 40%, rgba(0, 191, 255, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 191, 255, 0.15), 0 0 30px rgba(0, 191, 255, 0.1);
}

.project-image {
  height: 130px;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.project-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  background: var(--success);
  color: #fff;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(32, 178, 170, 0.4);
}

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

.project-title h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.45;
  flex: 1;
  margin-bottom: 0.4rem;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.tool-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  background: rgba(0, 191, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 191, 255, 0.2);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tool-tag:hover {
  background: rgba(0, 191, 255, 0.2);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ═══ EXPERIENCE CARDS ═══ */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.experience-card {
  background: #141e2e;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 191, 255, 0.1);
  border-left-color: var(--success);
}

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

.experience-title-container h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.company-logo {
  height: 24px;
  width: auto;
}

.experience-role {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
}

.experience-duration {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(0, 191, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.experience-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.experience-details ul {
  list-style: none;
  padding: 0;
}

.experience-details li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.experience-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.tech-used {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.5rem;
}


/* ═══ BLOG ═══ */
.blog-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.blog-nav-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--text-secondary);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.blog-nav-btn.active {
  color: var(--text-primary);
  border-color: var(--accent);
}

.blog-post {
  display: none;
  margin-top: 2rem;
}

.blog-post.active {
  display: block;
}

.blog-header {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1rem;
}

.blog-header h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.blog-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.blog-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.blog-body p { margin-bottom: 1.5rem; }
.blog-body strong { color: var(--text-primary); }

.blog-body h4 {
  color: var(--accent);
  margin: 2rem 0 1rem;
  font-size: 1.2rem;
}

.blog-body ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
}

.blog-body li { margin-bottom: 0.5rem; }

.blog-body .math-block {
  background: rgba(10, 15, 31, 0.6);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  font-family: 'Courier New', monospace;
  border-left: 4px solid var(--success);
}

.blog-body .math-block p {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.blog-tags {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 191, 255, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ═══ MODAL ═══ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: linear-gradient(135deg, #0d142a 0%, #1a2332 100%);
  border-radius: 20px;
  max-width: 1200px;
  width: 95vw;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 191, 255, 0.2);
  display: flex;
  flex-direction: row;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-media {
  flex: 0 0 50%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #00bfff, #4682b4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.modal-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.modal-tools .tool-tag {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.15), rgba(70, 130, 180, 0.15));
  border: 1px solid rgba(0, 191, 255, 0.3);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: inherit;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 191, 255, 0.4);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--accent);
  transform: scale(1.1);
}

/* ═══ TOAST ═══ */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
  animation: slideInToast 0.4s ease forwards;
  border: 1px solid;
}

.toast-success {
  background: rgba(32, 178, 170, 0.15);
  color: var(--success);
  border-color: rgba(32, 178, 170, 0.3);
}

.toast-error {
  background: rgba(255, 107, 107, 0.15);
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.3);
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ═══ SEPARATOR ═══ */
.separator {
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 191, 255, 0.1), rgba(0, 191, 255, 0.5), rgba(0, 191, 255, 0.1));
  margin: 1rem auto;
  width: 95%;
  border-radius: 2px;
}

/* ═══ FOOTER ═══ */
footer {
  background: var(--bg-secondary);
  padding: 1.5rem 0;
  margin-top: auto;
  z-index: 20;
  border-top: 1px solid rgba(0, 191, 255, 0.041);
}

.footer-content {
  display: flex;
  justify-content: center;
}

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

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

/* Scroll reveal classes applied by class-tools + animations.js */
.fade-up {
  animation: fadeIn 0.6s ease forwards;
}

.reveal {
  animation: fadeIn 0.5s ease forwards;
}

/* ═══ LOADING STATES (loading-states extension) ═══ */
[data-loading] {
  display: none;
}

.htmx-request [data-loading] {
  display: block;
}

.skeleton {
  background: linear-gradient(90deg, var(--card-bg) 25%, var(--card-hover) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  min-height: 200px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .social-icons { justify-content: center; }
  .profile-picture { width: 100px; height: 100px; }
  .hero h1 { font-size: 1.8rem; }
  .projects-grid {
    grid-template-columns: 1fr;
    max-height: 80vh;
  }
  .experience-timeline { max-height: 80vh; }
  .modal { flex-direction: column; max-height: 95vh; }
  .modal-media { flex-basis: auto; max-height: 40vh; }
  .experience-header { flex-direction: column; }
  .experience-duration { margin-top: 0.5rem; }
  #metrics-hud { top: auto; bottom: 1rem; right: 1rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  .hero { padding-top: 90px; }
  .hero h1 { font-size: 1.5rem; }
  .profile-picture { width: 90px; height: 90px; }
  .projects-grid { max-height: 70vh; }
  .experience-timeline { max-height: 70vh; }
}
