:root {
    --primary-color: #28746a;
    --background-color: #fff;
    --text-color: #333;
    --secondary-color:#993ce5;
  }

*{
  box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: roboto, sans-serif;
    margin: 0;
}

.wrapper {
  padding: 0 10vw;
}


h1,h2 {
    color: var(--primary-color);
    text-align: center;
}

h1 {
  font-size: 3rem;
  margin: 3rem 0 0 0;
}

h2 {
  font-size: 3.5rem;
}

header p {
  text-align: center;
  color: var(--secondary-color);
  margin: 0vw 0 1.5vw 8vw;
}

section {
    display: flex;
    justify-content: space-between;
}

a {
    text-decoration: none;
    color: inherit;
  }

.hp-img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: 4px;
}

.white-icon {
  color: var(--background-color);
  background-color: transparent;
  opacity:0.6;
  transition: 0.3s ease;
}

.white-icon:hover {
  opacity:1;
}

.nav-menu {
  display: flex;
  justify-content: center;
  background-color: var(--primary-color);
  margin-bottom: 1em;
  border-radius: 4px;
}

.menu {
  display: flex;
  list-style: none; 
  padding: 0;
  color: var(--background-color);
}

.link { 
  text-decoration: none;
  letter-spacing: 0.2rem;
  padding: 0.8rem 1.2rem; 
  display: inline-block;
  border-radius: 4px;
}

.link.active {
  color: var(--primary-color);
  background-color: var(--background-color);
}

.link:hover {
  color: var(--primary-color);
  background-color: var(--background-color);
  transition: 0.3s ease;
}

.menu:hover .link:not(:hover) {
  color: var(--background-color);
  background-color: transparent;
}

.icon-section {
  font-size: 4rem;
  text-align: center;
}

.coach  img {
    width: 150px;
    height: 150px;
}

hr {
  width: 70vw;
  height: 0.35vh;
  border-radius: 10vh;
  background: var(--secondary-color);
}

.square {
width: 50%;
padding: 1em;
display: flex;
flex-direction: column;
justify-content: center;
height: 70vh;
align-items: center;
border-radius: 4px;
}

.green {
  background-color: var(--primary-color);
  color: var(--background-color);
  padding: 1em 6vw; 
  font-size: 1.25rem;
}

.white {
  background-color: var(--background-color);
  color: var(--primary-color);
}

.coach {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

.coach p {
    background-color: var(--primary-color);
    padding: 1em;
    border-radius: 4px;
    color: var(--background-color);
    max-width: 312px;
}

footer {
  background-color: var(--primary-color);
  padding: 3rem 0;
  margin-top:4em ;
}

footer ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
  gap: 1vh;
  padding: 0;
}
  
footer li {
  color: var(--background-color);
  transition: var(--transition-normal);
  opacity: 0.8;
  transition:0.3s ease;
}

footer li:hover {
  opacity: 1;
}
  
footer>div{
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.social {
  display: flex;
  justify-content: flex-end;
  gap: 1em;
  margin-right: 1em;
}
 
.btn-contact {
  display: flex;
}

.btn-link {
  border: none;
  background-color: var(--secondary-color);
  border-radius: 8px;
  padding: 0 2em;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: 0.3s ease;
}

.btn-pop {
  position: fixed;
  opacity: 1;
  border: 0px;
  color: var(--background-color);
  z-index: 1000;
  height: 4rem;
  width: 4rem;
  font-size: 1.5em;
  cursor: pointer;
  text-align: center;
  line-height: 1;
  vertical-align: middle;
  border-radius: 50px;
  background-color: var(--secondary-color);
  bottom: 5vh;
  left: 2vw;
  transition: ease 0.3s;
}

.btn-pop-animate {
  animation: btn-pop-scale 0.3s cubic-bezier(.4,2,.6,1) forwards;
}

@keyframes btn-pop-scale {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.link-list {
  display: none; 
  position: fixed;
  gap: 0.5em;
  flex-direction: column;
  bottom: 10vh;
  left: 6vw; 
  background-color: transparent;
  border-radius: 8px;
  padding: 1rem;
  z-index: 999;
}

.link-list a {
  display: block;
  margin: 0.5rem 0;
  color: var(--background-color);
  text-decoration: none;
}

.btn-link:hover {
  background-color: #6f24ac;
}

#contact {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#contact div {
    margin-bottom: 1.5rem;
}

#contact label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #28746a;
}

#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#contact input:focus,
#contact textarea:focus {
    border-color: #993ce5;
    outline: none;
}

#contact button {
    background-color: #28746a;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact button:hover {
    background-color: #216157;
}

#messageResult {
    margin-top: 1rem;
    color: #993ce5;
    font-weight: bold;
    text-align: center;
}

.img-comp-container {
  position: relative;
  height: 239px;
}

.img-comp-img {
  position: static;
  width: auto;
  height: auto;
  overflow: hidden;
}

.img-comp-img.img-comp-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  height: 100%;
}

.img-comp-slider {
  position: absolute;
  z-index: 3;
  cursor: ew-resize;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  opacity: 0.7;
  border-radius: 50%;
}

@media screen and (max-width: 370px) {
  img {
      width: 100px;
      height: 100px;
  }
}

@media screen and (max-width: 1024px) {
  .wrapper {
    padding: 0 2vw;
  }
  .square {
    height: auto;
    padding: 1em 1em;
  }
  .green {
    padding: 1em 2em;
    font-size: 1.1rem;
  }
  
  .link-list{
    bottom:9vh;
  }
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 2rem;
  }
  .hp-img {
    height: 250px;
  }
}

@media screen and (max-width: 768px) {
  .wrapper {
    padding: 0 5vw;
  }
  section {
    flex-direction: column;
    margin-bottom: 3em;
  }
  section {
    display: flex;
  }
  section .square.white {
    order: 1;
  }
  section .square.green {
    order: 2;
  }
  .square {
    width: 100%;
    height: auto;
    margin-bottom: 1em;
    padding: 1em 0.5em;
  }
  .green {
    padding: 1em 1em;
    font-size: 1rem;
  }
  .hp-img {
    height: 180px;
  }
  .nav-menu {
    margin: 1.5em 0 0.5em 0;
  }
  .menu {
    align-items: center;
    gap: 0.5em;
  }
  .link {
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
  }
  footer>div {
    gap: 1em;
  }
  .social {
    justify-content: center;
    margin-right: 0;
  }
  .btn-pop {
    left: 3vw;
    bottom: 3vh;
    width: 3rem;
    height: 3rem;
    font-size: 1.1em;
  }
  .link-list {
    left: 4vw;
    bottom: 7vh;
    padding: 0.5rem;
  }
}

@media screen and (max-width: 480px) {
  .wrapper {
    padding: 0 5vw;
  }
  h1 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0 0;
  }
  h2 {
    font-size: 1.2rem;
  }
  .hp-img {
    height: 175px;
  }
  .square {
    padding: 0.5em 0.2em;
  }
  .green, .white {
    font-size: 0.95rem;
    padding: 0.5em 1em;
  }
  #contact {
    padding: 1rem;
    font-size: 0.95rem;
  }
  #contact button {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
  .btn-pop {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1em;
  }
  .link-list {
    left: 10vw;
    bottom: 8vh;
    padding: 0.2rem;
  }
}