/* ============================================
   RITIK NIPANE — DATA ANALYST PORTFOLIO
   Main Stylesheet
   ============================================ */

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

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #06060E;
  color: #f8fafc;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ─── Custom Scrollbar ──────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #06060E; }
::-webkit-scrollbar-thumb { background: rgba(6, 182, 212, 0.3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(6, 182, 212, 0.6); }

/* ─── Custom Cursor ─────────────────────────── */
#cursor {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  transition: width 0.2s, height 0.2s, background 0.2s, opacity 0.2s;
  will-change: transform;
}
#cursorTrail {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  will-change: transform;
}
body:hover #cursor { opacity: 1; }

/* ─── Typography ────────────────────────────── */
.text-gradient-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 50%, #22d3ee 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Navigation ────────────────────────────── */
#mainNav {
  background: transparent;
}
#mainNav.scrolled {
  background: rgba(6, 6, 14, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ─── Hero Section ──────────────────────────── */
#heroCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-name {
  will-change: transform, opacity;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  will-change: transform, opacity;
}

/* Scroll line animation */
@keyframes scrollLinePulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.4; }
}

.scroll-line {
  animation: scrollLinePulse 2s ease-in-out infinite;
  transform-origin: top;
}

/* ─── Marquee ───────────────────────────────── */
.marquee-track {
  display: flex;
  will-change: transform;
  user-select: none;
}

.marquee-inner {
  display: flex;
  align-items: center;
  animation: marqueeScroll 30s linear infinite;
  flex-shrink: 0;
}

.marquee-track:hover .marquee-inner {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ─── About / Stat Cards ────────────────────── */
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(6,182,212,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.stat-card:hover::before { opacity: 1; }

/* ─── Experience / Timeline ─────────────────── */
.timeline-container {
  position: relative;
}

.pipeline-svg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  pointer-events: none;
  z-index: 0;
  display: none;
}

@media (min-width: 768px) {
  .pipeline-svg { display: block; }
}

.experience-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.experience-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(6,182,212,0.05);
}

.exp-bullet {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.exp-bullet.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Skills Section ────────────────────────── */
#radarChart {
  border-radius: 50%;
  filter: drop-shadow(0 0 20px rgba(6,182,212,0.15));
}

/* Skill chip colors */
.skill-dot-cyan   { background-color: #06b6d4; }
.skill-dot-blue   { background-color: #3b82f6; }
.skill-dot-amber  { background-color: #f59e0b; }
.skill-dot-violet { background-color: #8b5cf6; }

.skill-label-cyan   { color: #22d3ee; }
.skill-label-blue   { color: #60a5fa; }
.skill-label-amber  { color: #fbbf24; }
.skill-label-violet { color: #a78bfa; }

.skill-chip-cyan {
  border-color: rgba(6,182,212,0.3);
  color: #94a3b8;
  background: rgba(6,182,212,0.05);
}
.skill-chip-cyan:hover {
  border-color: rgba(6,182,212,0.7);
  color: #22d3ee;
  background: rgba(6,182,212,0.1);
  box-shadow: 0 0 20px rgba(6,182,212,0.2), 0 0 40px rgba(6,182,212,0.05);
  text-shadow: 0 0 10px rgba(6,182,212,0.5);
}

.skill-chip-blue {
  border-color: rgba(59,130,246,0.3);
  color: #94a3b8;
  background: rgba(59,130,246,0.05);
}
.skill-chip-blue:hover {
  border-color: rgba(59,130,246,0.7);
  color: #60a5fa;
  background: rgba(59,130,246,0.1);
  box-shadow: 0 0 20px rgba(59,130,246,0.2), 0 0 40px rgba(59,130,246,0.05);
  text-shadow: 0 0 10px rgba(59,130,246,0.5);
}

.skill-chip-amber {
  border-color: rgba(245,158,11,0.3);
  color: #94a3b8;
  background: rgba(245,158,11,0.05);
}
.skill-chip-amber:hover {
  border-color: rgba(245,158,11,0.7);
  color: #fbbf24;
  background: rgba(245,158,11,0.1);
  box-shadow: 0 0 20px rgba(245,158,11,0.2), 0 0 40px rgba(245,158,11,0.05);
  text-shadow: 0 0 10px rgba(245,158,11,0.5);
}

.skill-chip-violet {
  border-color: rgba(139,92,246,0.3);
  color: #94a3b8;
  background: rgba(139,92,246,0.05);
}
.skill-chip-violet:hover {
  border-color: rgba(139,92,246,0.7);
  color: #a78bfa;
  background: rgba(139,92,246,0.1);
  box-shadow: 0 0 20px rgba(139,92,246,0.2), 0 0 40px rgba(139,92,246,0.05);
  text-shadow: 0 0 10px rgba(139,92,246,0.5);
}

.skill-tag-interactive {
  cursor: default;
  transition: all 0.3s ease;
  will-change: transform;
}

.skill-tag-interactive:hover {
  transform: translateY(-2px) scale(1.05);
}

/* ─── Projects Section ──────────────────────── */
.project-slide {
  position: relative;
}

/* Project badge colors */
.project-badge-cyan   { background: rgba(6,182,212,0.1);  border: 1px solid rgba(6,182,212,0.25); }
.project-badge-amber  { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25); }
.project-badge-violet { background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.25); }
.project-badge-blue   { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25); }

.project-badge-text-cyan   { color: #22d3ee; }
.project-badge-text-amber  { color: #fbbf24; }
.project-badge-text-violet { color: #a78bfa; }
.project-badge-text-blue   { color: #60a5fa; }

.project-title-cyan   { color: #ffffff; }
.project-title-amber  { color: #ffffff; }
.project-title-violet { color: #ffffff; }
.project-title-blue   { color: #ffffff; }

/* Project metric badges */
.project-metric-cyan   { background: rgba(6,182,212,0.15);  color: #22d3ee;  border: 1px solid rgba(6,182,212,0.3); }
.project-metric-amber  { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }
.project-metric-violet { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.project-metric-blue   { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }

/* View buttons */
.view-btn-cyan {
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.4);
  color: #22d3ee;
  transition: all 0.3s ease;
}
.view-btn-cyan:hover {
  background: rgba(6,182,212,0.2);
  border-color: #06b6d4;
  box-shadow: 0 0 30px rgba(6,182,212,0.3);
  color: #fff;
}

.view-btn-amber {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.4);
  color: #fbbf24;
  transition: all 0.3s ease;
}
.view-btn-amber:hover {
  background: rgba(245,158,11,0.2);
  border-color: #f59e0b;
  box-shadow: 0 0 30px rgba(245,158,11,0.3);
  color: #fff;
}

.view-btn-violet {
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.4);
  color: #a78bfa;
  transition: all 0.3s ease;
}
.view-btn-violet:hover {
  background: rgba(139,92,246,0.2);
  border-color: #8b5cf6;
  box-shadow: 0 0 30px rgba(139,92,246,0.3);
  color: #fff;
}

.view-btn-blue {
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.4);
  color: #60a5fa;
  transition: all 0.3s ease;
}
.view-btn-blue:hover {
  background: rgba(59,130,246,0.2);
  border-color: #3b82f6;
  box-shadow: 0 0 30px rgba(59,130,246,0.3);
  color: #fff;
}

/* Project visual backgrounds */
.project-visual-bg-cyan   { background: radial-gradient(ellipse at center, rgba(6,182,212,0.04) 0%, transparent 70%); }
.project-visual-bg-amber  { background: radial-gradient(ellipse at center, rgba(245,158,11,0.04) 0%, transparent 70%); }
.project-visual-bg-violet { background: radial-gradient(ellipse at center, rgba(139,92,246,0.04) 0%, transparent 70%); }
.project-visual-bg-blue   { background: radial-gradient(ellipse at center, rgba(59,130,246,0.04) 0%, transparent 70%); }

/* Dashboard mockup colors */
.metric-card-cyan   { background: rgba(6,182,212,0.08);  border: 1px solid rgba(6,182,212,0.15);  border-radius: 12px; }
.metric-card-amber  { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.15); border-radius: 12px; }
.metric-card-violet { background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.15); border-radius: 12px; }
.metric-card-blue   { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.15); border-radius: 12px; }

.metric-val-cyan   { color: #22d3ee; }
.metric-val-amber  { color: #fbbf24; }
.metric-val-violet { color: #a78bfa; }
.metric-val-blue   { color: #60a5fa; }

.chart-bg-cyan   { background: rgba(6,182,212,0.04);  border: 1px solid rgba(6,182,212,0.1);  border-radius: 12px; }
.chart-bg-amber  { background: rgba(245,158,11,0.04); border: 1px solid rgba(245,158,11,0.1); border-radius: 12px; }
.chart-bg-violet { background: rgba(139,92,246,0.04); border: 1px solid rgba(139,92,246,0.1); border-radius: 12px; }
.chart-bg-blue   { background: rgba(59,130,246,0.04); border: 1px solid rgba(59,130,246,0.1); border-radius: 12px; }

.chart-label-cyan   { color: #06b6d4; }
.chart-label-amber  { color: #f59e0b; }
.chart-label-violet { color: #8b5cf6; }
.chart-label-blue   { color: #3b82f6; }

.chart-bar-cyan   { background: linear-gradient(to top, #06b6d4, #22d3ee); }
.chart-bar-amber  { background: linear-gradient(to top, #f59e0b, #fbbf24); }
.chart-bar-violet { background: linear-gradient(to top, #8b5cf6, #a78bfa); }
.chart-bar-blue   { background: linear-gradient(to top, #3b82f6, #60a5fa); }

.row-card-cyan   { background: rgba(6,182,212,0.05);  border: 1px solid rgba(6,182,212,0.1);  border-radius: 12px; }
.row-card-amber  { background: rgba(245,158,11,0.05); border: 1px solid rgba(245,158,11,0.1); border-radius: 12px; }
.row-card-violet { background: rgba(139,92,246,0.05); border: 1px solid rgba(139,92,246,0.1); border-radius: 12px; }
.row-card-blue   { background: rgba(59,130,246,0.05); border: 1px solid rgba(59,130,246,0.1); border-radius: 12px; }

.risk-bar-cyan   { background: linear-gradient(to right, #06b6d4, #22d3ee); }
.risk-bar-amber  { background: linear-gradient(to right, #f59e0b, #fbbf24); }
.risk-bar-violet { background: linear-gradient(to right, #8b5cf6, #a78bfa); }
.risk-bar-blue   { background: linear-gradient(to right, #3b82f6, #60a5fa); }

.quality-bar-cyan   { background: linear-gradient(to right, #06b6d4, #22d3ee); }
.quality-bar-amber  { background: linear-gradient(to right, #f59e0b, #fbbf24); }
.quality-bar-violet { background: linear-gradient(to right, #8b5cf6, #a78bfa); }
.quality-bar-blue   { background: linear-gradient(to right, #3b82f6, #60a5fa); }

.risk-label-cyan   { color: #22d3ee; }
.risk-label-amber  { color: #fbbf24; }
.risk-label-violet { color: #a78bfa; }
.risk-label-blue   { color: #60a5fa; }

.quality-label-cyan   { color: #22d3ee; }
.quality-label-amber  { color: #fbbf24; }
.quality-label-violet { color: #a78bfa; }
.quality-label-blue   { color: #60a5fa; }

.project-url-text-cyan   { color: rgba(6,182,212,0.5); }
.project-url-text-amber  { color: rgba(245,158,11,0.5); }
.project-url-text-violet { color: rgba(139,92,246,0.5); }
.project-url-text-blue   { color: rgba(59,130,246,0.5); }

/* ─── Bar/Progress Animations ───────────────── */
@keyframes barGrow {
  from { height: 0; opacity: 0; }
  to   { opacity: inherit; }
}

@keyframes fillBar {
  from { width: 0; }
}

/* ─── Reveal Animations ─────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  will-change: transform, opacity;
}

.reveal-up    { transform: translateY(50px); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

/* ─── Magnetic Button ───────────────────────── */
.magnetic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  will-change: transform;
  transition: box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ─── Cinematic Grid Background ─────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(6,182,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ─── Glow Effects ──────────────────────────── */
.glow-cyan {
  box-shadow: 0 0 20px rgba(6,182,212,0.3), 0 0 60px rgba(6,182,212,0.1);
}

.text-glow-cyan {
  text-shadow: 0 0 10px rgba(6,182,212,0.5), 0 0 20px rgba(6,182,212,0.3);
}

/* ─── Certification items ───────────────────── */
.cert-item {
  transition: background 0.2s;
  border-radius: 8px;
  padding-left: 4px;
  padding-right: 4px;
}
.cert-item:hover {
  background: rgba(255,255,255,0.02);
}

/* ─── Noise Texture Overlay ─────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ─── Responsive tweaks ─────────────────────── */
@media (max-width: 768px) {
  .hero-name { font-size: clamp(2.5rem, 12vw, 5rem) !important; }
  .timeline-node { display: none !important; }
  .timeline-entry { flex-direction: column !important; }
}

/* ─── Loading Screen ────────────────────────── */
#loadingScreen {
  position: fixed;
  inset: 0;
  background: #06060E;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

.loading-bar-outer {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #0ea5e9);
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(6,182,212,0.5);
}

/* ─── Section dividers ──────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,0.15), transparent);
}
