/* ============================================================
   STYLE.CSS — Black + Green Theme. Bold. Natural. Professional.
   ============================================================ */

:root {
  /* === Accent === */
  --green: #22c55e;
  --green-dim: #16a34a;
  --green-subtle: rgba(34, 197, 94, 0.08);
  --green-border: rgba(34, 197, 94, 0.22);
  --green-glow: rgba(34, 197, 94, 0.15);

  /* === Dark (default) === */
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --bg-card: #111111;
  --bg-card2: #161616;
  --border: rgba(255, 255, 255, 0.07);
  --border-h: rgba(34, 197, 94, 0.3);
  --text: #f9fafb;
  --text-muted: #a1a1aa;
  --text-faint: #52525b;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.8);

  /* === Light === */
  --font: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;
  --mono: 'Fira Code', monospace;
  --nav-h: 64px;
  --r: 10px;
  --r-sm: 6px;
  --t: 0.25s ease;
  --t-slow: 0.4s ease;
}

.light-mode {
  --bg: #fafafa;
  --bg-alt: #f0f0f0;
  --bg-card: #ffffff;
  --bg-card2: #f5f5f5;
  --border: rgba(0, 0, 0, 0.08);
  --border-h: rgba(34, 197, 94, 0.4);
  --text: #09090b;
  --text-muted: #52525b;
  --text-faint: #a1a1aa;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s, color 0.4s;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 99px;
}

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 28px;
}

.green {
  display: inline-block;
  font-style: italic;
  padding-right: 8px;
  /* prevent italic last-char clipping */
  overflow: visible;
  background: linear-gradient(90deg,
      #22c55e 0%, #a855f7 25%, #ec4899 50%,
      #3b82f6 75%, #22c55e 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
}

.section {
  position: relative;
  padding: 96px 0;
}

.bg-alt {
  background: var(--bg-alt);
}

/* ===== SECTION LABEL + TITLE ===== */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
  justify-content: center;
}

.section-label::before,
.section-label::after {
  content: '';
  flex: 0 0 28px;
  height: 1.5px;
  background: var(--green);
}

.section-label .dot {
  color: var(--green);
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 56px;
  line-height: 1.1;
}


/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--t);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--green);
  color: #000;
  box-shadow: 0 0 0 0 var(--green-glow);
}

.btn-primary:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--green-glow);
}

.btn-outline {
  border: 1.5px solid var(--border-h);
  color: var(--green);
}

.btn-outline:hover {
  background: var(--green-subtle);
  transform: translateY(-2px);
}

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

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: all var(--t-slow);
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.light-mode .navbar.scrolled {
  background: rgba(250, 250, 250, 0.92);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo-bracket {
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 13px;
  border-radius: var(--r-sm);
  transition: all var(--t);
  letter-spacing: 0.01em;
}

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

.nav-link.active {
  color: var(--green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
}

.theme-toggle:hover {
  color: var(--green);
  border-color: var(--border-h);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all var(--t);
}

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

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

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

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
  position: relative;
}

#ai-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  max-width: 1060px;
  margin: 0 auto;
  padding: var(--nav-h) 28px 48px;
  width: 100%;
}

/* ---- Left ---- */
.hero-left {
  flex: 1;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.hero-label-line {
  width: 24px;
  height: 1.5px;
  background: var(--green);
}

.hero-label-dot {
  color: var(--green);
}

/* Big heading */
.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}


/* Animated line */
.hero-tagline-animated {
  font-size: clamp(1.18rem, 2.4vw, 1.55rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.hero-tagline-animated .highlight {
  color: var(--green);
  font-weight: 600;
}

.hero-tagline-animated .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-tagline-animated .word.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-role {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  min-height: 1.8em;
  font-weight: 400;
}

.typewriter-text {
  display: inline;
  background: linear-gradient(90deg,
      #22c55e 0%, #a855f7 25%, #ec4899 50%,
      #3b82f6 75%, #22c55e 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s linear infinite;
  font-weight: 700;
}

.cursor {
  -webkit-text-fill-color: var(--green);
  color: var(--green);
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-socials {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--t);
  color: var(--text-muted);
}

/* Brand-colored social icons */
.si-gmail {
  color: #EA4335;
  border-color: rgba(234, 67, 53, 0.3);
  background: rgba(234, 67, 53, 0.07);
}

.si-linkedin {
  color: #0A66C2;
  border-color: rgba(10, 102, 194, 0.3);
  background: rgba(10, 102, 194, 0.07);
}

.si-github {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: #24292f;
  /* GitHub's official dark background */
}

.si-leetcode {
  color: #FFA116;
  border-color: rgba(255, 161, 22, 0.3);
  background: rgba(255, 161, 22, 0.07);
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Hero name — gradient but NOT italic */
.green.name-gradient {
  font-style: normal;
}

/* ---- Right ---- */
.hero-right {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
}

.profile-wrapper {
  position: relative;
  width: 310px;
  height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
}

.ring-1 {
  border-color: rgba(34, 197, 94, 0.2);
  animation: spin 12s linear infinite;
}

.ring-2 {
  inset: 18px;
  border-top-color: rgba(34, 197, 94, 0.15);
  border-right-color: transparent;
  border-bottom-color: rgba(34, 197, 94, 0.15);
  border-left-color: transparent;
  animation: spin 8s linear infinite reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.profile-img-container {
  width: 248px;
  height: 248px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.05), var(--shadow-lg);
  position: relative;
  z-index: 1;
  background: var(--bg-card);
}

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

.profile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-faint);
  background: var(--bg-card2);
}

.floating-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px 11px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 2;
  box-shadow: var(--shadow);
}

.badge-1 {
  top: 10px;
  right: -16px;
  animation: float 3.5s ease-in-out infinite;
}

.badge-2 {
  bottom: 48px;
  right: -26px;
  animation: float 4s ease-in-out infinite 0.6s;
}

.badge-3 {
  bottom: 8px;
  left: -8px;
  animation: float 3s ease-in-out infinite 1.2s;
}

.badge-4 {
  top: 56px;
  left: -30px;
  animation: float 3.8s ease-in-out infinite 1.8s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  z-index: 1;
}

.scroll-down span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--text-faint);
  border-bottom: 1.5px solid var(--text-faint);
  transform: rotate(45deg);
  opacity: 0;
  animation: arrowDown 1.8s infinite;
}

.scroll-down span:nth-child(2) {
  animation-delay: 0.25s;
}

@keyframes arrowDown {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-3px, -3px);
  }

  50% {
    opacity: 0.6;
  }

  100% {
    opacity: 0;
    transform: rotate(45deg) translate(3px, 3px);
  }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 0.97rem;
  line-height: 1.8;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

.about-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 85px;
  transition: border-color var(--t);
}

.stat-card:hover {
  border-color: var(--border-h);
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.73rem;
  color: var(--text-faint);
  font-weight: 500;
}

/* Code block */
.code-block {
  background: #060606;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.82rem;
  box-shadow: var(--shadow);
}

.light-mode .code-block {
  background: #111;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

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

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.code-filename {
  margin-left: auto;
  color: var(--text-faint);
  font-size: 0.73rem;
}

.code-block pre {
  padding: 20px;
  overflow-x: auto;
  color: #abb2bf;
  line-height: 1.85;
}

.kw {
  color: #c678dd;
}

.cl {
  color: #61afef;
}

.fn {
  color: #98c379;
}

.str {
  color: #e5c07b;
}

.num {
  color: #d19a66;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--green), transparent);
  opacity: 0.25;
}

.timeline-item {
  display: flex;
  gap: 28px;
  position: relative;
  margin-bottom: 24px;
}

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

.timeline-dot {
  position: absolute;
  left: 14px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg-alt);
  z-index: 1;
}

.timeline-card {
  margin-left: 50px;
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  transition: border-color var(--t);
}

.timeline-card:hover {
  border-color: var(--border-h);
}

.tl-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--green-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--green);
}

.tl-content h3 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.tl-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.tl-location {
  font-size: 0.76rem;
  color: var(--text-faint);
}

.tl-location i {
  margin-right: 4px;
}

.tl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tl-badge {
  background: var(--green-subtle);
  color: var(--green);
  border: 1px solid var(--green-border);
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 600;
}

/* Colored badge variants */
.tl-badge.cb-green {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.4);
}

.tl-badge.cb-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.4);
}

.tl-badge.cb-pink {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.4);
}

.tl-date {
  font-size: 0.74rem;
  color: var(--text-faint);
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  border-left: 3px solid transparent;
  transition: border-color var(--t), border-left-color var(--t), transform var(--t);
}

.exp-card:hover {
  border-color: var(--border-h);
  border-left-color: var(--green);
  transform: translateY(-3px);
}

.exp-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.exp-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--green-subtle);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--green);
}

.exp-header h3 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.exp-role {
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 500;
}

.exp-badge {
  margin-left: auto;
  flex-shrink: 0;
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  border: 1px solid var(--green-border);
  padding: 2px 10px;
  border-radius: var(--r-sm);
  font-size: 0.7rem;
  font-weight: 600;
}

/* Colored internship badge */
.exp-badge.cb-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}

/* Achievement cards as links — remove underline */
a.achievement-card {
  text-decoration: none;
  cursor: pointer;
  display: block;
  color: inherit;
}

a.achievement-card:hover {
  text-decoration: none;
}

.exp-list {
  padding: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-bottom: 16px;
}

.exp-list li {
  padding-left: 14px;
  position: relative;
  margin-bottom: 6px;
}

.exp-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.7rem;
  top: 2px;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exp-tags span {
  font-size: 0.7rem;
  padding: 2px 9px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-faint);
  border-radius: var(--r-sm);
}

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

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 26px;
  transition: border-color var(--t);
}

.skill-group:hover {
  border-color: var(--border-h);
}

.skill-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-group-title i {
  color: var(--green);
  font-size: 0.85rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--t);
  cursor: default;
}

.skill-pill:hover {
  border-color: var(--border-h);
  color: var(--green);
}

.skill-pill i {
  color: var(--green);
  font-size: 0.82rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}

.tool-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--t);
  cursor: default;
  text-align: center;
}

.tool-card i {
  font-size: 1.4rem;
}

/* Proper brand icon colors */
.tool-card.vscode i {
  color: #007ACC;
}

.tool-card.mysql i {
  color: #4479A1;
}

.tool-card.hadoop i {
  color: #FECC00;
}

.tool-card.pytorch i {
  color: #EE4C2C;
}

.tool-card.tf i {
  color: #FF6F00;
}

.tool-card.sklearn i {
  color: #F7931E;
}

.tool-card.opencv i {
  color: #5C3EE8;
}

.tool-card.hf i {
  color: #FFD21E;
}

.tool-card.cisco i {
  color: #1BA0D7;
}

.tool-card:hover {
  border-color: var(--border-h);
  color: var(--text);
  transform: translateY(-2px);
}

/* ============================================================
   SKILLS — Merged single layout
   ============================================================ */

/* All skill pills in one row */
.all-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.all-skills .skill-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--t);
  cursor: default;
}

.all-skills .skill-pill:hover {
  border-color: var(--border-h);
  color: var(--green);
}

/* Tool grid — full width */
.tools-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
}

/* Extra tool brand colors */
.tool-card.git i {
  color: #F05032;
}

.tool-card.jupyter i {
  color: #F37726;
}

.tool-card.pandas i {
  color: #150458;
  filter: brightness(2);
}

.tool-card.numpy i {
  color: #4DABCF;
}

.tool-card.stream i {
  color: #FF4B4B;
}

.tool-card.yolo i {
  color: #22c55e;
}

/* ============================================================
   ABOUT — Core AI topic chips
   ============================================================ */
.about-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* Per-chip accent colors */
.topic-chip:nth-child(1) {
  border-color: rgba(34, 197, 94, 0.35);
  color: #22c55e;
}

.topic-chip:nth-child(2) {
  border-color: rgba(99, 102, 241, 0.4);
  color: #818cf8;
}

.topic-chip:nth-child(3) {
  border-color: rgba(236, 72, 153, 0.35);
  color: #f472b6;
}

.topic-chip:nth-child(4) {
  border-color: rgba(234, 179, 8, 0.35);
  color: #facc15;
}

.topic-chip:nth-child(5) {
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.topic-chip:nth-child(6) {
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.topic-chip:nth-child(7) {
  border-color: rgba(20, 184, 166, 0.35);
  color: #2dd4bf;
}

.topic-chip:nth-child(8) {
  border-color: rgba(249, 115, 22, 0.35);
  color: #fb923c;
}

.topic-chip:nth-child(9) {
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}

.topic-chip i {
  font-size: 0.74rem;
}

/* ============================================================
   SHOWCASE animated gradient word
   ============================================================ */
.showcase-word {
  display: inline-block;
  font-style: italic;
  padding-right: 6px;
  /* prevent 'e' clipping */
  overflow: visible;
  background: linear-gradient(90deg,
      #22c55e 0%, #a855f7 25%, #ec4899 50%,
      #3b82f6 75%, #22c55e 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

/* ============================================================
   PROJECTS — Sticky scroll reveal
   ============================================================ */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sticky-card {
  position: sticky;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--r);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  transition: border-color var(--t), border-left-color var(--t), box-shadow var(--t);
  /* Solid background so cards cover each other's body */
  backdrop-filter: none;
}

/* Each card sticks 62px LOWER than the previous —
   62px ≈ top-padding (28px) + h3 line-height (~34px)
   This leaves just the heading of the previous card peeking at the top */
.sticky-card:nth-child(1) {
  top: calc(var(--nav-h) + 16px);
  z-index: 1;
}

.sticky-card:nth-child(2) {
  top: calc(var(--nav-h) + 16px + 62px);
  z-index: 2;
}

.sticky-card:nth-child(3) {
  top: calc(var(--nav-h) + 16px + 62px * 2);
  z-index: 3;
}

.sticky-card:nth-child(4) {
  top: calc(var(--nav-h) + 16px + 62px * 3);
  z-index: 4;
}

.sticky-card:nth-child(5) {
  top: calc(var(--nav-h) + 16px + 62px * 4);
  z-index: 5;
}

.sticky-card:hover {
  border-left-color: var(--green);
  border-color: var(--border-h);
  box-shadow: 0 8px 40px rgba(34, 197, 94, 0.08);
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 30px;
  border-left: 3px solid transparent;
  transition: border-color var(--t), border-left-color var(--t), transform var(--t);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.project-card:hover {
  border-left-color: var(--green);
  border-color: var(--border-h);
  transform: translateX(4px);
}

.project-card-body {}

.project-card h3 {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
  color: var(--text);
}

.project-card>.project-card-body>p,
.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.project-bullets {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.project-bullets li {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}

.project-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.72rem;
  top: 2px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.project-tags span {
  font-size: 0.72rem;
  padding: 2px 10px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text-faint);
  border-radius: var(--r-sm);
  font-family: var(--mono);
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--t);
}

.project-link:hover {
  border-color: var(--border-h);
  color: var(--green);
}

.project-link.primary {
  background: var(--green-subtle);
  border-color: var(--green-border);
  color: var(--green);
}

.project-link.primary:hover {
  background: var(--green);
  color: #000;
}

.project-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--r);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Per-project distinct colors */
.sticky-card:nth-child(1) .project-icon-wrap {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.sticky-card:nth-child(2) .project-icon-wrap {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #818cf8;
}

.sticky-card:nth-child(3) .project-icon-wrap {
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #f472b6;
}

.sticky-card:nth-child(4) .project-icon-wrap {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #facc15;
}

.sticky-card:nth-child(5) .project-icon-wrap {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid;
  border-radius: var(--r);
  padding: 24px 20px;
  transition: all var(--t);
}

/* Colored left borders per card */
.achievement-card:nth-child(1) {
  border-left-color: #22c55e;
}

.achievement-card:nth-child(2) {
  border-left-color: #818cf8;
}

.achievement-card:nth-child(3) {
  border-left-color: #f472b6;
}

.achievement-card:nth-child(4) {
  border-left-color: #facc15;
}

.achievement-card:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.ach-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 12px;
}

/* Per-card icon colors matching border */
.achievement-card:nth-child(1) .ach-icon {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}

.achievement-card:nth-child(2) .ach-icon {
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
}

.achievement-card:nth-child(3) .ach-icon {
  background: rgba(236, 72, 153, 0.1);
  color: #f472b6;
}

.achievement-card:nth-child(4) .ach-icon {
  background: rgba(234, 179, 8, 0.1);
  color: #facc15;
}

.achievement-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 7px;
}

.achievement-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-intro {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 460px;
  margin: -40px auto 50px;
  line-height: 1.65;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--green-subtle);
  border: 1px solid var(--green-border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--green);
}

.ci-label {
  font-size: 0.7rem;
  color: var(--text-faint);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.ci-value {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--t);
}

a.ci-value:hover {
  color: var(--green);
}

.contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.cs-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--t);
  color: #fff;
}

.cs-btn.linkedin {
  background: #0a66c2;
}

.cs-btn.gmail {
  background: #ea4335;
}

.cs-btn.twitter {
  background: #1da1f2;
}

.cs-btn.leetcode {
  background: #ffa116;
}

.cs-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  transition: border-color var(--t), box-shadow var(--t);
  resize: vertical;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group label {
  display: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-note {
  font-size: 0.82rem;
  text-align: center;
  color: var(--text-muted);
  min-height: 1.2em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.footer .green {
  font-weight: 600;
  font-style: normal;
}

.footer-sub {
  font-size: 0.73rem;
  margin-top: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

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

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

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-icon-wrap {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform var(--t-slow);
    z-index: 999;
    gap: 2px;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 72px 0;
  }

  .profile-wrapper {
    width: 220px;
    height: 220px;
  }

  .profile-img-container {
    width: 170px;
    height: 170px;
  }

  .floating-badge {
    display: none;
  }

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

  .timeline-dot {
    left: 7px;
  }

  .timeline-card {
    margin-left: 36px;
  }

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

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

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

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

  .hero-name {
    font-size: 2.4rem;
  }
}