/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

:root {
  --primary-fonts: "Inter", sans-serif;
  --secondary-font: "Roboto", sans-serif;
  --dark-col: #161616;
  --white-col: #fff;
}

body {
  font-family: var(--primary-fonts);
  overflow-x: hidden;
  color: var(--dark-col);
}

li {
  list-style: none;
}

a {
  text-decoration: none;
  display: inline-block;
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--dark-col);
  transition: 1s;
  z-index: 2000;
  text-align: center;
}

.intro-header {
  color: var(--white-col);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 7.8rem;
  font-style: italic;
  font-weight: 700;
}

.intro-load {
  position: relative;
  bottom: -24px;
  opacity: 0;
}

.intro-load.active {
  animation: moveUp 1s ease forwards;
  transition: all 0.3s;
}

@keyframes moveUp {
  0% {
    bottom: -50px;
    opacity: 0;
  }
  100% {
    bottom: 0;
    opacity: 1;
  }
}

.intro-load.fade {
  bottom: 150px;
  opacity: 0;
  transition: ease-in-out 0.5s;
}

.come-from-right {
  position: relative;
  animation: fadeRight 1.2s linear forwards;
}

@keyframes fadeRight {
  0% {
    opacity: 0;
    right: -100%;
  }
  100% {
    opacity: 1;
    right: 0;
  }
}

/* Hero */
.header-container {
  padding-top: 20px;
}
.header {
  position: relative;
  margin-bottom: 4.8rem;
  z-index: 1;
}
.header.active {
  animation: moveUp 3s ease-out forwards;
}

.header span {
  background: url("../assets/space-stars.png");
  background-size: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  pointer-events: none;
  animation: fade 3s ease-out forwards;
  z-index: -1;
  opacity: 0.7;
}

@keyframes fade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

.header__nav {
  opacity: 0;
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  border: 1px solid transparent;
  border-radius: 300px;
  background: #d3d3d340;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  animation: moveTop 1s linear forwards;
  animation-delay: 4.5s;
  box-shadow: inset 0 0 20px rgba(88, 88, 88, 0.016);
  z-index: 100;
}

.logo a {
  color: var(--dark-col);
  font-size: 2rem;
  font-weight: 600;
}

.list__item {
  display: inline-block;
  margin-left: 2rem;
}

.list__item a {
  font-size: 1.4rem;
  color: var(--dark-col);
}

.contact__link,
.listen__now {
  border: none;
  background-color: transparent;
  cursor: pointer;
  background-color: rgba(248, 172, 30, 0.658);
  padding: 1.2rem 4rem;
  border-radius: 100px;
  transition: all 0.4s;
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--dark-col);
}

.contact__link:hover,
.listen__now:hover {
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.07);
}

@keyframes moveTop {
  0% {
    bottom: -30px;
    opacity: 0;
  }
  100% {
    bottom: 0px;
    opacity: 1;
  }
}

@keyframes moveDown {
  0% {
    bottom: 30px;
    opacity: 0;
  }
  100% {
    bottom: 0px;
    opacity: 1;
  }
}

.mobile-nav {
  font-size: 2.4rem;
  cursor: pointer;
  display: none;
}

.main__hero {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  margin-top: 80px;
}

.main__hero p {
  opacity: 0;
  position: relative;
  display: inline-block;
  background-color: #020202c6;
  color: var(--white-col);
  padding: 0.8rem 4rem;
  border-radius: 100px;
  margin-bottom: 10px;
  font-size: 1.4rem;
  animation: moveDown 1s ease forwards;
  animation-delay: 5s;
}

.main__hero h1 {
  position: relative;
  z-index: 4;
  opacity: 0;
  font-size: 10rem;
  letter-spacing: -0.25px;
  margin-bottom: 30px;
  animation: fadeOut 1.2s ease forwards;
  animation-delay: 4.8s;
}

.listen__now {
  opacity: 0;
  animation: moveTop 1s linear forwards;
  animation-delay: 5.2s;
}

@keyframes fadeOut {
  0% {
    opacity: 0;
    transform: scale(1.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    position: relative;
    z-index: 4;
  }
}

.header__nav__mobile {
  display: none;
}

/* About Me */
.section-container {
  max-width: 900px;
  width: 90%;
  margin: 0 auto;
  padding: 4.8rem 0;
}

.section-container h2 {
  opacity: 0;
  font-size: 3.2rem;
  margin-bottom: 10px;
}

.section-container h2.active {
  animation: moveTop 1s linear forwards;
}

.section-container .sub-heading {
  opacity: 0;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #ffb01d;
  margin-bottom: 5px;
  font-weight: bolder;
}
.section-container .sub-heading.active {
  animation: moveTop 1.2s linear forwards;
}
.flex {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(2, 1fr);
  align-content: center;
  align-items: center;
  justify-content: center;
}
.section-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: moveTop 1s linear forwards;
  animation-delay: 6s;
}
.flex img {
  overflow-x: hidden;
  opacity: 0;
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  align-items: center;
  justify-content: center;
}

.flex img:nth-child(2) {
  height: 100%;
}
#my-music .flex img {
  height: 100%;

  object-position: top;
}

.flex img.active {
  animation: fadeOut 1s ease forwards;
}
.main__text__heading {
  opacity: 0;
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
}
.main__text__heading.active {
  animation: moveTop 1s linear forwards;
}

.about__me {
  opacity: 0;
  line-height: 26px;
  font-size: 1.3rem;
  font-family: var(--secondary-font);
}
.about__me.active {
  animation: moveTop 1s linear forwards;
  animation-delay: 0.2s;
}
.about__me span {
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
}
#about-me {
  padding-top: 40px;
}

.my__music__btn {
  display: inline-block;
  width: 50%;
  text-align: center;
  margin: 20px 0;
  animation-delay: 0.2s;
}

/* Responsive */
@media (max-width: 30em) {
  p {
    line-height: 2;
  }
  .header span {
    display: none;
  }
  /* Nav list fix */
  .nav__list {
    display: none;
  }
  .header__nav__mobile {
    display: block;
    width: 80%;
    margin: 0 auto;
  }
  .nav__list__mobile {
    position: fixed;
    z-index: 5000;
    height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 80%;
    top: 10%;
    margin: 0 auto;
    background-color: #e9e9e9;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: inset 0 0 20px rgba(88, 88, 88, 0.016);
    transition: all 0.4s;
  }

  .nav__list__mobile.open {
    height: 240px;
    padding: 1.2rem;
    z-index: 5000;
  }
  .mobile-nav {
    display: block;
  }

  .main__hero p {
    background-color: transparent;
    color: var(--dark-col);
    font-size: 1.2rem;
  }

  .main__hero h1 {
    font-size: 5rem;
  }

  .list__item {
    display: block;
    margin: 20px;
  }

  .flex {
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
  }

  section {
    padding-top: 50px;
  }
}

.social-section {
  background: rgba(22, 22, 22, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 20px;
  margin: 4rem auto;
  max-width: 800px;
  color: #fff;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
}

.social-section h2 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.social-section p {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 30px;
}

.icon {
  width: 40px;
  height: 40px;
  font-size: 2rem;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: linear-gradient(to right, #444, #111);
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.icon:hover {
  transform: scale(1.1);
  background: linear-gradient(to right, #f3a712, #ff0055);
}

/* Optional: individual branding (just text in this example) */
.twitter {
  background: #1da1f2;
}
.instagram {
  background: radial-gradient(
    circle at 30% 30%,
    #fdf497 0%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 100%
  );
}
.youtube {
  background: #ff0000;
}
.facebook {
  background: #4267b2;
}
.tiktok {
  background: #000;
  color: #fff;
}

.footer {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 2rem;
  font-size: 1.4rem;
  margin-top: 4rem;
}

/* Button */
.open-modal-btn {
  padding: 1rem 2.5rem;
  font-size: 1.4rem;
  border: none;
  border-radius: 50px;
  background: #f3a712;
  color: #111;
  cursor: pointer;
  transition: 0.3s ease;
}
.open-modal-btn:hover {
  background: #ff5500;
  color: #fff;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Modal Box */
.modal-content {
  background: rgba(22, 22, 22, 0.85);
  border-radius: 12px;
  padding: 3rem;
  max-width: 90%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  color: #fff;
  position: relative;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2.5rem;
  cursor: pointer;
}

/* Form Styling */
.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  border: none;
  background: #2a2a2a;
  color: #fff;
  font-size: 1.4rem;
  outline: none;
}

.contact-form button {
  width: 100%;
  padding: 1rem;
  border-radius: 8px;
  background: #f3a712;
  color: #111;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.contact-form button:hover {
  background: #ff5500;
  color: #fff;
}
