:root {
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --bg3: #141422;
  --neon: #00f5a0;
  --neon2: #00c9f5;
  --orange: #ff6b35;
  --muted: #4a4a6a;
  --text: #c8c8e8;
  --white: #eeeeff;
  --border: rgba(0,245,160,0.15);
  --glow: 0 0 20px rgba(0,245,160,0.3);
  --glow2: 0 0 20px rgba(0,201,245,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Mono', monospace;
  overflow-x: hidden;
  cursor: none;
}

/* CUSTOM CURSOR */
.cursor {
  width: 12px; height: 12px;
  background: var(--neon);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  box-shadow: var(--glow);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--neon);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.15s ease;
  opacity: 0.5;
}

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

/* GRID BACKGROUND */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,160,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,160,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: linear-gradient(to bottom, rgba(10,10,15,0.95), transparent);
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--neon);
  letter-spacing: 2px;
  text-decoration: none;
}

.nav-logo span { color: var(--white); }

nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

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

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

/* SECTIONS */
section {
  position: relative;
  z-index: 2;
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 60px 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,245,160,0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

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

.hero-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--neon);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 30px;
  background: rgba(0,245,160,0.05);
}

.hero-tag::before { content: '> '; }

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 800;
  line-height: 0.95;
  color: var(--white);
  margin-bottom: 30px;
}

h1 .accent { color: var(--neon); }
h1 .accent2 { color: var(--neon2); }

.hero-desc {
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
  max-width: 500px;
  margin-bottom: 50px;
}

.hero-desc span { color: var(--text); }

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--neon);
  color: var(--bg);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary:hover {
  background: var(--white);
  box-shadow: var(--glow);
}

.btn-outline {
  padding: 14px 32px;
  background: transparent;
  color: var(--neon);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-outline:hover {
  border-color: var(--neon);
  background: rgba(0,245,160,0.05);
  box-shadow: var(--glow);
}

/* STATS BAR */
.stats-bar {
  display: flex;
  gap: 60px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat { text-align: left; }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--neon);
}

.stat-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* SECTION STYLES */
.section-header {
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-num {
  font-size: 11px;
  color: var(--neon);
  letter-spacing: 2px;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 60px;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

/* ABOUT */
#about {
  padding: 100px 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 50px;
}

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

.about-text p span { color: var(--neon); }

.terminal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  font-size: 12px;
}

.terminal-bar {
  background: var(--bg3);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

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

.t-red { background: #ff5f57; }
.t-yellow { background: #ffbd2e; }
.t-green { background: #28c940; }

.terminal-title {
  font-size: 10px;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 1px;
}

.terminal-body {
  padding: 20px;
  line-height: 2;
}

.t-comment { color: var(--muted); }
.t-key { color: var(--neon2); }
.t-val { color: var(--orange); }
.t-str { color: var(--neon); }
.t-brace { color: var(--white); }

/* SKILLS */
#skills {
  padding: 100px 60px;
  background: var(--bg2);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.skill-card {
  border: 1px solid var(--border);
  padding: 24px;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,245,160,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-card:hover { border-color: var(--neon); transform: translateY(-4px); }
.skill-card:hover::before { opacity: 1; }

.skill-cat {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 16px;
}

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

.tag {
  font-size: 10px;
  padding: 4px 10px;
  background: rgba(0,245,160,0.05);
  border: 1px solid rgba(0,245,160,0.15);
  color: var(--text);
  letter-spacing: 1px;
  border-radius: 2px;
  transition: all 0.2s;
}

.tag:hover {
  background: rgba(0,245,160,0.15);
  color: var(--neon);
}

/* EXPERIENCE */
#experience {
  padding: 100px 60px;
}

.exp-timeline {
  position: relative;
  margin-top: 50px;
  padding-left: 30px;
}

.exp-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--neon), transparent);
}

.exp-item {
  position: relative;
  margin-bottom: 60px;
  padding-left: 40px;
  animation: fadeUp 0.6s ease both;
}

.exp-dot {
  position: absolute;
  left: -5px; top: 8px;
  width: 10px; height: 10px;
  background: var(--neon);
  border-radius: 50%;
  box-shadow: var(--glow);
}

.exp-period {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--neon);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.exp-role {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.exp-company {
  font-size: 12px;
  color: var(--neon2);
  margin-bottom: 16px;
}

.exp-desc {
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
}

/* PROJECTS */
#projects {
  padding: 100px 60px;
  background: var(--bg2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.project-card {
  border: 1px solid var(--border);
  background: var(--bg3);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(to right, var(--neon), var(--neon2));
  transition: width 0.4s;
}

.project-card:hover { border-color: rgba(0,245,160,0.3); transform: translateY(-6px); }
.project-card:hover::after { width: 100%; }

.proj-num {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
}

.proj-name {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.proj-desc {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  flex: 1;
}

.proj-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.proj-tag {
  font-size: 9px;
  padding: 3px 8px;
  background: rgba(0,201,245,0.08);
  border: 1px solid rgba(0,201,245,0.2);
  color: var(--neon2);
  letter-spacing: 1px;
  border-radius: 2px;
  text-transform: uppercase;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon);
  text-decoration: none;
  margin-top: 4px;
  transition: gap 0.3s;
}

.proj-link:hover { gap: 10px; }

/* CONTACT */
#contact {
  padding: 100px 60px;
  text-align: center;
  position: relative;
}

.contact-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,201,245,0.06) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.contact-inner { position: relative; z-index: 1; }

.contact-inner h2 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 20px;
}

.contact-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 50px;
  line-height: 2;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  transition: all 0.3s;
  background: var(--bg2);
}

.contact-item:hover {
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: var(--glow);
}

/* FOOTER */
footer {
  padding: 30px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.footer-text {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
}

.footer-copy {
  font-size: 10px;
  color: var(--muted);
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 40px; right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* BLINKING CURSOR */
.blink {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* MOBILE */
@media (max-width: 768px) {
  nav { padding: 20px 24px; }
  nav ul { display: none; }
  #hero, #about, #skills, #experience, #projects, #contact { padding: 80px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-bar { gap: 30px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}

/* ENTRANCE ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease;
}

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