/*
 * cinematic.css
 * Site-wide reskin to match the hero's dark, editorial, filmic aesthetic.
 * Loaded last — overrides only visual properties, never breaks functionality.
 * Monospaced labels · ultra-wide tracking · faint borders · sharp corners · no bright accents
 */

/* ── DESIGN TOKENS (local) ──────────────────────────────────────────────── */
:root {
  --cine-label:   rgba(242, 242, 247, 0.30); /* faint uppercase label text  */
  --cine-body:    rgba(242, 242, 247, 0.55); /* body / secondary text       */
  --cine-value:   rgba(242, 242, 247, 0.88); /* numbers / primary data      */
  --cine-border:  rgba(255, 255, 255, 0.06); /* card borders                */
  --cine-border-h:rgba(255, 255, 255, 0.12); /* hover border                */
  --cine-surface: rgba(255, 255, 255, 0.022);/* card background             */
}

/* ── HUD / NAV ──────────────────────────────────────────────────────────── */

/* Make the pill nav glass panel more recessive */
.hud-nav {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--cine-border);
  box-shadow: none;
}

/* Active pill — keep white but slightly softer */
.hud-nav-link.active {
  background: rgba(255, 255, 255, 0.90);
  color: #0a0a0f;
}

/* ── SECTION HEADERS ────────────────────────────────────────────────────── */

/* All section titles become film-credit style labels */
.section-title {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--cine-label);
  /* no padding-left — container handles alignment */
}

/* Replace the gradient bar with a 1px hairline */
.section-line {
  width: 100%;
  max-width: 24rem;
  height: 1px;
  background: var(--cine-border);
  clip-path: none;
  margin-top: 2rem;
}

/* ── ABOUT SECTION ──────────────────────────────────────────────────────── */

.about-paragraph {
  color: var(--cine-body);
  line-height: 1.85;
}

/* Terminal header — desaturate the traffic-light dots, quiet the chrome */
.terminal-dot.red    { background: rgba(220,  80,  60, 0.40); }
.terminal-dot.yellow { background: rgba(220, 160,  20, 0.35); }
.terminal-dot.green  { background: rgba( 50, 180, 100, 0.35); }
.terminal-title      { color: var(--cine-label); font-size: 1.1rem; letter-spacing: 0.06em; }
.terminal-header     { background: rgba(255, 255, 255, 0.025); }
.terminal-body       { background: rgba(255, 255, 255, 0.01);  }
.terminal-prompt     { color: var(--cine-label); }

/* Identity card — lighter weight, quieter separators */
.sig-name {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sig-title {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--cine-label);
  gap: 1.2rem;
}

.title-separator { color: var(--cine-border-h); }

/* Connection items — FA icon, monospace label */
.conn-icon {
  opacity: 0.55;
}

/* Prevent double-opacity: parent .conn-icon already dims; child FA must be opaque */
.conn-icon .fas,
.conn-icon .fab,
.conn-icon .far {
  opacity: 1;
}

/* Meta icon (clock) same treatment */
.meta-icon .fas,
.meta-icon .fab,
.meta-icon .far {
  opacity: 1;
}

.conn-label {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--cine-label);
}

.conn-value {
  color: var(--cine-body);
  font-size: 1.2rem;
}

.connection-item {
  border-bottom-color: var(--cine-border);
}

/* Status / meta row */
.status-text {
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cine-label);
}

.timezone-static,
.timezone-dynamic {
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--cine-label);
}

/* ── PROJECT CARDS ──────────────────────────────────────────────────────── */

.project-card {
  border-radius: 0;
  border-left: 1px solid var(--cine-border);  /* thin white, not purple */
  background: var(--cine-surface);
  box-shadow: none;
}

/* Remove the accent-2 (purple) left border */
.project-card { border-left-color: var(--cine-border); }

.project-card:hover {
  border-left-color: var(--cine-border-h);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
}

/* More cinematic image treatment */
.project-image img {
  filter: grayscale(45%) brightness(0.88);
  transition: filter 0.6s ease, transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-image img {
  filter: grayscale(20%) brightness(1.0);
}

/* Project meta text — monospace labels */
.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cine-value);
}

.project-desc {
  color: var(--cine-body);
  font-size: 1.3rem;
  line-height: 1.7;
}

.project-lang,
.project-stars,
.project-forks {
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem;
  color: var(--cine-label);
  letter-spacing: 0.06em;
}

/* Filter buttons — minimal underline style */
.filter-btn {
  font-family: 'Fira Code', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  color: var(--cine-label);
  border-radius: 0;
  padding: 0.4rem 0;
  margin-right: 2rem;
  transition: color 0.3s, border-color 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--cine-value);
  border-bottom-color: var(--cine-border-h);
  background: transparent;
}

/* ── GITHUB STATS SECTION ───────────────────────────────────────────────── */

/* Tone down the background glow blobs */
.github-stats-section::before {
  opacity: 0.4;
}

/* Intro text */
.analyzer-intro p {
  border-left-color: var(--cine-border-h);
  color: var(--cine-body);
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

/* Metric cards */
.analyzer-card {
  border-radius: 0;
  background: var(--cine-surface);
  border-color: var(--cine-border);
  box-shadow: none;
}

.analyzer-card:hover {
  border-color: var(--cine-border-h);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* Remove the gradient bottom-bar reveal on hover */
.analyzer-card::after { display: none; }

/* Icons — all become equally faint, no color coding */
.card-icon,
#card-repos  .card-icon,
#card-loc    .card-icon,
#card-stars  .card-icon,
#card-quality .card-icon {
  color: rgba(255, 255, 255, 0.28);
  font-size: 1.4rem;
}

/* Value — keep large, just remove Syne for mono */
.card-value {
  font-family: 'Fira Code', monospace;
  font-weight: 600;
  color: var(--cine-value);
  letter-spacing: -0.02em;
}

/* Label */
.card-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  color: var(--cine-label);
  text-transform: uppercase;
}

/* Sub-section headings (Language Breakdown, Complexity Mix, Top Repos) */
.analyzer-sub-title {
  font-family: 'Fira Code', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cine-label);
  font-weight: 400;
}

/* Remove FA icons from sub-titles — or just fade them heavily */
.analyzer-sub-title i {
  opacity: 0.25;
  font-size: 1rem;
}

/* Footer badge */
.analyzer-badge {
  font-family: 'Fira Code', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cine-label);
  background: var(--cine-surface);
  border: 1px solid var(--cine-border);
  border-radius: 0;
  padding: 0.4rem 1rem;
}

.analyzer-badge i { opacity: 0.3; }

.analyzer-cached {
  font-family: 'Fira Code', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--cine-label);
}

/* Contribution graph header */
.contrib-graph-header {
  font-family: 'Fira Code', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cine-label);
}

.contrib-graph-header i { opacity: 0.3; }

/* Contribution image — desaturate for cohesion */
.contrib-graph-img {
  filter: saturate(0.5) opacity(0.75);
  border-radius: 0;
}

/* ── CONTACT / DISCORD SECTION ──────────────────────────────────────────── */

/* Discord identity card */
.dc-card {
  border-radius: 0;
  background: var(--cine-surface);
  border-color: var(--cine-border);
  backdrop-filter: blur(12px);
}

.dc-card:hover {
  border-color: var(--cine-border-h);
}

/* Avatar */
.dc-avatar {
  border-color: var(--cine-border-h);
}

/* Username tag */
.dc-tag {
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--cine-value);
}

/* Status label */
.dc-status-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cine-label);
}

/* Custom status text */
.dc-custom-status {
  font-size: 1.2rem;
  color: var(--cine-body);
  letter-spacing: 0.02em;
}

/* ID badge */
.dc-id-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: var(--cine-label);
}

.dc-id-val {
  font-family: 'Fira Code', monospace;
  font-size: 1.1rem;
  color: var(--cine-label);
  letter-spacing: 0.04em;
}

/* Panels */
.dc-panel {
  border-radius: 0;
  background: var(--cine-surface);
  border-color: var(--cine-border);
}

.dc-panel:hover { border-color: var(--cine-border-h); }

/* Panel headers */
.dc-panel-header {
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  color: var(--cine-label);
}

.dc-panel-header i {
  opacity: 0.35;
  font-size: 1.1rem;
}

/* Spotify — keep the green icon distinctive */
.dc-spotify-panel .dc-panel-header i {
  color: #1DB954;
  opacity: 0.7;
}

/* Spotify art */
.dc-spotify-art {
  border-radius: 0;
}

.dc-spotify-title { color: var(--cine-value); font-size: 1.3rem; }
.dc-spotify-artist { color: var(--cine-body); }

/* Idle panel */
.dc-idle-text {
  font-family: 'Fira Code', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cine-label);
}

/* Contact hub */
.contact-hub { border-radius: 0; }

.contact-hub-label {
  font-family: 'Fira Code', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cine-label);
}

/* Contact links — minimal, no box */
.contact-link {
  font-size: 1.3rem;
  color: var(--cine-body);
  transition: color 0.3s ease;
}

.contact-link:hover { color: var(--cine-value); }

.contact-link i { opacity: 0.4; margin-right: 0.6rem; }

/* Social icon links */
.social-link {
  border-radius: 0;
  background: var(--cine-surface);
  border: 1px solid var(--cine-border);
  color: var(--cine-label);
  transition: border-color 0.3s, color 0.3s;
}

.social-link:hover {
  border-color: var(--cine-border-h);
  color: var(--cine-value);
  background: rgba(255, 255, 255, 0.04);
}

/* ── GLOBAL FA ICON SUBDUING ────────────────────────────────────────────── */
/* Blanket-fades icons that haven't been specifically handled above.
   Spotify green and status-dot colours are preserved via more-specific rules. */
.fas,
.fab,
.far {
  opacity: 0.55;
}

/* Un-suppress icons that carry semantic meaning */
.dc-status-badge i,
.status-dot       { opacity: 1; } /* live status indicator */

/* ── FORM INPUTS (OTP flow, contact) ────────────────────────────────────── */
.pf-input {
  border-color: var(--cine-border);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
  font-family: 'Fira Code', monospace;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--cine-value);
  transition: border-color 0.3s;
}

.pf-input:focus {
  outline: none;
  border-color: var(--cine-border-h);
}

/* ── BUTTONS IN INTERIOR SECTIONS ───────────────────────────────────────── */
/* Keep btn-primary / btn-secondary functional but tone down the saturation.
   Only targets buttons that are NOT inside the hero. */
:not(.hero-section) .btn-primary {
  background-color: rgba(255, 61, 0, 0.75);
  box-shadow: none;
}

:not(.hero-section) .btn-secondary {
  box-shadow: none;
}

/* ── PAGE INDICATOR (side dots) ─────────────────────────────────────────── */
/* Already minimal — just make active dot white, others very faint */
.page-dot { background: rgba(255, 255, 255, 0.18) !important; }
.page-dot.active { background: rgba(255, 255, 255, 0.85) !important; }

/*
 ═══════════════════════════════════════════════════════════════════════════════
   CINEMATIC v2 — IMMERSIVE SCENE SYSTEM
   Precision dot grid · scene numbering · scroll reveals · ambient depth
   card scan-light · draw-in lines · stagger choreography
 ═══════════════════════════════════════════════════════════════════════════════
*/

/* ── GLOBAL SCENE COUNTER ─────────────────────────────────────────────────── */

html { counter-reset: cine-scene; }
section:not(.hero-section) { counter-increment: cine-scene; }

/* ── BACKGROUND: CSS DOT GRID (replaces JS canvas particles) ─────────────── */

/* Completely hide the particle canvas — replaced by the CSS grid below */
#bg-canvas { display: none !important; }

/* Precision dot grid — 38px pitch, barely-there dots */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.052) 1px, transparent 0);
  background-size: 38px 38px;
}

/* Kill morph blobs — they contradict the precision grid aesthetic */
section > svg[aria-hidden="true"] { display: none !important; }

/* ── FILM GRAIN — push it up slightly ───────────────────────────────────── */

.noise-overlay {
  opacity: 0.13 !important;
  z-index: 8 !important;
}

/* ── HUD — refined ───────────────────────────────────────────────────────── */

.hud {
  background: rgba(8, 8, 13, 0.88) !important;
  backdrop-filter: blur(24px) saturate(1.2) !important;
  border-bottom: 1px solid var(--cine-border) !important;
  box-shadow: none !important;
}

/* Nav links — fira code, tight caps, very faint until active */
.hud-nav-link {
  font-family: 'Fira Code', monospace !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase !important;
}

.hud-nav-link:not(.active) {
  color: rgba(242, 242, 247, 0.32) !important;
}

.hud-nav-link:not(.active):hover {
  color: rgba(242, 242, 247, 0.72) !important;
}

.hud-nav-link.active {
  background: rgba(255, 255, 255, 0.88) !important;
  color: #08080d !important;
}

/* Logo — fira code, keep the cursor blink */
.hud-logo {
  font-family: 'Fira Code', monospace !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: rgba(242, 242, 247, 0.55) !important;
}

/* ── SECTION TOP EDGE — ambient hairline ─────────────────────────────────── */

/* A barely-visible horizontal light seam at the top of every non-hero section,
   like a film light source falling from above the scene */
section:not(.hero-section) {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

/* ── SECTION HEADERS — scene number + draw-in line ──────────────────────── */

/* Scene number tag above the title — slides in from left when revealed */
section:not(.hero-section) .section-header::before {
  content: counter(cine-scene, decimal-leading-zero) ' ─────';
  display: block;
  font-family: 'Fira Code', monospace;
  font-size: 0.52rem;
  letter-spacing: 0.44em;
  color: rgba(255, 255, 255, 0.22);
  margin-bottom: 0.65rem;
  /* no padding-left — must align with .section-title and body content */
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity   0.5s ease 0.15s,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

section:not(.hero-section) .section-header[data-reveal].is-visible::before {
  opacity: 1;
  transform: translateX(0);
}

/* Section line: scale from 0 → 1 when .is-visible is added by JS */
.section-line {
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.section-line.is-visible {
  transform: scaleX(1) !important;
}

/* ── SCROLL REVEAL SYSTEM — true 3D entrances ────────────────────────────── */

/*
 * Default: element enters tilted away from viewer (top edge far, bottom edge near)
 * and unfolds flat as it becomes visible.
 * transform-origin: center top keeps the pivot at the top edge — feels like
 * a panel hinged at the top swinging down into place.
 */
[data-reveal] {
  opacity: 0;
  transform: perspective(1000px) rotateX(14deg) translateY(22px);
  transform-origin: center top;
  transition:
    opacity   0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0);
}

/* Variant: swings in from left edge (left side was far, rotates to flat) */
[data-reveal="fade-left"] {
  transform: perspective(1000px) rotateY(-18deg) translateX(-18px);
  transform-origin: left center;
}

[data-reveal="fade-left"].is-visible {
  transform: perspective(1000px) rotateY(0deg) translateX(0);
}

/* Stagger items — JS owns the initial transform; CSS provides the transition */
[data-stagger-item] {
  transition:
    opacity   0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── PERSPECTIVE FLOOR GRID (injected by cinematic-scroll.js) ────────────── */

/*
 * A receding grid pinned to the bottom of every viewport — like looking
 * across a sci-fi interface floor toward the horizon. Parallaxes on scroll.
 */
.cine-floor-grid {
  position: fixed;
  bottom: 0;
  left: -30%;
  right: -30%;
  height: 46vh;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(360px) rotateX(65deg);
  transform-origin: center bottom;
  /* fade out near the top edge — grid emerges from the distance */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 55%, rgba(0,0,0,0.9) 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 55%, rgba(0,0,0,0.9) 100%);
}

/* ── CARD HOVER — border + shadow only, no movement ─────────────────────── */

/*
 * Cards do not move on hover. Hover = the border brightens slightly,
 * a soft shadow deepens beneath. That is all.
 * Movement on hover (translateY, tilt, scale) is distracting and amateur.
 */
.pc-card,
.analyzer-card,
.dc-card,
.dc-panel,
.contact-hub-card {
  transition:
    border-color 0.25s ease,
    box-shadow   0.25s ease;
}

.pc-card:hover,
.analyzer-card:hover,
.dc-card:hover,
.dc-panel:hover,
.contact-hub-card:hover {
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
}

/* Kill the old gradient-bar ::after that fights with hover states */
.analyzer-card::after { display: none !important; }



/* ── CONTACT SECTION — add scene label support ───────────────────────────── */

/* The contact section (discord-section) has no .section-header by default.
   We add one via HTML. These rules style it consistently. */
.cine-contact-header {
  margin-bottom: 3.2rem;
}

.cine-contact-header .section-title {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--cine-label);
  padding-left: 0.38em;
}

.cine-contact-header .section-line {
  height: 1px;
  background: var(--cine-border);
  max-width: 24rem;
}

/* ── LOADER — minimal ────────────────────────────────────────────────────── */

.loader {
  border-color: rgba(255, 255, 255, 0.05) !important;
  border-top-color: rgba(255, 255, 255, 0.40) !important;
}

/* ── SPOTIFY PROGRESS ─────────────────────────────────────────────────────── */

.dc-spotify-track {
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 0 !important;
}

.dc-spotify-bar {
  background: rgba(255, 255, 255, 0.50) !important;
  border-radius: 0 !important;
}

/* ── CONTRIBUTION GRAPH ──────────────────────────────────────────────────── */

.contrib-graph-wrap {
  border-top: 1px solid var(--cine-border);
  padding-top: 2rem;
  margin-top: 0.5rem;
}

/* ── MODAL — sharp corners, dark ─────────────────────────────────────────── */

#ig-modal-overlay > div {
  border-radius: 0 !important;
  border-color: var(--cine-border) !important;
  background: rgba(8, 8, 13, 0.96) !important;
}

/* ── INLINE PHONE-FLOW STYLES (override the <style> in HTML) ────────────── */

.pf-input {
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: var(--cine-border) !important;
  font-family: 'Fira Code', monospace !important;
}

/* ── BACKGROUND NOISE SUPPRESSION ───────────────────────────────────────── */

/* Kill the purple/teal particle canvas — ghost-level presence only */
#bg-canvas { opacity: 0.08 !important; }

/* Morphing SVG blobs — near-invisible, just slight depth */
section > svg[aria-hidden="true"] { opacity: 0.15 !important; }

/* ── ABOUT: AVATAR ───────────────────────────────────────────────────────── */

/* Replace the orange→purple gradient avatar ring with a flat dark surface */
.avatar-glitch {
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* The glitch pseudo-elements carry the gradient too — neutralise them */
.avatar-glitch::before,
.avatar-glitch::after {
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  opacity: 0.4 !important;
}

/* ── PROJECT CARDS ── remove all purple / yellow accents ─────────────────── */

.pc-card {
  border-radius: 0 !important;
  border-left-color: var(--cine-border) !important;
  background: var(--cine-surface) !important;
  box-shadow: none !important;
}

.pc-card:hover {
  border-left-color: var(--cine-border-h) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35) !important;
}

/* Icon: was purple accent-2 */
.pc-icon {
  color: rgba(255, 255, 255, 0.28) !important;
  opacity: 1 !important;
}

/* Stars: was vivid yellow */
.pc-stars {
  color: var(--cine-label) !important;
}

/* Tag pills: was purple background */
.pc-tag {
  background: transparent !important;
  color: var(--cine-label) !important;
  border-color: var(--cine-border) !important;
  border-radius: 0 !important;
}

/* ── LANGUAGE DOTS & BARS (JS-injected inline colors) ───────────────────── */

/* Desaturate all inline-colored language indicator dots */
.pc-lang-dot,
.lang-dot,
.repo-lang-dot {
  filter: saturate(0.18) brightness(0.80) !important;
}

/* Desaturate filled language percentage bars */
.lang-fill {
  filter: saturate(0.22) brightness(0.85) !important;
}

/* ── GITHUB STATS — COMPLEXITY BADGES ───────────────────────────────────── */

.complexity-beginner,
.complexity-intermediate,
.complexity-advanced {
  background: transparent !important;
  color: var(--cine-label) !important;
  border: 1px solid var(--cine-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ── GITHUB STATS — TOP REPO LIST ───────────────────────────────────────── */

.top-repo-item {
  border-left-color: var(--cine-border) !important;
  border-radius: 0 !important;
}

.top-repo-item:hover {
  border-left-color: var(--cine-border-h) !important;
}

/* ── GITHUB STATS — RING / SCORE CHARTS ─────────────────────────────────── */

/* Desaturate JS-set stroke colors on SVG ring arcs */
.ring-svg,
.score-svg {
  filter: saturate(0.18) !important;
}

/* ── CONTACT / DISCORD — BUTTON FIXES ───────────────────────────────────── */

/* "COPY HANDLE" secondary button: was purple border */
.btn-secondary {
  border-color: var(--cine-border) !important;
  color: var(--cine-body) !important;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border-color: var(--cine-border-h) !important;
  color: var(--cine-value) !important;
}

/* ── CONTACT — DIRECT LINE INPUT ─────────────────────────────────────────── */

/* Input was bright white/light — bring it in line with pf-input style */
input[type="text"],
input[type="email"],
textarea {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: var(--cine-border) !important;
  color: var(--cine-value) !important;
  border-radius: 0 !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--cine-border-h) !important;
}

/* ── DISCORD CARD — FORCE SHARP CORNERS ─────────────────────────────────── */

.dc-card,
.dc-panel,
.dc-avatar {
  border-radius: 0 !important;
}

/* Status badge — keep readable, just remove any colored bg */
.dc-status-badge {
  background: rgba(255, 255, 255, 0.04) !important;
  border-radius: 0 !important;
}

/* ── HOVER: highlight only, no movement ─────────────────────────────────── */

/* Kill the sliding shimmer on nav items — it's too theatrical */
.nav-item::before { display: none !important; }

/* Project image — filter transition is fine, but strip the transform/scale */
.project-image img,
.project-card:hover .project-image img {
  transform: none !important;
}

/* All interactive elements: highlight with color/border/opacity only.
   No translateY, scale, rotate, or any spatial movement on hover. */
a,
button,
.cine-link,
.hud-nav-link,
.social-link,
.contact-link,
.filter-btn,
.pc-card,
.project-card,
.analyzer-card,
.dc-card,
.dc-panel,
.contact-hub-card,
.connection-item,
.top-repo-item {
  transform: none !important;
}

/* Ensure transitions only animate safe visual properties */
.cine-link {
  transition: color 0.2s ease, border-color 0.2s ease !important;
}

.hud-nav-link:not(.active) {
  transition: color 0.2s ease, background 0.2s ease !important;
}

/* ── CURSOR: POINTER — all interactive elements ──────────────────────────── */
/* ui-ux-pro-max: cursor-pointer on all clickable/hoverable elements */

.filter-btn,
.project-card,
.analyzer-card,
.pc-card,
.top-repo-item,
.connection-item[data-type],
.contact-hub-card,
.dc-spotify-art-link,
.dc-spotify-title-link,
.contact-hub-copy,
[role="button"] {
  cursor: pointer;
}

/* ── PAGER NAV — cursor pointer on HUD nav links ─────────────────────────── */
.hud-nav-link,
.hud-logo,
.cine-link {
  cursor: pointer;
}

/* ── INPUT FOCUS — override cinematic outline:none for accessibility ──────── */
/* Allow focus-visible to work on inputs while preserving cine style */
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
textarea:focus-visible,
.pf-input:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.20) !important;
  outline-offset: 0 !important;
  border-color: rgba(255, 255, 255, 0.20) !important;
}

/* ── REDUCED MOTION — cinematic-specific overrides ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
  /* Reveal system: show immediately, no 3D entrance */
  [data-reveal],
  [data-reveal="fade-left"] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Section scene counter line: show immediately */
  section:not(.hero-section) .section-header::before {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Section draw-in line: show immediately */
  .section-line {
    transform: scaleX(1) !important;
    transition: none !important;
  }

  /* Project image: no filter transition */
  .project-image img {
    transition: none !important;
  }

  /* Stagger items: show immediately */
  [data-stagger-item] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Floor grid: static */
  .cine-floor-grid {
    animation: none !important;
  }
}

/*
 ═══════════════════════════════════════════════════════════════════════════════
   CINEMATIC v3 — PAGER, CHROME & INTERACTION POLISH
   Pill dots · sharp chrome · toast · scroll button · section dots
 ═══════════════════════════════════════════════════════════════════════════════
*/

/* ── PAGE INDICATOR DOTS — pill style instead of scale ──────────────────── */

/*
 * Active page dot elongates into a vertical pill — elegant indicator pattern
 * used by iOS, Material You, and many modern design systems.
 * No scale() transform: satisfies cinematic "no movement" rule.
 */
.page-dot {
  width: 4px !important;
  height: 4px !important;
  border-radius: 2px !important;
  background: rgba(255, 255, 255, 0.20) !important;
  opacity: 1 !important;
  transition:
    height    0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease !important;
  transform: none !important;
}

.page-dot.active {
  height: 18px !important;
  background: rgba(255, 255, 255, 0.80) !important;
  transform: none !important;
}

/* ── PAGE ARROW BUTTONS — cinematic chrome ───────────────────────────────── */

.page-arrow-btn {
  border-radius: 0 !important;
  border-color: var(--cine-border) !important;
  color: var(--cine-label) !important;
  background: rgba(255, 255, 255, 0.015) !important;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease !important;
}

.page-arrow-btn:hover {
  border-color: var(--cine-border-h) !important;
  color: var(--cine-value) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.page-arrow-btn:disabled {
  opacity: 0.15 !important;
}

/* ── PAGE COUNTER — monospaced, recessive ────────────────────────────────── */

.page-counter {
  font-family: 'Fira Code', monospace !important;
  font-size: 0.60rem !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--cine-label) !important;
}

/* ── EDGE ZONES — sharp corners ──────────────────────────────────────────── */

.edge-zone {
  border-radius: 0 !important;
  font-family: 'Fira Code', monospace !important;
  font-size: 0.60rem !important;
  letter-spacing: 0.2em !important;
}

/* ── SCROLL-TO-TOP BUTTON — sharp, no movement ───────────────────────────── */

.scroll-top-btn {
  border-radius: 0 !important;
  border-color: var(--cine-border) !important;
  background: rgba(8, 8, 13, 0.80) !important;
  backdrop-filter: blur(8px) !important;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    opacity 0.35s ease,
    visibility 0.35s ease !important;
}

.scroll-top-btn:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--cine-border-h) !important;
}

/* Progress ring stroke — white instead of orange */
.scroll-top-btn .progress-ring__circle {
  stroke: rgba(255, 255, 255, 0.55) !important;
}

/* ── SECTION DOTS (left sidebar) — no scale, cinematic active ────────────── */

.section-dot {
  border-radius: 0 !important;
  background: rgba(255, 255, 255, 0.14) !important;
  width: 4px !important;
  height: 4px !important;
  transition:
    height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease !important;
}

.section-dot.active {
  background: rgba(255, 255, 255, 0.75) !important;
  height: 14px !important;
  box-shadow: none !important;
  transform: none !important;
}

.section-dot::before {
  font-family: 'Fira Code', monospace !important;
  font-size: 0.60rem !important;
  letter-spacing: 0.18em !important;
  background: rgba(8, 8, 13, 0.92) !important;
  border: 1px solid var(--cine-border) !important;
  border-radius: 0 !important;
  color: var(--cine-body) !important;
}

/* ── TOAST NOTIFICATIONS — sharp corners, cinematic surface ─────────────── */

.toast {
  border-radius: 0 !important;
  background: rgba(8, 8, 13, 0.94) !important;
  border-color: var(--cine-border) !important;
  backdrop-filter: blur(12px) !important;
  font-family: 'Fira Code', monospace !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.06em !important;
  color: var(--cine-body) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.50) !important;
}

.toast--success { border-left: 2px solid rgba(0, 210, 106, 0.60) !important; }
.toast--error   { border-left: 2px solid rgba(255, 45, 85, 0.60) !important; }
.toast--info    { border-left: 2px solid rgba(0, 149, 255, 0.60) !important; }

/* ── GITHUB ANALYZER INTRO — cinematic border ────────────────────────────── */

.analyzer-intro p {
  border-left: 1px solid var(--cine-border-h) !important;
  padding-left: 1.2rem !important;
}

/* ── REDUCED MOTION — v3 additions ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .page-dot,
  .page-dot.active,
  .section-dot,
  .section-dot.active {
    transition: none !important;
  }
}
