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

:root {
  --bg-primary:     #080C0A;
  --bg-surface:     #0D120F;
  --bg-elevated:    #131A15;
  --accent:         #00E676;
  --accent-dark:    #00B85C;
  --text-primary:   #F0F0EC;
  --text-muted:     #8A8A84;
  --border-default: rgba(0, 230, 118, 0.15);
  --border-hover:   rgba(0, 230, 118, 0.45);
  --border-subtle:  rgba(255, 255, 255, 0.05);
  --tint:           rgba(0, 230, 118, 0.08);
  --font-display:   'Space Grotesk', sans-serif;
  --font-body:      'Inter', sans-serif;
  --ease:           cubic-bezier(0.16, 1, 0.3, 1);
  --radius:         12px;
  --radius-pill:    100px;
  --section-pad:    120px;
  --max-width:      1280px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

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

ul {
  list-style: none;
}

/* ============================================================
   GRID OVERLAY
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 230, 118, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 118, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease);
  box-shadow: 0 0 10px var(--accent), 0 0 20px rgba(0, 230, 118, 0.3);
}

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

body:has(a:hover) .cursor,
body:has(.tilt-card:hover) .cursor {
  width: 20px;
  height: 20px;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 80px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 64px;
  max-width: 520px;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: none;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid rgba(0, 230, 118, 0.45);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: none;
}

.btn-ghost:hover {
  background: var(--tint);
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 12, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid rgba(0, 230, 118, 0.12);
  height: 64px;
  transition: background 0.3s var(--ease);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 80px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  white-space: nowrap;
  cursor: none;
  transition: color 0.3s;
}

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

/* XP Bar */
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.xp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xp-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.xp-track {
  width: 140px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s var(--ease);
  box-shadow: 0 0 8px var(--accent);
}

.xp-percent {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  min-width: 30px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.25s;
  cursor: none;
  position: relative;
}

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

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

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

/* Available Badge */
.nav-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 230, 118, 0.08);
  border: 0.5px solid rgba(0, 230, 118, 0.25);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

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

/* ============================================================
   AR TOGGLE BUTTON
   ============================================================ */
.ar-toggle {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 200;
  background: var(--bg-surface);
  border: 0.5px solid var(--border-default);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  cursor: none;
  transition: all 0.3s var(--ease);
}

.ar-toggle:hover {
  border-color: var(--border-hover);
  color: var(--accent);
  background: var(--tint);
}

.ar-toggle.active {
  background: var(--tint);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 230, 118, 0.2);
}

/* ============================================================
   ACHIEVEMENT TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-default);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.5s var(--ease);
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 18px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: hidden;
}

.star-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

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

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-availability {
  position: absolute;
  bottom: 40px;
  left: 80px;
  font-size: 11px;
  color: var(--text-muted);
  z-index: 2;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================================
   ORBITAL SYSTEM (HERO VISUAL)
   ============================================================ */
.hero-visual {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 420px;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbital-system {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  transform: rotateX(65deg) rotateZ(0deg);
}

.ring-1 {
  width: 300px;
  height: 300px;
  border-width: 1px;
  border-color: rgba(0, 230, 118, 0.25);
  animation: orbitRotate 20s linear infinite;
}

.ring-2 {
  width: 220px;
  height: 220px;
  border-width: 1px;
  border-color: rgba(0, 230, 118, 0.15);
  animation: orbitRotate 14s linear infinite reverse;
}

.ring-3 {
  width: 380px;
  height: 380px;
  border-width: 0.5px;
  border-color: rgba(0, 230, 118, 0.08);
  animation: orbitRotate 30s linear infinite;
}

.orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #00E676, #003D20);
  box-shadow:
    0 0 30px rgba(0, 230, 118, 0.4),
    0 0 60px rgba(0, 230, 118, 0.2),
    inset 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  animation: orbFloat 6s ease-in-out infinite;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 80px;
  align-items: start;
}

.about-quote {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 32px;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
  quotes: none;
}

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

.about-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 0.5px solid var(--border-subtle);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.stat-divider {
  width: 0.5px;
  height: 40px;
  background: var(--border-subtle);
}

/* Terminal Card */
.terminal-card {
  background: var(--bg-surface);
  border: 0.5px solid var(--border-default);
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-bar {
  background: var(--bg-elevated);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 0.5px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

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

.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green  { background: #28C840; }

.terminal-title {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.terminal-body {
  padding: 28px 32px;
}

.terminal-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 2;
  white-space: pre;
}

.t-bracket { color: rgba(255, 255, 255, 0.3); }
.t-key     { color: var(--accent); }
.t-string  { color: var(--text-muted); }
.t-value   { color: var(--accent); }
.t-punct   { color: rgba(255, 255, 255, 0.3); }

/* ============================================================
   WORK SECTION
   ============================================================ */
/* ============================================================
   WORK SECTION — BENTO GRID
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 380px 280px 220px;
  gap: 16px;
}

/* ---- BASE CARD ---- */
.project-card {
  background: var(--bg-surface);
  border: 0.5px solid rgba(0, 230, 118, 0.18);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: none;
  filter: blur(4px);
  opacity: 0.4;
  transition:
    border-color 0.4s var(--ease),
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    filter 0.7s var(--ease),
    opacity 0.7s var(--ease);
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 12, 10, 0.95) 0%,
    rgba(8, 12, 10, 0.6) 40%,
    rgba(8, 12, 10, 0.1) 100%
  );
  z-index: 1;
  border-radius: inherit;
}

.project-card > * {
  position: relative;
  z-index: 2;
}

.project-card.unlocked {
  filter: blur(0);
  opacity: 1;
}

.project-card:hover {
  border-color: rgba(0, 230, 118, 0.5);
  transform: translateY(-4px);
  box-shadow:
    0 0 0 0.5px rgba(0, 230, 118, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 230, 118, 0.06);
}

.project-card.is-liked {
  border-color: rgba(0, 230, 118, 0.5);
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.08);
}

/* ---- BENTO POSITIONS ---- */

/* Ankur — tall left, 2 rows */
.card-ankur {
  grid-column: 1;
  grid-row: 1 / 3;
}

/* Sawali — top middle */
.card-sawali {
  grid-column: 2;
  grid-row: 1;
}

/* Finance — top right */
.card-finance {
  grid-column: 3;
  grid-row: 1;
}

/* 9th Frame — wide, spans 2 cols */
.card-9thframe {
  grid-column: 2 / 4;
  grid-row: 2;
}

/* Typography — full width bottom */
.card-typography {
  grid-column: 1 / 4;
  grid-row: 3;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

/* ---- CARD BACKGROUND IMAGES ---- */
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: inherit;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
  opacity: 0.35;
  z-index: 0;
}

.project-card:hover .card-bg {
  transform: scale(1.04);
  opacity: 0.5;
}

/* CSS fallback backgrounds per project */
.card-ankur .card-bg {
  background:
    repeating-linear-gradient(
      0deg, transparent, transparent 32px,
      rgba(0, 230, 118, 0.04) 32px, rgba(0, 230, 118, 0.04) 33px
    ),
    repeating-linear-gradient(
      90deg, transparent, transparent 32px,
      rgba(0, 230, 118, 0.04) 32px, rgba(0, 230, 118, 0.04) 33px
    ),
    radial-gradient(ellipse at 30% 70%, rgba(0, 80, 40, 0.4), transparent 60%),
    var(--bg-elevated);
}

.card-sawali .card-bg {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0, 230, 118, 0.12), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(0, 100, 60, 0.15), transparent 50%),
    var(--bg-elevated);
}

.card-finance .card-bg {
  background:
    repeating-linear-gradient(
      -45deg, transparent, transparent 8px,
      rgba(0, 230, 118, 0.03) 8px, rgba(0, 230, 118, 0.03) 9px
    ),
    radial-gradient(ellipse at 60% 40%, rgba(0, 60, 30, 0.5), transparent 65%),
    var(--bg-elevated);
}

.card-9thframe .card-bg {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 230, 118, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 80, 40, 0.15), transparent 50%),
    var(--bg-elevated);
}

.card-typography .card-bg {
  background:
    repeating-linear-gradient(
      90deg, transparent, transparent 60px,
      rgba(0, 230, 118, 0.025) 60px, rgba(0, 230, 118, 0.025) 61px
    ),
    radial-gradient(ellipse at 50% 50%, rgba(0, 50, 25, 0.4), transparent 70%),
    var(--bg-elevated);
}

/* ---- BIG DECORATIVE NUMBER ---- */
.card-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 800;
  color: rgba(0, 230, 118, 0.04);
  line-height: 1;
  pointer-events: none;
  z-index: 1;
  letter-spacing: -0.04em;
  user-select: none;
}

.card-ankur .card-number { font-size: 140px; }
.card-typography .card-number { font-size: 120px; top: auto; bottom: 16px; }

/* ---- CARD CONTENT ---- */
.card-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 230, 118, 0.08);
  border: 0.5px solid rgba(0, 230, 118, 0.2);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  width: fit-content;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.card-ankur    .card-title { font-size: 36px; }
.card-sawali   .card-title,
.card-finance  .card-title { font-size: 22px; }
.card-9thframe .card-title { font-size: 28px; }
.card-typography .card-title { font-size: 32px; }

.card-subtitle {
  font-size: 14px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-ankur .card-desc { -webkit-line-clamp: 4; line-clamp: 4; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.05);
  margin-top: 12px;
}

.card-typography .card-footer {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  flex-direction: column;
  align-items: flex-start;
}

.card-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-link {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: letter-spacing 0.3s var(--ease);
  cursor: none;
  white-space: nowrap;
}

.card-link:hover {
  letter-spacing: 0.08em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .card-ankur    { grid-column: 1 / 3; grid-row: auto; min-height: 300px; }
  .card-sawali   { grid-column: 1;     grid-row: auto; min-height: 260px; }
  .card-finance  { grid-column: 2;     grid-row: auto; min-height: 260px; }
  .card-9thframe { grid-column: 1 / 3; grid-row: auto; min-height: 260px; }
  .card-typography { grid-column: 1 / 3; grid-row: auto; min-height: 220px; flex-direction: column; }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .card-ankur, .card-sawali, .card-finance,
  .card-9thframe, .card-typography {
    grid-column: 1;
    grid-row: auto;
    min-height: 260px;
  }
  .card-typography { flex-direction: column; }
  .card-number { font-size: 60px; }
}

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

.skill-card {
  background: var(--bg-surface);
  border: 0.5px solid var(--border-default);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s var(--ease);
}

.skill-card:hover {
  border-color: rgba(0, 230, 118, 0.3);
}

.skill-group-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.skill-name {
  font-size: 13px;
  color: var(--text-muted);
}

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

.skill-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1.2s var(--ease);
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.4);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.contact-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 130px);
  font-weight: 900;
  color: rgba(0, 230, 118, 0.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.02em;
}

.contact-heading {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.contact-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 48px;
  position: relative;
  z-index: 1;
}

.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.contact-item {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  padding-bottom: 4px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  cursor: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-item:hover {
  color: var(--accent);
  border-color: rgba(0, 230, 118, 0.5);
}

.accent-link {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  border-bottom-color: rgba(0, 230, 118, 0.3);
}

.contact-icon {
  font-size: 14px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 0.5px solid rgba(0, 230, 118, 0.08);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner span {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-tagline {
  font-style: italic;
}

.footer-icons {
  display: flex;
  gap: 16px;
}

.footer-icon {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
  cursor: none;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 48px; }
  .nav-inner { padding: 0 48px; }
  .hero { padding: 0 48px; }
  .hero-visual { right: 48px; width: 320px; height: 320px; }
  .hero-headline { font-size: 58px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-availability { left: 48px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 80px; }
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .nav-center { display: none; }
  .nav-badge { display: none; }
  .nav-links { gap: 20px; }
  .hero { padding: 0 24px; padding-top: 80px; min-height: 100vh; }
  .hero-headline { font-size: 42px; }
  .hero-visual { display: none; }
  .hero-availability { left: 24px; }
  .section-title { font-size: 36px; }
  .contact-heading { font-size: 40px; }
  .projects-grid { grid-template-columns: 1fr; }
  .card-featured { grid-template-columns: 1fr; min-height: auto; }
  .card-visual { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; padding: 0 24px; }
  .contact-links { flex-direction: column; gap: 20px; }
  .about-stats { flex-wrap: wrap; gap: 20px; }
}

/* ============================================================
   PROJECT MODAL — SPLIT LAYOUT
   Left: image carousel | Right: info panel
   ============================================================ */
#project-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  pointer-events: none;
}

#project-modal.open {
  display: block;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s ease;
  cursor: none;
}

#project-modal.open .modal-backdrop {
  opacity: 1;
}

/* ---- LEFT — CAROUSEL ---- */
.modal-carousel {
  position: absolute;
  top: 0;
  left: 0;
  right: 480px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.modal-carousel.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.carousel-counter {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(8, 12, 10, 0.8);
  border: 0.5px solid rgba(0, 230, 118, 0.2);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  align-self: flex-start;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}

.carousel-track {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: none;
  padding-right: 4px;
  padding-bottom: 48px;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-item {
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  border: 0.5px solid rgba(0, 230, 118, 0.1);
  background: var(--bg-surface);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.carousel-item:hover {
  border-color: rgba(0, 230, 118, 0.3);
  transform: scale(1.01);
}

.carousel-item img {
  width: 100%;
  height: auto;
  min-height: 160px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.carousel-item:first-child { min-height: 240px; }
.carousel-item:first-child img { min-height: 240px; }

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(8, 12, 10, 0.9));
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.carousel-placeholder { min-height: 200px; }

.carousel-ph-inner {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: inherit;
  position: relative;
  overflow: hidden;
}

.carousel-ph-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 12px,
    rgba(0, 230, 118, 0.025) 12px,
    rgba(0, 230, 118, 0.025) 13px
  );
}

.ph-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: rgba(0, 230, 118, 0.08);
  line-height: 1;
}

.ph-text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0, 230, 118, 0.25);
}

.ph-sub {
  font-size: 11px;
  color: rgba(0, 230, 118, 0.15);
  letter-spacing: 0.06em;
}

.carousel-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(8, 12, 10, 0.7));
  pointer-events: none;
}

/* ---- RIGHT — INFO PANEL ---- */
.modal-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 480px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 0.5px solid var(--border-default);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.modal-panel.active {
  transform: translateX(0);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 32px 20px;
  border-bottom: 0.5px solid var(--border-subtle);
  flex-shrink: 0;
}

.modal-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--tint);
  border: 0.5px solid rgba(0, 230, 118, 0.2);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  display: inline-block;
}

.modal-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.modal-dot {
  color: var(--border-default);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 14px;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--tint);
  border-color: var(--border-default);
  color: var(--accent);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 230, 118, 0.2) transparent;
}

.modal-body::-webkit-scrollbar {
  width: 4px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 230, 118, 0.2);
  border-radius: 2px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 0.5px solid var(--border-subtle);
}

.modal-section {
  margin-bottom: 32px;
}

.modal-section-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.modal-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Process steps */
.modal-process {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.process-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--tint);
  border: 0.5px solid rgba(0, 230, 118, 0.2);
  border-radius: 6px;
  padding: 4px 8px;
  flex-shrink: 0;
  margin-top: 2px;
}

.process-content {
  flex: 1;
}

.process-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.process-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Footer */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 0.5px solid var(--border-subtle);
}

.modal-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.modal-pill {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}

.modal-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 0.5px solid rgba(0, 230, 118, 0.3);
  padding-bottom: 2px;
  transition: letter-spacing 0.3s ease;
  cursor: none;
}

.modal-link:hover {
  letter-spacing: 0.04em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .modal-carousel { right: 420px; }
  .modal-panel    { width: 420px; }
}

@media (max-width: 768px) {
  .modal-carousel { display: none; }
  .modal-panel {
    width: 100%;
    height: 90vh;
    top: auto;
    bottom: 0;
    border-left: none;
    border-top: 0.5px solid var(--border-default);
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  .modal-panel.active { transform: translateY(0); }
}

/* ============================================================
   LIKE BUTTON
   ============================================================ */
.card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.like-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 0.5px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: none;
  transition: all 0.3s var(--ease);
}

.like-btn:hover {
  border-color: rgba(0, 230, 118, 0.3);
  color: var(--accent);
}

.like-btn.liked {
  border-color: rgba(0, 230, 118, 0.5);
  background: rgba(0, 230, 118, 0.08);
  color: var(--accent);
}

.like-icon {
  font-size: 14px;
  transition: transform 0.3s var(--ease);
  line-height: 1;
}

.like-btn.liked .like-icon {
  content: '♥';
  transform: scale(1.2);
}

.like-btn:active .like-icon {
  transform: scale(0.85);
}

.like-count {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  min-width: 8px;
}

/* Liked card glow state */
.project-card.is-liked {
  border-color: rgba(0, 230, 118, 0.4);
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.07);
}