/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* Variables CSS */
:root {
  --header-height: 3.5rem;

  /* Colors */
  --primary-color: #00b894;
  --secondary-color: #0984e3;
  --white-color: #ffffff;
  --black-color: #000000;
  --text-color: #2d3436;
  --text-color-light: #636e72;
  --body-color: #ffffff;
  --container-color: #ffffff;

  /* Font and typography */
  --body-font: "Poppins", sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.813rem;

  /* Font weight */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /* Margins Bottom */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-25: 1.25rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* z index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Responsive typography */
@media screen and (max-width: 992px) {
  :root {
    --biggest-font-size: 2rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

/* BASE */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
textarea,
select {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

h1,
h2,
h3 {
  color: var(--text-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* REUSABLE CSS CLASSES */
.container {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.grid {
  display: grid;
}

.section {
  padding: 6.5rem 0 2rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--text-color);
  text-align: center;
  margin-bottom: var(--mb-3);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--primary-color);
  text-align: center;
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1);
}

/* BUTTON */
.button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white-color);
  padding: 1rem 2rem;
  font-weight: var(--font-medium);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.button:hover::before {
  left: 100%;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 184, 148, 0.3);
}

/* HEADER */
.header {
  width: 100%;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: background-color 0.3s ease;
}

.header.scroll-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo h3 {
  color: var(--primary-color);
  font-weight: var(--font-bold);
}

.nav__list {
  display: flex;
  column-gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  font-weight: var(--font-medium);
  transition: color 0.3s ease;
  position: relative;
}

.nav__link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--primary-color);
}

.nav__toggle,
.nav__close {
  display: none;
}

/* HERO */
.hero {
  padding-top: calc(var(--header-height) + 2rem);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__container {
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero__data {
  padding-right: 2rem;
}

.hero__title {
  font-size: var(--biggest-font-size);
  margin-bottom: var(--mb-1);
  background: linear-gradient(135deg, var(--text-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero__description {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-2-5);
  color: var(--text-color-light);
  line-height: 1.5;
}

.hero__button {
  font-size: var(--h3-font-size);
  padding: 1.25rem 2.5rem;
}

.hero__img {
  justify-self: center;
}

.hero__svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ABOUT */
.about {
  background-color: var(--white-color);
}

.about__container {
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__data {
  text-align: left;
}

.about__description {
  margin-bottom: var(--mb-2);
  color: var(--text-color-light);
  line-height: 1.6;
}

.about__icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about__icon {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.1), rgba(9, 132, 227, 0.1));
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.about__icon:hover {
  transform: translateY(-5px);
}

.about__icon-img {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--mb-1);
}

.about__icon-img svg {
  width: 100%;
  height: 100%;
}

.about__icon-title {
  font-size: var(--h3-font-size);
  color: var(--text-color);
}

/* SERVICES */
.services {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.services__content {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.services__card {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.services__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.1), rgba(9, 132, 227, 0.1));
  transition: left 0.5s ease;
}

.services__card:hover::before {
  left: 0;
}

.services__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 184, 148, 0.2);
}

.services__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--mb-1);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.services__icon svg {
  width: 40px;
  height: 40px;
}

.services__icon svg path,
.services__icon svg rect,
.services__icon svg line,
.services__icon svg circle {
  stroke: var(--white-color);
}

.services__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  position: relative;
  z-index: 1;
}

.services__description {
  color: var(--text-color-light);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* FEATURES */
.features {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white-color);
}

.features .section__subtitle,
.features .section__title {
  color: var(--white-color);
}

.features__slider {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: var(--mb-2);
}

.features__slide {
  display: none;
  animation: fadeIn 0.5s ease;
}

.features__slide.active {
  display: block;
}

.features__slide h3 {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1);
  color: var(--white-color);
}

.features__slide p {
  font-size: var(--h3-font-size);
  line-height: 1.6;
  opacity: 0.9;
}

.features__dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.features__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.features__dot.active {
  background-color: var(--white-color);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TESTIMONIALS */
.testimonials {
  background-color: var(--white-color);
}

.testimonials__content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.testimonial__card {
  display: none;
  text-align: center;
  padding: 2rem;
  animation: slideIn 0.5s ease;
}

.testimonial__card.active {
  display: block;
}

.testimonial__avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--mb-1);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
}

.testimonial__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial__stars {
  color: #ffd700;
  font-size: 1.5rem;
  margin-bottom: var(--mb-1);
}

.testimonial__description {
  font-size: var(--h3-font-size);
  color: var(--text-color-light);
  margin-bottom: var(--mb-1-5);
  line-height: 1.6;
  font-style: italic;
}

.testimonial__name {
  font-size: var(--h3-font-size);
  color: var(--text-color);
  margin-bottom: var(--mb-0-25);
}

.testimonial__job {
  font-size: var(--small-font-size);
  color: var(--primary-color);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* BOOKING */
.booking {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.booking__form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.booking__group {
  position: relative;
}

.booking__input {
  width: 100%;
  padding: 1rem;
  background-color: var(--white-color);
  border: 2px solid transparent;
  border-radius: 0.5rem;
  font-size: var(--normal-font-size);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.booking__input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.booking__input:focus + .booking__label,
.booking__input:not(:placeholder-shown) + .booking__label {
  top: -0.5rem;
  left: 1rem;
  font-size: var(--small-font-size);
  color: var(--primary-color);
  background-color: var(--white-color);
  padding: 0 0.5rem;
}

.booking__label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-color-light);
  font-size: var(--normal-font-size);
  pointer-events: none;
  transition: all 0.3s ease;
}

.booking__textarea {
  min-height: 120px;
  resize: vertical;
}

.booking__select {
  cursor: pointer;
}

.booking__form .button {
  justify-self: center;
  font-size: var(--h3-font-size);
  padding: 1.25rem 3rem;
}

/* FOOTER */
.footer {
  background-color: var(--text-color);
  color: var(--white-color);
  padding: 3rem 0 1rem;
}

.footer__container {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: var(--mb-2);
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  color: var(--primary-color);
}

.footer__description,
.footer__link {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--primary-color);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* MEDIA QUERIES */
@media screen and (max-width: 992px) {
  .container {
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }

  .hero__container,
  .about__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__data {
    text-align: center;
    padding-right: 0;
  }

  .hero__img {
    order: -1;
  }

  .about__data {
    text-align: center;
  }

  .about__icons {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .services__content {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    background-color: var(--white-color);
    width: 80%;
    height: 100%;
    top: 0;
    right: -100%;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    padding: 4rem 0 0 3rem;
    transition: right 0.3s ease;
  }

  .nav__menu.show-menu {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    row-gap: 1.5rem;
  }

  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
  }

  .nav__toggle {
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
  }

  .header.scroll-header .nav__toggle {
    color: var(--text-color);
  }

  .section {
    padding: 4.5rem 0 2rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 1rem);
  }

  .about__icons {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .services__content {
    grid-template-columns: 1fr;
  }

  .booking__form {
    gap: 1.5rem;
  }

  .footer__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media screen and (max-width: 576px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__description {
    font-size: var(--normal-font-size);
  }

  .services__card {
    padding: 1.5rem;
  }

  .features__slide h3 {
    font-size: var(--h3-font-size);
  }

  .features__slide p {
    font-size: var(--normal-font-size);
  }

  .testimonial__description {
    font-size: var(--normal-font-size);
  }
}

/* Animation classes */
.animate__fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.animate__fadeInLeft {
  animation: fadeInLeft 0.8s ease-out;
}

.animate__fadeInRight {
  animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
