/* General */

body {
  margin: 0;
  padding-bottom: 120px;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 500;
  background: #0b0b0b;
  color: #ffffff;
}

/* Header */
header {
  background: #0b0b0b;
  padding: 15px 25px;
  display: flex;
  align-items: center;
}

/* Logo section */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 120px;
  width: auto;
  margin-right: 14px;
  transition: transform 0.25s ease;
}

.logo-container img:hover {
  transform: translateY(-4px) rotate(-5deg) scale(1.05);
}

.brand-name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
}

/* Main content */
.content {
  padding: 60px;
  text-align: center;
}

/* Footer */
.site-footer {
  width: 100%;
  padding: 25px 20px;
  text-align: center;
  background: #0b0b0b; /* same as page */
  border-top: 1px solid #1a1a1a;
  font-size: 13px;
  color: #777;
  position: fixed;
  bottom: 0;
  left: 0;
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links a {
  color: #777;
  text-decoration: none;
  margin: 0 6px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.divider {
  color: #444;
  margin: 0 4px;
}

.footer-copy {
  color: #555;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero {
  min-height: calc(
    100vh - 160px
  ); /* adjust for header+footer, slightly smaller */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto; /* ✅ force center container */
}

.hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 50px; /* increased from 40px */
}

/* CTA buttons section */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.cta-btn {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: #ffffff;
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
  border-radius: 2px;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
  background: #111;
}

.cta-btn.secondary {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: #ffffff;
  background: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease,
    color 0.2s ease;
  border-radius: 2px;
}

.cta-btn.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
  background: #111;
}

/* Desktop spacing */
@media (min-width: 640px) {
  .cta-group {
    flex-direction: row;
    justify-content: center;
  }
}

/* ===== Modal (place OUTSIDE any media query) ===== */
#demo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999; /* above fixed footer/header */
}
#demo-modal[style*="display: none"] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 92%);
  background: #0f0f0f;
  border: 1px solid #232323;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  padding: 26px 22px;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  border: 0;
  color: #bdbdbd;
  font-size: 22px;
  cursor: pointer;
}

.modal-sub {
  margin: 4px 0 16px;
  color: #a7a7a7;
  font-size: 13px;
}

/* Form inside modal */
.form-group {
  margin-bottom: 14px;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 12px;
  color: #cfcfcf;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 12px;
  background: #0b0b0b;
  color: #fff;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3a3a3a;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.cta-btn.submit {
  width: 100%;
  margin-top: 8px;
}
.modal-response {
  margin-top: 10px;
  font-size: 13px;
  color: #9affb4;
}
.modal-response.err {
  color: #ff9a9a;
}
/* 8 Ball Icon Section */
.pool-section {
  display: flex;
  justify-content: center;
  margin: 40px auto 30px;
  max-width: 900px;
}

.eightball-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  text-decoration: none;
}

.eightball-icon {
  width: 180px;
  height: 180px;
  transition: transform 0.3s ease;
}

.eightball-link:hover {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.6));
}

/* Animate logo on load */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.eightball-link {
  animation: fadeInScale 0.8s ease-out;
}

/* Animated logo - 25% less movement */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.eightball-link {
  animation: fadeInScale 0.8s ease-out;
}

/* Floating animation for logo - reduced movement */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-7.5px);
  } /* Reduced from -10px to -7.5px */
}

.eightball-icon {
  animation: float 3s ease-in-out infinite;
}

/* Stars canvas */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.site-footer {
  width: 100%;
  padding: 25px 20px;
  text-align: center;
  background: #0b0b0b;
  border-top: none; /* Remove the border line */
  font-size: 13px;
  color: #777;
  position: fixed;
  bottom: 0;
  left: 0;
}
.eightball-icon {
  width: 220px;
  height: 220px;
  transition: transform 0.3s ease;
}
