/* Custom Properties & Base Resets */
:root {
  --blood-red: #D91E18;
  --metal-black: #0A0A0A;
  --off-white: #F5F5F5;
  --cursor-size: 16px;
}

html {
  scroll-behavior: smooth;
  cursor: none; /* Hide default cursor if using custom */
}

/* For mobile devices, enable default cursor */
@media (max-width: 768px) {
  html {
    cursor: auto;
  }
}

body {
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--metal-black);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blood-red);
}

/* Custom Selection */
::selection {
  background-color: var(--blood-red);
  color: #fff;
}

/* Custom Cursor Interaction Classes */
.cursor-hover {
  transform: translate(-50%, -50%) scale(2.5);
  background-color: rgba(217, 30, 24, 0.1);
  border-color: rgba(217, 30, 24, 0.5);
}

/* Kanji Background Elements styling */
.kanji-bg {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  user-select: none;
}

/* Brutal Shape for Images */
.clip-brutal {
  clip-path: polygon(0 0, 100% 5%, 95% 100%, 5% 95%);
}

/* Intersection Observer Reveal Classes */
.reveal {
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-fade-up {
  transform: translateY(60px);
}

.reveal-fade-down {
  transform: translateY(-60px);
}

.reveal-fade-left {
  transform: translateX(60px);
}

.reveal-fade-right {
  transform: translateX(-60px);
}

/* The .active class is injected by IntersectionObserver */
.reveal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0);
}

/* Keyframes */
@keyframes scrollDown {
  0% { transform: translateY(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

.animate-scroll-down {
  animation: scrollDown 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  animation: marquee 20s linear infinite;
  display: inline-block;
  white-space: nowrap;
}

/* Add transition delays based on standard utility classes */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }
