* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
h1,
h2,
h3,
p,
button {
  margin-bottom: 1rem;
  font-weight: bold;
  font-family: "Epilogue", sans-serif;
}
h1 {
  text-decoration: underline;
  font-size: 75px;
  font-family: "Epilogue", sans-serif;
}

/* Navbar
/* Add a black background color to the top navigation */
.topnav {
  background-color: #4b4376;
  overflow: hidden;
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: bold;
  font-style: normal;
  align-items: center; /* prevents image from stretching navbar */
  height: 50px; /* fixed navbar height */
  justify-content: center; /* horizontal centering */
  font-family: "Epilogue", sans-serif;
}

/* Style the links inside the navigation bar */
.topnav a {
  float: left;
  color: #000000;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* Change the color of links on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Add a color to the active/current link */
.topnav a.active {
  background-color: #ffeb00;
  color: rgb(0, 0, 0);
}
/* Right-aligned section inside the top navigation */
.topnav-right {
  float: right;
}
.bi-person-circle {
  transform: scale(1.5);
  width: 25px;
  height: 20px;
}

/* The hero image */
.hero-image {
  /* Use "linear-gradient" to add a darken background effect to the image (photographer.jpg). This will make the text easier to read */

  /* Set a specific height */
  height: 75vh;

  /* Position and center the image to scale nicely on all screens */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
  width: 100%;
  background: black;
  padding: 40px 0;
}

/* Place text in the middle of the image */
.hero-text {
  text-align: center;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
}
body {
  background-color: #1a1a1d;
}

/* Icon Buttons */
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem; /* space between buttons */
  margin-top: 1rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #000000;
  color: #ffffff;
}

.btn-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background-color: #1a1a1a;
  color: #ffeb00;
}
.button-text {
  font-family: "Epilogue", sans-serif;

  font-optical-sizing: auto;
  font-weight: bold;
  font-style: normal;
  padding: 10px 10px;
  text-align: center;
  display: inline-block;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #17153b;
  color: white;
}
.button-text:hover {
  transform: translateY(-5px);
  background-color: #ffeb00;
  color: #000000;
}
.planet-track1 {
  display: flex;
  width: max-content;
  animation: scrollPlanetsLeft 20s linear infinite;
}

.planet-track4 {
  display: flex;
  width: max-content;
  animation: scrollPlanetsRight 20s linear infinite;
  animation-delay: 0.5s;
  transform: translateX(-100%);
  margin-bottom: 50px;
}
.bottom-planet-tracks {
  position: absolute;
  bottom: 0; /* stick to the bottom of the hero */
  left: 0;
}

.planet {
  font-size: 80px;
  margin-right: 80px;
  color: white;
}

/* Infinite left-to-right scroll */
@keyframes scrollPlanetsLeft {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(110%);
  }
}
@keyframes scrollPlanetsRight {
  0% {
    transform: translateX(110%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.credit {
  text-align: center;

  color: white;
  font-family: "Quicksand", sans-serif;
  font-optical-sizing: auto;
  font-weight: bold;
  text-decoration: underline;
  margin-top: 30px;
}

.logo {
  height: 50px; /* fits inside 60px navbar */
  width: auto;
  object-fit: contain;
  transform: translate(0px, -10px); /* X = left, Y = down */
}

.center-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  color: #000;
  margin-top: 8px;
}
.finisher-header {
  width: 100%;
  height: 550px;
  position: relative;
  border: 4px solid purple; /* Starting border */

  box-sizing: border-box;
  overflow: hidden;
  animation: borderPulse 3s infinite alternate;
}
@keyframes borderPulse {
  0% {
    border-color: rgb(82, 0, 82);
  }
  100% {
    border-color: black;
  }
}
.center-title {
  margin-top: 10px;
}
.hamburger {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  padding: 12px 16px;
}

/* Responsive text resizing */
@media (max-width: 768px) {
  h1 {
    font-size: 40px;
  }

  .center-title {
    font-size: 16px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin-top: 12px;
  }

  .hero-text p {
    font-size: 14px;
    padding: 0 10px;
  }

  .hero-text h2 {
    font-size: 18px;
  }

  .button-text {
    font-size: 14px;
    padding: 8px 12px;
  }

  /* Show hamburger */
  .hamburger {
    display: block;
    float: right;
  }

  /* Hide topnav-right by default */
  .topnav-right {
    display: none;
    flex-direction: column;
    background-color: #4b4376;
    position: absolute;
    top: 50px;
    right: 0;
    width: 100%;
    text-align: center;
    z-index: 99;
  }

  /* When active (via JS), show menu */
  .topnav-right.show {
    display: flex;
  }

  .topnav a {
    float: none;
    display: block;
    width: 100%;
  }

  .topnav {
    position: relative;
    flex-direction: column;
  }

  .logo {
    height: 40px;
    transform: translate(0px, -5px);
  }
}
/* Hide hamburger on desktop */
.hamburger {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  position: absolute;
  right: 16px;
  top: 10px;
  z-index: 100;
}

/* Mobile styles */
@media (max-width: 768px) {
  .topnav {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: auto;
  }

  .center-title {
    font-size: 16px;
    margin-top: 4px;
    margin-bottom: 8px;
  }

  .topnav-right {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #4b4376;
    text-align: center;
  }

  .topnav-right a {
    padding: 12px;
    border-top: 1px solid #333;
    color: white;
  }

  .topnav-right.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}
.topnav.menu-open {
  overflow: visible; /* ✅ only active when menu is open */
}
