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

:root {
  /* Dark Mode Colors with Gradients */
  --bg-primary: #0a0a0f;
  --bg-secondary: #181822;
  --bg-card: rgba(255, 255, 255, 0.05);
  --border-color: #20202f;

  /* Gradient Colors - Purple + Blue */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #b4b4c8;
  --text-muted: #6b6b80;

  /* Accent Colors */
  --accent-purple: #667eea;
  --accent-pink: #f093fb;
  --accent-blue: #4facfe;
  --accent-cyan: #00f2fe;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 8px;
  --radius-lg: 24px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(102, 126, 234, 0.5);

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

  /* New */

  --bg: #0d0f18;
  --surface: #13151f;
  --card: #1a1d2e;
  --card-hover: #1f2235;
  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(108, 99, 255, 0.35);
  --accent: #6c63ff;
  --accent-soft: rgba(108, 99, 255, 0.12);
  --accent-glow: rgba(108, 99, 255, 0.25);
  --purple-light: #a78bfa;
  /* --text-primary: #E2E8F0; */
  /* --text-secondary: #8B92A9; */
  /* --text-muted: #4A5068; */
  --green: #22d3a4;
  --green-soft: rgba(34, 211, 164, 0.1);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.1);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.1);
  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, 0.1);
  --mono: "JetBrains Mono", monospace;
  --sans: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

ul.list {
  list-style: disc;
  padding-left: 15px;
}
ul.list li {
  margin-bottom: 0.5rem;
  color: #efefef;
  letter-spacing: 0.5px;
}

.w-20 {
  width: 20px !important;
}

.bg-secondary {
  background: var(--bg-secondary) !important;
}

.container {
  /* max-width: 1200px !important; */
  margin: 0 auto;
  padding: 0 40px;
}

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

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: var(--shadow-md);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo:hover {
  transform: scale(1.05);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

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

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 0 50px;
}

.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.gradient-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
}

.circle-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #667eea, transparent);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.circle-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #f093fb, transparent);
  bottom: -150px;
  left: -150px;
  animation-delay: 5s;
}

.circle-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #4facfe, transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 10s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  33% {
    transform: translateY(-50px) scale(1.1);
  }
  66% {
    transform: translateY(50px) scale(0.9);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  /* text-align: center; */
  max-width: 800px;
  /* margin: auto; */
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  animation: fadeInUp 1s ease-out;
}

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-blue);
  min-height: 60px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  /* justify-content: center; */
  flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.social-links {
  display: flex;
  gap: 1rem;
  /* justify-content: center; */
  animation: fadeInUp 1s ease-out 0.8s both;
}

.social-links a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a img {
  width: 25px;
  height: 25px;
  filter: invert(1);
}
.social-links a:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-down i {
  font-size: 2rem;
  color: var(--text-secondary);
}

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

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

@keyframes float_ {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes floatReverse {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(20px) rotate(-5deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(120px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(120px) rotate(-360deg);
  }
}

header .animated-icon {
  animation: float_ 3s ease-in-out infinite;
  z-index: 8;
}

header .animated-icon:nth-child(even) {
  animation: floatReverse 4s ease-in-out infinite;
}

header .animated-icon:hover {
  animation: pulse 0.3s ease-in-out infinite;
  /* opacity: 0.8;
      transform: scale(1.1) !important; */
}

/* .slide-in-left {
      animation: slideInLeft 0.8s ease-out forwards;
    }
    
    .slide-in-right {
      animation: slideInRight 0.8s ease-out forwards;
    }
    
    .fade-in {
      animation: fadeIn 1s ease-out forwards;
    }
    
    .text-gradient {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    
    .glow {
      box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    } */

.coding-canvas-wrapper {
  position: relative;
  width: 420px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Orbit rings for 3D depth */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(108, 99, 255, 0.15);
  animation: orbitSpin linear infinite;
  pointer-events: none;
}


  .ring-1 {
    width: 340px;
    height: 340px;
    animation-duration: 18s;
    background: conic-gradient(
      from 0deg,
      transparent 0%,
      rgba(108, 99, 255, 0.0) 30%,
      rgba(108, 99, 255, 0.9) 50%,
      rgba(167, 139, 250, 1) 55%,
      rgba(108, 99, 255, 0.9) 60%,
      rgba(108, 99, 255, 0.0) 80%,
      transparent 100%
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #fff calc(100% - 1.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #fff calc(100% - 1.5px));
  }
 
  .ring-2 {
    width: 420px;
    height: 420px;
    animation-duration: 26s;
    animation-direction: reverse;
    background: conic-gradient(
      from 90deg,
      transparent 0%,
      rgba(34, 211, 164, 0.0) 25%,
      rgba(34, 211, 164, 0.8) 45%,
      rgba(96, 165, 250, 1) 50%,
      rgba(34, 211, 164, 0.8) 55%,
      rgba(34, 211, 164, 0.0) 75%,
      transparent 100%
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #fff calc(100% - 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #fff calc(100% - 1px));
  }

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Terminal card */
.terminal-card {
  position: relative;
  z-index: 10;
  width: 340px;
  background: #0d0f18;
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(108, 99, 255, 0.08),
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(108, 99, 255, 0.08);
  animation: cardFloat 4s ease-in-out infinite;
}

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

/* Top bar */
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #13151f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

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

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

.terminal-title {
  flex: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  text-align: center;
}

.terminal-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #22d3a4;
  background: rgba(34, 211, 164, 0.1);
  border: 1px solid rgba(34, 211, 164, 0.2);
  padding: 2px 7px;
  border-radius: 99px;
}

/* Terminal body */
.terminal-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 240px;
}

.code-line {
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  line-height: 1.7;
  opacity: 0;
  transform: translateX(-6px);
  animation: lineIn 0.35s ease forwards;
  white-space: nowrap;
}

/* Staggered delays */
.delay-1 {
  animation-delay: 0.3s;
}
.delay-2 {
  animation-delay: 0.6s;
}
.delay-3 {
  animation-delay: 0.9s;
}
.delay-4 {
  animation-delay: 1.2s;
}
.delay-5 {
  animation-delay: 1.5s;
}
.delay-6 {
  animation-delay: 1.8s;
}
.delay-7 {
  animation-delay: 2.1s;
}
.delay-8 {
  animation-delay: 2.4s;
}
.delay-9 {
  animation-delay: 2.7s;
}

@keyframes lineIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.output-line {
  margin-top: 6px;
}

/* Syntax colors — match VS Code dark */
.c-comment {
  color: #4a5068;
}
.c-keyword {
  color: #c792ea;
}
.c-var {
  color: #82aaff;
}
.c-op {
  color: #89ddff;
}
.c-brace {
  color: #ffcb6b;
}
.c-key {
  color: #f07178;
}
.c-str {
  color: #c3e88d;
}
.c-num {
  color: #f78c6c;
}
.c-bool {
  color: #ff5370;
}

/* Blinking cursor */
.cursor-blink {
  color: #6c63ff;
  animation: blink 1s step-end infinite;
  font-size: 14px;
}

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

/* Floating badges */
.float-badge {
  position: absolute;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: #1a1d2e;
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #e2e8f0;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  animation: cardFloat 4s ease-in-out infinite;
}

.badge-icon {
  font-size: 14px;
}
.badge-text {
  color: #8b92a9;
}

.badge-tl {
  top: 40px;
  left: -10px;
  animation-delay: 0.5s;
  animation-duration: 3.5s;
}
.badge-tr {
  top: 30px;
  right: -10px;
  animation-delay: 1.2s;
  animation-duration: 4.5s;
}
.badge-bl {
  bottom: 50px;
  left: -15px;
  animation-delay: 0.8s;
  animation-duration: 5s;
}
.badge-br {
  bottom: 80px;
  right: -15px;
  animation-delay: 1.8s;
  animation-duration: 3.8s;
}

/* Bottom stat pills */
.stat-pills {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
  animation: cardFloat 4s ease-in-out infinite;
  animation-delay: 1s;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px 14px;
  background: #1a1d2e;
  border: 1px solid rgba(108, 99, 255, 0.18);
  border-radius: 10px;
  gap: 1px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.pill-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  font-weight: 700;
  color: #6c63ff;
  line-height: 1;
}

.pill-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  color: #4a5068;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
  .coding-canvas-wrapper {
    width: 300px;
    height: 400px;
  }
  .terminal-card {
    width: 280px;
  }
  .ring-1 {
    width: 260px;
    height: 260px;
  }
  .ring-2 {
    width: 310px;
    height: 310px;
  }
  /* .badge-tl, .badge-tr { display: none; } */
  .badge-tl {
    top: 6px;
  }
  .badge-tr {
    top: -2px;
  }
  .badge-bl {
    left: -5px;
    bottom: 25px;
  }
  .badge-br {
    right: -5px;
  }
  .stat-pills {
    bottom: -30px;
    left: 30%;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  /* border: none; */
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--accent-purple);
  transform: translateY(-3px);
}

/* Section Styles */
section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%) !important;
}

/* .section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
} */

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* About Section */
/* Main layout: left text, right avatar */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 72px;
  align-items: start;
  margin-bottom: 56px;
}

.about-name {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.about-name span {
  color: var(--accent);
}

.about-title {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.about-bio {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 80%;
  margin-bottom: 20px;
}

.about-bio + .about-bio {
  margin-top: -4px;
}

/* Highlight inline text */
.hl {
  color: var(--text-primary);
  font-weight: 500;
}

/* CTA buttons */
.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 11px 26px;
  border-radius: 8px;
  cursor: pointer;
  /* border: none; */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #7b74ff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-glow);
  color: var(--purple-light);
}

/* Avatar / right side */
.about-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.avatar-box {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Placeholder avatar illustration */
.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: linear-gradient(135deg, #13151f 0%, #1a1d2e 100%);
}

.avatar-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid rgba(108, 99, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 16px;
}

.avatar-initials {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-family: var(--sans);
}

.avatar-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Accent line on avatar */
.avatar-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.6;
}

/* Quick info chips below avatar */
.info-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s;
}

.info-chip:hover {
  border-color: var(--border-glow);
}

.chip-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.chip-label {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 2px;
}

.chip-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 40px;
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.stat-block {
  background: var(--card);
  padding: 24px 20px;
  text-align: center;
  transition: background 0.2s;
}

.stat-block:hover {
  background: var(--card-hover);
}

.stat-number {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number span {
  color: var(--accent);
}

.stat-desc {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Values / what I do row */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 48px;
}

.value-card {
  background: var(--card);
  padding: 26px 24px;
  transition: background 0.2s;
}

.value-card:hover {
  background: var(--card-hover);
}

.value-icon {
  font-size: 22px;
  margin-bottom: 12px;
  display: block;
}

.value-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.value-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* section label */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 30px;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-bio {
    max-width: 100%;
  }
  .about-right {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .avatar-box {
    width: 140px;
    aspect-ratio: 1;
    flex-shrink: 0;
  }
  .info-chips {
    flex: 1;
    min-width: 180px;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 60px 0 50px;
  }
  .social-links a {
    width: 40px;
    height: 40px;
  }
  .social-links a img {
    width: 22px;
    height: 22px;
  }
}

/* Skills Section */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-title span {
  color: var(--accent);
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

/* Core Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  /* background: var(--border); */
  border-radius: 18px;
  overflow: hidden;
  margin-top: 3rem;
  margin-bottom: 48px;
}

.skill-card {
  background: var(--card);
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.skill-card:hover {
  background: var(--card-hover);
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--bar-color, var(--accent));
  opacity: 0;
  transition: opacity 0.25s;
}

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

.skill-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--icon-bg, var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
}

.skill-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.skill-label {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}




/* Libraries section */
.libs-section {
  margin-bottom: 48px;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 20px;
}

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

.lib-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition:
    border-color 0.2s,
    background 0.2s;
  cursor: default;
}

.lib-card:hover {
  border-color: var(--border-glow);
  background: var(--card-hover);
}

.lib-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--dot-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.lib-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

.lib-type {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: var(--mono);
}

/* Stack row */
.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.stack-tag {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface);
  letter-spacing: 0.04em;
  transition:
    border-color 0.2s,
    color 0.2s;
  cursor: default;
}

.stack-tag:hover {
  border-color: rgba(108, 99, 255, 0.4);
  color: var(--purple-light);
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2px;
  background: var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 56px;
}

.stat-block {
  background: var(--card);
  padding: 24px 28px;
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-number span {
  color: var(--accent);
}

.stat-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

@media (max-width: 600px) {
  body {
    padding: 60px 0;
  }
  .libs-grid {
    grid-template-columns: 1fr;
  }
}

/* Projects Section */
.project-images img {
  border: 1px solid var(--glass-border);
}
.project-images img:hover {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow);
}

.project-filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background: transparent;
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: var(--text-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  /* display: flex;
  flex-direction: column; */
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
}

.project-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 0%;
  transition: var(--transition);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}
.project-overlay .overlay-btn:hover {
  transform: scale(1.07);
} 

/* .overlay-btn {
  padding: 12px 16px;
  background: var(--gradient-primary);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.overlay-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
} */

.project-content {
  padding: 1.5rem;
  display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
        height: calc(100% - 250px);
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 14px;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tags span {
  padding: 0.3rem 0.8rem;
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.4);
  border-radius: 100px;
  font-size: 0.85rem;
  font-size: 12px;
  color: var(--text-primary);
}

.tech-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}

.tech-icon:hover {
  /* transform: translateY(-10px);
  background: var(--glass-bg); */
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow);
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 3rem auto 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: calc(50% - 40px);
}

.timeline-item:nth-child(odd) {
  margin-left: 0;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
  text-align: right;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  top: 0;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -50px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -50px;
}

.timeline-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.timeline-date {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: var(--accent-blue);
  margin-bottom: 1rem;
  font-weight: 500;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact Section */
.contact-content {
  display: flex;
  justify-content: center;
  gap: 3rem;
  /* display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem; */
}
.contact-content .contact-info {
  width: 50%;
}

.contact-form {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: fit-content;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  display: none;
}

.form-status.success {
  background: rgba(74, 222, 128, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #4ade80;
  display: block;
}

.form-status.error {
  background: rgba(248, 113, 113, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #f87171;
  display: block;
}

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

.info-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-5px);
}

.info-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  font-size: 1.5rem;
}

.info-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.info-card p {
  color: var(--text-secondary);
}

.contact-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-btn img {
  width: 25px;
  height: 25px;
  filter: invert(1);
}
.social-btn:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

#modalBox {
  height: calc(100vh - 160px);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

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

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

/* Responsive Design */
@media (max-width: 968px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition);
  }

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

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

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

  .tech-icons {
    grid-template-columns: repeat(4, 1fr);
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 80px;
    text-align: left !important;
    margin-left: 0 !important;
  }

  .timeline-item .timeline-dot {
    left: 20px !important;
    right: auto !important;
  }

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

  .contact-info {
    width: 100% !important;
  }
}

@media (max-width: 600px) {
  .tech-icons {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info {
    width: 100% !important;
  }
}
@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

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

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

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

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

/* Client Reviews/Feedback */

/* Ensure smooth animations on all devices */
.animate-scroll-t2b {
  animation: scroll-t2b 40s linear infinite;
}

.animate-scroll-b2t {
  animation: scroll-b2t 50s linear infinite;
}

.group:hover .group-hover-pause {
  animation-play-state: paused;
}

@keyframes scroll-t2b {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes scroll-b2t {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .reviews-slider {
    padding: 0 1rem;
  }

  .animate-scroll-t2b {
    animation: scroll-t2b 50s linear infinite;
  }

  /* .slide-in-right {
    margin-top: 70px;
  } */

  .contact-content {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ============================================================
   v2 — Skills console, process strip, section polish, footer
   ============================================================ */

/* ---------- Reading-progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #4facfe 0%, #6c63ff 50%, #a78bfa 100%);
  box-shadow: 0 0 14px rgba(108, 99, 255, 0.55);
  transition: width 0.12s linear;
  pointer-events: none;
}

/* ---------- Centered section headers ---------- */
.section-header {
  max-width: 660px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-header .section-title {
  left: auto;
  transform: none !important;
  display: block;
  text-align: center;
  margin-bottom: 14px;
}

.eyebrow-center {
  justify-content: center;
}

.eyebrow-center::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-sub-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 560px;
}

/* ============================================================
   SKILLS — stack console
   ============================================================ */
.stack-console {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* --- Category rail --- */
.stack-rail {
  position: sticky;
  top: 100px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail-heading {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 10px 12px;
}

.rail-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.rail-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.rail-btn.is-active {
  background: var(--accent-soft);
  border-color: rgba(108, 99, 255, 0.35);
  color: var(--text-primary);
}

.rail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--accent));
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.rail-label {
  flex: 1;
  min-width: 0;
}

.rail-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 2px 7px;
  flex-shrink: 0;
}

.rail-btn.is-active .rail-count {
  color: var(--purple-light);
  background: rgba(108, 99, 255, 0.16);
}

.rail-note {
  margin-top: 14px;
  padding: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rail-note-key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rail-note-val {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* --- Technology grid --- */
.stack-panel {
  min-width: 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(206px, 1fr));
  gap: 14px;
}

.tech-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

/* brand wash that fades in on hover */
.tech-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    120% 100% at 0% 0%,
    var(--brand, var(--accent)) 0%,
    transparent 62%
  );
  transition: opacity 0.3s ease;
}

/* brand rule along the top edge */
.tech-tile::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand, var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-tile:hover {
  transform: translateY(-4px);
  background: var(--card-hover);
  border-color: var(--brand, var(--accent));
  box-shadow: 0 16px 34px -18px var(--brand, var(--accent));
}

.tech-tile:hover::before {
  opacity: 0.09;
}

.tech-tile:hover::after {
  transform: scaleX(1);
}

.tech-figure {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  background: color-mix(in srgb, var(--brand, #6c63ff) 13%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-tile:hover .tech-figure {
  transform: scale(1.06) rotate(-3deg);
}

.tech-figure img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.tech-mono {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: var(--brand, var(--accent));
}

.tech-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tech-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.tech-role {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.tech-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.55;
  transition:
    opacity 0.25s ease,
    color 0.25s ease;
}

.tech-tile:hover .tech-tag {
  opacity: 1;
  color: var(--brand, var(--accent));
}

/* filtering */
.tech-tile.is-hidden {
  display: none;
}

.tech-tile.is-entering {
  animation: tech-in 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes tech-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   How I build — process strip
   ============================================================ */
.process-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.process-step {
  position: relative;
  background: var(--card);
  padding: 26px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.25s ease;
}

.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step:hover {
  background: var(--card-hover);
}

.process-step:hover::before {
  transform: scaleX(1);
}

.process-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.process-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.process-desc {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ============================================================
   Experience — role meta + tech chips
   ============================================================ */
.timeline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.timeline-item:nth-child(odd) .timeline-badges {
  justify-content: flex-end;
}

.timeline-chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.timeline-chip:hover {
  border-color: rgba(108, 99, 255, 0.45);
  color: var(--purple-light);
}

.timeline-now {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-left: 10px;
}

.timeline-now::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 211, 164, 0.6);
  animation: now-pulse 2s infinite;
}

@keyframes now-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 164, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 211, 164, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 164, 0);
  }
}

/* ============================================================
   Availability pill (contact)
   ============================================================ */
.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 auto 34px;
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid rgba(34, 211, 164, 0.28);
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* .availability-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: now-pulse 2s infinite;
} */

.availability-wrap {
  display: flex;
  justify-content: center;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 26px;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}

.footer-brand .logo {
  font-size: 1.4rem;
  display: inline-block;
  margin-bottom: 14px;
}

.footer-tagline {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-heading {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--purple-light);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact a {
  font-size: 13.5px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--purple-light);
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.footer-socials a:hover {
  border-color: rgba(108, 99, 255, 0.45);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.footer-socials img {
  width: 18px;
  height: 18px;
  filter: invert(1);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 22px;
}

.footer-bottom p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-built {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  .stack-console {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .stack-rail {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px;
  }
  .rail-heading,
  .rail-note {
    display: none;
  }
  .rail-btn {
    width: auto;
    padding: 9px 14px;
    border-color: var(--border);
    border-radius: 99px;
    font-size: 13px;
  }
  .process-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  /* Rail becomes a horizontal, swipeable strip of pills */
  .stack-rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
  }
  .stack-rail::-webkit-scrollbar {
    display: none;
  }
  .rail-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    gap: 10px;
  }
  .tech-tile {
    padding: 16px 14px;
    gap: 11px;
  }
  .tech-figure {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .tech-figure img {
    width: 21px;
    height: 21px;
  }
  .tech-tag {
    display: none;
  }
  .process-strip {
    grid-template-columns: 1fr;
  }
  .timeline-item:nth-child(odd) .timeline-badges {
    justify-content: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
  .section-header {
    margin-bottom: 40px;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .tech-tile,
  .tech-tile::after,
  .tech-figure,
  .process-step::before {
    transition: none;
  }
  .tech-tile.is-entering {
    animation: none;
  }
  .timeline-now::before,
  .availability-pill::before {
    animation: none;
  }
}
