/* ========================================================== */
/* DESIGNERABLE STUDIO // CYBER-STREETWEAR STYLESHEET          */
/* Domain: designerable.me                                    */
/* ========================================================== */

:root {
  --color-red: #ff0033;
  --color-red-glow: #ff1a4b;
  --color-red-dark: #800015;
  --color-black: #030303;
  --color-obsidian: #080808;
  --color-card: #0c0c0e;
  --color-border: #222228;
}

/* ========================================================== */
/* 1. HIDE ALL DEFAULT SYSTEM CURSORS COMPLETELY (NO HAND)    */
/* ========================================================== */
*,
*::before,
*::after,
html,
body,
a,
button,
input,
select,
textarea,
label,
video,
img,
[onclick],
[role="button"] {
  cursor: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #030303;
}

::-webkit-scrollbar-thumb {
  background: #2a2a30;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-red);
}

.custom-scrollbar::-webkit-scrollbar {
  height: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--color-red-dark);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--color-red);
}

/* Cyber Glitch & Glow Effects */
.red-glow {
  text-shadow: 0 0 20px rgba(255, 0, 51, 0.6), 0 0 40px rgba(255, 0, 51, 0.3);
}

.box-glow {
  box-shadow: 0 0 30px rgba(255, 0, 51, 0.25), inset 0 0 15px rgba(255, 0, 51, 0.1);
}

.box-glow-strong {
  box-shadow: 0 0 40px rgba(255, 0, 51, 0.4), inset 0 0 20px rgba(255, 0, 51, 0.2);
}

/* ========================================================== */
/* 2. MATHEMATICALLY LOCKED CENTERED CUSTOM CURSOR            */
/* ========================================================== */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: #ff0033;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 0 10px #ff0033;
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 0, 51, 0.8);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: width 0.18s cubic-bezier(0.16, 1, 0.3, 1), height 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 0 15px rgba(255, 0, 51, 0.3);
}

/* Hover States on Clickable Elements */
#cursor-ring.cursor-hover {
  width: 56px;
  height: 56px;
  border-color: #ff0033;
  background-color: rgba(255, 0, 51, 0.14);
  box-shadow: 0 0 25px rgba(255, 0, 51, 0.5);
}

#cursor-dot.cursor-hover {
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  box-shadow: 0 0 12px #ffffff;
}

/* Click Shockwave Ripple Effect */
.cursor-click-ripple {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid #ff0033;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999997;
  transform: translate(-50%, -50%);
  animation: clickRipple 0.45s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes clickRipple {
  0% {
    width: 14px;
    height: 14px;
    opacity: 1;
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.9);
  }
  100% {
    width: 84px;
    height: 84px;
    opacity: 0;
    border-color: #ffffff;
    box-shadow: 0 0 30px rgba(255, 0, 51, 0);
  }
}

/* 3D Tilt Card Container */
.streetwear-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

/* Smooth transition for images inside lookbook cards */
.streetwear-card img {
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scanline Effect */
.scanlines-overlay {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.3)
  );
  background-size: 100% 4px;
}

/* Ambient Canvas */
#ambient-canvas {
  filter: contrast(150%);
}

/* Video Reel Hover Zoom */
.video-reel-item video {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.video-reel-item:hover video {
  filter: contrast(115%) brightness(105%);
}

/* Lightbox Modal Animation */
#media-modal.active {
  opacity: 1;
  pointer-events: auto;
}

#media-modal.active #modal-img,
#media-modal.active #modal-video {
  display: block;
  animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Selection */
::selection {
  background-color: #ff0033;
  color: #ffffff;
}

/* ========================================================== */
/* 3. PRELOADER (Premium DNA: Loader Animation / ID 18)       */
/* ========================================================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: #030303;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#preloader.preloader-exit {
  opacity: 0;
  pointer-events: none;
}

.preloader-label {
  position: absolute;
  top: 2rem;
  left: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #888899;
  animation: preloaderFadeIn 0.6s ease 0.1s both;
}

.preloader-word {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #f2f2f5;
  animation: preloaderWordIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.preloader-word .word-accent {
  color: #ff0033;
}

.preloader-word.word-out {
  animation: preloaderWordOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

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

@keyframes preloaderFadeIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.preloader-bar-wrap {
  position: absolute;
  bottom: 3rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.preloader-bar {
  flex: 1;
  height: 2px;
  background: #1a1a1e;
  overflow: hidden;
  border-radius: 2px;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #800015, #ff0033, #ff2a55);
  box-shadow: 0 0 12px rgba(255, 0, 51, 0.6);
  transition: width 0.15s linear;
}

.preloader-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #ff0033;
  min-width: 3ch;
  text-align: right;
}

/* ========================================================== */
/* 4. SCROLL PROGRESS BAR                                     */
/* ========================================================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, #800015, #ff0033, #ff2a55);
  box-shadow: 0 0 10px rgba(255, 0, 51, 0.7);
  z-index: 99999;
  pointer-events: none;
}

/* ========================================================== */
/* 5. SCROLL REVEAL CHOREOGRAPHY                              */
/* ========================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(4px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ========================================================== */
/* 6. HERO HEADLINE WORD ENTRANCE                             */
/* ========================================================== */
.hero-line-mask {
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(115%) rotate(2deg);
  animation: heroWordUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes heroWordUp {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

/* ========================================================== */
/* 7. SMART NAVIGATION STATES                                 */
/* ========================================================== */
#main-nav.nav-hidden {
  transform: translateY(-100%);
}

#main-nav.nav-scrolled {
  background-color: rgba(3, 3, 3, 0.9);
  border-bottom-color: rgba(255, 0, 51, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* ========================================================== */
/* 8. MAGNETIC ELEMENTS                                       */
/* ========================================================== */
.magnetic {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  will-change: transform;
}

/* ========================================================== */
/* 9. CURSOR SAFETY FALLBACK                                  */
/* If the cursor script ever fails, the system cursor returns */
/* instead of leaving the user with no pointer at all.        */
/* ========================================================== */
html:not(.cursor-ready) *,
html:not(.cursor-ready) *::before,
html:not(.cursor-ready) *::after {
  cursor: auto !important;
}

html:not(.cursor-ready) #cursor-dot,
html:not(.cursor-ready) #cursor-ring {
  display: none;
}

/* ========================================================== */
/* 10. REDUCED MOTION RESPECT                                 */
/* ========================================================== */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .hero-word {
    animation-duration: 0.01s;
  }

  #preloader {
    transition-duration: 0.15s;
  }

  .animate-marquee,
  .animate-float {
    animation-duration: 60s;
  }

  .model-marquee-track {
    animation: none;
  }
}

/* ========================================================== */
/* 11. 3D MODEL GALLERY MARQUEE (right to left, pausable)     */
/* ========================================================== */
.model-marquee-track {
  width: max-content;
  animation: modelMarquee 45s linear infinite;
}

.model-marquee-track > div {
  width: 10rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .model-marquee-track > div {
    width: 12rem;
  }
}

/* Pause while hovering so the visitor can look and click */
.model-marquee-wrap:hover .model-marquee-track {
  animation-play-state: paused;
}

@keyframes modelMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
