:root {
  --main-font: "Poppins", Arial, sans-serif;
  --main-orange: #ff6800;
  --main-blue: #32587a;
  --light-background: #f3f3f3;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  margin: 0;
}

section,
div {
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
p {
  font-family: var(--main-font);
  margin: 0;
  font-weight: 400;
}

/* Animations */

.fade-right {
  opacity: 0;
  transform: translate(-64px, 0);
  transition: opacity 750ms ease-out var(--fade-delay, 0ms),
    transform 750ms ease-out var(--fade-delay, 0ms);
}

.fade-left {
  opacity: 0;
  transform: translate(64px, 0);
  transition: opacity 750ms ease-out var(--fade-delay, 0ms),
    transform 750ms ease-out var(--fade-delay, 0ms);
}

.fade-up {
  opacity: 0;
  transform: translate(0, 64px);
  transition: opacity 750ms ease-out var(--fade-delay, 0ms),
    transform 750ms ease-out var(--fade-delay, 0ms), box-shadow 500ms;
}

.fade-up-alt {
  opacity: 0;
  transform: translate(0, 64px);
  transition: opacity 750ms cubic-bezier(0.68, -0.55, 0.27, 1.55)
      var(--fade-delay, 0ms),
    transform 750ms cubic-bezier(0.68, -0.55, 0.27, 1.55) var(--fade-delay, 0ms);
}

.delay-100 {
  --fade-delay: 100ms;
}

.delay-200 {
  --fade-delay: 200ms;
}

.delay-300 {
  --fade-delay: 300ms;
}

.fade-in {
  opacity: 1;
  transform: translate(0, 0);
}

/* Universal Text/btn*/

.main-heading {
  font-size: 42px;
  font-weight: 500;
}

.heading-light {
  color: white;
}

.subheading {
  font-size: 24px;
}

.main-text {
  font-family: var(--main-font);
  font-size: 18px;
}

.text-light {
  color: white;
}

.btn {
  font-family: var(--main-font);
  font-size: 16px;
  padding: 16px 32px;
  margin-top: 32px;
  width: auto;
  align-self: flex-start;
  border: 2px solid var(--main-blue);
  border-radius: 16px;
  background: transparent;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.18s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1), 500ms;
}

.btn:hover {
  /* background: rgba(255, 255, 255, 0.07); */
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(50, 88, 122, 0.07);
  border: 2px solid var(--main-orange);
}

.btn::after {
  content: "";
  position: absolute;
  left: -80%;
  top: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::after {
  left: 120%;
}

/* Banner Section */

.banner {
  padding: 5%;
  height: auto;
  background-size: cover;
  justify-content: center;
  align-items: start;
}

#home-banner {
  background-image: linear-gradient(to right, #ffffffe0 50%, #00000000 100%),
    url(media/pexels-pixabay-273209.jpg);
}

.banner-content {
  width: 700px;
  min-width: 500px;
}

.banner-content .btn {
  background-color: #000000c9;
}

.main-logo {
  width: 500px;
}

.banner-heading {
  font-size: 64px;
}

.banner-subheading {
  font-size: 32px;
}

.banner-text {
  font-size: 20px;
  margin-top: 24px;
}

/* Card Section */

.card-section {
  padding: 5%;
  gap: 64px;
  align-items: center;
}

.card-section-content {
  flex-direction: row;
  gap: 64px;
  align-items: center;
}

.card-section-content > .text-container {
  width: 500px;
}

.card-section-content > .content-img {
  width: 500px;
}

.card-container {
  flex-direction: row;
  gap: 32px;
  width: 100%;
  justify-content: center;
  align-items: stretch;
}

.card {
  max-width: 400px;
  padding: 32px;
  border-radius: 16px;
  background-color: var(--light-background);
  justify-content: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 0 var(--main-blue);
  transition: box-shadow 250ms, transform 250ms;
}

.card-heading {
  font-size: 22px;
  margin-bottom: 4px;
  font-weight: 500;
}

/* About Section */

.about-section {
  padding: 5%;
  background-color: var(--light-background);
  align-items: start;
  gap: 32px;
}

.about-content-container {
  flex-direction: row;
  gap: 64px;
  justify-content: center;
}

.about-img {
  width: 600px;
  border-radius: 32px;
  object-fit: cover;
}

.about-content {
  width: 600px;
  gap: 12px;
}

.heading-container > .subheading {
  font-style: italic;
}

.p-container {
  gap: 12px;
}

/* Testimonial Section */

.testimonial-section {
  padding: 5% 5% calc(5% + 125px);
  align-items: center;
}

.testimonial-content {
  width: 100%;
  max-width: 1300px;
  padding: 5% 5% 12%;
  background-color: var(--main-blue);
  border-radius: 32px;
  align-items: center;
  gap: 64px;
  position: relative;
}

#testimonial-card-container {
  gap: 64px;
}

.testimonial-card {
  width: 300px;
  gap: 24px;
}

.testimonial-name {
  font-style: italic;
}

.testimonial-img {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 90%;
  height: 250px;
  border-radius: 32px;
  object-fit: cover;
  object-position: center 40%;
  transform: translate(-50%, -50%);
}

.testimonial-stars {
  display: flex;
  flex-direction: row;
  gap: 4px;
  justify-content: flex-start;
  color: var(--main-orange);
  font-size: 12px;
}

/* Logo Section */

.logo-section {
  padding: 0 0 5%;
}

.logo-section-content {
  align-items: center;
  gap: 32px;
}

.logo-container {
  width: auto;
  flex-direction: row;
  gap: 64px;
}

.brand-logo {
  width: 200px;
  transition: 350ms;
}

.brand-logo:hover {
  transform: translate(0, -5px);
}

/* Form Section */

.form-section {
  background-image: url(media/pexels-exnl-931887.jpg);
  background-size: cover;
  height: auto;
  padding: 5%;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 64px;
}

.form-section-text {
  width: 50%;
  padding: 32px;
  gap: 24px;
  background-color: #000000c9;
  backdrop-filter: blur(10px);
  border-radius: 32px;
}

.contact-form {
  width: 50%;
  max-width: 600px;
  padding: 32px;
  background-color: #000000c9;
  backdrop-filter: blur(10px);
  border-radius: 32px;
}

.contact-form input,
.contact-form textarea {
  border: none;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 18px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 4px 0 #32587a12;
  transition: background 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--main-blue);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px 0 rgba(50, 88, 122, 0.12);
}

.contact-form label {
  margin-bottom: 6px;
  font-size: 14px !important;
}

.form-btn {
  margin-top: 12px;
  cursor: pointer;
}

#form-success-message {
  display: none;
  color: #5effa4;
  font-size: 14px;
  margin-top: 24px;
}

/* Footer */

.footer-link {
  text-decoration: none;
  transition: 350ms;
}

.footer-link:hover {
  color: var(--main-orange);
}

.footer-content {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 32px 64px;
}

.footer-content a {
  color: black;
}

footer .main-logo {
  width: 300px;
}

.footer-container {
  width: auto;
  gap: 8px;
}

.icon-container {
  flex-direction: row;
  gap: 12px;
}

.icon-container i {
  font-size: 28px;
  color: var(--main-blue);
  transition: 350ms;
}

.icon-container i:hover {
  color: var(--main-orange);
}

.footer-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--main-blue);
  padding: 8px;
}

.legal-text {
  font-size: 14px;
  text-align: center;
}

.legal-text a {
  color: white;
}

/* Mobile Styling */

@media (max-width: 900px) {
  /* Animation */
  .fade-right,
  .fade-left,
  .fade-up,
  .fade-up-alt {
    transition: opacity 500ms ease-out var(--fade-delay, 0ms),
      transform 500ms ease-out var(--fade-delay, 0ms);
  }

  /* Universal Text */
  .main-heading {
    font-size: 24px;
  }

  .subheading {
    font-size: 18px;
  }

  .main-text {
    font-size: 16px;
  }

  /* Banner Section */
  .banner {
    height: auto;
  }

  #home-banner {
    background-image: linear-gradient(to right, #ffffffe0 100%, #00000000),
      url(media/pexels-pixabay-273209.jpg);
  }

  .banner-content {
    width: 100%;
    min-width: 0;
  }

  .main-logo {
    width: 100%;
  }

  .banner-heading {
    font-size: 32px;
  }

  .banner-subheading {
    font-size: 20px;
  }

  .banner-text {
    font-size: 16px;
    margin-top: 16px;
  }

  .btn {
    margin-top: 16px;
    padding: 12px;
    font-size: 14px;
  }

  /* Card Section */
  .card-section {
    gap: 16px;
  }

  .card-section-content {
    flex-direction: column;
    gap: 16px;
  }

  .card-section-content > .text-container {
    width: 100%;
    gap: 4px;
  }

  .card-section-content > .content-img {
    width: 300px;
  }

  .card-container {
    flex-direction: column;
    gap: 16px;
  }

  .card {
    width: 100%;
    max-width: none;
    padding: 24px;
  }

  .card-heading {
    margin-bottom: 4px;
  }

  .card-text {
    font-size: 14px;
  }

  /* About Section */
  .about-section {
    padding: 5% 0 0;
    gap: 16px;
  }

  .about-section .main-heading {
    margin-left: 5%;
  }

  .about-content-container {
    flex-direction: column;
    gap: 0;
  }

  .about-img {
    width: 100%;
    height: 220px;
    border-radius: 0;
    object-position: top center;
  }

  .about-content {
    width: 100%;
    padding: 5%;
  }

  /* Testimonial Section */
  .testimonial-section {
    padding: 5% 5% calc(5% + 75px);
  }

  .testimonial-content {
    padding: 10% 10% 30%;
    gap: 42px;
  }

  #testimonial-card-container {
    gap: 42px;
  }

  .testimonial-card {
    width: 100%;
    gap: 16px;
    align-items: center;
    text-align: center;
  }

  .testimonial-img {
    height: 150px;
  }

  /* Logo Section */
  .logo-section-content {
    gap: 16px;
  }

  .logo-container {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-logo {
    width: 100px;
  }

  /* Form Section */
  .form-section {
    flex-direction: column;
    gap: 16px;
  }

  .form-section-text {
    width: 100%;
    gap: 16px;
  }

  .contact-form {
    width: 100%;
  }

  #form-success-message {
    font-size: 12px;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }

  .footer-container {
    width: 100%;
    gap: 8px;
  }

  .legal-text {
    font-size: 12px;
  }
}
