* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  transition: background-color 0.3s ease-in-out;
}

/* light mode */
:root {
  --text: #000000;
  --background: #ffffff;
  --primary: #d3dbf3;
  --secondary: #95abc6;
  --accent: #40a5a4;
  --footer: linear-gradient(
    0deg,
    rgba(166, 187, 250, 1) 0%,
    rgba(211, 219, 243, 1) 100%
  );
}


body {
  font-family: "Poppins";
  background-color: var(--background);
}

a {
  text-decoration: none;
  color: var(--text);
  position: relative;
}

li {
  list-style-type: none;
}

/* navigation bar css -------------------------------------------------------------------------- */

nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-bottom: 3px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  background-color: var(--background);
  position: fixed;
  z-index: 3;
  font-size: 1.2rem;
}

/* Spreading line animation on hover */
li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease-in-out;
}

li a:hover::after {
  width: 100%; /* Makes the line expand */
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
}

.logo-image {
  width: 7rem;
  height: 4.5rem;
  padding: 1rem;
  transition: 0.3s ease;
}

nav ul {
  display: flex;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0 1.5rem;
  font-weight: bold;
}

.nav-links-mobile {
  display: none;
}

.dark-mode button {
  border: none;
  outline: none;
  background: none;
  font-size: 2rem;
  transition: 0.3s ease;
  cursor: pointer;
}

.dark-mode button:hover {
  transform: rotate(-90deg);
}

.dark-mode-mobile {
  border: none;
  font-weight: bold;
}

.dark-mode-mobile button {
  padding: 0.5rem;
  border-radius: 0.5rem;
}

@media (max-width: 960px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
  }

  nav {
    justify-content: space-between;
  }

  .dark-mode {
    display: none;
  }

  nav.toggle {
    .logo-image {
      display: none;
    }

    .nav-links {
      display: none;
    }

    .nav-links-mobile {
      display: flex;
      flex-wrap: wrap;
      padding: 0.3rem;
      font-size: 1rem;
    }

    .nav-links-mobile li {
      padding: 0.5rem;
    }
  }
}
/* end of navigation bar css -------------------------------------------------------------------------- */
.shapes {
  position: absolute;
  opacity: 20%;
  z-index: 0;
}

.shape-1 {
  height: 11rem;
  width: 11rem;
  background-color: var(--secondary);
  top: 50%;
  right: 5%;
  animation: floating 7s ease-in infinite;
}

.shape-2 {
  height: 10rem;
  width: 10rem;
  background-color: var(--secondary);
  top: 20%;
  animation: floating 10s ease infinite;
}

.shape-3 {
  height: 12rem;
  width: 12rem;
  background-color: var(--secondary);
  top: 50%;
  left: 5%;
  animation: floating 10s ease-in infinite;
}

.shape-4 {
  height: 8rem;
  width: 8rem;
  background-color: var(--accent);
  right: 50%;
  bottom: 50%;
  animation: floating 9s ease-in infinite;
}

.shape-5 {
  height: 8rem;
  width: 8rem;
  background-color: var(--accent);
  left: 20%;
  top: 20%;
  animation: floating 9s ease-in infinite;
}

.shape-6 {
  position: absolute;

  height: 8rem;
  width: 8rem;
  background-color: var(--accent);
  left: 70%;
  top: 140%;
  animation: floating 9s ease-in infinite;
}

.shape-7 {
  height: 9rem;
  width: 9rem;
  background-color: var(--accent);
  left: 30%;
  top: 160%;
  animation: floating 8s ease-in-out infinite;
}

.shape-8 {
  height: 7rem;
  width: 7rem;
  background-color: var(--secondary);
  right: 15%;
  top: 165%;
  animation: floating 11s ease infinite;
}

.shape-9 {
  height: 10rem;
  width: 10rem;
  background-color: var(--secondary);
  left: 10%;
  top: 200%;
  animation: floating 12s ease-in infinite;
}

.shape-10 {
  height: 6rem;
  width: 6rem;
  background-color: var(--accent);
  right: 40%;
  top: 350%;
  animation: floating 10s ease-in infinite;
}

.shape-11 {
  height: 8rem;
  width: 8rem;
  background-color: var(--secondary);
  left: 10%;
  top: 100%;
  animation: floating 12s ease-in-out infinite;
}

.shape-12 {
  height: 5rem;
  width: 5rem;
  background-color: var(--accent);
  right: 25%;
  top: 180%;
  animation: floating 8s ease infinite;
}

.shape-13 {
  height: 7rem;
  width: 7rem;
  background-color: var(--primary);
  left: 30%;
  top: 250%;
  animation: floating 15s ease-in-out infinite;
}

.shape-14 {
  height: 6rem;
  width: 6rem;
  background-color: var(--secondary);
  right: 50%;
  top: 320%;
  animation: floating 10s ease;
}
/* SECTION 1 NG PAGE KO */

.section-1 {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: start;
  flex-wrap: wrap;
  align-items: center;
  color: white;
  position: relative;
  height: 80vh;
  width: 100%;
}



.i-fit {
  border-right: 3px solid;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 2s steps(5), cursor 0.4s step-end infinite alternate;
}

@keyframes cursor {
  50% {
    border-color: transparent;
  }
}

@keyframes floating {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5rem);
  }

  100% {
    transform: translateY(0);
  }
}

.section-1 video {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  border-bottom: 5px solid var(--accent);
}

.video-wrapper {
  position: absolute;
  width: 100%;
  height: 80%; 
  overflow: hidden;
  z-index: 1;
  object-fit: cover;
  
}


.welcome-message {
  text-align: center;
  max-width: 40%;
  margin: 0 auto;
  
}

.welcome-message h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  animation: slide 1s ease-in-out;
}

.welcome-message p {
  position: relative;
  z-index: 1;
  font-size: clamp(0.8rem, 2vw, 1.3rem);
  animation: slide 0.8s ease-in-out;
}

.section-1 img {
  width: 35rem;
  max-width: 100%;
}

.section-1 .welcome-message button {
  position: relative;
  z-index: 1;
  padding: clamp(.5rem, 2vw, 1rem);
  font-size: clamp(.5rem, 2vw, 1rem);
  margin: 1rem 0 0 0;
  font-weight: bolder;
  border-radius: .5rem;
  transition: 0.2s ease-in;
  cursor: pointer;
  border: 1px solid black;
  animation: slide 0.7s ease-in-out;
}

.section-1 button:hover {
  background-color: var(--secondary);
}

@media (max-width: 960px) {

  .welcome-message {
    
    max-width: 80%;
    margin: 0 auto;
    
  }


  .shapes {
    display: none;
  }
}

/* END OF SECTION 1 PAGE --------------------------------------------------------------------------*/

/* SECTION 2 NG PAGE KO */

.section-2 {
  scroll-margin-top: 10rem;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  color: var(--text);
}

.exercise-message {
  z-index: 1;
  background-color: var(--primary);
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2);
  justify-content: center;
  border-radius: 2rem;
  padding: 0.5rem;
}

.exercise-message h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  text-align: center;
}

.exercise-message p {
  font-size: clamp(1rem, 2.5vw, 1rem);
  text-align: center;
}

.muscles {
  margin-top: 2rem;
  display: flex;
  justify-content: space-evenly;
  text-align: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1 0 clamp(250px, 30%, 350px);
}

.muscles div {
  position: relative;
}

.muscles a img {
  flex-shrink: 0;
  display: flex;
  width: clamp(15rem, 20vw, 20rem);
  height: clamp(9rem, 20vw, 10rem);
  transition: 0.2s ease-in;
  border-radius: 1rem;
  margin: 0 1rem;
  border: 1px solid black;
  background-color: white;
  z-index: 1;
}

.muscles div:hover a img {
  opacity: 0.3; /* Fades but remains visible */
}

.explore-more {
  font-weight: bolder;
  text-align: center;
  align-items: center;
  flex-direction: column;
}

.muscles p {
  color: var(--text);
  position: absolute;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* teknik para ma perfectly centered */

  font-weight: bold;
  font-size: 1.5rem;
  z-index: 0;
  text-align: center;
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
}

.muscles div:hover p {
  opacity: 1;
}

.exercise-message button {
  padding: 1rem;
  font-size: .8rem;
  margin: 1.5rem 0;
  font-weight: bold;
  border-radius: 1rem;
  transition: 0.2s ease-in;
  cursor: pointer;
  transition: 0.3s ease-in;
  border: 1px solid black;
}

.exercise-message button:hover {
  background-color: var(--secondary);
}

/* end of section 2 --------------------------------------------------- */

/* section 3 */
.section-3 {
  padding: clamp(1rem, 5vw, 4rem);
  background-color: var(--background);
  text-align: center;
  color: var(--text);
  scroll-margin-top: 7rem;
}

.nutrition-header h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  margin-bottom: 0.5rem;
}

.nutrition-header p {
  font-size: clamp(1rem, 2.5vw, 1rem);
  margin-bottom: 2rem;
}

.foods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2vw, 2rem);
  margin-bottom: 2rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.cards {
  border: 1px solid var(--text);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex: 1 0 clamp(250px, 30%, 350px);
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1rem, 2.5vw, 2rem);
  transition: transform 0.3s ease;
  z-index: 2;
}

.cards:hover {
  transform: translateY(-5px);
}

.cards img {
  aspect-ratio: 1/1;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  object-fit: cover;
  margin-bottom: 1rem;
}

.cards h3 {
  font-size: clamp(1.25rem, 3vw, 0.1rem);
  margin-bottom: 0.5rem;
}

.cards p {
  font-size: clamp(0.9rem, 2.5vw, 0.2rem);

  text-align: left;
}

.read-more h2 {
  font-size: clamp(1.25rem, 4vw, 2rem);
}

.read-more button {
  padding: 1rem;
  font-size: .8rem;
  margin: 1rem 0 0 0;
  font-weight: bold;
  border-radius: 1rem;
  transition: 0.2s ease-in;
  cursor: pointer;
  transition: 0.3s ease-in;
  border: 1px solid black;
}

.read-more button:hover {
  background-color: var(--secondary);
}

/* Optional: Fine-tune small screens */
@media (max-width: 600px) {
  .cards {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* end of section 3 ---------------------- */

/* section 4*/

.section-4 {
  padding: 0;
  width: 100%;
  color: var(--text);
  margin: 3rem 0;
}

.influencers-message {
  text-align: center;
}

.influencers-message h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.3rem);
}

.influencers-message p {
  font-size: clamp(0.7rem, 2.5vw, 1rem);
}

.influencers {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin: 1rem 0 0 0;
  gap: 2rem;
  flex-wrap: wrap;
}

.middle-message {
  font-size: clamp(0.7rem, 2vw, 1.3rem);
  max-width: 30rem;
  text-align: center;
}

.influencer img {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: clamp(12rem, 20vw, 25rem);
  height: clamp(12rem, 20vw, 25rem);
  border-radius: 2rem;
  border: 1px solid var(--text);
}

.influencer-names {
  text-align: center;
  font-size: clamp(.5rem, 2.5vw, 1rem);

}

@media (max-width: 1240px) {
  .section-4 {
    margin: 4rem 0 0 0;
  }
}

@media (max-width: 575px) {
}
/* end of section 4 ---------------------------------- */
/* footer  */

footer {
  z-index: 3;
  background: var(--footer);
  padding: 2rem;
  color: var(--text);
  margin-top: 0rem;
  width: 100%;
  height: auto;
}

.footer-1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  /* No changes to desktop layout */
}

footer p {
  text-align: center;
  margin-bottom: 1rem;
}

.icons {
  text-align: center;
  color: var(--text);
}

.icons img {
  margin: 0 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
}

.icons img:hover {
  transform: scale(1.2);
}

.links {
  padding: 1rem;
  border-radius: 1rem;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.footer-separator {
  background-color: var(--text);
  width: 80%;
  height: 2px;
  margin: 2rem auto;
}

footer h2 {
  margin-bottom: 1rem;
}

footer li {
  margin: 0.5rem 0;
}

footer .contacts img {
  margin: 0 1rem;
}

.credits {
  text-align: center;
  font-size: clamp(0.5rem, 2vw, 0.8rem);
}

@media (max-width: 1240px) {
  footer h1 {
    font-size: 1rem;
  }

  footer li,
  footer p {
    font-size: 0.8rem;
  }
}

@media (max-width: 575px) {
  footer h1 {
    font-size: 0.8rem;
  }

  footer li,
  footer p {
    font-size: 0.6rem;
  }

  footer .contacts img {
    display: none;
  }

  .contacts {
    text-align: center;
  }
  
  .footer-1 {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-1 > div {
    margin: 1rem 0;
  }
  
  .footer-separator {
    width: 90%;
    margin: 1.5rem auto;
  }
  
  .icons {
    margin-top: 1rem;
  }
}


/* appear kapag mag scroll */
@keyframes appear {
  from {
    transform: scale(0.4);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes appearSlide {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* slide from left to right  */
@keyframes slide {
  from {
    transform: translateX(-20rem);
    opacity: 0.5;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide2 {
  from {
    transform: translateX(20rem);
    opacity: 0.5;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* fade in lang */
@keyframes appearFade {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

iframe {
  width: clamp(250px, 20vw, 400px);
  height: clamp(150px, 20vw, 200px);
}

.muscle-page {
  font-size: clamp(.8rem, 2vw, 1.2rem);
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
  color: var(--text);
  flex-direction: column;
  gap: 3rem;
  margin: 4rem 0;
}

.muscle-page img {
  width: clamp(8rem, 20vw, 13rem);
  border: 2px solid var(--text);
  border-radius: 0.5rem;
}

.exercises-variations {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text);
  background-color: var(--primary);
  gap: 2rem;
  width: 80%;
  border-top: 0.5rem solid var(--accent);
  z-index: 2;
  padding-bottom: 1rem;
  flex-wrap: wrap;
  
}

.exercises-cards {
  flex-wrap: wrap;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.exercises-cards h4 {
  background-color: var(--secondary);
}

.exercise-profile {
  text-align: start;
}

.separator {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text);
  margin: 5rem 0;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid var(--text);
  margin: 0 1rem;
}

.separator span {
  font-weight: bold;
  font-size: clamp(0.5rem, 2vw, 1rem);
}

.featured-articles {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  font-size: clamp(0.5rem, 2vw, 1rem);
  color: var(--text);
}

.featured-articles div {
  max-width: clamp(100px, 60vw, 350px);
  margin: 0 auto;
  position: relative;
  padding-bottom: 5rem;
}

.featured-articles img {
  aspect-ratio: 16 / 9;
  width: clamp(50px, 60vw, 350px);
  height: auto;
  object-fit: cover;
}

.btn {
  border-bottom: 2px solid var(--accent);
  font-weight: bold;
  position: absolute;
  bottom: 0;
  left: 0;
}

.tiny-text {
  font-size: smaller;
  color: var(--accent);
}

@media (max-width: 1240px) {
  .container {
    width: 80%;
    margin: auto;
    color: var(--text);
    letter-spacing: 0.1rem;
  }
}
