:root {
  --bg: #05070d;
  --bg-alt: #0a0e1a;
  --cyan: #00e5ff;
  --violet: #a855f7;
  --pink: #ff2e9e;
  --text: #e6f1ff;
  --text-dim: #8fa3bf;
  --border: rgba(0, 229, 255, 0.18);
  --glass: rgba(15, 22, 38, 0.55);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 50% -10%, #101830 0%, #05070d 55%, #030408 100%);
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015) 0px,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

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

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(5, 7, 13, 0.65);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

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

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width 0.25s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 100px;
  flex-wrap: wrap;
  position: relative;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--cyan);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  background: rgba(0, 229, 255, 0.05);
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #39ff88;
  box-shadow: 0 0 8px #39ff88;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 32px;
}

.highlight { color: var(--cyan); font-weight: 600; }

.hero-cta { display: flex; gap: 18px; margin-bottom: 48px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 1px;
  padding: 14px 30px;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  color: #05070d;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(168, 85, 247, 0.45); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(0, 229, 255, 0.08); border-color: var(--cyan); }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
}
.stat-label { font-size: 0.8rem; color: var(--text-dim); letter-spacing: 1px; }

/* HERO VISUAL */
.hero-visual {
  position: relative;
  width: 340px; height: 340px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-ring {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.ring-1 { width: 100%; height: 100%; animation: spin 18s linear infinite; border-color: rgba(0,229,255,0.25); }
.ring-2 { width: 74%; height: 74%; animation: spin 12s linear infinite reverse; border-color: rgba(168,85,247,0.3); }
.ring-3 { width: 48%; height: 48%; animation: spin 8s linear infinite; border-color: rgba(255,46,158,0.3); }
.ring-1::before, .ring-2::before {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  top: -4px; left: 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }

.core-glow {
  position: absolute;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.35), rgba(168,85,247,0.15) 60%, transparent 75%);
  filter: blur(2px);
  animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.core-label {
  position: relative;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--text);
  text-shadow: 0 0 20px var(--cyan);
}

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-dim);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--cyan), transparent);
  animation: scrollMove 1.8s ease-in-out infinite;
}
@keyframes scrollMove { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

/* SECTIONS */
.section { padding: 110px 24px 60px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.tag {
  font-size: 0.85rem;
  color: var(--bg);
  background: var(--cyan);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  padding: 32px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
}
.about-card p { color: var(--text-dim); margin-bottom: 16px; font-size: 1.05rem; }
.about-card strong { color: var(--cyan); }

.about-terminal {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #060910;
  box-shadow: 0 0 40px rgba(0,229,255,0.08);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0d1220;
  border-bottom: 1px solid var(--border);
}
.terminal-bar .dot { width: 10px; height: 10px; box-shadow: none; animation: none; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-title { margin-left: 8px; font-size: 0.8rem; color: var(--text-dim); }
.terminal-body {
  padding: 20px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--text-dim);
  min-height: 180px;
}
.terminal-body .prompt { color: var(--cyan); }
.terminal-body .out { color: var(--text); display: block; margin: 4px 0 14px; }
.blink::after { content: ''; }

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.skill-card { text-align: center; transition: transform 0.3s ease, border-color 0.3s ease; }
.skill-card:hover { transform: translateY(-6px); border-color: var(--cyan); }
.skill-icon { font-size: 2.2rem; margin-bottom: 12px; }
.skill-card h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 8px; }
.skill-card p { color: var(--text-dim); font-size: 0.9rem; }

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.project-card { position: relative; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s ease; }
.project-card:hover { transform: translateY(-6px); border-color: var(--violet); }
.project-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(168,85,247,0.35), transparent 70%);
  border-radius: 50%;
}
.project-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 10px; }
.project-card p { color: var(--text-dim); margin-bottom: 16px; font-size: 0.95rem; }
.project-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.project-tags span {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--cyan);
}

/* CONTACT */
.contact-card { text-align: center; }
.contact-card p { color: var(--text-dim); margin-bottom: 20px; font-size: 1.05rem; }
.contact-links { display: flex; justify-content: center; gap: 24px; }
.contact-links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.25s ease;
}
.contact-links a:hover { background: rgba(0,229,255,0.1); border-color: var(--cyan); }

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 30px 24px;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.heart { color: var(--pink); }

/* RESPONSIVE */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed;
    top: 68px; right: -100%;
    width: 240px;
    height: calc(100vh - 68px);
    background: rgba(5,7,13,0.97);
    flex-direction: column;
    padding: 32px 24px;
    border-left: 1px solid var(--border);
    transition: right 0.3s ease;
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }
  .hero { justify-content: center; text-align: center; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-visual { width: 240px; height: 240px; }
}
