/* ==========================================================
   KANISHK PORTFOLIO — STYLES
   ========================================================== */

:root {
  --bg: #06060a;
  --bg-alt: #0b0b14;
  --surface: #10101c;
  --surface-2: #15152400;
  --neon-purple: #b14bff;
  --neon-cyan: #33f6ff;
  --neon-pink: #ff2ea6;
  --text: #eef0ff;
  --text-dim: #8b8ba3;
  --border: rgba(177, 75, 255, 0.25);
  --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);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--neon-purple); color: #fff; }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--neon-purple), var(--neon-cyan));
  border-radius: 6px;
}

/* ---------- background fx ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(177, 75, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 75, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 100%);
  pointer-events: none;
}

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

/* ---------- layout helpers ---------- */
.section {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 32px;
}

.section-head { margin-bottom: 56px; }

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: 1px;
}

.text-accent {
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 6, 10, 0.55);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--text);
  text-decoration: none;
}

.logo-dot {
  color: var(--neon-cyan);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1.5px;
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a:hover { color: var(--neon-cyan); }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--neon-cyan);
  transition: width 0.25s ease;
}

.nav-links a:hover::after { width: 100%; }

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #ff3860;
  border: 1px solid rgba(255, 56, 96, 0.5);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 56, 96, 0.08);
}

.live-badge.hidden { display: none; }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3860;
  box-shadow: 0 0 8px #ff3860;
  animation: pulse 1.2s ease-in-out infinite;
}

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

/* ---------- hero ---------- */
.hero {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}

.hero-eyebrow {
  font-family: var(--font-display);
  color: var(--neon-cyan);
  letter-spacing: 3px;
  font-size: 13px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.1s;
}

.glitch {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 12vw, 130px);
  line-height: 1;
  letter-spacing: 4px;
  position: relative;
  color: var(--text);
  text-shadow: 0 0 30px rgba(177, 75, 255, 0.4);
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.25s;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
}

.glitch::before {
  color: var(--neon-cyan);
  animation: glitch-1 4.5s infinite linear alternate-reverse;
}

.glitch::after {
  color: var(--neon-pink);
  animation: glitch-2 3.7s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
  0%, 92%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
  93% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 1px); }
  95% { clip-path: inset(60% 0 5% 0); transform: translate(3px, -1px); }
  97% { clip-path: inset(30% 0 40% 0); transform: translate(-2px, 0); }
}

@keyframes glitch-2 {
  0%, 90%, 100% { clip-path: inset(100% 0 0 0); transform: translate(0); }
  91% { clip-path: inset(20% 0 50% 0); transform: translate(3px, 0); }
  94% { clip-path: inset(70% 0 10% 0); transform: translate(-3px, 1px); }
  98% { clip-path: inset(15% 0 65% 0); transform: translate(2px, -1px); }
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(15px, 2vw, 20px);
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-top: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-bio {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--text-dim);
  font-size: 17px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.55s;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.7s;
}

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

.btn {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 4px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  color: #06060a;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  box-shadow: 0 0 24px rgba(177, 75, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(177, 75, 255, 0.6);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1s;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--neon-cyan), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- video grid ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.video-card:hover {
  transform: translateY(-8px);
  border-color: var(--neon-cyan);
  box-shadow: 0 16px 40px rgba(51, 246, 255, 0.15);
}

.video-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.video-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.video-card:hover .video-thumb-wrap img {
  transform: scale(1.06);
}

.video-thumb-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.play-btn::before {
  content: '';
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(6, 6, 10, 0.55);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 24px rgba(51, 246, 255, 0.5);
  transition: transform 0.3s ease;
}

.video-card:hover .play-btn::before {
  transform: scale(1.1);
}

.play-btn::after {
  content: '';
  position: absolute;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  transform: translateX(3px);
}

.video-info {
  padding: 18px 20px 22px;
}

.video-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text);
}

.video-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 48px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
}

/* ---------- instagram feed ---------- */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.instagram-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.instagram-card:hover {
  transform: translateY(-8px);
  border-color: var(--neon-pink);
  box-shadow: 0 16px 40px rgba(255, 46, 166, 0.15);
}

.instagram-card iframe {
  width: 100%;
  min-height: 600px;
  border: 0;
  display: block;
  background: var(--surface);
}

.instagram-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 48px 24px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
}

/* ---------- platforms ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 20px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-6px);
  border-color: var(--platform-color, var(--neon-purple));
  box-shadow: 0 16px 36px -12px var(--platform-color, var(--neon-purple));
}

.platform-icon {
  width: 44px;
  height: 44px;
  color: var(--platform-color, var(--neon-purple));
}

.platform-icon svg { width: 100%; height: 100%; fill: currentColor; }

.platform-name {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 1px;
}

.platform-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  padding: 24px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 1px;
}

/* ---------- footer ---------- */
.footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--border);
  padding: 100px 32px 40px;
  text-align: center;
}

.footer-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
}

.footer-sub {
  color: var(--text-dim);
  margin-top: 14px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 40px 0 60px;
  flex-wrap: wrap;
}

.footer-socials a {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.25s ease;
}

.footer-socials a svg { width: 20px; height: 20px; fill: currentColor; }

.footer-socials a:hover {
  color: var(--bg);
  background: var(--platform-color, var(--neon-cyan));
  border-color: var(--platform-color, var(--neon-cyan));
  transform: translateY(-4px);
}

.footer-copy {
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .section { padding: 90px 20px; }
}
