:root {
  --bg: #050507;
  --surface: #0c0c12;
  --card: #12121c;
  --accent: #c8ff2e;
  --accent2: #00f0ff;
  --accent-dim: rgba(200, 255, 46, 0.1);
  --accent2-dim: rgba(0, 240, 255, 0.08);
  --text: #eaeaf0;
  --text-muted: #6e6e82;
  --border: rgba(255,255,255,0.05);
  --glow: 0 0 60px rgba(200,255,46,0.15);
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}

/* CUSTOM CURSOR */
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.35s ease, height 0.35s ease, border-color 0.35s, background 0.35s, opacity 0.35s;
}

.cursor-dot.hovering {
  width: 60px;
  height: 60px;
  background: rgba(200,255,46,0.1);
  mix-blend-mode: normal;
}

.cursor-ring.hovering {
  width: 80px;
  height: 80px;
  border-color: var(--accent2);
  background: rgba(0,240,255,0.04);
}

.cursor-glow {
  position: fixed;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,255,46,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
}

/* PARTICLE CANVAS */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* GRAIN */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 10000;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent), var(--accent2)); border-radius: 3px; }

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(24px) saturate(1.2);
  background: rgba(5,5,7,0.6);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }
.logo em {
  font-style: normal;
  color: var(--accent2);
  font-size: 0.55em;
  vertical-align: super;
  margin-left: 2px;
}

.nav-links { display: flex; gap: 36px; align-items: center; }

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

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

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg) !important;
  padding: 11px 28px;
  border-radius: 100px;
  font-weight: 700 !important;
  transition: transform 0.2s, box-shadow 0.3s !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: scale(1.06);
  box-shadow: 0 0 40px rgba(200,255,46,0.35);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 48px 100px;
  position: relative;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: rgba(200,255,46,0.06);
  top: 5%; right: -5%;
}

.orb-2 {
  width: 350px; height: 350px;
  background: rgba(0,240,255,0.04);
  bottom: 10%; left: -5%;
  animation-delay: -4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200,255,46,0.06);
  border: 1px solid rgba(200,255,46,0.15);
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  width: fit-content;
  margin-bottom: 36px;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.5px;
}

.blink {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--accent); }
  50% { opacity: 0.3; box-shadow: 0 0 4px var(--accent); }
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -3px;
  max-width: 900px;
}

.hero h1 .line {
  display: block;
  overflow: hidden;
}

.hero h1 .line-inner {
  display: block;
  transform: translateY(115%);
  animation: lineReveal 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero h1 .line:nth-child(2) .line-inner { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) .line-inner { animation-delay: 0.24s; }

@keyframes lineReveal {
  to { transform: translateY(0); }
}

.gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-top: 28px;
  opacity: 0;
  animation: fadeUp 1s ease 0.5s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 44px;
  opacity: 0;
  animation: fadeUp 1s ease 0.65s forwards;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 18px 40px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  font-family: 'Syne', sans-serif;
  transition: transform 0.25s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn-primary:hover::before { transform: translateX(100%); }

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 50px rgba(200,255,46,0.3);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  padding: 18px 40px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Syne', sans-serif;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(200,255,46,0.06);
  box-shadow: inset 0 0 30px rgba(200,255,46,0.05);
}

/* FLOATING STATS */
.hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 72px;
  opacity: 0;
  animation: fadeUp 1s ease 0.8s forwards;
}

.h-stat { position: relative; padding-left: 16px; }

.h-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 2px;
}

.h-stat-num {
  font-family: 'Space Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}

.h-stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

/* MARQUEE */
.marquee-wrap {
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee-track span {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0 32px;
}

.marquee-track span em { font-style: normal; color: var(--accent); }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SECTIONS */
section { padding: 120px 48px; position: relative; }

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(20px);
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 64px;
  opacity: 0;
  transform: translateY(20px);
}

.section-title .accent { color: var(--accent); }
.section-title .accent2 { color: var(--accent2); }

.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
}

.service-card {
  background: linear-gradient(145deg, var(--card), var(--bg));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(200,255,46,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

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

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

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

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200,255,46,0.1);
  box-shadow: 0 25px 70px rgba(0,0,0,0.4), var(--glow);
}

.service-icon {
  width: 64px; height: 64px;
  background: var(--accent-dim);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.service-price {
  margin-top: 24px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

/* PORTFOLIO */
#work { background: var(--surface); }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
  max-width: 1200px;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0;
  transform: translateY(30px);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  border-color: rgba(200,255,46,0.12);
}

.project-preview {
  height: 240px;
  position: relative;
  overflow: hidden;
}

.project-preview::after {
  content: 'VIEW PROJECT →';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: var(--accent);
  background: rgba(5,5,7,0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s;
}

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

.pp-1 { background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 40%, #415a77 100%); }
.pp-2 { background: linear-gradient(135deg, #2b0a3d 0%, #4a1a6b 40%, #7b2d8e 100%); }
.pp-3 { background: linear-gradient(135deg, #0a2e1a 0%, #1a5632 40%, #2d8659 100%); }

.preview-browser {
  position: absolute;
  top: 20px; left: 20px; right: 20px; bottom: -30px;
  background: rgba(0,0,0,0.35);
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.browser-bar {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.browser-dot { width: 7px; height: 7px; border-radius: 50%; }
.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-url {
  margin-left: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  padding: 4px 12px;
  border-radius: 6px;
  flex: 1;
}

.browser-content { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

.browser-block { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.06); }
.browser-block-accent { background: linear-gradient(90deg, rgba(200,255,46,0.15), rgba(0,240,255,0.1)); }

.project-info { padding: 30px; }

.project-type {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.project-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-info p { color: var(--text-muted); font-size: 0.92rem; }

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

.project-tags span {
  font-size: 0.75rem;
  padding: 5px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
}

/* PROCESS */
.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  position: relative;
}

.process-track::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent));
  opacity: 0.15;
}

.p-step {
  text-align: center;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(30px);
}

.p-step-dot {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid rgba(200,255,46,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: 'Space Mono', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  transition: all 0.4s;
  position: relative;
  z-index: 1;
}

.p-step:hover .p-step-dot {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(200,255,46,0.15);
  transform: scale(1.12);
}

.p-step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.p-step p { color: var(--text-muted); font-size: 0.88rem; }

/* CTA */
.cta-section {
  text-align: center;
  padding: 140px 48px;
  position: relative;
  overflow: hidden;
}

.cta-orbs { position: absolute; inset: 0; pointer-events: none; }

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: orbFloat 10s ease-in-out infinite;
}

.cta-orb-1 {
  width: 400px; height: 400px;
  background: rgba(200,255,46,0.08);
  top: 20%; left: 20%;
}

.cta-orb-2 {
  width: 300px; height: 300px;
  background: rgba(0,240,255,0.06);
  bottom: 20%; right: 20%;
  animation-delay: -5s;
}

.cta-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 20px;
  position: relative;
}

.cta-section .sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 48px;
  position: relative;
}

.cta-email {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  color: var(--accent2);
  text-decoration: none;
  margin-top: 24px;
  opacity: 0.7;
  transition: opacity 0.3s;
  position: relative;
}

.cta-email:hover { opacity: 1; }

/* FOOTER */
footer {
  padding: 44px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.3s;
}

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  * { cursor: auto !important; }
  .cursor-dot, .cursor-ring, .cursor-glow, #particles { display: none !important; }
  nav { padding: 16px 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  section, .hero, .cta-section { padding-left: 20px; padding-right: 20px; }
  .hero-stats { flex-wrap: wrap; gap: 28px; }
  .portfolio-grid, .services-grid { grid-template-columns: 1fr; }
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-track::before { display: none; }
  .hero-buttons { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
}
