

/* ── FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Epilogue:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
  --c-bg:         #0a0a0b;
  --c-surface:    #111113;
  --c-glass:      rgba(255,255,255,0.04);
  --c-glass-border: rgba(255,255,255,0.08);
  --c-text:       #e8e3dc;
  --c-muted:      #6b6460;
  --c-accent:     #ff5533;
  --c-accent2:    #3b82f6;
  --c-accent3:    #10b981;
  --c-glow:       rgba(255,85,51,0.18);
  --c-glow2:      rgba(59,130,246,0.12);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:     0.2s;
  --dur-med:      0.45s;
  --dur-slow:     0.8s;
}

[data-theme="light"] {
  --c-bg:         #f4f1ec;
  --c-surface:    #ffffff;
  --c-glass:      rgba(0,0,0,0.025);
  --c-glass-border: rgba(0,0,0,0.07);
  --c-text:       #0f0e0d;
  --c-muted:      #8a8480;
  --c-glow:       rgba(255,85,51,0.10);
  --c-glow2:      rgba(59,130,246,0.08);
}

/* ================================================================
   2. LOADING SCREEN
   ================================================================ */
#pf-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}

#pf-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pf-loader__ring {
  width: 64px;
  height: 64px;
  position: relative;
}

.pf-loader__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pf-loader__ring circle {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.pf-loader__ring .track { stroke: rgba(255,255,255,0.06); }
.pf-loader__ring .fill  {
  stroke: var(--c-accent);
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
  animation: loaderSpin 1.6s var(--ease-out) forwards;
  filter: drop-shadow(0 0 6px var(--c-accent));
}

@keyframes loaderSpin {
  to { stroke-dashoffset: 0; }
}

.pf-loader__text {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--c-muted);
  animation: loaderPulse 1.4s ease-in-out infinite;
}

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

/* ================================================================
   3. CUSTOM CURSOR
   ================================================================ */
* { cursor: none !important; }

#pf-cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--c-accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear, width 0.3s var(--ease-spring),
              height 0.3s var(--ease-spring), background 0.3s;
  mix-blend-mode: difference;
  will-change: transform;
}

#pf-cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255,85,51,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99997;
  transform: translate(-50%, -50%);
  transition: transform 0.18s var(--ease-smooth),
              width 0.4s var(--ease-spring),
              height 0.4s var(--ease-spring),
              border-color 0.3s,
              opacity 0.3s;
  will-change: transform;
}

/* Cursor states */
body.cursor--hover #pf-cursor {
  width: 6px;
  height: 6px;
  background: #fff;
}

body.cursor--hover #pf-cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--c-accent);
  border-width: 1px;
}

body.cursor--click #pf-cursor {
  width: 20px;
  height: 20px;
}

body.cursor--text #pf-cursor {
  width: 2px;
  height: 24px;
  border-radius: 1px;
  background: var(--c-accent);
}

body.cursor--text #pf-cursor-ring {
  opacity: 0;
}

/* ================================================================
   4. GRADIENT ANIMATED BACKGROUND
   ================================================================ */
body {
  background-color: var(--c-bg);
  color: var(--c-text);
  transition: background-color 0.5s, color 0.5s;
  overflow-x: hidden;
}

/* Ambient mesh gradient — sits behind everything */
#pf-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pf-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  will-change: transform;
}

.pf-orb--1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(255,85,51,0.4), transparent 60%);
  top: -200px; right: -100px;
  animation: orbDrift1 18s ease-in-out infinite alternate;
}

.pf-orb--2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.3), transparent 60%);
  bottom: -150px; left: -100px;
  animation: orbDrift2 22s ease-in-out infinite alternate;
}

.pf-orb--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.2), transparent 60%);
  top: 50%; left: 50%;
  animation: orbDrift3 15s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-80px, 60px) scale(1.1); }
}
@keyframes orbDrift2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, -80px) scale(1.15); }
}
@keyframes orbDrift3 {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(calc(-50% + 40px), calc(-50% - 60px)) scale(0.9); }
}

/* Content sits above the ambient bg */
body > *:not(#pf-loader):not(#pf-cursor):not(#pf-cursor-ring):not(#pf-ambient):not(#pf-back-top):not(#pf-theme-toggle) {
  position: relative;
  z-index: 1;
}

/* ================================================================
   5. GLASS MORPHISM CARDS
   ================================================================ */
.project-card, .card, [class*="project-card"], .glass-card {
  background: var(--c-glass) !important;
  backdrop-filter: blur(20px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
  border: 1px solid var(--c-glass-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2),
              inset 0 1px 0 rgba(255,255,255,0.06) !important;
  transform-style: preserve-3d;
  transition: box-shadow var(--dur-med) var(--ease-out),
              border-color var(--dur-med) !important;
  will-change: transform;
  overflow: visible !important;
}

/* Hover glow ring */
.project-card::after, .card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent2), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-med);
  z-index: -1;
  border-radius: 21px;
}

.project-card:hover::after, .card:hover::after { opacity: 0.35; }

/* Project overlay */
.pf-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to top,
    rgba(10,10,11,0.96) 0%,
    rgba(10,10,11,0.6) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out);
  pointer-events: none;
}

.project-card:hover .pf-overlay,
.card:hover .pf-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.pf-overlay__label {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 6px;
}

.pf-overlay__title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

/* ================================================================
   6. TILT CARD — Applied via JS, styles here
   ================================================================ */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.tilt-card .tilt-inner {
  transform-style: preserve-3d;
  transition: transform 0.08s linear;
}

.tilt-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(255,255,255,0.12) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
}

.tilt-card:hover .tilt-shine { opacity: 1; }

/* ================================================================
   7. HERO FLOATING ELEMENTS
   ================================================================ */
.pf-float {
  animation: floatY 4s ease-in-out infinite;
  will-change: transform;
}

.pf-float:nth-child(2) { animation-delay: -1.3s; animation-duration: 5.2s; }
.pf-float:nth-child(3) { animation-delay: -2.6s; animation-duration: 3.8s; }
.pf-float:nth-child(4) { animation-delay: -0.8s; animation-duration: 6s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-14px) rotate(1.5deg); }
  66%       { transform: translateY(-6px) rotate(-1deg); }
}

/* Hero background shapes */
.pf-hero-shape {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  animation: shapePulse 8s ease-in-out infinite;
}

.pf-hero-shape--1 {
  width: 500px; height: 500px;
  background: conic-gradient(from 0deg, var(--c-accent), var(--c-accent2), var(--c-accent3), var(--c-accent));
  opacity: 0.04;
  top: -100px; right: -200px;
  animation-delay: -3s;
  filter: blur(1px);
}

.pf-hero-shape--2 {
  width: 300px; height: 300px;
  border: 1px solid rgba(255,85,51,0.12);
  bottom: 0; left: -80px;
  animation-delay: -6s;
}

@keyframes shapePulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.04; }
  50%       { transform: scale(1.05) rotate(5deg); opacity: 0.07; }
}

/* Particle dots in hero */
.pf-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-accent);
  opacity: 0;
  animation: particleFly var(--dur, 6s) linear infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes particleFly {
  0%   { transform: translate(0, 0) scale(0); opacity: 0; }
  10%  { opacity: 0.6; transform: scale(1); }
  90%  { opacity: 0.2; }
  100% { transform: translate(var(--tx, 60px), var(--ty, -120px)) scale(0); opacity: 0; }
}

/* ================================================================
   8. TYPING TEXT ANIMATION
   ================================================================ */
.pf-typewriter {
  display: inline;
}

.pf-typewriter::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--c-accent);
  vertical-align: -0.1em;
  margin-left: 3px;
  border-radius: 1px;
  animation: cursorBlink 0.8s step-end infinite;
  box-shadow: 0 0 8px var(--c-accent);
}

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

/* ================================================================
   9. SCROLL REVEAL SYSTEM
   ================================================================ */
[data-reveal] {
  transition-property: opacity, transform, filter;
  transition-duration: var(--dur-slow);
  transition-timing-function: var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal="fade"]  { opacity: 0; }
[data-reveal="up"]    { opacity: 0; transform: translateY(50px); }
[data-reveal="down"]  { opacity: 0; transform: translateY(-50px); }
[data-reveal="left"]  { opacity: 0; transform: translateX(-60px); }
[data-reveal="right"] { opacity: 0; transform: translateX(60px); }
[data-reveal="scale"] { opacity: 0; transform: scale(0.88); filter: blur(4px); }
[data-reveal="flip"]  { opacity: 0; transform: rotateX(15deg) translateY(40px); }

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ================================================================
   10. PARALLAX LAYER SYSTEM
   ================================================================ */
[data-parallax] {
  will-change: transform;
  transition: transform 0.05s linear;
}

/* ================================================================
   11. SKILL BARS — PREMIUM
   ================================================================ */
.pf-skill-wrap {
  margin-bottom: 22px;
}

.pf-skill-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-text);
}

.pf-skill-pct {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  color: var(--c-accent);
  opacity: 0;
  transition: opacity 0.4s 0.8s;
}

.pf-skill-wrap.is-revealed .pf-skill-pct { opacity: 1; }

.pf-skill-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.pf-skill-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent2));
  transition: width 1.4s var(--ease-out);
  position: relative;
}

/* Shimmer on fill */
.pf-skill-fill::after {
  content: '';
  position: absolute;
  top: 0; right: -20px;
  width: 20px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: skillShimmer 2s ease-in-out infinite;
}

@keyframes skillShimmer {
  0%   { opacity: 0; right: 0%; }
  50%  { opacity: 1; }
  100% { opacity: 0; right: -10%; }
}

.pf-skill-wrap.is-revealed .pf-skill-fill {
  width: var(--skill-pct, 80%);
}

/* ================================================================
   12. TIMELINE
   ================================================================ */
.pf-timeline {
  position: relative;
  padding-left: 36px;
}

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

.pf-timeline-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}

.pf-timeline-item.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.pf-timeline-item::before {
  content: '';
  position: absolute;
  left: -43px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-accent);
  border: 2px solid var(--c-bg);
  box-shadow: 0 0 0 3px rgba(255,85,51,0.2),
              0 0 16px rgba(255,85,51,0.4);
  transition: box-shadow 0.3s;
}

.pf-timeline-item:hover::before {
  box-shadow: 0 0 0 5px rgba(255,85,51,0.2),
              0 0 24px rgba(255,85,51,0.6);
}

.pf-timeline-date {
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 4px;
}

.pf-timeline-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 6px;
}

.pf-timeline-body {
  font-size: 0.88rem;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ================================================================
   13. RIPPLE EFFECT
   ================================================================ */
.ripple-host {
  position: relative;
  overflow: hidden;
}

.pf-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: scale(0);
  animation: rippleSpread 0.65s var(--ease-out) forwards;
  pointer-events: none;
}

@keyframes rippleSpread {
  to { transform: scale(4); opacity: 0; }
}

/* Buttons get ripple styling */
button, .btn, [class*="btn-"], a.btn, input[type="submit"] {
  position: relative;
  overflow: hidden;
  font-family: 'Syne', sans-serif !important;
  font-weight: 600 !important;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-med) var(--ease-out) !important;
}

button:hover, .btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(255,85,51,0.3) !important;
}

button:active, .btn:active { transform: scale(0.97); }

/* ================================================================
   14. IMAGE ZOOM HOVER
   ================================================================ */
.pf-img-zoom {
  overflow: hidden;
  border-radius: 12px;
}

.pf-img-zoom img {
  transition: transform 0.7s var(--ease-out), filter 0.5s;
  will-change: transform;
}

.pf-img-zoom:hover img {
  transform: scale(1.07);
  filter: brightness(1.05) saturate(1.1);
}

/* Auto-apply to project card images */
.project-card img, .card img {
  transition: transform 0.7s var(--ease-out), filter 0.5s;
  will-change: transform;
  border-radius: 12px;
}

.project-card:hover img, .card:hover img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

/* ================================================================
   15. DARK MODE TOGGLE
   ================================================================ */
#pf-theme-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9000;
  width: 52px;
  height: 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--c-glass-border);
  border-radius: 14px;
  cursor: none;
  transition: background 0.3s, border-color 0.3s;
  backdrop-filter: blur(16px);
  padding: 0;
  display: flex;
  align-items: center;
  padding: 3px;
}

#pf-theme-toggle::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent2));
  box-shadow: 0 2px 8px rgba(255,85,51,0.4);
  transition: transform 0.4s var(--ease-spring);
  display: block;
}

[data-theme="light"] #pf-theme-toggle::after {
  transform: translateX(24px);
  background: linear-gradient(135deg, var(--c-accent2), var(--c-accent3));
}

/* ================================================================
   16. BACK TO TOP
   ================================================================ */
#pf-back-top {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 9000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.4s var(--ease-out),
              transform 0.4s var(--ease-spring),
              background 0.3s,
              box-shadow 0.3s;
  box-shadow: 0 8px 32px rgba(255,85,51,0.35);
  pointer-events: none;
}

#pf-back-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

#pf-back-top:hover {
  background: var(--c-accent2);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 48px rgba(59,130,246,0.4);
}

/* ================================================================
   17. SCROLL PROGRESS LINE
   ================================================================ */
#pf-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent2), var(--c-accent3));
  z-index: 99999;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px var(--c-accent);
}

/* ================================================================
   18. EXPAND/COLLAPSE PROJECT DETAILS
   ================================================================ */
.pf-details-toggle {
  background: none;
  border: 1px solid var(--c-glass-border);
  color: var(--c-accent);
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 40px;
  margin-top: 16px;
  transition: all 0.3s var(--ease-out);
}

.pf-details-toggle:hover {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}

.pf-details-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s;
  opacity: 0;
}

.pf-details-body.open {
  max-height: 500px;
  opacity: 1;
}

/* ================================================================
   19. SECTION DIVIDER WITH ANIMATION
   ================================================================ */
.pf-section-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.pf-section-line::before {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-glass-border));
}

.pf-section-line::after {
  content: '';
  flex: 3;
  height: 1px;
  background: linear-gradient(90deg, var(--c-glass-border), transparent);
}

/* ================================================================
   20. NAVIGATION UPGRADE
   ================================================================ */
nav, .navbar, .nav, header nav {
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  background: rgba(10,10,11,0.7) !important;
  border-bottom: 1px solid var(--c-glass-border) !important;
  transition: background 0.5s, box-shadow 0.5s !important;
}

[data-theme="light"] nav,
[data-theme="light"] .navbar {
  background: rgba(244,241,236,0.85) !important;
}

nav.pf-scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.3) !important; }

nav a, .navbar a {
  position: relative;
  color: var(--c-muted) !important;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s !important;
}

nav a::after, .navbar a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent2));
  transition: width 0.4s var(--ease-out);
}

nav a:hover, .navbar a:hover { color: var(--c-text) !important; }
nav a:hover::after, .navbar a:hover::after { width: 100%; }
nav a.pf-active, .navbar a.pf-active { color: var(--c-accent) !important; }
nav a.pf-active::after { width: 100%; }

/* ================================================================
   21. MOUSE-TRACK SPOTLIGHT
   ================================================================ */
#pf-spotlight {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,85,51,0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.12s linear, top 0.12s linear;
  mix-blend-mode: screen;
}

/* ================================================================
   22. SELECTION & SCROLLBAR
   ================================================================ */
::selection {
  background: var(--c-accent);
  color: #fff;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--c-accent), var(--c-accent2));
  border-radius: 4px;
}

/* ================================================================
   23. ACCESSIBILITY — Reduced motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #pf-loader { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ================================================================
   24. RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  * { cursor: auto !important; }
  #pf-cursor, #pf-cursor-ring, #pf-spotlight { display: none; }
  #pf-theme-toggle { top: 12px; right: 12px; }
  #pf-back-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}
