:root {
  --font-primary: "Lato", sans-serif;
  --primary-color: #4f46e5;
  --secondary-color: #9333ea;
  --white-color: #ffffff;
  --anchor-color: #111827;
  --color-text-light: #e5e7eb;
  --light-background: #ffffff26;
  --shadow-soft: 0 20px 50px #00000026;
  --radius-lg: 1rem;
  --linear-gradiant-btn: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  --linear-gradiant-bg: linear-gradient(
    135deg,
    #ed72ca7c,
    #a34bc686,
    #a34bc683
  );
}

*,
*::after,
*::before {
  padding: 0;
  margin: 0;
  box-sizing: inherit;
}
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  box-sizing: border-box;
  overflow-x: hidden;
  line-height: 1;
  width: 100vw;
  font-family: var(--font-primary);
}

/* ================ COMMON STYLES ================ */
a {
  text-decoration: none;
  color: inherit;
}
p {
  line-height: 1.45;
}
ul {
  list-style: none;
}
.d-flex {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.grid-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}
.grid-two {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 6rem;
}
.section-container {
  padding: 8rem 6rem;
  width: 100%;
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6rem;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white-color);
  box-shadow: var(--shadow-soft);
  z-index: 1000;
}
.navbar__logo {
  height: 100%;
}
.navbar__logo img {
  height: 100%;
  width: auto;
}
.navbar__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.navbar__links li a {
  text-decoration: none;
  font-size: 1.35rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--anchor-color);
  border-radius: 1.2rem;
  transition: all 0.3s ease;
}
.navbar__links li a:hover {
  background-image: url("./assets/button_bg.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white-color);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  cursor: pointer;
}
.hamburger img {
  width: 3rem;
  height: auto;
  transition: all 0.4s ease;
}
.side-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 60%;
  height: 100vh;
  background: var(--white-color);
  box-shadow: -2rem 0 4rem rgba(0, 0, 0, 0.15);
  padding: 3rem;
  transform: translateX(0);
  opacity: 0;
  transition: left 0.4s ease, opacity 0.3s ease;
  z-index: 2000;
}
.side-drawer .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5rem;
}
.side-drawer__logo img {
  height: auto;
  width: 70%;
}
.side-drawer.open {
  transform: translateX(0);
  opacity: 1;
  left: 0;
}
.side-drawer__close {
  background: none;
  border: none;
  font-size: 3rem;
  cursor: pointer;
}
.side-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.side-drawer ul li a {
  font-size: 1.8rem;
  text-decoration: none;
  color: var(--anchor-color);
  font-weight: 500;
}

.backdrop {
  position: fixed;
  inset: 0;
  background-image: url("assets/about_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1500;
  width: 100%;
}
.backdrop.show {
  opacity: 0.7;
  visibility: visible;
}

/* ================= HERO ================= */
.hero {
  margin-top: 5rem;
  width: 100%;
  background-image: url("./assets/home_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  color: var(--white-color);
}
.hero__content {
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
}
.hero__text h1 {
  font-size: 4rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 2rem;
}
.hero__text p {
  font-size: 1.6rem;
  margin-bottom: 3rem;
}
.hero__image img {
  width: 100%;
  height: auto;
}
.btn--hero {
  background-image: url("./assets/button_bg.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white-color);
  padding: 1.2rem 4rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  text-decoration: none;
}

/* ================= ABOUT ================= */
.about {
  width: 100%;
  background: #f9faff;
  background-image: url("./assets/about_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.about__text h2 {
  font-size: 3.6rem;
  font-weight: 800;
  color: #312e81;
  margin-bottom: 2rem;
}
.about__intro {
  font-size: 1.8rem;
  font-weight: 600;
  color: #4338ca;
  margin-bottom: 2rem;
}
.about__desc {
  font-size: 1.5rem;
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: 3rem;
}
.about__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.about__list li {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--anchor-color);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.about__list i {
  color: var(--primary-color);
  font-size: 1.8rem;
}
.about__image img {
  width: 100%;
  height: auto;
}

/* ================= SERVICES ================= */
.services {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background: var(--white-color);
}
.services__header {
  text-align: center;
  margin-bottom: 3.4rem;
}
.services__header h2 {
  font-size: 3.6rem;
  font-weight: 800;
  color: #312e81;
}
.services__header p {
  font-size: 1.6rem;
  color: #6b7280;
  margin-top: 1rem;
}

/* SERVICE CARD */
.service-card {
  background: var(--linear-gradiant-btn);
  background-image: url("./assets/service_card_bg_3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white-color);
  padding: 2.4rem;
  border-radius: 2.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover {
  transform: translateY(-1rem);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}
.service-card img {
  width: 100%;
  height: auto;
  margin-bottom: 1.2rem;
}
.service-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}
.service-card p {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}
.service-card ul {
  list-style: none;
}
.service-card ul li {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 2rem;
}
.service-card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #a5f3fc;
}
.service-btn {
  align-self: flex-start;
  background: var(--white-color);
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}

/* ================= TEAM ================= */
.team {
  position: relative;
}
.team__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background-image: url("./assets/content_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.team__content {
  position: relative;
  z-index: 2;
}
.team__header {
  text-align: center;
  color: var(--white-color);
  margin-bottom: 6rem;
}
.team__header h2 {
  font-size: 3.6rem;
  font-weight: 800;
}
.team__header p {
  font-size: 1.4rem;
  opacity: 0.9;
  margin-top: 1rem;
}
.team-card {
  background: var(--white-color);
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease;
}
.team-card:hover {
  transform: scale(1.02);
}
.team-card__img img {
  width: 100%;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
.team-card__info {
  padding: 2rem;
}
.team-card h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--anchor-color);
}
.team-card span {
  display: block;
  font-size: 1.4rem;
  margin: 0.5rem 0;
}
.team-card p {
  font-size: 1.3rem;
  color: #6b7280;
}

/* ================= TESTIMONIALS ================= */
.testimonials {
  text-align: center;
  background-image: url("./assets/about_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section-title {
  font-size: 2.4rem;
  margin-bottom: 3rem;
}
.testimonial-carousel {
  overflow: hidden;
  width: 100%;
  margin: auto;
}
.testimonial-track {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}
.testimonial-card {
  min-width: 100%;
  display: flex;
  align-items: center;
  border-radius: var(--radius-lg);
  color: var(--white-color);
}
.testimonial-card-img {
  width: 26rem;
  height: 26rem;
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
  object-fit: cover;
}
.testimonial-content-img {
  display: none;
}
.testimonial-content {
  position: relative;
  text-align: left;
  height: 100%;
  padding: 1rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
  background-color: var(--white-color);
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  border: 0.1rem solid rgba(0, 0, 0, 0.329);
  color: var(--anchor-color);
}
.testimonial-card-bg-1,
.testimonial-card-bg-2 {
  position: absolute;
  width: 26rem;
  height: 26rem;
  opacity: 0.5;
  z-index: 0;
}
.testimonial-card-bg-1 {
  bottom: -12rem;
  left: -12rem;
  transform: rotate(20deg);
}
.testimonial-card-bg-2 {
  top: -12rem;
  right: -14rem;
  transform: rotate(25deg);
}
.testimonial-content p {
  font-size: 1.4rem;
  line-height: 1.5;
}
.testimonial-content h4 {
  width: 100%;
  text-align: right;
  margin-top: 1rem;
  font-size: 1.4rem;
}
.testimonial-content span {
  font-size: 0.9rem;
  opacity: 0.9;
}
.testimonial-controls {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.testimonial-controls button {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #000;
  font-size: 1.4rem;
  background-image: url("./assets/arrow_btn_bg_img.png");
  background-size: cover;
  background-position: right;
  color: var(--white-color);
}

/* ================= CONTACT ================= */
.contact {
  position: relative;
}
.contact__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background-image: url("./assets/content_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.contact__content {
  position: relative;
  z-index: 2;
}
.contact__header {
  text-align: center;
  color: var(--white-color);
  margin-bottom: 6rem;
}
.contact__header h2 {
  font-size: 3.6rem;
  font-weight: 800;
}
.contact__header p {
  font-size: 1.4rem;
  opacity: 0.9;
  margin-top: 1rem;
}
.contact__grid {
  background: var(--white-color);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
  padding: 4rem;
  gap: 4rem;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  width: 100%;
}
.contact__form input,
.contact__form textarea {
  padding: 1.2rem 1.6rem;
  font-size: 1.4rem;
  border-radius: 0.8rem;
  border: 1px solid #e5e7eb;
  outline: none;
  font-family: inherit;
}
.contact__form input:focus,
.contact__form textarea:focus {
  border-color: var(--primary-color);
}
.contact__btn {
  margin-top: 1rem;
  align-self: flex-start;
  padding: 1.2rem 3rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white-color);
  border: none;
  border-radius: 2rem;
  cursor: pointer;
  background: var(--linear-gradiant-btn);
}
.contact__image img {
  width: 100%;
  height: auto;
}
.contact__image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.contact__image::before {
  content: "";
  position: absolute;
  width: 44rem;
  height: 38rem;
  background: var(--linear-gradiant-bg);
  border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%;
  top: 50%;
  left: 50%;
  transform: translate(-45%, -50%) rotate(-6deg);
  z-index: 1;
  opacity: 0.95;
}
.contact__image img {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  width: 100%;
}

/* ================= FOOTER ================= */
.footer {
  position: relative;
  padding: 4rem;
  overflow: hidden;
  background-image: url("./assets/footer_bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.footer__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  color: var(--white-color);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 16rem;
}
.footer__logo img {
  width: 100%;
}
.footer__logo span {
  font-size: 2rem;
  font-weight: 700;
}
.footer__brand p {
  font-size: 1.3rem;
  opacity: 0.9;
}
.footer__links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
}
.footer__links li a {
  font-size: 1.4rem;
  color: var(--white-color);
  text-decoration: none;
  opacity: 0.9;
}
.footer__links li a:hover {
  opacity: 1;
}
.footer__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.3rem;
}
.footer__item i {
  color: #c7d2fe;
}
.footer__socials {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.footer__socials a {
  position: relative;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 50%;
  background: var(--light-background);
  color: var(--white-color);
  font-size: 1.4rem;
  transition: background 0.3s ease;
}
.footer__socials a:hover {
  background: rgba(255, 255, 255, 0.3);
}
.copy-msg {
  position: absolute;
  top: 130%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  background: var(--light-background);
  color: var(--white-color);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: 0.3s ease;
}
.footer__socials a.copied .copy-msg {
  opacity: 1;
}
section,
.hero,
.about,
.services,
.team,
.testimonials,
.contact,
.footer {
  overflow-x: hidden;
}

/* ================= RESPONSIVE ================= */
/* 
    31.25em = 425px
    37.5em = 600px
    48em = 768px
    64em = 1024px
    90em = 1440px
    112.5em = 1800px 
*/
@media only screen and (min-width: 112.5em) {
  html {
    font-size: 120%;
  }
}

@media only screen and (max-width: 112.5em) {
  html {
    font-size: 75%;
  }
}

@media only screen and (max-width: 90em) {
  html {
    font-size: 56.25%;
  }
}

@media only screen and (max-width: 64em) {
  html {
    font-size: 43%;
  }
}

@media only screen and (max-width: 48em) {
  .section-container {
    padding: 6rem 4rem;
  }
  .grid-four {
    gap: 2rem;
  }
  .contact__image::before {
    width: 34rem;
    height: 34rem;
  }
  .contact__image img {
    max-width: 28rem;
  }
}

@media only screen and (max-width: 37.5em) {
  .navbar__links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .grid-four {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonial-content {
    padding: 2rem 6rem;
  }
  .testimonial-card-img {
    width: 20rem;
    height: 24rem;
  }
}

@media only screen and (max-width: 31.25em) {
  .grid-two {
    grid-template-columns: 1fr;
    gap: 6rem;
  }
  .d-flex {
    flex-direction: column;
  }
  .contact__grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 3rem;
  }
  .contact__image {
    height: 34rem;
  }
  .testimonial-content {
    border-radius: var(--radius-lg);
  }
  .testimonial-card-img {
    display: none;
  }
  .testimonial-content-img {
    display: block;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    align-self: center;
  }
  .footer__links {
    flex-direction: column;
    align-items: flex-end;
    gap: 1.5rem;
  }
}

/* ================= SCROLL ANIMATIONS ================= */

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  transform: translateX(-60px);
}
.reveal-right {
  transform: translateX(60px);
}
.reveal-zoom {
  transform: scale(0.9);
}
.reveal-bottom {
  transform: translateY(60px);
}
