/*=====================================
            FOOTER
=====================================*/

.footer {
  position: relative;
  overflow: hidden;
  color: #fff;

  background: linear-gradient(
    135deg,
    #5b46f7 0%,
    #5960f4 30%,
    #4f6bf3 60%,
    #3e69f2 100%
  );
  color: #fff;
  border-radius: 20px 20px 0px 0px;
}

.footer::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -60px;

  width: 650px;
  height: 650px;

  border-radius: 50%;

  background: repeating-radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0px,
    rgba(255, 255, 255, 0.08) 2px,
    transparent 60px,
    transparent 120px
  );

  pointer-events: none;
}

.footer::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03),
    transparent 45%
  );

  pointer-events: none;
}
.footer .container {
  position: relative;
  z-index: 5;
}

/*==============================
            WAVE
==============================*/

.footer-wave {
  position: absolute;
  top: -150px;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 160px;
}

/*==============================
          CONTAINER
==============================*/

.footer .container {
  width: 90%;
  margin: auto;
  padding: 90px 0 40px;
}

/*==============================
        TOP SECTION
==============================*/

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 70px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/*==============================
          LOGO
==============================*/

.footer-logo {
  display: inline-block;
  margin-bottom: 30px;
}

.footer-logo img {
  width: 210px;
  display: block;
}

/*==============================
         ABOUT TEXT
==============================*/

.footer-about p {
  color: #fff;
  line-height: 1.9;
  font-size: 16px;
  margin-bottom: 35px;
}

/*==============================
         HEADINGS
==============================*/

.footer-column h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 28px;
  color: #fff;
}

/*==============================
          LINKS
==============================*/

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 18px;
}

.footer-column a {
  text-decoration: none;
  color: #fff;
  transition: 0.35s;
  font-size: 16px;
}

.footer-column a:hover {
  color: #ffffff;
  padding-left: 8px;
}

/*==============================
      CONTACT LIST
==============================*/

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.footer-contact i {
  width: 18px;
  color: #fff;
  margin-top: 4px;
}

.footer-contact span,
.footer-contact a {
  color: #fff;
  line-height: 1.2;
}

/*==============================
       SOCIAL ICONS
==============================*/

.footer-social {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);

  border: 1px solid rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(15px);

  color: #fff;

  transition: 0.35s;
}

.footer-social a:hover {
  background: #fff;

  color: #4f6bf3;

  transform: translateY(-6px);
}

/*==============================
        NEWSLETTER
==============================*/

.footer-newsletter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  padding: 55px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.newsletter-content {
  flex: 1;
}

.newsletter-content h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.newsletter-content p {
  color: #fff;
  line-height: 1.8;
}

.newsletter-form {
  display: flex;
  width: 100%;
  max-width: 520px;
}

.newsletter-form input {
  flex: 1;
  height: 58px;
  border: none;
  outline: none;
  padding: 0 20px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(20px);
}
.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
  border: none;
  cursor: pointer;
  background: #ffffff;
  color: #4f6bf3;
  font-weight: 600;
  padding: 0 28px;
  border-radius: 0 10px 10px 0;
  transition: 0.35s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/*==============================
          BOTTOM
==============================*/

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  gap: 10px;
}

.footer-bottom p {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

/*==============================
       BACK TO TOP
==============================*/

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 55px;
  height: 55px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #16284c;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: 0.35s;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-6px);
}

/*==============================
      SMOOTH SCROLL
==============================*/

html {
  scroll-behavior: smooth;
}

/*==================================================
            LARGE DESKTOP (1600px)
==================================================*/

@media (max-width: 1600px) {
  .footer .container {
    width: 90%;
  }
}

/*==================================================
            DESKTOP (1400px)
==================================================*/

@media (max-width: 1400px) {
  .footer-top {
    gap: 60px;
  }
}

/*==================================================
            LAPTOP (1200px)
==================================================*/

@media (max-width: 1200px) {
  .footer-top {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 45px;
  }

  .newsletter-content h2 {
    font-size: 32px;
  }
}

/*==================================================
            TABLET (992px)
==================================================*/

@media (max-width: 992px) {
  .footer .container {
    padding: 80px 0 35px;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);

    gap: 50px;

    text-align: left;
  }

  .footer-column {
    text-align: left;
  }

  .footer-about {
    max-width: 100%;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-newsletter {
    flex-direction: column;

    align-items: flex-start;

    gap: 30px;
  }

  .newsletter-content {
    width: 100%;
  }

  .newsletter-form {
    width: 100%;

    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;

    align-items: flex-start;

    gap: 20px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/*==================================================
            MOBILE (768px)
==================================================*/

@media (max-width: 768px) {
  .footer-wave {
    top: -80px;
  }

  .footer-wave svg {
    height: 80px;
  }

  .footer {
    margin-top: 80px;
  }

  .footer .container {
    width: 92%;

    padding: 60px 0 30px;
  }

  .footer-top {
    grid-template-columns: 1fr;

    gap: 45px;
  }

  .footer-column {
    width: 100%;
  }

  .footer-column h3 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .footer-about p {
    font-size: 15px;

    margin-bottom: 25px;
  }

  .footer-logo img {
    width: 180px;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-social a {
    width: 46px;

    height: 46px;

    font-size: 17px;
  }

  .newsletter-content h2 {
    font-size: 28px;
  }

  .newsletter-content p {
    font-size: 15px;
  }

  .newsletter-form {
    flex-direction: column;

    gap: 15px;
  }

  .newsletter-form input {
    width: 100%;

    border-radius: 10px;
  }

  .newsletter-form button {
    width: 100%;

    height: 55px;

    border-radius: 10px;

    justify-content: center;
  }

  .footer-bottom {
    text-align: left;
  }

  .footer-links {
    display: flex;

    flex-direction: column;

    gap: 12px;

    align-items: flex-start;
  }

  .back-to-top {
    right: 20px;

    bottom: 20px;

    width: 50px;

    height: 50px;
  }
}

/*==================================================
            SMALL MOBILE (576px)
==================================================*/

@media (max-width: 576px) {
  .footer-column h3 {
    font-size: 22px;
  }

  .newsletter-content h2 {
    font-size: 24px;
  }

  .footer-contact li {
    gap: 12px;
  }

  .footer-social {
    gap: 12px;
  }

  .footer-social a {
    width: 44px;

    height: 44px;
  }
}

/*==================================================
            EXTRA SMALL MOBILE (420px)
==================================================*/

@media (max-width: 420px) {
  .footer .container {
    width: 94%;
  }

  .footer-logo img {
    width: 160px;
  }

  .footer-column a {
    font-size: 15px;
  }

  .footer-about p {
    font-size: 14px;

    line-height: 1.8;
  }

  .newsletter-content h2 {
    font-size: 22px;
  }

  .newsletter-content p {
    font-size: 14px;
  }

  .newsletter-form input {
    height: 52px;

    padding: 0 16px;
  }

  .newsletter-form button {
    height: 52px;

    font-size: 15px;
  }

  .footer-bottom p {
    font-size: 14px;
  }

  .footer-links a {
    font-size: 14px;
  }
}
