/* ============================================================
   Oger.tv — wild & flashy landing page stylesheet
   Pure CSS, no framework, no server-side code.
   Colors are loud neon tones inspired by ogertv_optik.jpg.
   ============================================================ */

:root {
  --bg-dark: #0a0612;
  --bg-deep: #160b2e;
  --neon-magenta: #ff00e5;
  --neon-cyan: #00f0ff;
  --neon-lime: #b6ff00;
  --neon-orange: #ff7a00;
  --neon-purple: #8a2be2;
  --hot-yellow: #ffe600;
  --text-light: #ffffff;
  --glow-magenta: 0 0 12px rgba(255, 0, 229, 0.9), 0 0 40px rgba(255, 0, 229, 0.6);
  --glow-cyan: 0 0 12px rgba(0, 240, 255, 0.9), 0 0 40px rgba(0, 240, 255, 0.6);
  --glow-lime: 0 0 12px rgba(182, 255, 0, 0.9), 0 0 40px rgba(182, 255, 0, 0.6);
}

/* ---------- Reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Segoe UI", "Roboto", system-ui, -apple-system, sans-serif;
  color: var(--text-light);
  overflow-x: hidden;
  background: var(--bg-dark);

  /* Animated neon gradient background */
  background-image:
    radial-gradient(circle at 15% 20%, rgba(138, 43, 226, 0.55), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255, 0, 229, 0.45), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(0, 240, 255, 0.35), transparent 45%),
    radial-gradient(circle at 20% 85%, rgba(255, 122, 0, 0.4), transparent 45%),
    linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-deep) 50%, var(--bg-dark) 100%);
  background-size: 200% 200%;
  animation: bgShift 14s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 60%; }
  100% { background-position: 40% 100%; }
}

/* ---------- Floating neon orbs (decor) ---------- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.orb--one {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -80px;
  background: var(--neon-magenta);
  animation: float1 9s ease-in-out infinite alternate;
}

.orb--two {
  width: 280px;
  height: 280px;
  bottom: -60px;
  right: -60px;
  background: var(--neon-cyan);
  animation: float2 11s ease-in-out infinite alternate;
}

.orb--three {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 55%;
  background: var(--neon-lime);
  opacity: 0.35;
  animation: float3 13s ease-in-out infinite alternate;
}

@keyframes float1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 80px) scale(1.25); }
}

@keyframes float2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-70px, -50px) scale(1.2); }
}

@keyframes float3 {
  from { transform: translate(0, 0) scale(0.9); }
  to   { transform: translate(40px, -60px) scale(1.35); }
}

/* ---------- Layout container ---------- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding: 2rem 1.25rem;
}

/* Big glowing logo - clearly visible on the page */
.logo-big {
  width: min(320px, 60vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 0, 229, 0.9)) drop-shadow(0 0 45px rgba(0, 240, 255, 0.6));
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0) rotate(-3deg) scale(1); }
  50%      { transform: translateY(-14px) rotate(3deg) scale(1.05); }
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  width: 100%;
  max-width: 900px;
}

/* Page-title image: constrained via CSS so it stays correct
   after the too-large originals are replaced with resized versions. */
.title-image {
  width: min(92vw, 780px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.6));
  animation: pulseTitle 3.5s ease-in-out infinite;
}

@keyframes pulseTitle {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); }
}

.tagline {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hot-yellow);
  text-shadow: 0 0 10px rgba(255, 230, 0, 0.8), 0 0 30px rgba(255, 122, 0, 0.6);
  animation: taglineFlicker 2.5s ease-in-out infinite;
}

@keyframes taglineFlicker {
  0%, 100% { text-shadow: 0 0 10px rgba(255, 230, 0, 0.8), 0 0 30px rgba(255, 122, 0, 0.6); }
  50%      { text-shadow: 0 0 14px rgba(255, 0, 229, 0.9), 0 0 42px rgba(0, 240, 255, 0.7); }
}

/* ---------- YouTube CTA ---------- */
.cta-wrap {
  margin-top: 1rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 2.4rem;
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  color: #0a0612;
  background: linear-gradient(90deg, var(--neon-lime), var(--neon-cyan), var(--neon-magenta), var(--neon-orange));
  background-size: 300% 100%;
  border-radius: 999px;
  box-shadow: var(--glow-cyan);
  animation: slideBg 3s linear infinite, bounceGlow 1.8s ease-in-out infinite;
  transition: transform 0.15s ease;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  transform: scale(1.08) rotate(-1deg);
  box-shadow: var(--glow-magenta);
}

.cta-btn .yt-icon {
  width: 1.4em;
  height: 1.4em;
  fill: currentColor;
  flex-shrink: 0;
}

/* WhatsApp channel CTA (green accent) */
.cta-btn.cta-whatsapp {
  background: linear-gradient(90deg, #25d366, #128c7e, #075e54);
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.9), 0 0 40px rgba(18, 140, 126, 0.6);
}

.cta-btn.cta-whatsapp:hover,
.cta-btn.cta-whatsapp:focus-visible {
  box-shadow: 0 0 12px rgba(37, 211, 102, 1), 0 0 50px rgba(18, 140, 126, 0.8);
}

@keyframes slideBg {
  to { background-position: 300% 0; }
}

@keyframes bounceGlow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ---------- Feature cards ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
  max-width: 1000px;
  margin-top: 3.5rem;
}

.card {
  padding: 1.5rem 1.25rem;
  border: 2px solid var(--neon-magenta);
  border-radius: 1rem;
  background: rgba(10, 6, 18, 0.55);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 18px rgba(255, 0, 229, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: var(--glow-lime);
  border-color: var(--neon-lime);
}

.card h2 {
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #f3f1ff;
}

/* ---------- Footer ---------- */
.site-footer {
  width: 100%;
  margin-top: 4rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--neon-lime);
  text-decoration: none;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(182, 255, 0, 0.7);
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ---------- 3D background canvas (Three.js) ---------- */
#bg3d {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ---------- Screen-reader-only utility (visually-hidden h1) ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- SEO keyword-rich channel description ---------- */
.about {
  max-width: 780px;
  text-align: left;
  margin-top: 2rem;
  padding: 1.5rem;
  border: 2px solid var(--neon-cyan);
  border-radius: 1rem;
  background: rgba(10, 6, 18, 0.55);
  backdrop-filter: blur(6px);
}

.about h2 {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
  margin-bottom: 0.75rem;
}

.about p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
  color: #f3f1ff;
}

.about ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.about li {
  margin-bottom: 0.4rem;
  color: #f3f1ff;
}

/* ---------- Language switcher (dropdown) ---------- */
.lang-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  padding: 0.6rem 1rem;
  background: rgba(10, 6, 18, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 0, 229, 0.35);
  box-shadow: 0 0 18px rgba(255, 0, 229, 0.35);
}

.lang-switcher {
  position: relative;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-light);
  background: rgba(22, 11, 46, 0.7);
  border: 2px solid var(--neon-cyan);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.45);
}

.lang-toggle:hover {
  border-color: var(--neon-magenta);
  box-shadow: var(--glow-magenta);
}

.lang-chevron {
  font-size: 0.8em;
  line-height: 1;
  color: var(--neon-cyan);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  max-height: 70vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.5rem;
  background: rgba(14, 7, 30, 0.96);
  border: 2px solid var(--neon-cyan);
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(255, 0, 229, 0.5);
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  background: transparent;
  border: 0;
  border-radius: 0.6rem;
  cursor: pointer;
  text-align: left;
}

.lang-option:hover,
.lang-option.is-active {
  background: rgba(255, 0, 229, 0.18);
  color: var(--hot-yellow);
}

.lang-flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  display: inline-block;
}

.lang-phrase {
  white-space: nowrap;
}

/* Keep page content clear of the fixed language bar */
.page {
  padding-top: 4.5rem;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
