/* Google Fonts Import Moved to HTML Head for Performance */

:root {
  /* AKA (Red) Theme -> Cyan/Turquoise (Power/Attack) */
  --kumite-aka: #00f3ff;
  --aka-glow: rgba(0, 243, 255, 0.6);
  --aka-soft: rgba(0, 243, 255, 0.1);

  /* AO (Blue) Theme -> Cyberpunk Violet (Speed/Defense) */
  --kumite-ao: #bc13fe;
  --ao-glow: rgba(188, 19, 254, 0.6);
  --ao-soft: rgba(188, 19, 254, 0.1);

  /* Pink Theme (for Asian Characters) */
  --kumite-momoiro: #ff00ff;
  --momoiro-glow: rgba(255, 0, 255, 0.8);

  /* Premium White Touch */
  --premium-white: #ffffff;
  --glass-white: rgba(255, 255, 255, 0.05);
  --glass-white-border: rgba(255, 255, 255, 0.1);
  --text-dim: rgba(255, 255, 255, 0.6);

  /* Dynamic Variables */
  --dojo-accent: var(--kumite-aka);
  --dojo-glow: var(--aka-glow);

  --bg-dark: #050505;
  /* Slightly lighter black for contrast */
  --text-primary: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

html,
body,
#root {
  min-height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Outfit', 'Roboto Condensed', sans-serif;
  overflow: auto;
  /* Fallback for no-js, Lenis will override if needed but needs scrollable content */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Removed gradient-shift animation */

/* --- OVERLAYS --- */
.noise-bg {
  position: fixed;
  inset: 0;
  opacity: 0.03;
  z-index: 9997;
  pointer-events: none;
  background-image: url('https://grainy-gradients.vercel.app/noise.svg');
}

/* Replaces CRT lines with a subtle paper texture appeal if needed, or clean */
.dojo-texture {
  /* Optional texture can go here */
  position: fixed;
  inset: 0;
  z-index: 9998;
  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAUVBMVEWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYUM+s+AAAAHnRSTlMAAAAAAAABAgMEBQYHCAkKCwwNDxAREhMUFRYXGBkaGg+l0yIAAAAJcEhZcwAACxIAAAsSAdLdfvwAAABTSURBVDjLY2AUYGBgZgACBhYmZhZWNnYODi5uHl4+fgFBIWEhUTFRMXEJSSlpGVk5eQBBJSUlFVU1dQ1NLW0dXT19A0MjYxNTM3NzcwsLC0s7OztnZ2cAAHh2D9122gQAAAAASUVORK5CYII=');
  /* Subtle rice paper texture */
  background-size: 100px 100px;
  opacity: 0.05;
  pointer-events: none;
}

/* Removed scanline-move keyframe */
/* Removed crt-checkered */

/* --- TYPOGRAPHY --- */
h1,
h2,
h3 {
  font-family: 'Potta One', cursive;
  /* Brush style */
  font-weight: 400;
  /* Potta One is naturally bold */
  letter-spacing: 2px;
}

.text-jp {
  font-family: 'Noto Sans JP', sans-serif;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-weight: 900;
  letter-spacing: 0.5rem;
  line-height: 1;
  user-select: none;
  color: var(--kumite-momoiro) !important;
}

.mono-font {
  font-family: 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- APP LAYOUT --- */
.App {
  min-height: 100vh;
  position: relative;
  /* overflow: hidden; <- Removed to allow document scroll */
}

.hero-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 80%);
  z-index: -2;
  pointer-events: none;
  transition: background 1s ease;
}

/* --- LOGIN SCREEN --- */
.login-container {
  position: fixed;
  inset: 0;
  background: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10001;
}

.avatar-glow {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid var(--dojo-accent);
  padding: 6px;
  /* Using dojo-accent for dim */
  margin-bottom: 2rem;
}

.admin-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.admin-name {
  font-size: 3rem;
  letter-spacing: 4px;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.admin-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--dojo-accent);
  border-radius: 50%;
}

.enter-btn {
  margin-top: 4rem;
  padding: 15px 50px;
  background: transparent;
  border: 1px solid var(--dojo-accent);
  color: var(--dojo-accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: 0.3s;
}

.enter-btn:hover {
  background: var(--dojo-accent);
  color: black;
}

/* --- LOCK SCREEN (MOBILE) --- */
.lock-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  color: var(--dojo-text);
}

.lock-screen-blur {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px);
  z-index: -1;
}

.time-display {
  font-size: 6rem;
  font-weight: 200;
  margin-bottom: 0.5rem;
}

.date-display {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 5rem;
}

.slider-container {
  width: 300px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 5px;
  backdrop-filter: blur(10px);
}

.slider-track {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 2px;
  opacity: 0.5;
  pointer-events: none;
}

.slider-handle {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
}

/* --- STATUS BAR --- */
/* --- DYNAMIC NOTCH (Legacy Status Bar replaced) --- */
.notch-container {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 20002;
  pointer-events: none;
  /* Let clicks pass through outside the notch */
}

.dynamic-notch {
  background: black;
  color: white;
  pointer-events: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.notch-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.notch-collapsed {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.notch-expanded {
  width: 100%;
  height: 100%;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.notch-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 5px;
}

.notch-time-lg {
  color: var(--dojo-accent);
  font-weight: bold;
}

.notch-player {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notch-icon {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.notch-track-info {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.track-title {
  color: white;
  font-weight: 600;
}

.track-artist {
  color: #666;
  font-size: 0.7rem;
}

.notch-visualizer {
  margin-left: auto;
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 20px;
}

.notch-visualizer .bar {
  width: 3px;
  background: var(--dojo-accent);
  border-radius: 2px;
}

/* --- STILL ANIMATIONS --- */
.float-anim {
  animation: float-y 6s ease-in-out infinite;
}

@keyframes float-y {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

/* --- MOBILE DOCK --- */
.mobile-dock {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 8px 16px;
  display: flex;
  gap: 20px;
  z-index: 10003;
}

/* --- CURSOR --- */
/* --- NEW TRAIL CURSOR --- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--dojo-accent);
  /* Red Dot */
  transform: rotate(45deg);
  /* Diamond shape */
  pointer-events: none;
  z-index: 20000;
  margin-left: -6px;
  margin-top: -6px;
}

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 25px;
  height: 25px;
  border: 1px solid var(--dojo-accent);
  background: rgba(231, 76, 60, 0.1);
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 19999;
  margin-left: -12px;
  margin-top: -12px;
  transition: opacity 0.2s;
}

/* --- SECTIONS & ANIMATION --- */
.dashboard-main {
  animation: dashboard-enter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dashboard-enter {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.section-wrapper {
  min-height: 100vh;
  padding: 120px 60px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

::-webkit-scrollbar-thumb {
  background: #222;
  border: 1px solid #333;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dojo-accent);
}

.cyber-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-white-border);
  border-left: 2px solid var(--dojo-accent);
  backdrop-filter: blur(30px);
  padding: 4rem;
  position: relative;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  border-radius: 4px;
}

.cyber-box:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}

.big-heading {
  font-size: 6rem;
  font-weight: 900;
  margin: 20px 0;
}

.accent-text {
  color: var(--dojo-accent);
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .big-heading {
    font-size: 3.5rem;
  }

  .section-wrapper {
    padding: 60px 20px;
  }

  .cursor-main {
    display: none !important;
  }

  .hero-visual {
    display: none !important;
  }
}

/* --- COMPONENT UTILS --- */
.tech-tag {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--dojo-accent);
  border: 1px solid var(--dojo-accent);
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  letter-spacing: 1px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 20002;
}

.modal-container-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20003;
  pointer-events: none;
}

.modal-content {
  width: 95%;
  max-width: 650px;
  background: #050505;
  border: 1px solid var(--dojo-accent);
  padding: 40px;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
}

.modal-btn {
  padding: 12px 24px;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-weight: bold;
  cursor: pointer !important;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.modal-btn.primary {
  background: var(--dojo-accent);
  color: white;
}

.modal-btn.primary:hover {
  background: white;
  color: black;
}

.modal-btn.secondary {
  background: transparent;
  color: #888;
  border: 1px solid #444;
}

/* --- BLOG GRID DEFINITION --- */
#blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-height: 1200px;
  /* Approximate height for 3 rows */
  overflow-y: auto;
  padding: 20px;
  padding-right: 30px;
  scrollbar-width: thin;
  scrollbar-color: var(--dojo-accent) transparent;
}

#blog-grid::-webkit-scrollbar {
  width: 6px;
}

#blog-grid::-webkit-scrollbar-thumb {
  background: var(--dojo-accent);
  border-radius: 10px;
}

/* --- PREMIUM OVERRIDES --- */
.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
  z-index: 9996;
}

.outline-btn {
  padding: 16px 36px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
  font-family: 'JetBrains Mono', monospace;
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 11px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
}

.outline-btn:hover {
  background: white;
  color: black;
  border-color: white;
}

/* --- ADDED FOR VANILLA JS CONVERSION --- */

/* Boot Overlay */
#boot-sequence {
  transition: opacity 0.5s ease;
}

/* Scroll Reveal Base */
.scroll-reveal {
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Experience Buttons */
.exp-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px;
  text-align: left;
  font-family: 'JetBrains Mono';
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2px;
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border-radius: 2px;
  width: 100%;
  margin-bottom: 10px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exp-btn:hover {
  transform: translateX(10px);
}

.exp-btn.selected {
  background: white;
  color: black;
}

.exp-btn.selected::after {
  content: '●';
  color: var(--dojo-accent);
}

/* Project Card Hover Effects */
.project-card {
  transition: all 0.4s ease;
}

.project-card:hover {
  border-color: white;
  background-color: rgba(255, 255, 255, 0.03);
  transform: translateY(-5px);
}

/* Typewriter Cursor Blink */
.typewriter-cursor {
  display: inline-block;
  width: 10px;
  height: 1em;
  background: white;
  margin-left: 5px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Mastery Grid Item */
.mastery-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 10px;
}

/* --- SVG ANIMATIONS --- */
.draw-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 2s ease-out forwards;
}

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

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.5s ease-out forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- OVERRIDES --- */
#hero-glow {
  transition: background 1s ease;
}

h1.shadow-text {
  text-shadow: 0 0 50px rgba(0, 0, 0, 1) !important;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {

  /* Global Section Padding */
  .section-wrapper {
    padding: 80px 20px !important;
    flex-direction: column;
    /* Stack flex containers by default if needed */
  }

  /* Hero Text Sizing */
  .big-heading {
    font-size: 12vw !important;
  }

  /* Hero Section Stacking */
  #section-hero {
    padding-top: 140px !important;
  }

  .cyber-box {
    padding: 2rem !important;
    max-width: 100% !important;
  }

  .hero-visual {
    display: none !important;
  }

  /* Mastery Section Grid */
  .mastery-item {
    margin-bottom: 15px;
  }

  /* Blog Grid Stacking */
  #blog-grid {
    grid-template-columns: 1fr !important;
    max-height: calc(100vh - 200px) !important;
  }

  /* Contact Section Header */
  #section-contact h2 {
    font-size: 2.2rem !important;
  }

  /* Social Icons Styles */
  #section-contact a i {
    font-size: 1.2rem !important;
  }

  /* Footer Stack */
  footer p {
    font-size: 0.7rem !important;
  }

  /* Hide floating elements that might overlap */
  #floating-kanji {
    font-size: 50vw !important;
    top: 10% !important;
    opacity: 0.03 !important;
  }
}