/* ====================================================
   SHASHANK KUMAR SINGH — Portfolio CSS
   Dark Minimal · Neon Cyan · Refined Brutalism
   ==================================================== */

:root {
  --bg: #060608;
  --bg2: #0c0c10;
  --bg3: #111116;
  --surface: #16161c;
  --surface2: #1e1e26;
  --border: rgba(255, 255, 255, 0.06);
  --border2: rgba(255, 255, 255, 0.1);
  --text: #ececec;
  --muted: #6b6b7a;
  --dim: #9999aa;
  --accent: #00e5ff;
  --accent2: #00b4cc;
  --glow: 0 0 24px rgba(0, 229, 255, 0.35);
  --glow-sm: 0 0 10px rgba(0, 229, 255, 0.25);
  --font-head: 'Clash Display', 'Cabinet Grotesk', sans-serif;
  --font-body: 'Cabinet Grotesk', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --r: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

strong {
  color: var(--text);
}

em {
  color: var(--accent);
  font-style: normal;
}

code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--surface2);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--accent);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 110px 0;
}

.section.alt {
  background: var(--bg2);
}

.accent {
  color: var(--accent);
}

/* ===== NOISE TEXTURE ===== */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  mix-blend-mode: overlay;
}

/* ===== CURSOR ===== */
.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  box-shadow: var(--glow);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.08s linear, width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s;
}

.cursor-ring.hover {
  width: 44px;
  height: 44px;
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}

/* ===== NAVBAR ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
}

.nav.solid {
  background: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--text);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-menu a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: lowercase;
  transition: color 0.25s;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

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

.nav-menu a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.55rem 1.2rem;
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: 6px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.25s, box-shadow 0.25s;
}

.nav-cta:hover {
  background: rgba(0, 229, 255, 0.08);
  box-shadow: var(--glow-sm);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: var(--ease) 0.3s;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.mobile-menu a {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  color: var(--dim);
  transition: color 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a.accent {
  color: var(--accent);
}

/* ===== BUTTONS ===== */
.btn-fill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  border-radius: 8px;
  border: none;
  cursor: none;
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
}

.btn-fill:hover {
  background: #33ecff;
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 8px;
  cursor: none;
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s, border-color 0.25s;
}

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

/* ===== EYEBROW ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* ===== SECTION HEADINGS ===== */
.section-h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 3.5rem;
}

.section-sub {
  color: var(--dim);
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 3rem;
}

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

#canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  padding-top: 90px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--dim);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border2);
  border-radius: 99px;
  margin-bottom: 2rem;
  background: var(--surface);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow-sm);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
  }

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

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.hero-h1 .line {
  display: block;
}

.italic-accent {
  font-style: italic;
  color: var(--accent);
}

.hero-role {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--dim);
  margin-bottom: 1.5rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.role-static {
  color: var(--muted);
}

.role-typed {
  color: var(--accent);
}

.role-cursor {
  color: var(--accent);
  animation: blink 0.9s step-end infinite;
  margin-left: 1px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-sub {
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

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

.hero-links a {
  font-size: 1.15rem;
  color: var(--muted);
  transition: color 0.25s, transform 0.25s;
}

.hero-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
  z-index: 1;
}

.scroll-track {
  width: 1px;
  height: 60px;
  background: var(--border2);
  position: relative;
  overflow: hidden;
}

.scroll-thumb {
  width: 100%;
  height: 20px;
  background: var(--accent);
  position: absolute;
  top: 0;
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    top: -20px;
  }

  70%,
  100% {
    top: 60px;
  }
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-left h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.about-left p {
  color: var(--dim);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.about-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.num-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.25s;
}

.num-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
}

.num-card strong {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.num-card span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* TERMINAL */
.terminal {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 229, 255, 0.04);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.terminal:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 229, 255, 0.06);
}

.term-bar {
  background: #1a1a20;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}

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

.dot.r {
  background: #ff5f57;
}

.dot.y {
  background: #ffbd2e;
}

.dot.g {
  background: #28ca41;
}

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

.term-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 2;
}

.term-line {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.term-line.out {
  padding-left: 1.2rem;
}

.p {
  color: var(--accent);
  user-select: none;
}

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

.term-cursor {
  color: var(--accent);
  font-size: 1rem;
  animation: blink 1s step-end infinite;
}

.blink {
  animation: blink 1s step-end infinite;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.skill-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.skill-block:hover {
  border-color: rgba(0, 229, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.skill-block:hover::before {
  transform: scaleX(1);
}

.skill-icon {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.skill-block h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1rem;
}

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

.pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--dim);
  transition: all 0.2s;
}

.pill:hover {
  color: var(--text);
  border-color: var(--border2);
}

.pill.hot {
  color: var(--accent);
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.25);
}

.pill.hot:hover {
  background: rgba(0, 229, 255, 0.12);
  box-shadow: var(--glow-sm);
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.proj-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0, 229, 255, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.proj-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.proj-card:hover::after {
  opacity: 1;
}

.proj-card.featured {
  grid-column: span 2;
  background: var(--surface2);
  border-color: rgba(0, 229, 255, 0.12);
}

.proj-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.proj-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 2px;
}

.proj-ext {
  display: flex;
  gap: 0.8rem;
}

.proj-ext a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.proj-ext a:hover {
  color: var(--accent);
}

.proj-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.proj-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 0.75rem;
}

.proj-card.featured h3 {
  font-size: 1.4rem;
}

.proj-card p {
  font-size: 0.875rem;
  color: var(--dim);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.proj-bullets {
  padding-left: 1.1rem;
  margin-bottom: 1.25rem;
}

.proj-bullets li {
  list-style: disc;
  font-size: 0.82rem;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 0.25rem;
}

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

.proj-stack span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.22rem 0.6rem;
  border-radius: 3px;
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.18);
  color: var(--accent);
}

.projects-footer {
  text-align: center;
  margin-top: 3rem;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 0;
  margin-top: 2rem;
}

.tl-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1.5rem;
  margin-bottom: 0;
}

.tl-side {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  background: var(--bg);
  flex-shrink: 0;
  margin-top: 1.75rem;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.tl-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow);
}

.tl-line {
  flex: 1;
  width: 1px;
  margin: 4px 0;
  background: linear-gradient(to bottom, var(--border2), transparent);
  min-height: 40px;
}

.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
}

.tl-card:hover {
  border-color: rgba(0, 229, 255, 0.2);
}

.tl-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
}

.tl-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tl-badge.edu {
  background: rgba(255, 180, 70, 0.1);
  border-color: rgba(255, 180, 70, 0.2);
  color: #ffb446;
}

.tl-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tl-company {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.tl-points {
  padding-left: 1.1rem;
  margin-bottom: 1rem;
}

.tl-points li {
  list-style: disc;
  font-size: 0.875rem;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 0.3rem;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tl-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* ===== OPEN SOURCE ===== */
.oss-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.oss-img {
  border-radius: var(--r);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
  flex: 1;
  min-width: 260px;
}

.oss-img:hover {
  border-color: rgba(0, 229, 255, 0.3);
}

.oss-streak {
  margin-bottom: 2rem;
}

.oss-streak-img {
  border-radius: var(--r);
  border: 1px solid var(--border);
  transition: border-color 0.3s;
  width: 100%;
  max-width: 600px;
}

.oss-streak-img:hover {
  border-color: rgba(0, 229, 255, 0.3);
}

.oss-cta {
  margin-top: 0.5rem;
}

/* ===== FREELANCE ===== */
.freelance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.fl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.fl-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.fl-card:hover {
  border-color: rgba(0, 229, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.fl-card:hover::before {
  transform: scaleX(1);
}

.fl-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.fl-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.fl-card p {
  font-size: 0.875rem;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.fl-card ul {
  padding-left: 1.1rem;
}

.fl-card ul li {
  list-style: disc;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
}

.freelance-cta {
  text-align: center;
}

.freelance-cta p {
  color: var(--dim);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

/* ===== CONTACT ===== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.contact-card>i:first-child {
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-card div {
  flex: 1;
}

.contact-card strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.contact-card span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.contact-card .arrow {
  color: var(--muted);
  font-size: 0.8rem;
  transition: color 0.2s, transform 0.2s;
}

.contact-card:hover .arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ===== FOOTER ===== */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 2px;
}

.footer p {
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted) !important;
}

/* ===== RESUME PAGE ===== */
.resume-hero {
  padding: 160px 0 70px;
  background: var(--bg);
}

.resume-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.resume-page {
  padding: 60px 0 100px;
}

.resume-doc {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 4rem;
}

.rdoc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.rdoc-header h2 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.rdoc-tagline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.rdoc-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
}

.rdoc-contacts a,
.rdoc-contacts span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.rdoc-contacts a:hover {
  color: var(--accent);
}

.rdoc-contacts i {
  color: var(--accent);
  width: 14px;
}

.rdoc-section {
  margin-bottom: 2.5rem;
}

.rdoc-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1.25rem;
}

.rdoc-summary {
  font-size: 0.9rem;
  color: var(--dim);
  line-height: 1.85;
}

.rdoc-item {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.rdoc-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.rdoc-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rdoc-item h4 {
  font-size: 1rem;
  font-weight: 700;
}

.rdoc-company {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.rdoc-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  white-space: nowrap;
}

.rdoc-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.rdoc-list {
  padding-left: 1.1rem;
  margin-top: 0.6rem;
}

.rdoc-list li {
  list-style: disc;
  font-size: 0.875rem;
  color: var(--dim);
  line-height: 1.75;
  margin-bottom: 0.3rem;
}

.rdoc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.rdoc-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: var(--accent);
}

.rdoc-skills {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rdoc-skill-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  font-size: 0.875rem;
  align-items: baseline;
}

.rdoc-skill-cat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
}

.pdf-block {
  margin-top: 2rem;
}

.pdf-frame-wrap {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}

.pdf-frame {
  width: 100%;
  height: 880px;
  border: none;
  background: #fff;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal {
  transform: translateY(36px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.in-view {
  opacity: 1 !important;
  transform: none !important;
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.45s;
}

.delay-5 {
  transition-delay: 0.6s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .proj-card.featured {
    grid-column: span 1;
  }

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

@media (max-width: 700px) {
  .nav {
    padding: 1rem 1.5rem;
  }

  .nav-menu {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

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

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

  .hero-h1 {
    letter-spacing: -2px;
  }

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

  .resume-doc {
    padding: 1.5rem;
  }

  .rdoc-header {
    flex-direction: column;
  }

  .rdoc-contacts {
    align-items: flex-start;
  }

  .pdf-frame {
    height: 500px;
  }

  .tl-item {
    grid-template-columns: 28px 1fr;
    gap: 1rem;
  }

  .hero-scroll {
    display: none;
  }
}