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

body {
  font-family: "Poppins", sans-serif;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

h1,
h2 {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 1.5px;
}

body,
html {
  overflow-x: hidden;
}

p {
  font-family: "Poppins", sans-serif;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
}

header {
  background-color: transparent;
  padding-top: 2%;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-img {
  max-height: 75px;
  width: auto;
}

nav .logo a {
  font-family: "Montserrat", sans-serif;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
  padding-left: 30px;
}

#nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-grow: 1;
}

#nav-links li {
  display: inline-block;
}

#nav-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 15px;
  transition: all 0.3s ease;
  position: relative;
}

#nav-links li a:hover {
  color: #199eec;
}

#nav-links li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 2000;
}

.menu-toggle i {
  font-size: 24px;
  color: white;
  transition: transform 0.3s ease;
}

.menu-toggle i.fa-times {
  font-size: 28px;
}

/* Mobile Menu */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
  }

  nav ul.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  nav ul li a {
    font-size: 22px;
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
    margin-top: 30px;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  nav ul .social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
  }

  .social-media a {
    font-size: 20px;
  }

  header .social-media {
    display: none;
  }
}

header.scrolled nav ul li a {
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.hero {
  background: url("./img/beach.jpg") center/cover no-repeat;
  min-height: 100vh;
  padding-top: 40%;
  padding-left: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    background: url("./img/running-circles-cover-art.jpeg") center/cover no-repeat;
    min-height: 100vh;
  }
}


@media (max-width: 768px) {
  .hero {
    background-position: 48% center;
  }

  img {
    width: 100%;
    padding-left: 0;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
}

.hero-text {
  z-index: 1;
  animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 40px;
}

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

section {
  padding: 80px 20px;
}

h2 {
  font-size: 2.8rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 1.5px;
}

.social-media {
  display: flex;
  gap: 20px;
}

.social-media a {
  color: #fff;
  font-size: 18px;
  transition: color 0.3s ease;
}

.social-media a:hover {
  color: #199eec;
}

header .social-media {
  display: flex;
  gap: 20px;
  position: relative;
  right: 20px;
  justify-content: flex-end;
}

.social-icon svg path {
  fill: white;
  transition: fill 0.3s ease;
}

.social-icon:hover svg path {
  fill: #199eec;
}

@media (max-width: 768px) {
  header .social-media {
    display: none;
  }

  nav ul .social-media {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
  }

  nav ul .social-media a {
    font-size: 24px;
    color: #fff;
  }

  nav ul .social-media a:hover {
    color: #199eec;
  }
}

.social-media-top {
  padding-right: 100px;
}

.logo img {
  padding-left: 50px;
  height: 120px;
  width: auto;
}

@media (max-width: 1200px) {
  .social-media {
    padding-right: 20px;
  }
  .logo img {
    padding-left: 20px;
  }
}

@media (max-width: 1100px) {
  .social-media {
    padding-right: 0px;
  }

  .logo img {
    padding-left: 0px;
  }
}

@media (max-width: 768px) {
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px 0px 0px;
  }

  .logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10px;
  }

  .logo img {
    padding-left: 0;
    margin: 0;
    height: 100px;
  }

  .menu-toggle {
    display: block;
    position: relative;
    right: 0;
    top: 0;
    align-self: flex-start;
  }

  header {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 1100px) {
  .hero {
    padding-top: 74%;
    padding-left: 45%;
  }
}

@media (max-width: 900px) {
  .hero {
    padding-top: 90%;
  }
}

@media (max-width: 800px) {
  .hero {
    padding-top: 100%;
  }
}

@media (max-width: 665px) {
  .hero {
    padding-top: 120%;
  }
}

@media (max-width: 500px) {
  .hero {
    padding-top: 160%;
  }
}

/* Font size adjustments for smaller screens */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 18px;
  }
}

.newsletter {
  background-color: #9bc5db;
  padding: 60px 30px;
  color: #ffffff;
  margin: 0 auto;
  text-align: center;
}

.newsletter form {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  padding-bottom: 15px;
}

.newsletter input,
.newsletter select {
  background: transparent;
  border: none;
  border-bottom: 1px solid #ffffff;
  color: #ffffff;
  padding: 8px;
  margin: 10px;
  width: 250px;
  font-size: 1rem;
  text-align: center;
  transition: border-color 0.3s ease;
}

.newsletter input:focus,
.newsletter select:focus {
  outline: none;
  border-bottom: 1px solid #ffffff;
}

.newsletter input[type="checkbox"] {
  width: auto;
}

.newsletter input::placeholder {
  color: #ffffff;
  opacity: 1;
}

.newsletter label {
  font-size: 0.9rem;
  color: #ffffff;
}

.newsletter button {
  background: transparent;
  border: 1px solid #ffffff;
  padding: 10px 30px;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.newsletter button:hover {
  background-color: #ffffff;
  color: #333333;
}

/* Footer Enhancements for Dark Aesthetic */
footer {
  background-color: #1b1b1b;
  color: #cccccc;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

footer .social-media {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

footer .social-media a {
  color: #cccccc;
  font-size: 22px;
  transition: color 0.3s ease;
}

footer .social-media a:hover {
  color: #ffffff;
}

footer p {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #777;
}

footer a {
  color: #777;
  text-decoration: none;
}

footer a:hover {
  color: #cccccc;
  text-decoration: underline;
}

/* Project Container */
.project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

/* Individual Project */
.project {
  text-align: center;
  flex: 1 1 45%;
  max-width: 450px;
}

@media (max-width: 768px) {
  .project {
    flex: 1 1 100%;
  }
}

/* Container for the images to handle rotation */
.project-img-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
  perspective: 1000px;
  margin: 0 auto;
}

/* Project Images */
.project-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
}

.project h3 a {
  text-decoration: none;
  color: #333;
  margin-left: 5px;
  font-size: 1.2rem;
}

.project h3 a:hover {
  color: #199eec;
}

/* Popup Message Styling */
#popup-message {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #9bc5db;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1;
  width: max-content;
  text-decoration: none;
  animation: slideIn 0.5s ease-out;
}

/* Link Styling */
#popup-message a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

#popup-message a:hover {
  text-decoration: underline;
}

/* Close Button Styling */
#close-popup {
  background: transparent;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

#close-popup:hover {
  color: #eaeaea;
}

/* Slide-In Animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Styling for the videos section */
.video-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 150px;
  padding: 40px 20px;
}

/* Video wrapper */
.video-wrapper {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 9/16;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (min-width: 768px) {
  .video-container {
    justify-content: center;
  }

  .video-wrapper {
    width: calc(30% - 20px);
  }
}

#music {
  background-color: #f7f7f7;
  color: #333;
}

#tour {
  background-color: #9bc5db;
  color: #fff;
}

#videos {
  background-color: #f7f7f7;
  color: #333;
}

#newsletter {
  background-color: #9bc5db;
}

#popup-message {
  display: none;
}

.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
}

/* Show the toast message */
.toast.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/* Animations */
@keyframes fadein {
  from {
    bottom: 0;
    opacity: 0;
  }
  to {
    bottom: 30px;
    opacity: 1;
  }
}

@keyframes fadeout {
  from {
    bottom: 30px;
    opacity: 1;
  }
  to {
    bottom: 0;
    opacity: 0;
  }
}
