* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: white;
  overflow-x: hidden;
}

.page-container {
  min-height: 100vh;
  background: linear-gradient(to bottom, #0f172a, #1e3a8a, #000000);
}

/* Navigation */
.navbar {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-container {
  position: relative;
}

.logo {
  width: auto;
  height: 60px;
  max-width: 180px;
  border-radius: 8px;
  background: transparent;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5)) drop-shadow(0 0 20px rgba(59, 130, 246, 0.25)) brightness(1.08);
  transition: all 0.3s ease;
  object-fit: contain;
}

.logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.6)) drop-shadow(0 0 28px rgba(59, 130, 246, 0.35)) brightness(1.12);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: bold;
}

.brand-text p {
  font-size: 0.875rem;
  color: #93c5fd;
}

.nav-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 200px;
}

.constellation-icon {
  position: relative;
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dome-icon {
  font-size: 2rem;
  z-index: 2;
  animation: pulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.6));
}

.constellation-icon .star {
  position: absolute;
  color: #93c5fd;
  font-size: 1rem;
  animation: twinkle 2s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(147, 197, 253, 0.8));
}

.star-1 {
  top: 5px;
  left: 20px;
  animation-delay: 0s;
}

.star-2 {
  top: 15px;
  right: 25px;
  animation-delay: 0.3s;
}

.star-3 {
  bottom: 10px;
  left: 15px;
  animation-delay: 0.6s;
}

.star-4 {
  bottom: 5px;
  right: 20px;
  animation-delay: 0.9s;
}

.star-5 {
  top: 50%;
  left: 5px;
  animation-delay: 1.2s;
}

.star-6 {
  top: 50%;
  right: 5px;
  animation-delay: 1.5s;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* Animated Buttons */
.animated-btn {
  background: linear-gradient(45deg, #dc2626, #ef4444);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.animated-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transition: all 0.6s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.animated-btn:hover::before {
  width: 300px;
  height: 300px;
}

.animated-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.btn-primary {
  background: linear-gradient(45deg, #2563eb, #3b82f6);
}

.btn-primary:hover {
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid #ef4444;
  color: #f87171;
}

.btn-secondary:hover {
  background: #ef4444;
  color: white;
}

.large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 5rem 1rem;
  text-align: center;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.2) 0%, rgba(0, 0, 0, 0.8) 70%),
    url("images/planetarium-dome.jpg") center / cover;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent, rgba(0, 0, 0, 0.4));
}

.hero-content {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
}

.hero-logo-wrap {
  margin-bottom: 1.5rem;
}

.hero-logo {
  width: auto;
  height: clamp(140px, 28vw, 220px);
  max-width: min(480px, 90vw);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5)) drop-shadow(0 0 40px rgba(59, 130, 246, 0.3)) brightness(1.1);
}

.hero-badge {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  display: inline-block;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: bold;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleGlow 3s ease-in-out infinite alternate, float 6s ease-in-out infinite;
}

@keyframes titleGlow {
  0% {
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.5));
  }
  100% {
    filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.8));
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-subtitle {
  font-size: clamp(1.25rem, 4vw, 2rem);
  color: #93c5fd;
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.125rem;
  color: #d1d5db;
  max-width: 48rem;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

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

/* Animated Cards */
.animated-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.animated-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.animated-card:hover::before {
  left: 100%;
}

.animated-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

/* Star Animation */
.animated-card[data-stars="true"] {
  position: relative;
}

.animated-card[data-stars="true"]:hover::after {
  content: "✨";
  position: absolute;
  top: 20%;
  right: 20%;
  font-size: 1.5rem;
  animation: starBurst 0.8s ease-out;
  pointer-events: none;
}

@keyframes starBurst {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.5) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(360deg);
  }
}

/* Create multiple stars */
.animated-card[data-stars="true"]:hover {
  animation: createStars 0.8s ease-out;
}

@keyframes createStars {
  0% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  25% {
    box-shadow: 10px 10px 0 rgba(255, 255, 255, 0.8), -10px -10px 0 rgba(255, 255, 255, 0.6), 15px -15px 0
      rgba(255, 255, 255, 0.4);
  }
  50% {
    box-shadow: 20px 20px 0 rgba(255, 255, 255, 0.6), -20px -20px 0 rgba(255, 255, 255, 0.4), 25px -25px 0
      rgba(255, 255, 255, 0.2);
  }
  100% {
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Sections */
.fundraising {
  padding: 4rem 0;
  background: rgba(0, 0, 0, 0.3);
}

.progress-card {
  max-width: 64rem;
  margin: 0 auto;
  background: linear-gradient(45deg, rgba(59, 130, 246, 0.2), rgba(147, 51, 234, 0.2));
}

.card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.card-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.card-header p {
  color: #93c5fd;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: #d1d5db;
}

.progress-bar {
  width: 100%;
  height: 1rem;
  background: #374151;
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  border-radius: 0.5rem;
  animation: progressFill 2s ease-out;
}

@keyframes progressFill {
  0% {
    width: 0%;
  }
  100% {
    width: 0%;
  }
}

.progress-amounts {
  display: flex;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.raised {
  color: #60a5fa;
}

.goal {
  color: #a78bfa;
}

.progress-text {
  text-align: center;
  color: #d1d5db;
}

.about,
.shows,
.visit,
.support {
  padding: 5rem 0;
}

.video-section {
  padding: 5rem 0;
  background: rgba(0, 0, 0, 0.3);
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

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

.video-thumbnail-link {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.video-thumbnail {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.video-play-button {
  display: none;
}

.shows {
  background: rgba(0, 0, 0, 0.2);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.25rem;
  color: #93c5fd;
  max-width: 48rem;
  margin: 0 auto;
}

.features-grid,
.shows-grid,
.support-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-card .card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3,
.show-card h3,
.support-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.show-details {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  color: #d1d5db;
  font-size: 0.875rem;
}

.visit-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.visit-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.visit-content > div {
  margin-bottom: 1.5rem;
}

.visit-content p {
  margin-bottom: 0.5rem;
}

.support {
  background: linear-gradient(45deg, rgba(220, 38, 38, 0.1), rgba(59, 130, 246, 0.1));
  text-align: center;
}

.support-card {
  text-align: center;
  cursor: pointer;
  color: inherit;
}

.support-card:hover {
  color: inherit;
}

.support-card h3,
.support-card .support-tier-name {
  font-size: 1.5rem;
  color: #a78bfa;
  margin-bottom: 1rem;
}

.support-card h4 {
  color: #a78bfa;
  margin-bottom: 1rem;
}

.donate-button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 3rem;
}

.commitment-section {
  padding: 4rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.commitment-card {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.commitment-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  color: #93c5fd;
}

.commitment-card p {
  color: #d1d5db;
  line-height: 1.7;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(59, 130, 246, 0.3);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: auto;
  height: 32px;
  max-width: 96px;
  border-radius: 4px;
  background: transparent;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.4)) drop-shadow(0 0 12px rgba(59, 130, 246, 0.2)) brightness(1.05);
}

.footer-section:first-child {
  text-align: left;
}

.footer-section:last-child {
  text-align: right;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.contact-info p {
  margin-bottom: 0.25rem;
  line-height: 1.2;
  color: #9ca3af;
}

.footer-bottom {
  border-top: 1px solid rgba(59, 130, 246, 0.3);
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Header fixes */
  .nav-container {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .nav-brand {
    flex: 1;
    min-width: 0;
  }

  .brand-text h1 {
    font-size: 1rem;
  }

  .brand-text p {
    font-size: 0.75rem;
  }

  .logo {
    height: 40px;
    width: auto;
    max-width: 110px;
  }

  .nav-graphic {
    display: none;
  }

  .donate-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .donate-btn .btn-icon {
    font-size: 0.875rem;
  }

  .hero {
    padding: 3rem 1rem;
    min-height: auto;
  }

  .hero-content {
    padding: 0 1rem;
    max-width: 100%;
  }

  .hero-logo-wrap {
    margin-bottom: 1rem;
    overflow: hidden;
  }

  .hero-logo {
    height: clamp(72px, 22vw, 110px);
    max-width: min(260px, 88vw);
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }

  .hero-description {
    font-size: 1rem;
  }

  /* Video section - hide iframe on mobile, show thumbnail */
  .video-section {
    padding: 3rem 1rem;
  }

  .video-wrapper iframe {
    display: none;
  }

  .video-thumbnail-link {
    display: block;
  }

  .video-thumbnail {
    display: block;
  }

  .video-play-button {
    display: flex;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(220, 38, 38, 0.9);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  }

  .video-play-button::before {
    content: "▶";
    color: white;
    font-size: 2rem;
    margin-left: 4px;
  }

  .video-thumbnail-link:hover .video-play-button {
    background: rgba(220, 38, 38, 1);
    transform: translate(-50%, -50%) scale(1.1);
  }

  /* Footer fixes */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 100%;
  }

  .footer-section:first-child,
  .footer-section:last-child {
    text-align: center;
  }

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

  .features-grid,
  .shows-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .visit-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .progress-card,
  .commitment-card,
  .support-card {
    min-width: 0;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Stagger animation delays */
.features-grid .animated-card:nth-child(1) {
  animation-delay: 0.1s;
}
.features-grid .animated-card:nth-child(2) {
  animation-delay: 0.2s;
}
.features-grid .animated-card:nth-child(3) {
  animation-delay: 0.3s;
}

.shows-grid .animated-card:nth-child(1) {
  animation-delay: 0.1s;
}
.shows-grid .animated-card:nth-child(2) {
  animation-delay: 0.2s;
}
.shows-grid .animated-card:nth-child(3) {
  animation-delay: 0.3s;
}
.shows-grid .animated-card:nth-child(4) {
  animation-delay: 0.4s;
}
.shows-grid .animated-card:nth-child(5) {
  animation-delay: 0.5s;
}
.shows-grid .animated-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Ripple effect */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Login gate / modal */
.login-gate-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #0f172a, #1e3a8a, #000000);
  padding: 1rem;
}
.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
}
.login-modal {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}
.login-modal h2 {
  margin-bottom: 1.25rem;
  color: #93c5fd;
  font-size: 1.5rem;
  text-align: center;
}
.login-modal input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  font-size: 1rem;
}
.login-modal input[type="password"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.login-modal .btn-login {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(45deg, #2563eb, #3b82f6);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}
.login-modal .btn-login:hover { opacity: 0.95; }
.login-modal .login-error {
  color: #f87171;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  text-align: center;
}
.login-modal .login-locked {
  color: #fca5a5;
  text-align: center;
  padding: 1rem 0;
}
.locked-page {
  text-align: center;
  color: #93c5fd;
  max-width: 400px;
}
.locked-page h1 { font-size: 1.5rem; margin-bottom: 1rem; }
.locked-page p { color: #d1d5db; }
