/* Mobile-first responsive design */
* {
  box-sizing: border-box;
}

/* Minimal styles for the Hello World page */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  padding: 1rem;
  background: #fff;
  /* Keeping base bg white for fallback/layout but it's covered by .background-effects */
  margin: 0;
  line-height: 1.6;
  color: #cbd5e1;
  /* Light Slate Text */
  /* Reserve space for fixed top announcement bar (reduced height) */
  padding-top: calc(1rem + 28px);
}

.blue {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.5rem 0;
  text-align: center;
  line-height: 1.6;
  letter-spacing: 0.3px;

  /* Sleek Gradient Text */
  background: linear-gradient(to right, #22d3ee, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  /* Subtle shadow behind gradient */
}

/* Header/logo styles */
.site-header {
  text-align: center;
  margin: 1rem 0 0.5rem 0;
  padding: 0.5rem 0;
}

.site-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Navigation styles - mobile optimized */
.site-nav {
  text-align: center;
  margin: 0;
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  /* Apple Glass Effect */
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 50px;
  padding: 0.4rem;
  width: 90%;
  max-width: 400px;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav.shrink {
  padding: 0.2rem;
  bottom: 1rem;
  transform: translateX(-50%) scale(0.9);
  /* slightly more opaque when shrunk? or consistent? keeping consistent but reduced padding */
}

.site-nav a {
  text-decoration: none;
  color: #0f172a;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:active {
  background-color: #e2e8f0;
  color: #06b6d4;
}

.site-nav a:hover {
  background-color: #e2e8f0;
  color: #06b6d4;
}

/* Content sections */
section {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #f8fafc;
  border-radius: 8px;
}

.video-section {
  margin: 1.5rem 0;
  padding: 0;
  background-color: transparent;
}

.video-section video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

h2 {
  font-size: 1.35rem;
  color: #f1f5f9;
  /* Slate 100 */
  margin: 0.75rem 0;
}

p {
  font-size: 1rem;
  color: #cbd5e1;
  /* Slate 300 */
  margin: 0.75rem 0;
}

ul {
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}

li {
  font-size: 1rem;
  color: #cbd5e1;
  /* Slate 300 */
  margin: 0.5rem 0;
}

/* Tablet and desktop adjustments */
@media (min-width: 481px) {
  body {
    padding: 1.5rem;
  }

  .blue {
    font-size: 2rem;
  }

  .site-logo {
    width: 100%;
    max-width: 900px;
    /* Cap max size on large screens */
    margin: 4rem auto 0 auto;
    /* Center and push down */
    display: block;
  }

  .site-nav a {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .site-nav a:active {
    background-color: #e2e8f0;
    color: #06b6d4;
  }

  .site-nav a:hover {
    background-color: #e2e8f0;
    color: #06b6d4;
  }
}

/* Top announcement bar (fixed) */
.top-announcement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(90deg, #111827, #0f172a);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 9999;
}

.top-announcement .marquee {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  font-weight: 600;
  font-size: 0.9rem;
  animation: marquee 12s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-100%);
  }
}

/* Footer styles */
.site-footer {
  margin-top: 1rem;
  padding: 0.5rem;
  background-color: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  text-align: center;
}

.footer-content p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 0.5rem 0;
}

.footer-nav {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  color: #475569;
  font-size: 0.7rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #06b6d4;
}

/* Products section for Movies page */
.products {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem 1rem;
  width: 100%;
}

/* Video Grid for Content page */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
  background-color: transparent;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.6);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* Two columns on tablets */
@media (min-width: 600px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem;
  }
}

/* Three columns on desktop */
@media (min-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Light Beam Animation */
.beam-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  overflow: hidden;
}

.beam-container span {
  position: absolute;
  display: block;
  width: 4px;
  height: 10px;
  /* Short beam head */
  background: white;
  box-shadow: 0 0 15px 4px red, 0 0 30px 8px rgba(255, 0, 0, 0.6);
  border-radius: 50%;
}

.beam-container span::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, transparent, red);
  opacity: 0.5;
  transform: translateY(10px);
}

/* Left Beam - Gravity Up/Down */
.beam-container span:nth-child(1) {
  left: 0;
  bottom: 0;
  animation: gravity-left 8s ease-in-out infinite;
}

.beam-container span:nth-child(1)::after {
  background: linear-gradient(to top, transparent, red);
  transform: translateY(10px);
}


/* Right Beam - Gravity Down/Up */
.beam-container span:nth-child(2) {
  right: 0;
  top: 0;
  animation: gravity-right 8s ease-in-out infinite;
}

.beam-container span:nth-child(2)::after {
  background: linear-gradient(to bottom, transparent, red);
  transform: translateY(-200px);
}

@keyframes gravity-left {
  0% {
    bottom: 0;
    opacity: 0;
    transform: scaleY(1);
  }

  10% {
    opacity: 1;
  }

  45% {
    bottom: 80%;
    transform: scaleY(1.5);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Decelerate */
  50% {
    bottom: 82%;
    transform: scaleY(1);
    animation-timing-function: ease-in;
  }

  /* Peak */
  90% {
    bottom: 0;
    transform: scaleY(2);
    animation-timing-function: ease-in;
  }

  /* Accelerate down */
  100% {
    bottom: 0;
    opacity: 0;
    transform: scaleY(1);
  }
}

@keyframes gravity-right {
  0% {
    top: 0;
    opacity: 0;
    transform: scaleY(1);
  }

  10% {
    opacity: 1;
  }

  45% {
    top: 80%;
    transform: scaleY(1.5);
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  50% {
    top: 82%;
    transform: scaleY(1);
    animation-timing-function: ease-in;
  }

  90% {
    top: 0;
    transform: scaleY(2);
    animation-timing-function: ease-in;
  }

  100% {
    top: 0;
    opacity: 0;
    transform: scaleY(1);
  }
}

/* Violet Nav Beam using Conic Gradient */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.site-nav {
  position: fixed;
  /* Existing rules mostly unchanged, simplified here for context */
  /* Ensure masking works */
  background: #f1f5f9;
}

.site-nav::before {
  content: '';
  position: absolute;
  inset: -3px;
  /* Border width */
  z-index: -1;
  background: conic-gradient(from var(--angle), transparent 0%, transparent 80%, violet 90%, transparent 100%);
  border-radius: 53px;
  /* nav has 50px */
  animation: rotate-beam 10s linear infinite;

  /* Masking to create border-only effect */
  padding: 3px;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@keyframes rotate-beam {
  to {
    --angle: 360deg;
  }
}

/* Pulsing Background Effects */
.background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;
  /* Behind everything */
  overflow: hidden;
  background-color: #020617;
  /* Slate 950 - Dark background */
  pointer-events: none;
}

.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

.glow-1 {
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
  /* Green/Blueish */
  top: -20%;
  left: -10%;
  animation: pulse-float 15s infinite alternate ease-in-out;
}

.glow-2 {
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
  /* Purple/Blueish */
  bottom: -20%;
  right: -10%;
  animation: pulse-float-reverse 18s infinite alternate-reverse ease-in-out;
}

@keyframes pulse-float {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }

  50% {
    transform: translate(5%, 10%) scale(1.1);
    opacity: 0.6;
  }

  100% {
    transform: translate(-5%, 5%) scale(1);
    opacity: 0.4;
  }
}

@keyframes pulse-float-reverse {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }

  50% {
    transform: translate(-5%, -10%) scale(1.2);
    opacity: 0.5;
  }

  100% {
    transform: translate(5%, -5%) scale(1);
    opacity: 0.3;
  }
}

/* Tractor Beam Animation */
.tractor-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.beam-gradient {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 150vw;
  /* Massive width */
  height: 60vh;
  /* Cloud-like top base */
  background: radial-gradient(ellipse at center,
      rgba(129, 140, 248, 0.4) 0%,
      rgba(34, 211, 238, 0.2) 30%,
      rgba(34, 211, 238, 0.05) 60%,
      transparent 80%);
  filter: blur(40px);
  animation: beam-cloud-pulse 8s infinite alternate ease-in-out;
}

.beam-core {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  /* Slightly wider core */
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0.8) 0%,
      rgba(34, 211, 238, 0.4) 20%,
      rgba(129, 140, 248, 0.1) 60%,
      transparent 100%);
  filter: blur(15px);
  animation: beam-core-pulse 4s infinite ease-in-out;
}

/* Shooting light pulse */
.beam-core::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 30%;
  /* Length of the shooting pulse */
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9) 50%, transparent);
  filter: blur(5px);
  animation: beam-shoot 3s infinite ease-out;
}

@keyframes beam-cloud-pulse {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 0.8;
  }

  100% {
    transform: translateX(-50%) scale(1.1);
    opacity: 1;
  }
}

@keyframes beam-core-pulse {

  0%,
  100% {
    opacity: 0.6;
    width: 60px;
  }

  50% {
    opacity: 0.8;
    width: 80px;
  }
}

@keyframes beam-shoot {
  0% {
    top: -20%;
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  80% {
    top: 120%;
    opacity: 1;
  }

  100% {
    top: 120%;
    opacity: 0;
  }
}

/* RSS Feed Styles for Poop Reading */
.rss-feed-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.rss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 1rem 0;
}

.rss-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.rss-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  background: rgba(255, 255, 255, 0.9);
}

.rss-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.25rem;
  color: #1e293b;
  line-height: 1.4;
}

.rss-card .meta {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rss-card .description {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rss-card .read-more {
  display: inline-flex;
  align-items: center;
  color: #0ea5e9;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: auto;
}

.rss-card .read-more:hover {
  color: #0284c7;
}

.rss-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #22d3ee, #818cf8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rss-card:hover::before {
  opacity: 1;
}