body {
  background-image: url("../img/galaxy4.webp");
  background-repeat: repeat; /* This is the default value */
  background-size: 50rem 50rem; /* width height */
  background-position: center top; /* Keep image centered on resize */

  color: white;
  display: flex;
  justify-content: center;

  width: 100vw;
  overflow-x: hidden;
}

.header-container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}
.main-container {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section {
  margin-bottom: 2rem;
}

.section-hero {
  /* background-color: red; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;

  align-self: center;
  scale: 0.9;
}

.hero-heading--01 {
  display: inline-block;
  color: #ffd700; /* golden yellow */

  text-shadow: 0 0 10px #ffd90088, 0 0 20px #ffa60069, 0 0 30px #ff8c00c0;

  font-weight: 600;
  letter-spacing: -0.1rem;

  border: 0.3rem solid #f9d949;
  border-radius: 1rem;
  padding: 0.2rem 1.6rem;

  box-shadow: 0 0 10px #ffd90052, 0 0 20px #ffa60099, 0 0 30px #ff8c007d;
}

.heading--01 {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.hero-text {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.6rem;
  text-shadow: 0 0 10px #ffffff88, 0 0 20px #ffffff69;
  line-height: 2.4rem;
}

/* CAROUSEL */

.section-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.heading--02 {
  margin-bottom: 2rem;
  text-transform: uppercase;
  font-size: 2.4rem;
  color: #ffd700; /* golden yellow */

  text-shadow: 0 0 10px #ffd90088, 0 0 20px #ffa60069, 0 0 30px #ff8c00c0;
}

/* Wrapper around carousel and arrows */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 160rem;

  margin: 0 auto;
}

/* Main carousel container */
.carousel-container {
  height: 46rem;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  gap: 3rem;
  padding: 2rem;
  background-color: transparent;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  justify-content: flex-start;

  scrollbar-width: none; /* Firefox */
}
.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Carousel item (each image wrapper) */
.carousel-item {
  flex: 0 0 auto;
  height: 100%;
  aspect-ratio: 948 / 1426; /* Vertical image aspect */
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  transform: scale(0.9); /* Default scale */
  scroll-snap-align: center;
  box-sizing: border-box;
}

/* Focused (centered) image is larger */
.carousel-item.focused {
  transform: scale(1.1);
  z-index: 1;
}

/* Image itself */
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Spacer to allow first/last image centering */
.carousel-spacer {
  flex: 0 0 8.5rem; /* Adjust this if your layout changes */
  height: 100%;
  pointer-events: none;
}

/* Arrow buttons container */
.carousel-arrows {
  position: absolute;
  bottom: -6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.5rem;
  z-index: 10;
}

/* Individual arrow button */
.arrow-button {
  background: white;
  border: none;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

/* Hover effect */
.arrow-button:hover {
  background: #f0f0f0;
}

/* Disabled arrows (when at start/end) */
.arrow-button:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* **** */
/* FORM */
/* **** */

.section-order {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8rem;
}

.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* height: 41rem; */

  position: relative;
  z-index: 2;
}

.form-wrapper {
  background: rgba(25, 25, 112, 0.9);
  border: 0.3rem solid #ffd700;
  border-radius: 1.5rem;
  padding: 0;
  width: 100%;
  max-width: 80rem;
  box-shadow: 0 0 0.3rem rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(0.1rem);
}

.tab-navigation {
  display: flex;
  border-bottom: 0.2rem solid #ffd700;
  border-radius: 1.5rem 1.5rem 0 0;
  overflow: hidden;
}

.tab-btn {
  flex: 1;
  padding: 2rem 3rem;
  background: rgba(30, 30, 150, 0.8);
  border: none;
  color: #ffd700;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border-right: 0.1rem solid #ffd700;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn:hover {
  background: rgba(50, 50, 180, 0.9);
  transform: translateY(-0.2rem);
}

.tab-btn.active {
  background: rgba(70, 70, 200, 1);
  box-shadow: inset 0 2px 10px rgba(255, 215, 0, 0.3);
}

.form-container {
  padding: 3rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.input-group label {
  color: #ffd700;
  font-weight: bold;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.input-group input,
.input-group textarea {
  padding: 1.5rem;
  border: 0.2rem solid #ffd700;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #ffed4e;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 1.5rem rgba(255, 215, 0, 0.3);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-footer {
  margin-top: 2rem;
}

.info-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-box {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.info-box label {
  color: #ffd700;
  font-weight: bold;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  text-align: center;
  padding: 1rem;
  background: rgba(30, 30, 150, 0.8);
  border-radius: 0.8rem;
  border: 0.2rem solid #ffd700;
}

.info-box input {
  padding: 1.2rem;
  border: 0.2rem solid #ffd700;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-align: center;
  font-weight: bold;
}

/* Cult Members Section */
.cult-members-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.member-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.control-btn {
  background: rgba(50, 150, 50, 0.8);
  border: 0.2rem solid #90ee90;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 0.6rem;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.control-btn:hover {
  background: rgba(50, 150, 50, 1);
  transform: scale(1.05);
}

.control-btn:disabled {
  background: rgba(100, 100, 100, 0.5);
  border-color: #666;
  cursor: not-allowed;
  transform: none;
}

.member-count {
  color: #ffd700;
  font-weight: bold;
  font-size: 14px;
}

#cult-members-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.member-input-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.member-input-group input {
  flex: 1;

  padding: 1.5rem;
  border: 0.2rem solid #ffd700;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.remove-member {
  background: rgba(150, 50, 50, 0.8);
  border: 0.2rem solid #ff6b6b;
  color: white;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.8rem;
  font-weight: bold;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-member:hover:not(:disabled) {
  background: rgba(150, 50, 50, 1);
  transform: scale(1.1);
}

.remove-member:disabled {
  background: rgba(100, 100, 100, 0.5);
  border-color: #666;
  cursor: not-allowed;
  transform: none;
}

.submit-section {
  padding: 2rem 3rem;
  border-top: 0.2rem solid #ffd700;
  background: rgba(20, 20, 100, 0.8);
  border-radius: 0 0 15px 15px;
}

.submit-btn {
  width: 100%;
  padding: 1.8rem;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  border: none;
  border-radius: 0.8rem;
  color: #1a1a70;
  font-size: 1.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(45deg, #ffed4e, #ffd700);
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 2rem rgba(255, 215, 0, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .tab-btn {
    padding: 1.5rem 2rem;
    font-size: 1.4rem;
  }

  .form-container {
    padding: 2rem;
  }

  .info-boxes {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

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

@media (max-width: 480px) {
  .tab-btn {
    padding: 12px 15px;
    font-size: 12px;
  }

  .member-input-group {
    flex-direction: column;
    gap: 10px;
  }

  .remove-member {
    align-self: flex-end;
    width: 35px;
    height: 35px;
  }
}

/* ************ */
/* SECTION LORE */
/* ************ */

.section-lore {
  margin-top: 12rem;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border: 0.3rem solid #ffd700;
  border-radius: 2rem;
  /* text-shadow: 0 0 10px #ffd90088, 0 0 20px #ffa60069, 0 0 30px #ff8c00c0; */
  box-shadow: 0 0 10px #ffd90052, 0 0 20px #ffa60099, 0 0 30px #ff8c007d;
}
