/* ============================================
   DESIGN SYSTEM — Neobrutalist Terminal Theme
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #0a0a0a;
  --surface: #131316;
  --surface-2: #1a1a1f;
  --border: #2a2a2a;
  --border-accent: #a855f7;
  --text: #ffffff;
  --text-2: #c8c8d0;
  --text-muted: #9090a0;
  --text-dim: #555566;
  --purple: #a855f7;
  --purple-light: #c084fc;
  --purple-glow: rgba(168, 85, 247, 0.25);
  --red: #ff4d6a;
  --cyan: #22d3ee;
  --green: #34d399;
  --yellow: #fbbf24;
  --blue: #60a5fa;
  --orange: #fb923c;
  --pink: #f472b6;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', monospace;
  --border-w: 3px;
  --radius: 0px;
}

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

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

body {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: screenFlicker 8s infinite;
}

@keyframes screenFlicker {
  0%, 95%, 100% { opacity: 1; }
  96% { opacity: 0.92; }
  96.5% { opacity: 1; }
  97% { opacity: 0.88; }
  97.5% { opacity: 1; }
  98% { opacity: 0.95; }
  98.5% { opacity: 1; }
}

/* --- Scanline Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* --- TV Static Noise Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: -200%;
  width: 500%;
  height: 500%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: staticNoise 0.15s steps(8) infinite;
}

@keyframes staticNoise {
  0% { transform: translate(0, 0); }
  12.5% { transform: translate(-5%, -10%); }
  25% { transform: translate(-15%, 5%); }
  37.5% { transform: translate(7%, -20%); }
  50% { transform: translate(-10%, 15%); }
  62.5% { transform: translate(15%, -5%); }
  75% { transform: translate(-5%, 10%); }
  87.5% { transform: translate(10%, -15%); }
  100% { transform: translate(5%, 5%); }
}

a {
  color: var(--purple);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
  color: var(--purple-light);
  text-shadow: 0 0 12px var(--purple-glow);
}

::selection {
  background: var(--purple);
  color: var(--bg);
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: var(--border-w) solid var(--border);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand .tilde {
  color: var(--green);
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.3);
}

.nav-brand .nav-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1rem;
  background: var(--purple);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover {
  color: var(--purple);
  text-shadow: 0 0 10px var(--purple-glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: var(--border-w) solid var(--border);
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: var(--border-w) solid var(--border);
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 0.75rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
  background: var(--bg);
  background-size: 100% 100%;
  min-height: 100vh;
}

/* 3D divider between sections */
.section + .section {
  border-top: 1px solid rgba(168, 85, 247, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(168, 85, 247, 0.08);
}

/* Abstract background patterns — dot grid + radial glow */
.section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(circle, rgba(168,85,247,0.15) 1px, transparent 1px);
  background-size: 30px 30px;
}

#whoami {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(168,85,247,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(168,85,247,0.04) 0%, transparent 40%),
    var(--bg);
}
#whoami::before {
  background-image:
    radial-gradient(circle, rgba(168,85,247,0.12) 1px, transparent 1px);
  background-size: 40px 40px;
}

#about {
  background:
    radial-gradient(ellipse at 80% 30%, rgba(34,211,238,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(34,211,238,0.03) 0%, transparent 40%),
    var(--bg);
}
#about.section { border-color: rgba(34, 211, 238, 0.15); }
#about::before {
  background-image:
    radial-gradient(circle, rgba(34,211,238,0.1) 1px, transparent 1px);
  background-size: 32px 32px;
}

#certs {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(251,191,36,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(251,191,36,0.03) 0%, transparent 40%),
    var(--bg);
}
#certs.section { border-color: rgba(251, 191, 36, 0.12); }
#certs::before {
  background-image:
    radial-gradient(circle, rgba(251,191,36,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

#projects {
  background:
    radial-gradient(ellipse at 70% 40%, rgba(168,85,247,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 90%, rgba(192,132,252,0.03) 0%, transparent 40%),
    var(--bg);
}
#projects::before {
  background-image:
    radial-gradient(circle, rgba(168,85,247,0.1) 1px, transparent 1px);
  background-size: 35px 35px;
}

#experience {
  background:
    radial-gradient(ellipse at 20% 60%, rgba(52,211,153,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(52,211,153,0.03) 0%, transparent 40%),
    var(--bg);
}
#experience.section { border-color: rgba(52, 211, 153, 0.12); }
#experience::before {
  background-image:
    radial-gradient(circle, rgba(52,211,153,0.08) 1px, transparent 1px);
  background-size: 26px 26px;
}

#blog {
  background:
    radial-gradient(ellipse at 80% 50%, rgba(244,114,182,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 15% 25%, rgba(244,114,182,0.03) 0%, transparent 40%),
    var(--bg);
}
#blog.section { border-color: rgba(244, 114, 182, 0.12); }
#blog::before {
  background-image:
    radial-gradient(circle, rgba(244,114,182,0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

#contact {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(96,165,250,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(96,165,250,0.03) 0%, transparent 40%),
    var(--bg);
}
#contact.section { border-color: rgba(96, 165, 250, 0.12); }
#contact::before {
  background-image:
    radial-gradient(circle, rgba(96,165,250,0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}

main {
  margin-top: 60px;
}

/* ============================================
   HERO / $ whoami
   ============================================ */

.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
  position: relative;
}

.hero-terminal {
  width: 100%;
}

.prompt-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.prompt {
  color: var(--purple);
  text-shadow: 0 0 10px var(--purple-glow);
}

.prompt-cmd {
  color: var(--text);
}

.cursor {
  display: inline-block;
  width: 12px;
  height: 1.5rem;
  background: var(--purple);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--purple-glow);
}

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

.hero-output {
  padding-left: 0;
  margin-top: 0.5rem;
}

.hero-name {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 1rem;
  min-height: 3.3rem;
  text-shadow: 0 0 30px var(--purple-glow);
}

.hero-name.typing::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 2.8rem;
  background: var(--purple);
  vertical-align: text-bottom;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  box-shadow: 0 0 8px var(--purple-glow);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--purple-light);
  font-weight: 500;
  margin-bottom: 2rem;
  text-shadow: 0 0 15px rgba(192, 132, 252, 0.2);
}

.hero-desc {
  color: var(--text-2);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.hero-desc .gt {
  color: var(--purple);
  margin-right: 0.5rem;
  text-shadow: 0 0 6px var(--purple-glow);
}

.hero-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: var(--border-w) solid var(--purple);
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 4px 4px 0 rgba(168, 85, 247, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(168, 85, 247, 0.15), transparent);
  transition: none;
  animation: none;
}

.hero-links a:hover::before {
  animation: btnShine 0.6s ease forwards;
}

.hero-links a:hover {
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  color: var(--bg);
  box-shadow: 0 0 25px var(--purple-glow), 4px 4px 0 rgba(168, 85, 247, 0.3);
  transform: translate(-2px, -2px);
  text-shadow: none;
  border-color: #7c3aed;
}

@keyframes btnShine {
  0% { left: -100%; }
  100% { left: 150%; }
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
  margin-bottom: 1rem;
}

.section-output {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.5s ease 0.1s;
}

.section-output.visible {
  max-height: 2000px;
  opacity: 1;
  overflow: visible;
}

/* Line-by-line reveal for grid items and list items */
.cascade-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cascade-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* Section desc typed cursor */
.section-desc .typed-cursor-sm {
  display: inline-block;
  width: 8px;
  height: 0.9em;
  background: var(--purple);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  box-shadow: 0 0 6px var(--purple-glow);
}

.section-desc.typed-done .typed-cursor-sm {
  display: none;
}

/* Hero rest lines stagger */
.hero-rest > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-rest > .stagger-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 3s both;
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.scroll-arrow span {
  display: block;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-arrow span:nth-child(2) {
  margin-top: -6px;
  animation-delay: 0.15s;
  opacity: 0.5;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.4; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.section-prompt {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.5rem;
  min-height: 1.3em;
  text-shadow: 0 0 12px var(--purple-glow);
}

.section-prompt .typed-cursor {
  display: inline-block;
  width: 10px;
  height: 1.2em;
  background: var(--purple);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  box-shadow: 0 0 8px var(--purple-glow);
}

.section-prompt.typed-done .typed-cursor {
  display: none;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   CARDS (Neobrutalist 3D)
   ============================================ */

.card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.25s;
  box-shadow: 5px 5px 0 rgba(168, 85, 247, 0.08);
}

.card:hover {
  border-color: var(--purple);
  box-shadow: 0 0 20px var(--purple-glow), 5px 5px 0 rgba(168, 85, 247, 0.15);
  transform: translate(-2px, -2px);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card-text {
  color: var(--text-2);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================================
   SKILLS GRID
   ============================================ */

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

.skill-card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  padding: 1.5rem;
  transition: all 0.25s;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.skill-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.15), 4px 4px 0 rgba(34, 211, 238, 0.1);
  transform: translate(-2px, -2px);
}

.skill-card h3 {
  color: var(--cyan);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.2);
}

.skill-card p {
  color: var(--text-2);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ============================================
   CERTIFICATIONS GRID — Colorful
   ============================================ */

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

.cert-card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.25s;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.cert-card:hover {
  transform: translate(-2px, -2px);
}

/* Per-cert colors */
.cert-card--red { --cert-color: var(--red); }
.cert-card--cyan { --cert-color: var(--cyan); }
.cert-card--blue { --cert-color: var(--blue); }
.cert-card--green { --cert-color: var(--green); }
.cert-card--yellow { --cert-color: var(--yellow); }
.cert-card--orange { --cert-color: var(--orange); }
.cert-card--pink { --cert-color: var(--pink); }
.cert-card--purple { --cert-color: var(--purple); }

.cert-card:hover {
  border-color: var(--cert-color, var(--purple));
  box-shadow: 0 0 18px color-mix(in srgb, var(--cert-color, var(--purple)) 25%, transparent), 4px 4px 0 color-mix(in srgb, var(--cert-color, var(--purple)) 15%, transparent);
}

.cert-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 2px solid var(--cert-color, var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--cert-color, var(--purple));
  background: color-mix(in srgb, var(--cert-color, var(--purple)) 8%, transparent);
  text-shadow: 0 0 8px color-mix(in srgb, var(--cert-color, var(--purple)) 30%, transparent);
  transition: all 0.25s;
}

.cert-card:hover .cert-icon {
  background: color-mix(in srgb, var(--cert-color, var(--purple)) 15%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--cert-color, var(--purple)) 25%, transparent);
}

.cert-info h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.cert-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   PROJECTS
   ============================================ */

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

.project-card {
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.3);
}

.project-card:hover {
  border-color: var(--purple);
  box-shadow: 0 0 25px var(--purple-glow), 5px 5px 0 rgba(168, 85, 247, 0.12);
  transform: translate(-3px, -3px);
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--text-2);
  font-size: 0.82rem;
  line-height: 1.6;
  flex: 1;
}

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

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border: 2px solid var(--border);
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  background: rgba(168, 85, 247, 0.05);
}

.tag:hover {
  border-color: var(--purple);
  background: rgba(168, 85, 247, 0.12);
  box-shadow: 0 0 8px var(--purple-glow);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  border: 2px solid var(--purple);
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 3px 3px 0 rgba(168, 85, 247, 0.15);
}

.project-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(168, 85, 247, 0.15), transparent);
}

.project-link:hover::before {
  animation: btnShine 0.6s ease forwards;
}

.project-link:hover {
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  color: var(--bg);
  border-color: #7c3aed;
  box-shadow: 0 0 20px var(--purple-glow), 3px 3px 0 rgba(168, 85, 247, 0.3);
  transform: translate(-2px, -2px);
}

/* ============================================
   EXPERIENCE TIMELINE
   ============================================ */

.timeline {
  position: relative;
  padding-left: 2.5rem;
  overflow: visible;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: var(--border-w);
  background: linear-gradient(180deg, var(--purple) 0%, var(--cyan) 50%, var(--green) 100%);
  box-shadow: 0 0 8px var(--purple-glow);
}

.timeline-entry {
  position: relative;
  padding-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-entry.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-entry:last-child {
  padding-bottom: 0;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: calc(-2.5rem);
  top: 8px;
  width: 15px;
  height: 15px;
  background: var(--purple);
  border: var(--border-w) solid var(--bg);
  box-shadow: 0 0 12px var(--purple-glow);
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-entry.visible::before {
  animation: dotPulse 0.6s ease;
}

@keyframes dotPulse {
  0% { transform: scale(0); box-shadow: 0 0 0 var(--purple-glow); }
  50% { transform: scale(1.4); box-shadow: 0 0 20px var(--purple-glow); }
  100% { transform: scale(1); box-shadow: 0 0 12px var(--purple-glow); }
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--purple);
  font-weight: 600;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 8px var(--purple-glow);
}

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

.timeline-company {
  font-size: 0.85rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 8px rgba(34, 211, 238, 0.15);
}

.timeline-bullets {
  list-style: none;
}

.timeline-bullets li {
  font-size: 0.82rem;
  color: var(--text-2);
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.timeline-bullets li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}

/* ============================================
   BLOG
   ============================================ */

.post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  transition: all 0.25s;
  gap: 1rem;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
}

.post-item:hover {
  border-color: var(--purple);
  transform: translate(-2px, -2px);
  box-shadow: 0 0 15px var(--purple-glow), 4px 4px 0 rgba(168, 85, 247, 0.1);
}

.post-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.post-item:hover .post-item-title {
  color: var(--purple);
}

.post-item-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

/* Single blog post */
.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: var(--border-w) solid var(--border);
}

.post-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Blog content */
.post-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.post-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.post-content p {
  margin-bottom: 1.25rem;
  color: var(--text-2);
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content code {
  background: var(--surface-2);
  padding: 0.15rem 0.4rem;
  font-size: 0.88em;
  color: var(--red);
  border: 1px solid var(--border);
}

.post-content pre {
  background: var(--surface) !important;
  border: var(--border-w) solid var(--border);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  line-height: 1.6;
  box-shadow: 5px 5px 0 rgba(0,0,0,0.3);
}

.post-content pre code {
  background: none;
  padding: 0;
  border: none;
  color: inherit;
}

.post-content blockquote {
  border-left: var(--border-w) solid var(--purple);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.post-content a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content img {
  border: var(--border-w) solid var(--border);
  margin: 1.5rem 0;
}

/* ============================================
   CONTACT
   ============================================ */

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

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(168, 85, 247, 0.12), transparent);
}

.contact-link:hover::before {
  animation: btnShine 0.6s ease forwards;
}

.contact-link:hover {
  border-color: var(--purple);
  color: var(--bg);
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  box-shadow: 0 0 20px var(--purple-glow), 4px 4px 0 rgba(168, 85, 247, 0.1);
  transform: translate(-2px, -2px);
  text-shadow: none;
}

.contact-link span:first-child {
  color: var(--purple);
  font-weight: 700;
  min-width: 20px;
}

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

.footer {
  border-top: var(--border-w) solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.footer a {
  color: var(--text-muted);
}

/* ============================================
   UTILITIES
   ============================================ */

.text-purple { color: var(--purple); }
.text-red { color: var(--red); }
.text-cyan { color: var(--cyan); }
.text-yellow { color: var(--yellow); }
.text-muted { color: var(--text-muted); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .hero-name {
    font-size: 2rem;
  }

  .prompt-line {
    font-size: 1.1rem;
  }

  .hero-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-links a {
    justify-content: center;
  }

  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

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

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

  .certs-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .post-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .post-header h1 {
    font-size: 1.5rem;
  }

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

@media (max-width: 480px) {
  .hero-name {
    font-size: 1.6rem;
  }

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