* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cinzel', serif;
  background: #211d5a;
  color: #f5e6b8;
}

nav {
  background: #0f0d23;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  border-bottom: 2px solid #d4af37;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 50px;    /* Set a fixed height */
  width: fit-content;     /* Keeps the aspect ratio perfect */
  display: block;  /* Removes extra space at the bottom of images */
}

nav h1 {
  color: #d4af37;
  font-size: 22px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 14px;
  transition: 0.3s;
}

nav a:hover {
  color: #d4af37;
}

.hero-img{
  width: 100%;
  height: auto;
  display: block;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
}

.btn-primary {
  background: #6a4cff;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  display: inline-block;
  margin-top: 10px;
}

.gold-divider {
  height: 10px;
  background: linear-gradient(to right, #b8860b, #ffd700, #e2a304);
}

.section-dark {
  padding: 100px 60px;
  background: url("images/galaxy.jpg") center/cover no-repeat;
  text-align: center;
}

.section-dark h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.core-img {
  width: 100%;
  height: auto;
  display: block;
}


.badge-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.badge {
  width: 280px;
  background: #14122b;
  padding: 40px;
  border: 2px solid #d4af37;
  text-align: center;
}

.badge h3 {
  margin-bottom: 15px;
  color: #ffd700;
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  padding: 100px 60px;
}

.gallery-card {
  background: #16152f;
  padding: 20px;
}

.gallery-card img {
  width: 100%;
  margin-bottom: 15px;
}

.sorting-hero {
  height: 500px;
  background: url("images/sorting-bg.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sort-btn {
  padding: 14px 30px;
  border-radius: 30px;
  border: none;
  background: #6a4cff;
  color: white;
  margin-top: 20px;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }

  .hero {
    padding: 40px;
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }
}

.section-second {
  position: relative;
  width: 100%;          /* Forces the section to be full-width */
  overflow: hidden;     /* Hides any accidental scrollbars */
  line-height: 0;
}

.second-img {
  width: 100vw;         /* Forces the image to be exactly as wide as the screen */
  height: auto;         /* Keeps the picture from looking "squashed" */
  display: block;
  object-fit: cover;    /* Ensures it fills the space beautifully */
}

.overlay-btn {
  position: absolute;
  /* Use % for both so they scale perfectly with the stretching image */
  bottom: 25%;          
  left: 36%;
  transform: translate(-50%, 0); 
  transform: scale(1.5); 
  z-index: 10;
}

.btn-img {
  /* Scale the button based on screen width so it doesn't stay huge on small screens */
  width: 30vw;          
  max-width: 550px;     
  cursor: pointer;
  transition: 0.3s;
}

.btn-img:hover {
  transform: scale(1.05);
}