/* =========================================================================
   TABLE OF CONTENTS
   1. Variables & reset     5. About tabs (profile, experience, education, hobbies)
   2. Shared components     6. Skills
   3. Navbar                7. Projects
   4. Hero                  8. Contact & footer
                            9. Animations, background, responsive
   ========================================================================= */

/* ---------- 1. VARIABLES & RESET ---------- */
:root {
  --cyan: #00f0ff;
  --magenta: #ff00cc;
  --green: #27c93f;
  --yellow: #ffbd2e;
  --bg: #0a0a0f;
  --panel: #04080e;
  --border: #161b22;
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --font-display: 'Orbitron', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --gradient-brand: linear-gradient(90deg, var(--cyan), var(--magenta));
  --window-width: min(92%, 1200px);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: #fff;
  overflow-x: hidden;
}


/* ---------- 2. SHARED COMPONENTS ---------- */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cyan { color: var(--cyan); }
.green { color: var(--green); }
.red { color: #ff3344; }

/* Window card used by About, Skills, Projects and Contact */
.window {
  position: relative;
  z-index: 2;
  width: var(--window-width);
  margin: 80px auto 120px;
  background: rgba(10, 10, 15, 0.96);
  border: 2px solid var(--cyan);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

/* Contact sits flush against the footer */
.window-attached {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.window-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.window-title {
  font-family: var(--font-display);
  color: var(--cyan);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
}

.window-dots { display: flex; gap: 8px; }
.window-dots span {
  width: 10px;
  height: 10px;
  border: 1px solid var(--magenta);
  border-radius: 50%;
}

.panel {
  background: var(--panel);
  border: 1px solid #21262d;
  border-radius: 6px;
  padding: 24px;
}

/* Two-column layout used inside windows */
.pane-body { display: flex; gap: 30px; align-items: center; width: 100%; }
.half { flex: 1; }
.half.center { display: flex; justify-content: center; }

/* Image frame with blurred backdrop (education + hobbies) */
.photo-frame {
  position: relative;
  width: 100%;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.photo-frame .blurred-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(15px) brightness(0.4) saturate(0.8);
  pointer-events: none;
}
.photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.15s ease;
}

.bullet-points { list-style: none; }
.bullet-points li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}
.bullet-points li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: bold;
}
.bullet-points li strong { color: var(--magenta); }

/* ---------- 3. NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 20px;
  left: 5%;
  width: 90%;
  height: 70px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: transparent; 
  filter: drop-shadow(0 10px 20px rgba(0, 240, 255, 0.2))
          drop-shadow(0 10px 30px rgba(255, 0, 204, 0.15));
}

/* Background shape is a pseudo-element so the clip-path doesn't cut the content */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; 
  background: rgba(10, 15, 25, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  clip-path: polygon(0% 15px, 15px 0%, calc(100% - 15px) 0%, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0% calc(100% - 15px));
}

.navbar::after {
  ::after {
  content: '';
  position: absolute;
  left: 180px;                  
  right: 520px;                 
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.3), rgba(255, 0, 204, 0.05));
  pointer-events: none;
}

}
.logo {
  font-weight: 800;
  background: linear-gradient(90deg, #00f0ff 0%, #ff00cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
  animation: glitch 5s infinite;
}

.navbar ul { position: relative; display: flex; list-style: none; gap: 15px; }

.navbar a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #646473;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: color 0.3s ease, transform 0.3s ease;
}
.navbar a:hover { color: var(--magenta); transform: translateY(-2px); }

.nav-tracker {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

/* ---------- 4. HERO ---------- */
.hero-section {
  position: relative;
  height: 100vh;
  background: url('hero-section/heroes.webp') no-repeat left center / cover;
}

.hero-section::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 25%;
  background: linear-gradient(to bottom, transparent, #0d1117);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
}

.hero-text-box {
  position: absolute;
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 800px;
  animation: fadeInUp 1s ease forwards;
}

.hero-text-box h1 {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 3px;
}
.hero-text-box h2 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--magenta);
  text-shadow: 0 0 10px rgba(255, 0, 204, 0.5);
}
.hero-text-box p {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--cyan);
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

.social-icons { margin-top: 40px; }
.social-icons a {
  display: inline-block;
  margin-right: 25px;
  font-size: 26px;
  color: #646473;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover { color: var(--cyan); transform: scale(1.2); }

/* ---------- 5. ABOUT ---------- */
.window-workspace { padding: 35px 40px; min-height: 380px; }

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeEffect 0.4s ease-in-out; }

.pane-heading { margin-bottom: 25px; }
.title-text { font-family: var(--font-display); font-size: 1.4rem; color: var(--magenta); margin-bottom: 4px; }
.subtitle-code { font-family: var(--font-mono); font-size: 0.85rem; color: var(--cyan); }

/* Profile */
.about-text { flex: 1; }
.about-text p { margin-bottom: 15px; font-size: 0.95rem; line-height: 1.6; color: #a2a2b5; }

.meta-block {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-left: 30px;
  border-left: 1px solid rgba(255, 0, 204, 0.15);
}
.avatar-circle {
  width: 140px;
  height: 140px;
  border: 2px solid var(--magenta);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255, 0, 204, 0.3);
}
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.meta-data-list { width: 100%; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }
.meta-data-list strong { color: var(--magenta); }

/* Experience */
.terminal-col { width: 350px; flex-shrink: 0; align-self: stretch; }
.mock-terminal {
  height: 100%;
  padding: 15px;
  background: #121212;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 8px;
  font-family: var(--font-mono);
}
.terminal-top {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.t-dot { width: 7px; height: 7px; border-radius: 50%; }
.t-dot.red { background: #ff5f56; }
.t-dot.yellow { background: var(--yellow); }
.t-dot.green { background: var(--green); }
.t-name { margin-left: 5px; font-size: 10px; color: #4e4e5a; }
.terminal-body { font-size: 12px; line-height: 1.8; color: #a2a2b5; }

.experience-card {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-left: 3px solid var(--magenta);
  border-radius: 8px;
}
.job-role-title { font-family: var(--font-display); font-size: 1.1rem; }
.job-meta-details { margin-bottom: 15px; font-family: var(--font-mono); font-size: 0.85rem; }

/* Education */
.education-photo { max-width: 400px; height: 260px; box-shadow: 0 0 15px rgba(0, 240, 255, 0.15); }
.education-photo img:hover { transform: scale(1.03); }

.education-timeline {
  position: relative;
  margin-left: 5px;
  padding-left: 20px;
  border-left: 2px solid rgba(0, 240, 255, 0.15);
}
.timeline-item { position: relative; margin-bottom: 25px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -27px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  transition: all 0.3s ease;
}
.timeline-item:hover .timeline-dot { background: var(--magenta); border-color: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.school-title { display: inline-block; margin-bottom: 3px; font-family: var(--font-display); font-size: 1.05rem; }
.school-meta { margin-bottom: 8px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }

/* Hobbies */
.hobbies-selector-deck {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: rgba(5, 5, 10, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 12px;
  box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.05);
}
.selector-title { margin-bottom: 8px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 2px; color: var(--text-muted); }

.hobby-driver {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.driver-status { padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); }
.driver-name { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 1px; color: #fff; }
.hobby-driver:hover { border-color: var(--cyan); box-shadow: 0 0 8px rgba(0, 240, 255, 0.2); }
.hobby-driver.active { border-color: var(--magenta); background: rgba(255, 0, 204, 0.05); box-shadow: 0 0 12px rgba(255, 0, 204, 0.15); }
.hobby-driver.active .driver-status { background: var(--magenta); color: #000; font-weight: bold; }
.hobby-driver.active .driver-name { color: var(--magenta); }

.hobbies-display-panel { flex: 1.3; display: flex; flex-direction: column; gap: 15px; }
.hobby-photo { height: 250px; }
.display-details { padding-left: 15px; border-left: 2px solid var(--magenta); }
.hobby-title { margin-bottom: 5px; font-family: var(--font-display); font-size: 1.1rem; color: var(--cyan); }
.hobby-desc { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.4; color: var(--text-muted); }

/* Tab buttons */
.window-footer-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(0, 240, 255, 0.1);
}
.tab-btn {
  padding: 8px 20px;
  background: transparent;
  border: 2px solid var(--magenta);
  border-radius: 8px;
  color: var(--magenta);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tab-btn:hover, .tab-btn.active { background: var(--magenta); color: var(--bg); box-shadow: 0 0 15px rgba(255, 0, 204, 0.5); }

/* ---------- 6. SKILLS ---------- */
.skills-layout { display: flex; align-items: stretch; }

.skills-explorer-column {
  width: 280px;
  flex-shrink: 0;
  padding: 25px 20px;
  background: rgba(10, 10, 15, 0.5);
  border-right: 1px solid rgba(0, 240, 255, 0.15);
}
.explorer-header { margin-bottom: 20px; font-family: var(--font-display); font-size: 11px; letter-spacing: 1.5px; color: var(--text-muted); }
.directory-tree { list-style: none; }
.folder-node {
  margin-bottom: 6px;
  padding: 10px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}
.folder-node:hover { background: rgba(0, 240, 255, 0.05); color: var(--cyan); }
.folder-node.active { background: rgba(255, 0, 204, 0.08); color: var(--magenta); border-left: 2px solid var(--magenta); }
.folder-icon { margin-right: 8px; font-size: 14px; }

.skills-report-column { flex: 1; padding: 25px 35px; background: rgba(5, 5, 8, 0.85); font-family: var(--font-mono); }
.report-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  font-size: 12px;
}
.active-tag { color: var(--green); text-shadow: 0 0 5px rgba(39, 201, 63, 0.4); }
.report-meta { margin-bottom: 25px; font-size: 13px; color: var(--text-muted); }

.ascii-report-line { display: flex; align-items: center; margin-bottom: 18px; font-size: 13px; color: var(--text); animation: fadeEffect 0.2s ease-in-out; }
.tech-name { width: 220px; flex-shrink: 0; font-weight: bold; }
.ascii-bar { width: 200px; flex-shrink: 0; letter-spacing: 2px; color: var(--cyan); text-shadow: 0 0 8px rgba(0, 240, 255, 0.4); }
.tech-status { margin-left: auto; font-size: 11px; font-weight: bold; }
.tech-status.yellow { color: var(--yellow); }

/* ---------- 7. PROJECTS ---------- */
.git-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(13, 17, 23, 0.2);
  border-bottom: 1px solid var(--border);
}
.git-branch { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.95rem; color: var(--text-muted); }
.git-branch-icon { color: var(--cyan); font-size: 1.1rem; }
.white-text { color: var(--text); }
.commit-controls { display: flex; align-items: center; gap: 16px; }
.commit-status { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.commit-btn {
  padding: 0 4px;
  background: transparent;
  border: none;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
}
.commit-btn:hover { color: var(--magenta); transform: scale(1.1); }

.project-card { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px 16px; background: #030708; }

.project-viewport {
  position: relative;
  height: 400px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.project-bg-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(15px) brightness(0.4);
  opacity: 0.6;
  transform: scale(1.1);
  transition: opacity 0.15s ease;
}
.project-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.95;
  transition: opacity 0.15s ease;
}

.project-pane { height: 400px; display: flex; flex-direction: column; justify-content: space-between; }
.repo-header { display: flex; justify-content: space-between; align-items: center; }
.repo-title-wrapper { display: flex; align-items: center; gap: 8px; }
.repo-folder-icon { color: #f0883e; }
.repo-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.5px; color: var(--cyan); }
.repo-badge { padding: 1px 8px; border: 1px solid #30363d; border-radius: 10px; font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); }
.repo-description { margin: 15px 0; overflow-y: auto; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.5; color: var(--text-muted); }
.repo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #21262d;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.footer-left { display: flex; align-items: center; gap: 6px; color: var(--text); }
.footer-right { display: flex; gap: 8px; color: var(--text-muted); }
.lang-dot { width: 8px; height: 8px; border-radius: 50%; background: #f34b7d; }

/* ---------- 8. CONTACT & FOOTER ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; padding: 24px 20px; background: #030708; }

.comms-matrix { display: flex; flex-direction: column; height: 380px; }
.matrix-header { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px dashed #21262d; }
.matrix-title { display: block; font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; letter-spacing: 1px; color: var(--cyan); }
.matrix-subtitle { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); }

.node-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.node-token {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.node-tag { font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted); }
.node-main { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.node-icon { font-size: 1.1rem; color: var(--cyan); }
.node-name { font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px; color: #fff; }
.node-meta { align-self: flex-end; font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); }
.node-token:hover { background: rgba(0, 240, 255, 0.04); border-color: var(--cyan); box-shadow: 0 0 12px rgba(0, 240, 255, 0.1); transform: translateY(-2px); }
.node-token:active { border-color: var(--magenta); }
.node-token:hover .node-name { color: var(--cyan); }
.node-token:hover .node-meta { color: var(--magenta); }

.telemetry-pane { height: 380px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }
.live-badge { padding: 1px 8px; border: 1px solid var(--magenta); color: var(--magenta); font-family: var(--font-mono); font-size: 0.65rem; animation: badgePulse 2s infinite ease-in-out; }
.telemetry-display { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; align-items: center; margin-top: 10px; }

.radar-box {
  position: relative;
  width: 130px;
  height: 130px;
  justify-self: center;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.02) 0%, transparent 70%);
}
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 50%, rgba(0, 240, 255, 0.25) 100%); animation: sweep 4s linear infinite; }
.radar-ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); border: 1px dashed rgba(0, 240, 255, 0.15); border-radius: 50%; }
.r1 { width: 40px; height: 40px; }
.r2 { width: 80px; height: 80px; }
.r3 { width: 110px; height: 110px; }
.radar-crosshair-h { position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: rgba(0, 240, 255, 0.1); }
.radar-crosshair-v { position: absolute; left: 50%; top: 0; height: 100%; width: 1px; background: rgba(0, 240, 255, 0.1); }
.radar-ping { position: absolute; top: 35%; left: 65%; width: 6px; height: 6px; background: var(--magenta); border-radius: 50%; box-shadow: 0 0 8px var(--magenta); animation: blink 0.8s linear infinite; }

.telemetry-stats { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; }
.tel-row { display: flex; justify-content: space-between; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.tel-key { color: var(--text-muted); }
.tel-val { font-weight: bold; }
.tel-val.clock { color: #f1e05a; }
.pulse-green { color: #50fa7b; animation: textGlow 1.5s infinite alternate; }

.matrix-wave { display: flex; align-items: flex-end; justify-content: space-between; height: 60px; padding: 8px; background: rgba(2, 4, 8, 0.6); border: 1px solid var(--border); border-radius: 4px; }
.wave-bar { width: 6%; background: linear-gradient(to top, var(--cyan), var(--magenta)); border-radius: 2px 2px 0 0; transform-origin: bottom; animation: bounceBars 0.6s ease-in-out infinite alternate; }
.b1 { height: 30%; animation-delay: .1s; } .b2 { height: 65%; animation-delay: .4s; }
.b3 { height: 15%; animation-delay: .2s; } .b4 { height: 85%; animation-delay: .6s; }
.b5 { height: 40%; animation-delay: .3s; } .b6 { height: 70%; animation-delay: .5s; }
.b7 { height: 25%; animation-delay: .1s; } .b8 { height: 90%; animation-delay: .7s; }
.b9 { height: 50%; animation-delay: .2s; } .b10 { height: 75%; animation-delay: .4s; }
.b11 { height: 35%; animation-delay: .3s; } .b12 { height: 60%; animation-delay: .5s; }

.terminal-footer {
  position: relative;
  z-index: 2;
  width: var(--window-width);
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(13, 17, 23, 0.9);
  border: 2px solid var(--cyan);
  border-top: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 0 0 20px 20px;
  font-family: monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
}
.status-green { color: var(--cyan); }
.status-magenta { color: #ff007f; }
.divider { margin: 0 8px; color: rgba(255, 255, 255, 0.2); }
.copyright-text { color: rgba(255, 255, 255, 0.4); }

/* ---------- 9. ANIMATIONS & BACKGROUND ---------- */
@keyframes fadeEffect { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(-40%); } to { opacity: 1; transform: translateY(-50%); } }
@keyframes glitch { 0%, 95%, 100% { opacity: 1; } 97% { opacity: 0.2; } }
@keyframes softPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes badgePulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes textGlow { from { text-shadow: 0 0 2px rgba(80, 250, 123, 0.3); } to { text-shadow: 0 0 8px rgba(80, 250, 123, 0.8); } }
@keyframes bounceBars { from { transform: scaleY(0.3); } to { transform: scaleY(1.1); } }
@keyframes blink { 50% { opacity: 0; } }
.pulse-animation { animation: softPulse 1.5s infinite; }

#matrix-bg-container { position: fixed; inset: 0; z-index: -10; background: #0d1117; overflow: hidden; }
.blueprint-grid-overlay {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  will-change: transform;
}
#matrix-data-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 850px) {
  .pane-body { flex-direction: column; gap: 25px; }
  .terminal-col, .meta-block { width: 100%; border-left: none; padding-left: 0; }
  .window-workspace { padding: 25px 20px; }
  .window-footer-tabs { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .comms-matrix, .telemetry-pane { height: auto; }
}

@media (max-width: 768px) {
  .navbar { top: 10px; left: 2%; width: 96%; height: 60px; padding: 0 15px; }
  .navbar::before { clip-path: polygon(0 10px, 10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px)); }
  .logo { font-size: 20px; }
  .navbar ul { gap: 2px; }
  .navbar a { padding: 6px 8px; font-size: 11px; letter-spacing: 1px; }

  .hero-section { background-position: center; }
  .hero-overlay { background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0.4)); }
  .hero-text-box { left: 5%; right: 5%; top: 55%; max-width: 100%; padding: 0 10px; text-align: center; }
  .hero-text-box h1 { font-size: 36px; letter-spacing: 1px; line-height: 1.2; }
  .hero-text-box h2 { font-size: 18px; margin-top: 10px; }
  .hero-text-box p { font-size: 14px; margin-top: 10px; }
  .social-icons { margin-top: 25px; }
  .social-icons a { margin: 0 12px; }

  /* Skills: stack explorer above report */
  .skills-layout { flex-direction: column; }
  .skills-explorer-column { width: 100%; padding: 15px; border-right: none; border-bottom: 1px solid rgba(0, 240, 255, 0.15); }
  .directory-tree { display: flex; flex-wrap: wrap; gap: 8px; }
  .folder-node { margin-bottom: 0; padding: 6px 10px; font-size: 11px; }
  .skills-report-column { padding: 20px 15px; }
  .ascii-report-line { flex-wrap: wrap; gap: 5px; padding-bottom: 10px; border-bottom: 1px dashed rgba(255, 255, 255, 0.05); font-size: 12px; }
  .tech-name { width: 50%; flex-grow: 1; }
  .tech-status { font-size: 10px; }
  .ascii-bar { order: 3; width: 100%; margin-top: 5px; font-size: 14px; }

  .project-card { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .project-viewport, .project-pane { height: auto; min-height: 220px; }
  .project-viewport { height: 240px; }
}

@media (max-width: 400px) {
  .logo { font-size: 18px; }
  .navbar a { font-size: 10px; padding: 4px 6px; }
  .hero-text-box h1 { font-size: 28px; }
  .hero-text-box h2 { font-size: 16px; }
}

.paused *, .paused { animation-play-state: paused !important; }
.pulse-green { animation: none; }  /* text-shadow animation repaints every frame */