/* ===========================
   INDEX PAGE - DEDICATED STYLES
   Blue theme with no light/dark mode
   =========================== */

:root {
  --index-blue: #0099FF;
  --index-white: #FFFFFF;
  --index-dark: #001a4d;
  --animation-speed: 0.6s;
}

/* Main body styling */
body {
  background: linear-gradient(135deg, #001a4d 0%, #003d99 50%, #0051cc 100%);
  color: var(--brutalist-white);
  font-family: 'Space Mono', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  height: 100vh;
  width: 100vw;
  margin: 0;
  overflow: hidden;
  position: relative;
}

/* Animated stripes background */
body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.08) 10px,
    rgba(255, 255, 255, 0.08) 20px
  );
  animation: stripeMove 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes stripeMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(20px); }
}

.loader-container {
  position: relative;
  z-index: 2;
  padding: 3rem;
  width: min(80vw, 560px);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 6px solid var(--index-blue);
  border-radius: var(--panel-border-radius);
  box-shadow: 12px 12px 0px var(--index-blue);
  animation: floatContainer 4s ease-in-out infinite;
}

@keyframes floatContainer {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(1deg); }
  50% { transform: translateY(0px) rotate(0deg); }
  75% { transform: translateY(-10px) rotate(-1deg); }
}

/* Landing Page Typography */
.landing-page-title {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #0099FF;
  text-shadow: 4px 4px 0px #FFD500;
  max-width: 90vw;
  opacity: 1;
  animation: none;
  font-family: 'Space Mono', monospace;
}

.loader-text {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #0099FF;
  text-shadow: 4px 4px 0px #FFD500;
  max-width: 90vw;
  opacity: 1;
  animation: none;
}

@keyframes blink {
  0%, 50% { border-color: var(--index-blue); }
  51%, 100% { border-color: transparent; }
}

/* Landing Page Subtitle */
.landing-page-subtitle {
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #0099FF;
  text-align: center;
  margin: 1rem 0;
  padding: 0 1rem;
  border-bottom: none;
  white-space: normal;
  word-wrap: break-word;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1.5s;
  font-family: 'Space Mono', monospace;
}

.loader-subtitle {
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #0099FF;
  text-align: center;
  margin: 1rem 0;
  padding: 0 1rem;
  border-bottom: none;
  white-space: normal;
  word-wrap: break-word;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 1.5s;
}

.loader-subtitle::after {
  display: none;
}

/* Landing Page Description */
.landing-page-description {
  font-size: clamp(0.9rem, 3vw, 1.3rem);
  margin-top: 2rem;
  padding: 1rem;
  border-top: 3px solid #0099FF;
  border-bottom: 3px solid #0099FF;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brutalist-white);
  opacity: 0;
  animation: fadeInUp 1s ease forwards 2s;
  font-family: 'Space Mono', monospace;
}

.loader-sub {
  font-size: clamp(0.9rem, 3vw, 1.3rem);
  margin-top: 2rem;
  padding: 1rem;
  border-top: 3px solid #0099FF;
  border-bottom: 3px solid #0099FF;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brutalist-white);
  opacity: 0;
  animation: fadeInUp 1s ease forwards 2s;
}

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

.enter-text {
  display: none;
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 900;
  margin-top: 2rem;
  padding: 1rem 2rem;
  cursor: pointer;
  background: var(--index-blue);
  color: #FFFFFF;
  border: 4px solid var(--index-blue);
  box-shadow: 6px 6px 0px var(--index-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border-radius: var(--panel-border-radius);
}

.enter-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--index-blue);
  transition: left 0.3s ease;
  z-index: -1;
}

.enter-text:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0px var(--index-blue);
  background: #FFFFFF;
  color: var(--index-blue);
  border-color: var(--index-blue);
}

.enter-text:hover::before {
  left: 0;
}

.enter-text:active {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0px var(--index-blue);
}

.enter-text.show {
  display: inline-block;
  animation: bounceIn 0.6s ease forwards;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* Pulsing circles */
.pulse-circle {
  position: fixed;
  width: 150px;
  height: 150px;
  border: 3px solid var(--index-blue);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 3s ease-in-out infinite;
  z-index: 0;
}

.pulse-1 {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.pulse-2 {
  top: 70%;
  right: 15%;
  animation-delay: 1s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--brutalist-white) !important;
  border-top: 3px solid var(--index-blue);
  z-index: 3;
}

footer a {
  color: var(--index-blue) !important;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

footer a:hover {
  text-decoration: underline;
  color: var(--brutalist-white) !important;
}

/* Speed up page animations */
.loader-text {
  animation: typing 1.5s steps(30, end) forwards, blink 0.5s step-end infinite !important;
  color: var(--index-blue) !important;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.loader-subtitle {
  animation: fadeInUp 0.6s ease forwards 1s !important;
}

.loader-sub {
  animation: fadeInUp 0.6s ease forwards 1.3s !important;
}

.loader-container {
  animation: floatContainer 2.5s ease-in-out infinite !important;
}

.enter-text.show {
  animation: bounceIn 0.4s ease forwards !important;
}

/* Override theme toggle visibility */
#theme-toggle {
  display: none !important;
}

/* Ensure index page ALWAYS uses one fixed mode - no theme switching */
:root {
  --index-blue: #0099FF !important;
  --index-white: #FFFFFF !important;
}

/* Override ALL theme changes - force one mode */
html[data-theme="light"],
:root[data-theme="light"],
[data-theme="light"] {
  --index-blue: #0099FF !important;
  --index-white: #FFFFFF !important;
}

/* Force index page body to always use blue theme background */
body {
  background: linear-gradient(135deg, #001a4d 0%, #003d99 50%, #0051cc 100%) !important;
}

/* Button styling for index page */
.enter-text {
  background: var(--index-blue) !important;
  color: var(--index-white) !important;
  border-color: var(--index-blue) !important;
  box-shadow: 6px 6px 0px var(--index-blue) !important;
}

.enter-text::before {
  background: var(--index-blue) !important;
}

.enter-text:hover {
  background: var(--index-white) !important;
  color: var(--index-blue) !important;
  border-color: var(--index-blue) !important;
  box-shadow: 10px 10px 0px var(--index-blue) !important;
}

.enter-text:active {
  box-shadow: 3px 3px 0px var(--index-blue) !important;
}

/* Index page always uses blue theme - no light/dark mode */
html[data-theme] {
  --button-blue: var(--index-blue) !important;
}

/* Light mode: text becomes visible dark color on white background */
html[data-theme="light"] .enter-text:hover {
  color: var(--brutalist-white) !important;
}

/* Mobile adjustments - Tablet */
@media (max-width: 768px) {
  body {
    padding: 1.5rem;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .loader-container {
    padding: clamp(1.75rem, 8vw, 2.5rem);
    width: min(92vw, 520px);
    border-width: 5px;
    box-shadow: 8px 8px 0px var(--index-blue);
    margin: 2rem 0;
  }

  .loader-text {
    font-size: clamp(2rem, 9vw, 3.2rem);
    letter-spacing: 2px;
    white-space: normal;
    text-shadow: 4px 4px 0px #FFD500;
    color: #0099FF !important;
  }

  .loader-subtitle {
    font-size: clamp(1rem, 5vw, 1.5rem);
    letter-spacing: 1px;
    margin: 0.75rem 0;
  }

  .loader-sub {
    font-size: clamp(0.95rem, 4vw, 1.25rem);
    margin-top: 1.5rem;
    padding: 0.9rem;
    line-height: 1.4;
  }

  .enter-text {
    width: 100%;
    max-width: 280px;
    font-size: 1.05rem;
    padding: 0.9rem 1.5rem;
    box-shadow: 5px 5px 0px var(--index-blue);
  }

  .pulse-circle {
    width: 110px;
    height: 110px;
    opacity: 0.2;
  }
}

/* Mobile adjustments - Mobile */
@media (max-width: 480px) {
  .loader-container {
    padding: 1.25rem;
    border-width: 4px;
    box-shadow: 6px 6px 0px var(--index-blue);
  }

  .loader-text {
    font-size: clamp(1.6rem, 9vw, 2.6rem);
    text-shadow: 4px 4px 0px #FFD500;
    color: #0099FF !important;
  }

  .loader-subtitle {
    font-size: clamp(0.9rem, 4.5vw, 1.3rem);
    letter-spacing: 0.5px;
    margin: 0.5rem 0;
  }

  .loader-sub {
    padding: 0.75rem;
  }

  .enter-text {
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
  }

  .pulse-circle {
    width: 90px;
    height: 90px;
  }
}
