/* Removed Google Fonts - Using Helvetica */

/* CSS Variables - Black and White Futuristic Theme */
:root {
  --primary-white: #ffffff;
  --secondary-white: #e0e0e0;
  --accent-gray: #888888;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --background: #000000;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-white: rgba(255, 255, 255, 0.3);
  --transition-speed: 0.4s;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  background: #000000;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Canvas Background for Dot Wave Animation */
#dot-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body::after {
  display: none;
}

/* Logo Background - Removed */
body::before {
  display: none;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Fullscreen Section Layout */
section {
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Hero Section - Logo Centered */
.hero {
  padding: 4rem 0;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

/* Main Logo Display - Static with Weak Glow */
.hero-logo {
  width: 280px;
  height: 280px;
  background-image: url('public/Logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
  z-index: 3;
}

@keyframes logo-float {

  0%,
  100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.4));
  }

  50% {
    transform: translateY(-10px);
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.6));
  }
}

.hero h1 {
  display: none;
}

@keyframes glow-pulse {

  0%,
  100% {
    text-shadow:
      0 0 10px rgba(255, 255, 255, 0.3),
      0 0 20px rgba(255, 255, 255, 0.2);
  }

  50% {
    text-shadow:
      0 0 15px rgba(255, 255, 255, 0.4),
      0 0 30px rgba(255, 255, 255, 0.25);
  }
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0;
  position: relative;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.8rem;
  background: transparent;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  color: var(--primary-white);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
}

.social-link span {
  line-height: 1.6rem;
  display: inline-block;
  vertical-align: middle;
}

.social-link::before {
  display: none;
}

.social-link::after {
  display: none;
}

.social-link.clicking {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.social-link.clicking::after {
  opacity: 1;
  transform: scale(1.5);
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  transform: scale(1.1);
  background: transparent;
}

.social-link i {
  font-size: 1.6rem;
  display: inline-block;
  transition: transform var(--transition-speed);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.social-link:hover i {
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1));
}

/* Content Section */
.content-section {
  padding: 4rem 0;
}

.section-title {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 4rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--primary-white);
  letter-spacing: 12px;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.2),
    0 0 20px rgba(255, 255, 255, 0.1);
  position: relative;
}

/* Removed decorative lines from section title */

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.game-card {
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 2.5rem;
  backdrop-filter: none;
  transition: all var(--transition-speed);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.game-card::before {
  display: none;
}

.game-card:hover {
  transform: translateY(-10px);
  background: transparent;
  border: none;
}

.game-card h3 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-white);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
}

.game-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.game-card .btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--primary-white);
  text-decoration: none;
  border: 2px solid var(--primary-white);
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
  transition: all var(--transition-speed);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.game-card .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.5), transparent);
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease-out;
}

.game-card .btn.clicking::after {
  opacity: 1;
  transform: scale(2);
}

.game-card .btn:hover {
  background: var(--primary-white);
  color: var(--background);
  transform: scale(1.05);
  box-shadow:
    0 5px 25px rgba(255, 255, 255, 0.35),
    0 0 40px rgba(255, 255, 255, 0.25);
}

/* Click Animation Ripple */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

/* Scroll Indicator for Better UX */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.6;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
  transition: opacity 0.3s;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator .arrow {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, var(--primary-white));
  border-radius: 2px;
  animation: scroll-arrow 2s ease-in-out infinite;
}

.scroll-indicator .text {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

@keyframes bounce {

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

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

@keyframes scroll-arrow {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero h1 {
    font-size: 4rem;
    letter-spacing: 8px;
  }

  .section-title {
    font-size: 3rem;
    letter-spacing: 8px;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .scroll-indicator {
    bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  body::before {
    display: none;
  }

  body::after {
    background-size: 30px 30px;
  }

  .hero-logo {
    width: 200px;
    height: 200px;
  }

  .hero-content {
    gap: 2rem;
  }

  .social-links {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
  }

  .social-link {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
  }

  .section-title {
    font-size: 2.5rem;
    letter-spacing: 6px;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .scroll-indicator {
    bottom: 1rem;
    font-size: 0.7rem;
  }

  .scroll-indicator .arrow {
    height: 20px;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: 160px;
    height: 160px;
  }

  .social-link {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }

  .social-link i {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 2rem;
    letter-spacing: 4px;
  }

  .game-card {
    padding: 2rem;
  }

  .game-card h3 {
    font-size: 1.6rem;
  }
}

/* ===== TYPING GAME STYLES ===== */
.typing-game {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.game-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-bottom: 3rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.stat-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-white);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.word-display {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
}

.hiragana {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-white);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.romaji-hint {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

.input-area {
  margin: 2rem 0;
}

#typing-input {
  width: 100%;
  padding: 1.5rem 2rem;
  font-size: 1.5rem;
  font-family: 'Courier New', monospace;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--primary-white);
  text-align: center;
  outline: none;
  transition: all 0.3s ease;
}

#typing-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

#typing-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.game-btn {
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-white);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: Helvetica, Arial, sans-serif;
}

.game-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

.game-btn:active {
  transform: scale(0.98);
}

.game-message {
  text-align: center;
  margin-top: 2rem;
  min-height: 3rem;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Mobile styles for typing game */
@media (max-width: 768px) {
  .typing-game {
    padding: 2rem 1rem;
  }

  .game-stats {
    gap: 2rem;
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .hiragana {
    font-size: 3rem;
  }

  .romaji-hint {
    font-size: 1.2rem;
  }

  #typing-input {
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
  }

  .game-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .game-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .hiragana {
    font-size: 2.5rem;
  }

  .game-controls {
    flex-direction: column;
    gap: 1rem;
  }

  .game-btn {
    width: 100%;
  }
}

/* Typewriter overlay (1-line, subtle) */
#typewriter-line {
  position: fixed;
  left: 50%;
  top: 70%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  white-space: nowrap;

  font-size: 14px;
  letter-spacing: 0.06em;
  line-height: 1;
  opacity: 0;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.6);

  /* optional: if you want it to be a little more “subtitle-like” */
  /* mix-blend-mode: screen; */
}
/* Typewriter Section */
.typewriter-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.typewriter-container {
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

.typewriter-text {
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
  font-family: 'Helvetica', Arial, sans-serif;
}

.typewriter-text::after {
  content: '|';
  animation: blink 1s step-end infinite;
  margin-left: 0.1em;
}

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

/* Responsive */
@media (max-width: 968px) {
  .typewriter-text {
    font-size: 3rem;
    min-height: 150px;
  }
}

@media (max-width: 768px) {
  .typewriter-text {
    font-size: 2rem;
    min-height: 120px;
  }
}

@media (max-width: 480px) {
  .typewriter-text {
    font-size: 1.5rem;
    min-height: 100px;
  }
}
