/* ==========================================================
   DIPAK PAWAR PORTFOLIO — style.css
   Dark theme | Neon accents | Glassmorphism | Animations
   ========================================================== */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  /* Colors */
  --bg-primary: #020817;
  --bg-secondary: #0a1628;
  --bg-card: rgba(10, 22, 40, 0.7);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);

  --neon-cyan: #00d4ff;
  --neon-blue: #4f8ef7;
  --neon-purple: #7c3aed;
  --neon-green: #00ff88;

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  /* Typography */
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Fira Code", monospace;

  /* Spacing */
  --section-py: clamp(3rem, 6vw, 5rem);
  --container: 1200px;
  --radius: 12px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.18s;
  --t-mid: 0.35s;
  --t-slow: 0.6s;
}

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

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

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

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--neon-cyan);
  border-radius: 3px;
}

/* ---------- SELECTION ---------- */
::selection {
  background: rgba(0, 212, 255, 0.2);
  color: var(--neon-cyan);
}

/* ---------- REUSABLE UTILITIES ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 50% 0%,
    rgba(0, 212, 255, 0.04) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.section-subtitle {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.mt-1 {
  margin-top: 1.5rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--t-mid) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  color: #000;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 35px rgba(0, 212, 255, 0.6),
    0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.06);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
  transform: translateY(-2px);
}

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

/* ---------- GLASS CARD ---------- */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 500;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  color: var(--neon-cyan);
}

.badge.sm {
  font-size: 0.65rem;
  padding: 0.2rem 0.55rem;
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings */
.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.reveal:nth-child(5) {
  transition-delay: 0.4s;
}

.reveal:nth-child(6) {
  transition-delay: 0.5s;
}

/* ====================================================
   NAVBAR
   ==================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition:
    background var(--t-mid),
    box-shadow var(--t-mid),
    padding var(--t-mid);
}

.navbar.scrolled {
  background: rgba(2, 8, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 212, 255, 0.12);
  padding: 0.6rem 0;
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: -0.02em;
}

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

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition:
    color var(--t-fast),
    background var(--t-fast);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--neon-cyan);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

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

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition:
    transform var(--t-fast),
    opacity var(--t-fast);
}

/* ====================================================
   HERO
   ==================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(
      ellipse 120% 80% at 10% 20%,
      rgba(79, 142, 247, 0.06) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 80% 60% at 90% 80%,
      rgba(124, 58, 237, 0.06) 0%,
      transparent 50%
    ),
    var(--bg-primary);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Floating code snippets */
.code-snippets {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.snippet {
  position: absolute;
  font-family: var(--font-mono);
  font-size: clamp(0.6rem, 1.2vw, 0.78rem);
  color: rgba(0, 212, 255, 0.18);
  white-space: nowrap;
  animation: floatSnippet linear infinite;
  user-select: none;
}

.s1 {
  top: 15%;
  left: 5%;
  animation-duration: 18s;
  animation-delay: 0s;
}

.s2 {
  top: 35%;
  left: 2%;
  animation-duration: 22s;
  animation-delay: -5s;
}

.s3 {
  top: 55%;
  left: 8%;
  animation-duration: 16s;
  animation-delay: -2s;
}

.s4 {
  top: 75%;
  left: 3%;
  animation-duration: 20s;
  animation-delay: -8s;
}

.s5 {
  top: 20%;
  right: 5%;
  animation-duration: 19s;
  animation-delay: -3s;
}

.s6 {
  top: 45%;
  right: 3%;
  animation-duration: 24s;
  animation-delay: -6s;
}

.s7 {
  top: 65%;
  right: 7%;
  animation-duration: 17s;
  animation-delay: -1s;
}

.s8 {
  top: 85%;
  right: 4%;
  animation-duration: 21s;
  animation-delay: -4s;
}

@keyframes floatSnippet {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.15;
  }

  25% {
    transform: translateY(-15px) translateX(8px);
    opacity: 0.25;
  }

  50% {
    transform: translateY(-5px) translateX(-5px);
    opacity: 0.18;
  }

  75% {
    transform: translateY(-20px) translateX(5px);
    opacity: 0.22;
  }

  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.15;
  }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 5rem;
}

/* Left text */
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--neon-cyan);
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 0.2s forwards;
}

.greeting-bracket {
  color: var(--neon-purple);
  margin-right: 0.3rem;
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 0.35s forwards;
}

.name-highlight {
  background: linear-gradient(
    135deg,
    var(--neon-cyan) 0%,
    var(--neon-purple) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.name-highlight::after {
  content: "";
  position: absolute;
  inset: -4px;
  background: inherit;
  filter: blur(20px);
  opacity: 0.3;
  z-index: -1;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 0.5s forwards;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 42ch;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 0.62s forwards;
}

/* Typing animation */
.typing-container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 0.75s forwards;
}

.typing-text {
  color: var(--neon-green);
  font-weight: 500;
}

.typing-cursor {
  color: var(--neon-cyan);
  animation: blink 1s step-end infinite;
}

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

  50% {
    opacity: 0;
  }
}

/* CTA */
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 0.9s forwards;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 0.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease) 1.05s forwards;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  line-height: 1;
}

.stat-suffix {
  font-size: 1.4rem;
  color: var(--neon-cyan);
  font-weight: 700;
}

.stat p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Code window */
.hero-visual {
  opacity: 0;
  animation: fadeSlideLeft 1s var(--ease) 0.4s forwards;
}

.code-window {
  background: rgba(10, 22, 40, 0.9);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(0, 212, 255, 0.12),
    0 25px 50px rgba(0, 0, 0, 0.5);
  transition:
    box-shadow var(--t-mid),
    transform var(--t-mid);
}

.code-window:hover {
  box-shadow:
    0 0 80px rgba(0, 212, 255, 0.2),
    0 30px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #febc2e;
}

.dot.green {
  background: #28c840;
}

.window-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.window-code {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
}

.window-code code {
  font-family: inherit;
}

/* Syntax highlighting */
.c-kw {
  color: #c792ea;
}

.c-fn {
  color: #82aaff;
}

.c-str {
  color: #c3e88d;
}

.c-num {
  color: #f78c6c;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 2s forwards;
}

.scroll-indicator p {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(0, 212, 255, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 3px;
  height: 8px;
  background: var(--neon-cyan);
  border-radius: 2px;
  animation: scrollWheel 1.5s var(--ease) infinite;
}

@keyframes scrollWheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* ====================================================
   ABOUT
   ==================================================== */
.about-section {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Left Column */
.about-left {
  display: block;
}

/* Right Column */
.about-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* Profile Image */
.profile-image-wrapper {
  position: relative;
  float: left;
  margin-right: 32px;
  margin-bottom: 24px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.4),
    rgba(124, 58, 237, 0.4)
  );
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
  transition:
    transform var(--t-mid),
    box-shadow var(--t-mid);
}

.profile-image-wrapper:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 212, 255, 0.4);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 4px solid var(--bg-primary);
  z-index: 2;
  position: relative;
}

.profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.15) 0%,
    rgba(0, 0, 0, 0) 70%
  );
  z-index: 1;
  pointer-events: none;
}

.about-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-text p:last-of-type {
  margin-bottom: 0;
}

/* Skill bars */
.skills-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 500;
}

.skill-bar-header span:last-child {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
}

.skill-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================================================
   SKILLS
   ==================================================== */
.skills-section {
  background: var(--bg-primary);
}

.skills-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.tab-btn {
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all var(--t-fast) var(--ease);
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
}

.tab-btn.active {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.35);
  color: var(--neon-cyan);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all var(--t-mid) var(--ease);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 212, 255, 0.06) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--t-mid);
}

.skill-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-6px);
  box-shadow:
    0 0 30px rgba(0, 212, 255, 0.15),
    0 12px 30px rgba(0, 0, 0, 0.3);
}

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

.skill-card.hidden {
  display: none;
}

.skill-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  transition: transform var(--t-mid);
}

.skill-card:hover .skill-icon {
  transform: scale(1.15) rotate(-5deg);
}

.skill-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.skill-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ====================================================
   PROJECTS
   ==================================================== */
.projects-section {
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-card {
  perspective: 1000px;
  position: relative;
}

.project-card-inner {
  background: rgba(10, 22, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--t-mid) var(--ease),
    border-color var(--t-mid),
    box-shadow var(--t-mid);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card:hover .project-card-inner {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow:
    0 0 40px rgba(0, 212, 255, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Glow behind card */
.project-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.06) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--t-mid);
  pointer-events: none;
}

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

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.project-icon {
  font-size: 2rem;
}

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

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  transition: all var(--t-fast);
}

.project-link:hover {
  color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.12);
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

/* ====================================================
   EXPERIENCE TIMELINE
   ==================================================== */
.experience-section {
  background: var(--bg-primary);
}

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--neon-cyan),
    var(--neon-purple),
    transparent
  );
  opacity: 0.5;
}

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

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

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 1.5rem;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
  position: relative;
}

.timeline-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.3);
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.timeline-card {
  padding: 1.75rem;
  border-radius: var(--radius);
  transition:
    border-color var(--t-mid),
    box-shadow var(--t-mid);
}

.timeline-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.06);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon-cyan);
}

.timeline-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timeline-badge.current {
  background: rgba(0, 255, 136, 0.12);
  color: var(--neon-green);
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.timeline-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.timeline-responsibilities {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.timeline-responsibilities li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ====================================================
   DEV THINKING / ARCHITECTURE
   ==================================================== */
.thinking-section {
  background: var(--bg-secondary);
  overflow: hidden;
}

.thinking-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.thinking-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.thinking-text p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.mindset-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mindset-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  transition:
    border-color var(--t-fast),
    transform var(--t-fast);
}

.mindset-card:hover {
  border-color: rgba(0, 212, 255, 0.25);
  transform: translateX(4px);
}

.mindset-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.mindset-card strong {
  font-size: 0.9rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.2rem;
}

.mindset-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Architecture diagram */
.arch-diagram {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.arch-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.arch-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.arch-avatar p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-cyan);
  white-space: nowrap;
}

/* Orbit nodes */
.orbit-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  animation: orbitPulse 3s ease-in-out var(--delay) infinite;
  z-index: 2;
}

.orbit-icon {
  font-size: 1.8rem;
  display: block;
  text-align: center;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.5));
}

.orbit-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--neon-cyan);
  text-align: center;
}

/* Place nodes around center */
.n1 {
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
}

.n2 {
  top: 20%;
  right: 3%;
}

.n3 {
  bottom: 20%;
  right: 3%;
}

.n4 {
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
}

.n5 {
  bottom: 20%;
  left: 3%;
}

.n6 {
  top: 20%;
  left: 3%;
}

@keyframes orbitPulse {
  0%,
  100% {
    transform: translateX(0) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translateY(-8px) scale(1.08);
    opacity: 1;
  }
}

.n1 {
  animation-name: orbitPulseT;
}

.n4 {
  animation-name: orbitPulseB;
}

@keyframes orbitPulseT {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translateX(-50%) translateY(-8px) scale(1.08);
    opacity: 1;
  }
}

@keyframes orbitPulseB {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translateX(-50%) translateY(8px) scale(1.08);
    opacity: 1;
  }
}

/* SVG lines overlay */
.arch-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.arch-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 2s ease forwards;
}

.arch-line:nth-child(1) {
  animation-delay: 0.2s;
}

.arch-line:nth-child(2) {
  animation-delay: 0.4s;
}

.arch-line:nth-child(3) {
  animation-delay: 0.6s;
}

.arch-line:nth-child(4) {
  animation-delay: 0.8s;
}

.arch-line:nth-child(5) {
  animation-delay: 1s;
}

.arch-line:nth-child(6) {
  animation-delay: 1.2s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* ====================================================
   CONTACT
   ==================================================== */
.contact-section {
  background: var(--bg-primary);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.contact-info-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  transition: all var(--t-fast);
}

.contact-link:hover {
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.04);
  transform: translateX(4px);
}

.contact-link-icon {
  font-size: 1.3rem;
}

.contact-link-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

.contact-link-value {
  font-size: 0.88rem;
  color: var(--text-primary);
  display: block;
  font-weight: 500;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 1rem;
  background: rgba(0, 255, 136, 0.07);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--neon-green);
}

.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  animation: availPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes availPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(0, 255, 136, 0);
  }
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

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

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

.field-error {
  font-size: 0.75rem;
  color: #f87171;
  min-height: 1rem;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 255, 136, 0.07);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 8px;
  color: var(--neon-green);
  font-size: 0.88rem;
  animation: fadeSlideUp 0.4s var(--ease) forwards;
}

.form-success[hidden] {
  display: none !important;
}

/* ====================================================
   CAPTCHA
   ==================================================== */
.captcha-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.captcha-question {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--neon-cyan);
  letter-spacing: 0.06em;
  user-select: none;
}

.captcha-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.07);
  cursor: pointer;
  transition: all var(--t-fast);
  flex-shrink: 0;
}

.captcha-refresh:hover {
  background: rgba(0, 212, 255, 0.15);
  transform: rotate(180deg);
}

.captcha-group input {
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  transition: border-color var(--t-fast);
  outline: none;
}

.captcha-group input:focus {
  border-color: var(--neon-cyan);
}

/* ====================================================
   FOOTER
   ==================================================== */

.footer {
  background: rgba(2, 8, 23, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-muted);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: all var(--t-fast);
}

.footer-socials a:hover {
  color: var(--neon-cyan);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

/* ====================================================
   KEYFRAME ANIMATIONS
   ==================================================== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Gradient animated background pulse */
@keyframes bgPulse {
  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 0.8;
  }
}

/* ====================================================
   RESPONSIVE BREAKPOINTS
   ==================================================== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 7rem;
    padding-bottom: 6rem;
  }

  .hero-visual {
    order: -1;
  }

  .code-window {
    max-width: 480px;
    margin: 0 auto;
  }

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

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

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

  .arch-diagram {
    max-width: 320px;
    aspect-ratio: 1;
  }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80vw, 300px);
    flex-direction: column;
    align-items: flex-start;
    background: rgba(2, 8, 23, 0.97);
    backdrop-filter: blur(20px);
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    border-left: 1px solid rgba(0, 212, 255, 0.1);
  }

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

  .nav-link {
    font-size: 1rem;
    padding: 0.6rem 1rem;
    width: 100%;
  }

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

  .hero-stats {
    gap: 1.5rem;
  }

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

  .footer-socials {
    justify-content: center;
  }
}

@media (max-width: 500px) {
  :root {
    --section-py: 4rem;
  }

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

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

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

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mindset-cards {
    gap: 0.75rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }
}

/* ====================================================
   PROJECT LOAD MORE
   ==================================================== */
.project-card.proj-hidden {
  display: none;
}

.projects-load-more {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--neon-cyan);
  border: 1.5px solid var(--neon-cyan);
  background: rgba(0, 212, 255, 0.06);
  cursor: pointer;
  transition: all var(--t-mid) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-load-more::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 212, 255, 0.1);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.btn-load-more:hover::before {
  opacity: 1;
}

.btn-load-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.3);
}

.load-more-count {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.load-more-icon {
  transition: transform var(--t-fast);
}

.btn-load-more:hover .load-more-icon {
  transform: translateY(2px);
}

#projectsLoadMore.hidden,
#skillsLoadMore.hidden {
  display: none;
}

/* ============================================================
   HERO PROFILE PHOTO
   ============================================================ */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

/* Orbiting ambient rings */
.profile-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  top: 50%;
  left: 50%;
}

.ring-outer {
  width: 480px;
  height: 480px;
  margin-left: -240px;
  margin-top: -240px;
  border: 1px solid rgba(0, 212, 255, 0.1);
  animation: ring-spin 14s linear infinite;
}

.ring-inner {
  width: 380px;
  height: 380px;
  margin-left: -190px;
  margin-top: -190px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  animation: ring-spin 9s linear infinite reverse;
}

@keyframes ring-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Main frame */
.profile-frame {
  position: relative;
  width: 300px;
  z-index: 1;
}

/* Photo container */
.profile-photo-wrap {
  position: relative;
  border-radius: 1.75rem 1.75rem 1.75rem 1.75rem;
  overflow: hidden;
  border: 1.5px solid rgba(0, 212, 255, 0.3);
  box-shadow:
    0 0 0 4px rgba(0, 212, 255, 0.05),
    0 0 40px rgba(0, 212, 255, 0.18),
    0 0 80px rgba(124, 58, 237, 0.12),
    0 24px 64px rgba(0, 0, 0, 0.6);
  background: #020817;
}

/* mix-blend-mode:multiply erases the white background
   white × #020817 (page dark) → #020817 (invisible) */
.profile-photo {
  display: block;
  width: 100%;
  mix-blend-mode: multiply;
  filter: contrast(1.05);
}

/* Gradient fade at bottom to merge into page */
.profile-photo-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 45%,
    rgba(2, 8, 23, 0.55) 75%,
    #020817 100%
  );
  pointer-events: none;
}

/* Floating tech badges */
.profile-badge {
  position: absolute;
  background: rgba(2, 8, 23, 0.75);
  border: 1px solid rgba(0, 212, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--neon-cyan);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.32rem 0.8rem;
  border-radius: 2rem;
  white-space: nowrap;
  animation: badge-float 3.5s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.1);
}

.pb-python {
  top: 10%;
  left: -22%;
  animation-delay: 0s;
  border-color: rgba(0, 212, 255, 0.3);
}
.pb-fastapi {
  top: 38%;
  right: -22%;
  animation-delay: 0.9s;
  border-color: rgba(124, 58, 237, 0.35);
  color: #a78bfa;
}
.pb-django {
  top: 64%;
  left: -20%;
  animation-delay: 1.7s;
  border-color: rgba(0, 255, 136, 0.3);
  color: var(--neon-green);
}
.pb-aws {
  bottom: 14%;
  right: -16%;
  animation-delay: 2.5s;
  border-color: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

@keyframes badge-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-7px);
  }
}

/* "Open to Work" status chip */
.profile-status-chip {
  position: absolute;
  bottom: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(2, 8, 23, 0.85);
  border: 1px solid rgba(0, 255, 136, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--neon-green);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.38rem 1.1rem;
  border-radius: 2rem;
  white-space: nowrap;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.12);
}

.profile-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: status-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}

/* Responsive — hide badges on small screens, shrink frame */
@media (max-width: 768px) {
  .profile-frame {
    width: 240px;
  }
  .profile-badge {
    display: none;
  }
  .ring-outer,
  .ring-inner {
    display: none;
  }
}

/* ====================================================
   EXPERIENCE — Timeline
   ==================================================== */
.experience-section {
  background: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 2rem;
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--neon-cyan),
    var(--neon-purple),
    transparent
  );
  opacity: 0.35;
}

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

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

/* Glowing dot */
.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 1.4rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neon-cyan);
  border: 2px solid var(--bg-secondary);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
  z-index: 1;
}

.timeline-content {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition:
    border-color var(--t-mid),
    box-shadow var(--t-mid);
}

.timeline-content:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.07);
}

.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.timeline-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-cyan);
  white-space: nowrap;
  padding: 0.2rem 0.65rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 50px;
}

.timeline-company {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.timeline-bullets li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}

.timeline-bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--neon-cyan);
  font-size: 0.75rem;
  top: 0.1rem;
}

.timeline-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ====================================================
   DEV MIND — Two-column: Principles + Radar Chart
   ==================================================== */
.thinking-section {
  background: var(--bg-primary);
}

.thinking-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8rem;
  align-items: center;
}

.thinking-principles {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.principle-item {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  transition:
    border-color var(--t-mid),
    box-shadow var(--t-mid),
    transform var(--t-fast);
}

.principle-item:hover {
  border-left-color: var(--neon-cyan);
  border-right-color: rgba(0, 212, 255, 0.3);
  border-top-color: rgba(0, 212, 255, 0.3);
  border-bottom-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.07);
  transform: translateX(4px);
}

.principle-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  letter-spacing: 0.05em;
}

.principle-head h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.principle-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.thinking-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.radar-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  animation: radarOrbit 30s linear infinite;
  border-radius: 50%;
}

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

.radar-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: radarFadeIn 1.2s var(--ease) forwards;
}

@keyframes radarFadeIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.radar-data-poly {
  animation: radarExpand 1.4s var(--ease) forwards;
  transform-origin: center;
}

@keyframes radarExpand {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.radar-data-edge {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: radarDraw 1.6s var(--ease) 0.3s forwards;
}

@keyframes radarDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.radar-dot {
  animation: dotPulse 2.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes dotPulse {
  0%,
  100% {
    r: 6;
    opacity: 1;
  }
  50% {
    r: 8;
    opacity: 0.7;
  }
}

/* HTML Icon Nodes */
.rnode {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
  cursor: default;
  animation: radarCounterOrbit 30s linear infinite;
  transform-origin: center center;
}

@keyframes radarCounterOrbit {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

/* Pause animations when hovering the entire chart */
.radar-wrapper:hover,
.radar-wrapper:hover .rnode {
  animation-play-state: paused;
}

.rnode:hover .rn-circle {
  transform: scale(1.15);
}

.rn-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s;
}

.rnode:hover .rn-circle {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.rnode span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  background: rgba(10, 10, 10, 0.7);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  transition: color 0.3s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border: 1px solid transparent;
}

.rnode:hover span {
  color: var(--neon-cyan);
  border-color: rgba(0, 212, 255, 0.2);
}

/* Node Positions (Expanded outward slightly as well)
   Inner Nodes (Principles)
   Center is at 50%, 50%
*/
.rn-top {
  top: 3%;
  left: 50%;
}
.rn-tr {
  top: 26.5%;
  left: 90.5%;
}
.rn-br {
  top: 73.5%;
  left: 90.5%;
}
.rn-bot {
  top: 97%;
  left: 50%;
}
.rn-bl {
  top: 73.5%;
  left: 9.5%;
}
.rn-tl {
  top: 26.5%;
  left: 9.5%;
}

.radar-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.radar-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--neon-cyan);
}

.radar-legend-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .thinking-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-left {
    display: block;
    text-align: center;
  }
  .profile-image-wrapper {
    float: none;
    margin: 0 auto 24px auto;
  }
  .radar-svg {
    max-width: 320px;
  }
}

@media (max-width: 600px) {
  .timeline {
    padding-left: 1.5rem;
  }
  .timeline-marker {
    left: -1.5rem;
  }
  .timeline-header {
    flex-direction: column;
  }
  .principle-item {
    flex-direction: column;
    gap: 0.5rem;
  }
}
