/* ─── CUSTOM PROPERTIES ──────────────────────────────────────── */
:root {
  --bg: #080808;
  --bg-2: #0d0d0d;
  --bg-card: #111111;
  --bg-card-2: #161616;
  --accent: #00ff9c;
  --accent-dim: rgba(0, 255, 156, 0.12);
  --accent-glow: rgba(0, 255, 156, 0.35);
  --accent-2: #00c97a;
  --text: #e8e8e8;
  --text-muted: #7a7a8a;
  --text-dim: #4a4a5a;
  --border: rgba(0, 255, 156, 0.12);
  --border-hover: rgba(0, 255, 156, 0.35);
  --font-mono: 'Share Tech Mono', monospace;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --radius: 4px;
  --radius-md: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --section-pad: 120px 0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
  /* Custom cursor replaces default */
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

/* ─── SELECTION ──────────────────────────────────────────────── */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ─── CANVAS BACKGROUND ─────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ─── CUSTOM CURSOR ─────────────────────────────────────────── */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent-glow);
  transition: transform 0.05s;
}

.cursor-trail {
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  transition: left 0.12s ease-out, top 0.12s ease-out;
}

/* Expand cursor on hover over interactive elements */
body.cursor-hover .cursor-trail {
  width: 48px;
  height: 48px;
  opacity: 0.6;
}

/* ─── UTILITIES ─────────────────────────────────────────────── */
.accent {
  color: var(--accent);
}

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

img,
svg {
  display: block;
}

/* Section container */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* Section header */
.section-header {
  margin-bottom: 64px;
  text-align: center;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
}

.section-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ─── REVEAL ANIMATIONS ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger delay using CSS custom property */
.reveal[style*="--delay"] {
  transition-delay: var(--delay, 0s);
}

/* ─── NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

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

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

/* Logo */
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  transition: color var(--transition);
}

.nav-logo:hover {
  color: var(--accent);
}

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

.logo-name {
  margin: 0 4px;
}

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: width var(--transition);
}

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

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--accent);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--accent);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(20px);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu ul li {
  margin: 20px 0;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  transition: color var(--transition);
}

.mobile-link:hover {
  color: var(--accent);
}

/* ─── HERO SECTION ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 680px;
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 40px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 32px;
  background: var(--accent-dim);
}

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

@keyframes pulse-dot {

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

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

/* Hero title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--text);
}

/* Glitch effect on accent text */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
}

.glitch::before {
  animation: glitch-1 4s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  transform: translate(-2px, 0);
  color: #00c97a;
  opacity: 0;
}

.glitch::after {
  animation: glitch-2 4s infinite linear alternate-reverse;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
  transform: translate(2px, 0);
  color: #00ffcc;
  opacity: 0;
}

@keyframes glitch-1 {
  0% {
    opacity: 0;
  }

  92% {
    opacity: 0;
    transform: translate(-2px, 0);
  }

  93% {
    opacity: 0.8;
    transform: translate(3px, 0);
  }

  94% {
    opacity: 0;
    transform: translate(-2px, 0);
  }

  100% {
    opacity: 0;
  }
}

@keyframes glitch-2 {
  0% {
    opacity: 0;
  }

  92% {
    opacity: 0;
    transform: translate(2px, 0);
  }

  93% {
    opacity: 0.8;
    transform: translate(-3px, 0);
  }

  94% {
    opacity: 0;
    transform: translate(2px, 0);
  }

  100% {
    opacity: 0;
  }
}

/* Typed subtitle */
.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  height: 1.8em;
  display: flex;
  align-items: center;
  gap: 2px;
}

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

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

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

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Hero description */
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.8;
}

/* CTA Buttons */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 13px 32px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition);
  z-index: 1;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(0, 255, 156, 0.3);
}

.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 0 40px rgba(0, 255, 156, 0.6), 0 0 80px rgba(0, 255, 156, 0.2);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25), transparent);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.btn:hover .btn-glow {
  opacity: 1;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 0.8rem;
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

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

.scroll-dot {
  width: 6px;
  height: 1px;
  background: var(--accent);
  position: absolute;
  top: 0;
  left: -6px;
  animation: scroll-anim 2s linear infinite;
  box-shadow: 0 0 6px var(--accent);
}

@keyframes scroll-anim {
  from {
    left: -6px;
  }

  to {
    left: 100%;
  }
}

/* ─── HERO DECO (avatar ring) ───────────────────────────────── */
.hero-deco {
  position: relative;
  width: 340px;
  height: 340px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: ring-rotate linear infinite;
}

.ring-1 {
  width: 100%;
  height: 100%;
  animation-duration: 20s;
  border-color: rgba(0, 255, 156, 0.15);
  border-top-color: var(--accent);
}

.ring-2 {
  width: 82%;
  height: 82%;
  animation-duration: 15s;
  animation-direction: reverse;
  border-color: rgba(0, 255, 156, 0.08);
  border-right-color: rgba(0, 255, 156, 0.4);
}

.ring-3 {
  width: 64%;
  height: 64%;
  animation-duration: 10s;
  border-color: rgba(0, 255, 156, 0.06);
  border-bottom-color: rgba(0, 255, 156, 0.3);
}

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

  to {
    transform: rotate(360deg);
  }
}

.deco-avatar {
  position: relative;
  z-index: 2;
  width: 160px;
  height: 160px;
}

.avatar-hex {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  border: none;
  position: relative;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  position: relative;
}

.avatar-initials {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent-glow);
  z-index: 2;
  position: relative;
}

/* Avatar scan line animation */
.avatar-scan {
  position: absolute;
  top: -10%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
  animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
  0% {
    top: -10%;
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }

  100% {
    top: 110%;
    opacity: 0.7;
  }
}

/* ─── ABOUT SECTION ─────────────────────────────────────────── */
.about {
  padding: var(--section-pad);
  position: relative;
  z-index: 2;
}

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

.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.85;
}

.about-intro {
  font-size: 1.15rem !important;
  color: var(--text) !important;
  font-weight: 500;
}

/* Stats row */
.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 20px var(--accent-glow);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Terminal card */
.terminal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5), 0 0 1px var(--border);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.terminal-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-dim);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
}

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

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #febc2e;
}

.dot.green {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.terminal-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
}

.terminal-line {
  margin-bottom: 8px;
}

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

.t-arg {
  color: var(--text);
  margin-left: 8px;
}

.t-brace {
  color: #888;
}

.t-key {
  color: #7db8f7;
}

.t-val {
  color: #f4a26e;
}

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

.terminal-output {
  margin: 8px 0 16px 0;
  color: var(--text-muted);
}

.t-cursor-blink {
  animation: blink 1.1s step-end infinite;
}

/* ─── SKILLS SECTION ────────────────────────────────────────── */
.skills {
  padding: var(--section-pad);
  position: relative;
  z-index: 2;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  transition-delay: var(--delay, 0s);
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 32px var(--accent-dim);
}

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

.skill-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 18px;
  opacity: 0.9;
}

.skill-icon svg {
  width: 100%;
  height: 100%;
}

.skill-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  color: var(--text);
}

.skill-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.skill-bar {
  width: 100%;
  height: 2px;
  background: var(--bg-card-2);
  border-radius: 2px;
  margin-bottom: 8px;
  overflow: visible;
  position: relative;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Trigger via JS adding .animate class to parent */
.skill-card.animate .skill-fill {
  width: var(--w);
}

.skill-level {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  opacity: 0.8;
}

/* ─── PROJECTS SECTION ──────────────────────────────────────── */
.projects {
  padding: var(--section-pad);
  position: relative;
  z-index: 2;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  transition-delay: var(--delay, 0s);
  display: flex;
  flex-direction: column;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 255, 156, 0.04), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

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

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

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

.proj-link {
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  transition: color var(--transition), transform var(--transition);
  display: flex;
  align-items: center;
}

.proj-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.proj-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Fix the external link icon (uses stroke not fill) */
.proj-link:last-child svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 14px;
  transition: color var(--transition);
}

.project-card:hover .project-title {
  color: var(--accent);
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 24px;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--accent);
  letter-spacing: 0.08em;
  background: var(--accent-dim);
  transition: border-color var(--transition), background var(--transition);
}

.project-card:hover .tag {
  border-color: rgba(0, 255, 156, 0.25);
}

.card-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

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

/* ─── CONTACT SECTION ───────────────────────────────────────── */
.contact {
  padding: var(--section-pad);
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.contact-link:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-2);
  transform: translateX(6px);
}

.contact-link-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: var(--radius);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-link-icon svg {
  width: 18px;
  height: 18px;
}

.link-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 3px;
}

.link-val {
  font-size: 0.9rem;
  color: var(--text);
}

/* Contact form */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.form-header {
  padding: 12px 20px;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
}

.form-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.contact-form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}

.form-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: none;
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim), 0 0 16px rgba(0, 255, 156, 0.1);
}

.form-textarea {
  min-height: 120px;
}

.form-success {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 12px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  border: 1px solid var(--border-hover);
}

.form-success.show {
  display: block;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
.footer {
  padding: 48px 0 32px;
  position: relative;
  z-index: 2;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  transition: color var(--transition);
}

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

.footer-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--accent-dim), var(--border), transparent);
  margin-top: 32px;
}

/* ─── RESPONSIVE — TABLET ────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-desc {
    margin: 0 auto 40px;
  }

  .scroll-indicator {
    justify-content: center;
  }

  .hero-deco {
    width: 260px;
    height: 260px;
  }

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

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

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ─── RESPONSIVE — MOBILE ────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --section-pad: 80px 0;
  }

  body {
    cursor: auto;
  }

  .cursor,
  .cursor-trail {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .section-container {
    padding: 0 20px;
  }

  .nav-container {
    padding: 0 20px;
  }

  .hero {
    padding: 120px 20px 60px;
    gap: 40px;
  }

  .hero-deco {
    width: 200px;
    height: 200px;
  }

  .about-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

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

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

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .hero-deco {
    display: none;
  }
}