/* =============================================
   Cheater's Lounge — Custom Styles
   ============================================= */

/* --- Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Navbar --- */
#navbar {
  background: rgba(255, 252, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
}

#navbar.scrolled {
  background: rgba(255, 252, 248, 0.97);
  box-shadow: 0 4px 30px rgba(26, 26, 46, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #E85D4A;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  display: block;
}

/* --- Hero --- */
.hero-text {
  opacity: 1;
  animation: heroFadeIn 0.8s ease forwards;
}

.hero-image {
  opacity: 1;
  animation: heroImageIn 0.8s 0.2s ease forwards;
}

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

@keyframes heroImageIn {
  from { opacity: 0; transform: translateY(32px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Geometric Shapes --- */
.geometric-shape {
  position: absolute;
  pointer-events: none;
}

.shape-circle-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 93, 74, 0.08) 0%, transparent 70%);
  top: 10%;
  right: -5%;
  border-radius: 50%;
  animation: floatSlow 8s ease-in-out infinite;
}

.shape-circle-2 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.15) 0%, transparent 70%);
  bottom: 15%;
  left: -3%;
  border-radius: 50%;
  animation: floatSlow 6s 1s ease-in-out infinite;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(232, 93, 74, 0.06);
  top: 25%;
  left: 5%;
  animation: spinSlow 20s linear infinite;
  transform-origin: center;
}

.shape-dots {
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, rgba(232, 93, 74, 0.15) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  bottom: 20%;
  right: 10%;
  opacity: 0.6;
}

.shape-stripe {
  width: 200px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(232, 93, 74, 0.2), transparent);
  top: 40%;
  right: 0;
  transform: rotate(-15deg);
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Scroll indicator --- */
.scroll-line {
  width: 3px;
  height: 100%;
  background: #E85D4A;
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDown 1.8s ease-in-out infinite;
  border-radius: 2px;
}

@keyframes scrollDown {
  0% { top: -100%; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* --- Scroll reveal --- */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- Responsive tweaks --- */
@media (max-width: 767px) {
  .shape-circle-1 { width: 250px; height: 250px; }
  .shape-circle-2 { width: 120px; height: 120px; }
  .shape-triangle { display: none; }
}

/* --- Selection --- */
::selection {
  background: #E85D4A;
  color: white;
}
