/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES CSS ===== */
:root {
  --header-height: 3rem;

  /* ========== Colors ========== */
  --hue-color: 220;
  --first-color: hsl(220, 69%, 61%);
  --first-color-second: hsl(220, 69%, 61%);
  --first-color-alt: hsl(220, 57%, 53%);
  --first-color-lighter: hsl(220, 92%, 85%);
  --title-color: hsl(220, 8%, 15%);
  --text-color: hsl(220, 8%, 45%);
  --text-color-light: hsl(220, 8%, 65%);
  --input-color: hsl(220, 70%, 96%);
  --body-color: hsl(220, 60%, 99%);
  --container-color: #fff;
  --scroll-bar-color: hsl(220, 12%, 90%);
  --scroll-thumb-color: hsl(220, 12%, 80%);

  /* ========== Font and typography ========== */
  --body-font: 'Inter', sans-serif;

  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /* ========== Font weight ========== */
  --font-medium: 500;
  --font-semi-bold: 600;

  /* ========== Margins Bottom ========== */
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --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;
}

/* Font size for large devices */
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/* ===== BASE ===== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== REUSABLE CSS CLASSES ===== */
.section {
  padding: 2rem 0 4rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: var(--mb-0-5);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
  text-align: center;
  color: var(--text-color-light);
}

.container {
  max-width: 768px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* ===== BUTTONS ===== */
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #FFF;
  padding: 1rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
  transition: .3s;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.button:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

.button--ghost {
  background-color: transparent;
  color: var(--first-color);
  border: 2px solid var(--first-color);
}

.button--ghost:hover {
  background-color: var(--first-color);
  color: #FFF;
}

/* ===== HEADER & NAV ===== */
.header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
  box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
  transition: .3s;
}

.nav {
  max-width: 968px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav__logo h2 {
  font-size: var(--h3-font-size);
  color: var(--first-color);
}

.nav__menu {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  padding: 2rem 1.5rem 4rem;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
  border-radius: 1.5rem 1.5rem 0 0;
  transition: .3s;
}

.nav__list {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: .3s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__close {
  position: absolute;
  right: 1.3rem;
  bottom: .5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--first-color);
}

.nav__close:hover {
  color: var(--first-color-alt);
}

.nav__toggle {
  font-size: 1.1rem;
  cursor: pointer;
}

.nav__toggle:hover {
  color: var(--first-color);
}

/* show menu */
.show-menu {
  bottom: 0;
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/* Change background header */
.scroll-header {
  box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
}

/* ===== HOME ===== */
.home {
  background: linear-gradient(135deg, var(--body-color) 0%, var(--first-color-lighter) 100%);
  padding: 4rem 0 2rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.home__container {
  gap: 1rem;
}

.home__data {
  grid-column: 1/3;
  padding-top: 2rem;
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-0-5);
  line-height: 1.2;
}

.home__title-color {
  color: var(--first-color);
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home__description {
  margin-bottom: var(--mb-2);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  line-height: 1.8;
}

.home__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.home__img {
  justify-self: center;
}

.home__blob {
  width: 200px;
  fill: var(--first-color);
}

.home__blob-img {
  width: 170px;
}

/* ===== SERVICES ===== */
.services {
  padding: 4rem 0;
  background-color: var(--container-color);
}

.services__container {
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
}

.services__card {
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 25px rgba(14, 36, 49, 0.15);
  transition: .3s;
  text-align: center;
  border: 1px solid var(--input-color);
}

.services__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 35px rgba(14, 36, 49, 0.2);
}

.services__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  border-radius: 50%;
  margin-bottom: var(--mb-1);
  color: #FFF;
}

.services__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
  color: var(--title-color);
}

.services__description {
  font-size: var(--small-font-size);
  color: var(--text-color);
  line-height: 1.6;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--first-color-lighter) 0%, var(--body-color) 100%);
}

.testimonials__container {
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial__card {
  background-color: var(--container-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 25px rgba(14, 36, 49, 0.15);
  transition: .3s;
  position: relative;
  overflow: hidden;
}

.testimonial__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
}

.testimonial__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 35px rgba(14, 36, 49, 0.2);
}

.testimonial__stars {
  color: #FFD700;
  font-size: 1.2rem;
  margin-bottom: var(--mb-1);
}

.testimonial__description {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  margin-bottom: var(--mb-1-5);
  line-height: 1.6;
  font-style: italic;
}

.testimonial__author {
  border-top: 1px solid var(--input-color);
  padding-top: var(--mb-1);
}

.testimonial__name {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-0-25);
}

.testimonial__job {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/* ===== ABOUT ===== */
.about {
  padding: 4rem 0;
  background-color: var(--container-color);
}

.about__container {
  row-gap: 2rem;
}

.about__img {
  justify-self: center;
}

.about__blob {
  width: 200px;
  fill: var(--first-color);
}

.about__description {
  text-align: center;
  margin-bottom: var(--mb-2-5);
  color: var(--text-color);
  line-height: 1.8;
}

.about__info {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2-5);
}

.about__info-item {
  text-align: center;
}

.about__info-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__info-name {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

/* ===== CONTACT ===== */
.contact {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--body-color) 0%, var(--first-color-lighter) 100%);
}

.contact__container {
  row-gap: 3rem;
}

.contact__info {
  display: grid;
  gap: 1.5rem;
}

.contact__card {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  box-shadow: 0 4px 25px rgba(14, 36, 49, 0.15);
  transition: .3s;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 35px rgba(14, 36, 49, 0.2);
}

.contact__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  border-radius: 50%;
  color: #FFF;
  flex-shrink: 0;
}

.contact__card-data {
  text-align: left;
}

.contact__card-title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  margin-bottom: var(--mb-0-25);
.contact__card-description {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.contact__link {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
}

.contact__link:hover {
    color: var(--first-color);
    background-color: var(--first-color-lighter);
    transform: translateY(-1px);
} line-height: 1.4;
}

/* ===== FOOTER ===== */
.footer {
  padding-top: 2rem;
  background-color: var(--title-color);
  color: #FFF;
}

.footer__container {
  row-gap: 3.5rem;
}

.footer__content {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  row-gap: 2rem;
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-75);
  color: #FFF;
}

.footer__description {
  margin-bottom: var(--mb-2);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-direction: column;
  row-gap: .5rem;
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  transition: .3s;
}

.footer__link:hover {
  color: var(--first-color-lighter);
}

.footer__info {
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer__copy {
  font-size: var(--smaller-font-size);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* ===== SCROLL UP ===== */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--first-color);
  opacity: .8;
  padding: 0 .3rem;
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
}

.scrollup:hover {
  background-color: var(--first-color-alt);
}

.scrollup__icon {
  font-size: 1.5rem;
  color: #FFF;
}

.show-scroll {
  bottom: 5rem;
}

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar {
  width: .60rem;
  background-color: var(--scroll-bar-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-light);
}

/* ===== MEDIA QUERIES ===== */
/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .nav__menu {
    padding: 2rem .25rem 4rem;
  }

  .nav__list {
    column-gap: 0;
  }

  .home__buttons {
    flex-direction: column;
  }

  .home__buttons .button {
    width: 100%;
  }

  .services__container {
    grid-template-columns: max-content;
    justify-content: center;
  }

  .about__info {
    flex-direction: column;
    row-gap: 2rem;
  }

  .contact__card {
    flex-direction: column;
    text-align: center;
  }

  .contact__card-data {
    text-align: center;
  }
}

/* For medium devices */
@media screen and (min-width: 568px) {
  .home__container,
  .about__container,
  .contact__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .home__data {
    grid-column: initial;
  }

  .home__img {
    order: 1;
    justify-self: center;
  }

  .about__container {
    align-items: center;
  }

  .footer__content {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  body {
    margin: 0;
  }

  .section {
    padding: 6rem 0 2rem;
  }

  .section__subtitle {
    margin-bottom: 4rem;
  }

  .header {
    top: 0;
    bottom: initial;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .header,
  .main,
  .footer__container {
    padding: 0 1rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
    column-gap: 1rem;
  }

  .nav__icon,
  .nav__close,
  .nav__toggle {
    display: none;
  }

  .nav__list {
    display: flex;
    column-gap: 2rem;
  }

  .nav__menu {
    margin-left: auto;
    position: initial;
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
  }

  .home {
    padding: 8rem 0 2rem;
  }

  .home__container {
    row-gap: 5rem;
  }

  .home__data {
    align-self: center;
  }

  .home__img {
    align-self: center;
  }

  .home__blob {
    width: 270px;
  }

  .about__container {
    column-gap: 5rem;
  }

  .about__img {
    width: 350px;
  }

  .services__container {
    grid-template-columns: repeat(3, 218px);
    justify-content: center;
  }

  .services__icon {
    font-size: 2rem;
  }

  .services__card {
    padding: 3rem 2rem;
  }

  .contact__container {
    grid-template-columns: 1fr;
  }

  .contact__info {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__content {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__bg {
    padding: 3rem 0 3.5rem;
  }

  .footer__links {
    flex-direction: column;
    column-gap: 2rem;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .header,
  .main,
  .footer__container {
    padding: 0;
  }

  .home__blob {
    width: 320px;
  }

  .home__social {
    transform: translateX(-6rem);
  }

  .services__container {
    grid-template-columns: repeat(3, 238px);
  }

  .contact__info {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
}

/* ===== ANIMATIONS ===== */
@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);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease-out;
}

.animate-left.animated {
  opacity: 1;
  transform: translateX(0);
}

.animate-right {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s ease-out;
}

.animate-right.animated {
  opacity: 1;
  transform: translateX(0);
}