/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Orbitron", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  background-color: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.grid {
  display: grid;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

/* Banner */
.site-banner {
  background: linear-gradient(90deg, #00ffe5 0%, #e100ff 100%);
  color: white;
  text-align: center;
  padding: 0.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
}

.site-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: banner-shine 3s infinite linear;
}

@keyframes banner-shine {
  100% {
    left: 100%;
  }
}

/* Header */
header {
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem;
  position: relative;
  border-bottom: 1px solid #00ffe5;
  box-shadow: 0 0 15px rgba(0, 255, 229, 0.5);
  z-index: 100;
}

/* Mobile menu toggle button */
.menu-toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  display: block;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide toggle button on desktop */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* Navigation */
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.9);
  transition: all 0.3s ease;
  padding: 1rem;
  z-index: 100;
  box-shadow: 0 5px 15px rgba(0, 255, 229, 0.3);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.site-nav a {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 255, 229, 0.1);
  text-shadow: 0 0 8px rgba(0, 255, 229, 0.7);
  font-size: 1.1rem;
  text-align: center;
}

.site-nav a:last-child {
  border-bottom: none;
}

.site-nav.open {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
    gap: 1rem;
    position: static;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-nav a {
    padding: 0.5rem 0.75rem;
    border-bottom: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 255, 229, 0.7);
    font-size: 0.9rem;
  }

  .site-nav a:hover {
    background: rgba(0, 255, 229, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 229, 0.5);
    text-shadow: 0 0 12px rgba(0, 255, 229, 1);
  }

  .site-nav a.active {
    background: rgba(0, 255, 229, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 229, 0.5);
  }
}

@media (min-width: 1024px) {
  .site-nav {
    gap: 1.5rem;
  }

  .site-nav a {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-circle {
  width: 2rem;
  height: 2rem;
  background-color: #00ffe5;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 255, 229, 0.8);
}

.logo-inner {
  width: 1.5rem;
  height: 1.5rem;
  background-color: #0a0a0a;
  border-radius: 9999px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: #00ffe5;
  text-shadow: 0 0 10px rgba(0, 255, 229, 0.8);
}

/* Main content */
main {
  padding: 3rem 0;
}

.max-w-4xl {
  max-width: 56rem;
}

h1 {
  font-size: 2.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #00ffe5;
  text-shadow: 0 0 15px rgba(0, 255, 229, 0.5);
  letter-spacing: 1px;
}

h2 {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #e100ff;
  text-shadow: 0 0 15px rgba(225, 0, 255, 0.5);
}

h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
  color: #00ffe5;
  text-shadow: 0 0 10px rgba(0, 255, 229, 0.5);
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #c638ff;
  margin-bottom: 0.5rem;
}

h5 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #00ffe5;
}

p {
  margin-bottom: 1.5rem;
}

.text-gray-500 {
  color: #00ff9d;
}

.text-gray-600 {
  color: #b3b3b3;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.font-bold {
  font-weight: bold;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

/* Components */
.bg-gray-900 {
  background-color: #111827;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-gray-200 {
  background-color: #e5e7eb;
}

.bg-amber-50 {
  background-color: #151515;
}

.bg-blue-600 {
  background-color: #00ffe5;
}

.bg-blue-600.text-black {
  color: black;
}

.bg-green-500 {
  background-color: #10b981;
}

.bg-green-600 {
  background-color: #059669;
}

.bg-yellow-600 {
  background-color: #ca8a04;
}

.bg-purple-600 {
  background-color: #9333ea;
}

.text-white {
  color: white;
}

.text-gray-800 {
  color: #1f2937;
}

.text-amber-500 {
  color: #e100ff;
}

.text-amber-800 {
  color: #e0e0e0;
}

.text-blue-600 {
  color: #00ffe5;
}

.text-blue-800 {
  color: #1e40af;
}

.border {
  border-width: 1px;
  border-style: solid;
}

.border-gray-200 {
  border-color: #333333;
}

.border-l-4 {
  border-left-width: 4px;
}

.border-amber-500 {
  border-color: #e100ff;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-16 {
  margin-top: 0;
}

.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.shrink-0 {
  flex-shrink: 0;
}

.inline-block {
  display: inline-block;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.top-4 {
  top: 1rem;
}

.right-4 {
  right: 1rem;
}

.object-contain {
  object-fit: contain;
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.hover\:bg-gray-300:hover {
  background-color: #d1d5db;
}

.hover\:text-gray-300:hover {
  color: #d1d5db;
}

.hover\:text-blue-800:hover {
  color: #1e40af;
}

/* Lists */
ul.list-disc {
  list-style-type: disc;
  padding-left: 1.25rem;
}

/* Horizontal rule */
hr {
  border: 0;
  border-top: 1px solid #333;
  margin: 1.5rem 0;
}

/* Details toggle button */
.details-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #00ffe5;
  background: none;
  border: 1px solid #00ffe5;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 255, 229, 0.3);
}

.details-toggle:hover {
  background: rgba(0, 255, 229, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 229, 0.5);
  text-shadow: 0 0 8px rgba(0, 255, 229, 0.7);
}

.details-content {
  display: none;
  margin-top: 1.5rem;
  background-color: rgba(0, 255, 229, 0.05);
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  border: 1px solid rgba(0, 255, 229, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 229, 0.1);
}

.details-content.active {
  display: block;
}

/* Responsive layout */
@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }

  .md\:w-1\/3 {
    width: 33.333333%;
  }

  .md\:w-2\/3 {
    width: 66.666667%;
  }
}

/* Icons */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  vertical-align: middle;
}

/* UAP SVG Animations */
.uap-svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0, 255, 229, 0.5));
}

@keyframes randomFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(-3px, 5px, 0);
  }
  50% {
    transform: translate3d(4px, -2px, 0);
  }
  75% {
    transform: translate3d(-2px, -4px, 0);
  }
  100% {
    transform: translate3d(5px, 3px, 0);
  }
}

/* UAP Cards */
#tetra, #tictac, #blob, #beam, #mantaray, #brightstar, #jellyfish, #hornet, #egg {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid #333;
  box-shadow: 0 0 20px rgba(0, 255, 229, 0.2);
  transition: all 0.3s ease;
}

#tetra:hover, #tictac:hover, #blob:hover, #beam:hover, #mantaray:hover, 
#brightstar:hover, #jellyfish:hover, #hornet:hover, #egg:hover {
  box-shadow: 0 0 30px rgba(0, 255, 229, 0.4);
  transform: translateY(-5px);
}

/* Warning Box */
.border-l-4.border-amber-500 {
  border-color: #e100ff;
  background-color: rgba(225, 0, 255, 0.1);
  box-shadow: 0 0 15px rgba(225, 0, 255, 0.2);
}

/* Tetrahedron animations */
.tetrahedron {
  animation: rotate3d 10s infinite linear, randomFloat 12s infinite ease-in-out alternate;
}

@keyframes rotate3d {
  0% {
    transform: rotate3d(1, 1, 1, 0deg) translate3d(0, 0, 0);
  }
  25% {
    transform: rotate3d(1, 1, 1, 90deg) translate3d(-3px, 5px, 0);
  }
  50% {
    transform: rotate3d(1, 1, 1, 180deg) translate3d(4px, -2px, 0);
  }
  75% {
    transform: rotate3d(1, 1, 1, 270deg) translate3d(-2px, -4px, 0);
  }
  100% {
    transform: rotate3d(1, 1, 1, 360deg) translate3d(5px, 3px, 0);
  }
}

.vapor-emission {
  animation: vapor 3s infinite;
}

@keyframes vapor {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 0.9;
  }
}

/* Tic Tac animations */
.tictac {
  animation: elongate 8s infinite alternate ease-in-out, colorShift 12s infinite alternate, randomFloat 11s infinite ease-in-out alternate;
}

@keyframes elongate {
  0% {
    transform: scale(1, 1) translate3d(0, 0, 0);
  }
  25% {
    transform: scale(1.15, 0.9) translate3d(-3px, 5px, 0);
  }
  50% {
    transform: scale(1.3, 0.8) translate3d(4px, -2px, 0);
  }
  75% {
    transform: scale(1.15, 0.9) translate3d(-2px, -4px, 0);
  }
  100% {
    transform: scale(1, 1) translate3d(5px, 3px, 0);
  }
}

@keyframes colorShift {
  0% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(270deg);
  }
  100% {
    filter: hue-rotate(0deg);
  }
}

/* Blob animations */
.blob {
  animation: randomFloat 9s infinite ease-in-out alternate;
}

.blob .core {
  animation: pulse 3s infinite alternate ease-in-out;
}

.blob .outer-glow {
  animation: glow 5s infinite alternate ease-in-out;
}

@keyframes pulse {
  0% {
    r: 15;
    opacity: 0.7;
  }
  100% {
    r: 25;
    opacity: 1;
  }
}

@keyframes glow {
  0% {
    opacity: 0.3;
    r: 45;
  }
  100% {
    opacity: 0.5;
    r: 55;
  }
}

/* Beam animations */
.beam {
  animation: vibrate 0.3s infinite alternate ease-in-out, fade 8s infinite alternate, randomFloat 13s infinite ease-in-out alternate;
}

@keyframes vibrate {
  0% {
    transform: translateX(-2px) translate3d(0, 0, 0);
  }
  25% {
    transform: translateX(0px) translate3d(-3px, 5px, 0);
  }
  50% {
    transform: translateX(2px) translate3d(4px, -2px, 0);
  }
  75% {
    transform: translateX(0px) translate3d(-2px, -4px, 0);
  }
  100% {
    transform: translateX(-2px) translate3d(5px, 3px, 0);
  }
}

@keyframes fade {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 0.2;
  }
}

/* Manta Ray animations */
.mantaray {
  animation: tumble 15s infinite linear, randomFloat 10s infinite ease-in-out alternate;
}

.mantaray .emission {
  animation: blink 2s infinite alternate;
}

@keyframes tumble {
  0% {
    transform: rotate3d(1, 0.5, 0.2, 0deg) translate3d(0, 0, 0);
  }
  25% {
    transform: rotate3d(1, 0.5, 0.2, 90deg) translate3d(-3px, 5px, 0);
  }
  50% {
    transform: rotate3d(1, 0.5, 0.2, 180deg) translate3d(4px, -2px, 0);
  }
  75% {
    transform: rotate3d(1, 0.5, 0.2, 270deg) translate3d(-2px, -4px, 0);
  }
  100% {
    transform: rotate3d(1, 0.5, 0.2, 360deg) translate3d(5px, 3px, 0);
  }
}

@keyframes blink {
  0% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.9;
  }
}

/* Bright Star animations */
.brightstar {
  animation: oscillate 0.2s infinite alternate ease-in-out, randomFloat 14s infinite ease-in-out alternate;
}

.brightstar .flash {
  animation: flash 1s infinite;
}

@keyframes oscillate {
  0% {
    transform: translateX(-5px) translate3d(0, 0, 0);
  }
  25% {
    transform: translateX(0px) translate3d(-3px, 5px, 0);
  }
  50% {
    transform: translateX(5px) translate3d(4px, -2px, 0);
  }
  75% {
    transform: translateX(0px) translate3d(-2px, -4px, 0);
  }
  100% {
    transform: translateX(-5px) translate3d(5px, 3px, 0);
  }
}

@keyframes flash {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Jellyfish animations */
.jellyfish {
  animation: randomFloat 12s infinite ease-in-out alternate;
}

.jellyfish .head {
  animation: seek 5s infinite alternate ease-in-out;
}

.jellyfish .tentacle1, .jellyfish .tentacle2, .jellyfish .tentacle3, .jellyfish .tentacle4 {
  animation: sway 7s infinite alternate ease-in-out;
}

@keyframes seek {
  0% {
    transform: translate(-5px, 0);
  }
  50% {
    transform: translate(5px, -2px);
  }
  100% {
    transform: translate(0, 2px);
  }
}

@keyframes sway {
  0% {
    transform: skewX(-5deg);
  }
  100% {
    transform: skewX(5deg);
  }
}

/* Hornet animations */
.hornet {
  animation: randomFloat 8s infinite ease-in-out alternate;
}

.hornet .upper-body {
  animation: rotate 8s infinite linear;
}

.hornet .lower-body {
  animation: rotateReverse 6s infinite linear;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotateReverse {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* Egg animations */
.egg {
  animation: verticalFloat 5s infinite ease-in-out, randomFloat 10s infinite ease-in-out alternate;
}

@keyframes verticalFloat {
  0%, 100% {
    transform: translateY(-3px) translate3d(0, 0, 0);
  }
  25% {
    transform: translateY(0px) translate3d(-3px, 5px, 0);
  }
  50% {
    transform: translateY(3px) translate3d(4px, -2px, 0);
  }
  75% {
    transform: translateY(0px) translate3d(-2px, -4px, 0);
  }
  100% {
    transform: translateY(-3px) translate3d(5px, 3px, 0);
  }
}