/* ============================================
   LIME COMMAND — Design System
   Tokens: VoltAgent remix (lime accent, dark dev)
   Display: Bebas Neue | Body: JetBrains Mono
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg: #050508;
  --bg-elevated: #0c0c12;
  --bg-card: #12121a;
  --bg-hover: #1a1a24;
  --fg: #f0f0f0;
  --fg-muted: #8888a0;
  --accent: #84cc16;
  --accent-dim: #5a8a0e;
  --accent-glow: rgba(132, 204, 22, 0.25);
  --accent-text: #a3e635;
  --border: #1e1e2a;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'JetBrains Mono', monospace;

  --max-width: 1200px;
  --section-py: clamp(4rem, 10vw, 8rem);
  --section-px: clamp(1.25rem, 4vw, 3rem);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: clamp(14px, 1.8vw, 17px);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

/* Subtle noise overlay — gives depth to the dark bg */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Mouse-reactive glow for hero */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132,204,22,0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  will-change: transform;
}

/* Perspective card for 3D tilt */
.tilt-card {
  perspective: 800px;
}
.tilt-card-inner {
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Scroll reveal base — animation handled by anime.js */
.reveal-el > * {
  opacity: 0;
  transform: translateY(30px);
}

#root { width: 100%; min-height: 100vh; }

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

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

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ---------- Typography ---------- */
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.02em; line-height: 1; text-transform: uppercase; }
.display-xl { font-size: clamp(3.5rem, 14vw, 10rem); }
.display-lg { font-size: clamp(2.5rem, 8vw, 6rem); }
.display-md { font-size: clamp(2rem, 5vw, 3.5rem); }
.display-sm { font-size: clamp(1.25rem, 3vw, 2rem); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25em;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: clamp(3rem, 8vw, 6rem);
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-sub {
  color: var(--fg-muted);
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  margin-bottom: 2.5rem;
  margin-top: 0.75rem;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.section {
  padding: var(--section-py) var(--section-px);
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 1rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  transition: border-color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}
.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(132, 204, 22, 0.1);
  color: var(--accent-text);
  border: 1px solid rgba(132, 204, 22, 0.2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s var(--ease-smooth);
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}
.btn-primary:hover {
  background: var(--accent-text);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--fg-muted);
}
.btn-ghost:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* ---------- Marquee / Ticker ---------- */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.ticker-track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker-scroll 30s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ticker-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Horizontal Scroll (Carrusel) ---------- */
.h-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}
.h-scroll::-webkit-scrollbar { height: 4px; }
.h-scroll::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 2px; }
.h-scroll > * {
  flex: 0 0 min(85vw, 380px);
  scroll-snap-align: start;
}

/* ---------- Experience Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 1.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

/* ---------- Skills Grid ---------- */
.skill-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s var(--ease-smooth);
  cursor: default;
}
.skill-logo:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.skill-logo img { width: 36px; height: 36px; object-fit: contain; }
.skill-logo span { font-size: 0.7rem; color: var(--fg-muted); text-align: center; }

/* ---------- Education Card ---------- */
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s var(--ease-smooth);
}
.edu-card:hover { border-color: var(--accent-dim); }
.edu-card img { width: 48px; height: 48px; object-fit: contain; }

/* ---------- Contact Grid ---------- */
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s var(--ease-smooth);
}
.contact-link:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.contact-link svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }

/* ---------- Header Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem var(--section-px);
}
.header-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.header-nav { display: flex; gap: 1.5rem; }
.header-nav a {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--accent); }

/* ---------- Stat Block ---------- */
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  color: var(--accent);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: 1fr auto; }
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 10rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.hero-name .accent { color: var(--accent); }
.hero-sub {
  color: var(--fg-muted);
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  margin: 1rem 0 1.5rem;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Project Carousel Item ---------- */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
  cursor: pointer;
}
.project-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
}
.project-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.project-card p {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1;
}
.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.project-card .tags span {
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(132, 204, 22, 0.08);
  color: var(--accent-text);
  border: 1px solid rgba(132, 204, 22, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem var(--section-px);
  text-align: center;
  font-size: 0.75rem;
  color: var(--fg-muted);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links a:hover { color: var(--accent); }

/* ---------- Utilities ---------- */
.gap-1 { gap: 1rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}
