@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --primary-color: #0f9d8a;
  --secondary-color: #168be3;
  --dark-color: #071522;
  --text-color: #263746;
  --light-text: #5d6d79;
  --background-color: #eef6f8;
  --white: #ffffff;
  --border-color: #cfe3e6;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none;
  outline: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--text-color);

  background:
    linear-gradient(
      rgba(3, 13, 27, 0.76),
      rgba(4, 18, 34, 0.84)
    ),
    url("../assets/images/getintouchbg.avif");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Header and navigation */

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 6.5rem;
  padding: 1.5rem 8%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--dark-color);
  font-size: 2rem;
  font-weight: 700;
}

header .logo i {
  color: var(--primary-color);
}

header .logo:hover {
  color: var(--secondary-color);
}

header .navbar ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

header .navbar ul li a {
  position: relative;
  color: var(--dark-color);
  font-size: 1.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

header .navbar ul li a::after {
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  width: 0;
  height: 0.2rem;
  background: var(--primary-color);
  content: "";
  transition: width 0.3s ease;
}

header .navbar ul li a:hover,
header .navbar ul li a.active {
  color: var(--primary-color);
}

header .navbar ul li a:hover::after,
header .navbar ul li a.active::after {
  width: 100%;
}

#menu {
  display: none;
  color: var(--dark-color);
  font-size: 2.6rem;
  cursor: pointer;
}

/* Main content */

main {
  min-height: 100vh;
  padding-top: 6.5rem;
  background: transparent;
}

.contact {
  position: relative;
  min-height: calc(100vh - 6.5rem);
  padding: 5rem 9% 6rem;

  background: transparent;
}


.section-heading {
  margin-bottom: 4rem;
  text-align: center;
}

.section-heading h1 {
  color: #ffffff;
  font-size: 4rem;
  font-weight: 800;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.section-heading h1 i {
  margin-right: 0.8rem;
  color: #2dd4bf;
}

.section-heading h1 span {
  color: #2dd4bf;
}

.section-heading p {
  max-width: 75rem;
  margin: 1.2rem auto 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.7rem;
  line-height: 1.8;
}

/* Contact layout */

.contact-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(30rem, 1fr));
  gap: 3rem;
  max-width: 115rem;
  margin: 0 auto;
}

.contact-info,
.contact-form-container {
  padding: 3rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(45, 212, 191, 0.28);
  border-radius: 1.6rem;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.26),
    0 0 18px rgba(45, 212, 191, 0.06);
  backdrop-filter: blur(6px);
}

.contact-info,
.contact-form-container {
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-info:hover,
.contact-form-container:hover {
  transform: translateY(-5px);
  border-color: rgba(45, 212, 191, 0.58);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.3),
    0 0 22px rgba(45, 212, 191, 0.12);
}

.contact-info h2,
.contact-form-container h2 {
  margin-bottom: 1.5rem;
  color: var(--dark-color);
  font-size: 2.5rem;
}

.contact-info .intro {
  margin-bottom: 3rem;
  color: var(--light-text);
  font-size: 1.5rem;
  line-height: 1.8;
}

/* Contact details */

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 2rem;
  padding: 1.6rem;
  background: linear-gradient(
    135deg,
    #eef8fa,
    #f4f8fc
  );
  border: 1px solid rgba(15, 157, 138, 0.16);
  border-radius: 1rem;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
  border-color: rgba(15, 157, 138, 0.5);
}

.contact-item .icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 5.2rem;
  height: 5.2rem;
  background: linear-gradient(
    135deg,
    #168be3,
    #0f9d8a
  );
  border-radius: 50%;
  color: #ffffff;
  font-size: 2rem;
  box-shadow: 0 7px 16px rgba(15, 157, 138, 0.25);
}

.contact-item h3 {
  margin-bottom: 0.4rem;
  color: var(--dark-color);
  font-size: 1.6rem;
}

.contact-item p,
.contact-item a {
  color: var(--light-text);
  font-size: 1.4rem;
  line-height: 1.6;
  word-break: break-word;
}

.contact-item a:hover {
  color: var(--primary-color);
}

/* Social links */

.social-links,
.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.social-links a,
.footer-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  background: var(--primary-color);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.9rem;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.social-links a:hover,
.footer-social-links a:hover {
  background: var(--secondary-color);
  transform: translateY(-0.3rem);
}

.social-links a i,
.footer-social-links a i {
  display: block;
  line-height: 1;
}

/* Form */

#contact-form {
  width: 100%;
}

.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--dark-color);
  font-size: 1.4rem;
  font-weight: 600;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper > i {
  position: absolute;
  left: 1.4rem;
  z-index: 1;
  color: var(--primary-color);
  font-size: 1.5rem;
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 1.4rem 1.4rem 1.4rem 4.3rem;
  background: #f3f8fa;
  border: 1px solid #cfdee4;
  border-radius: 0.8rem;
  color: var(--text-color);
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.input-wrapper textarea {
  min-height: 15rem;
  padding-top: 1.4rem;
  resize: vertical;
}

.textarea-wrapper {
  align-items: flex-start;
}

.textarea-wrapper > i {
  top: 1.6rem;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  background: #ffffff;
  border-color: #0f9d8a;
  box-shadow: 0 0 0 3px rgba(15, 157, 138, 0.14);
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  padding: 1.4rem 2rem;
  background: linear-gradient(
    135deg,
    #168be3,
    #0f9d8a
  );
  border-radius: 0.8rem;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 157, 138, 0.25);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 157, 138, 0.36);
}

.form-note {
  margin-top: 1.2rem;
  text-align: center;
  color: var(--light-text);
  font-size: 1.25rem;
}

/* Back button */

.back-button {
  display: flex;
  justify-content: center;
  padding: 2rem 2rem 5rem;
  background: transparent;
}

.back-button a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.2rem;
  background: linear-gradient(
    135deg,
    #168be3,
    #0f9d8a
  );
  border: 1px solid rgba(45, 212, 191, 0.4);
  border-radius: 0.7rem;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(15, 157, 138, 0.26);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.back-button a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 157, 138, 0.38);
}

/* Footer */

.footer {
  padding: 4rem 8% 2rem;
  background: #00012b;
  color: var(--white);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  max-width: 115rem;
  margin: 0 auto;
}

.footer-content h3 {
  margin-bottom: 1.4rem;
  font-size: 1.9rem;
}

.footer-content p {
  max-width: 45rem;
  color: #d5d5e0;
  font-size: 1.4rem;
  line-height: 1.8;
}

.footer-content > div:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.footer-content > div:nth-child(2) a {
  width: fit-content;
  margin-bottom: 0.8rem;
  color: #d5d5e0;
  font-size: 1.4rem;
}

.footer-content > div:nth-child(2) a:hover {
  color: #ffd900;
}

.footer-social-links {
  margin-top: 0;
}

.footer-social-links a {
  background: var(--white);
  color: var(--dark-color);
}

.footer-social-links a:hover {
  background: #ffd900;
  color: var(--dark-color);
}

.copyright {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  color: #d5d5e0;
  font-size: 1.3rem;
}

/* Scroll-to-top button */

#scroll-top {
  position: fixed;
  right: 2rem;
  bottom: -8rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  padding: 0;
  background: #168be3;
  border: 2px solid #60baff;
  border-radius: 50%;
  box-shadow:
    0 7px 18px rgba(22, 139, 227, 0.35),
    0 0 14px rgba(22, 139, 227, 0.18);
  opacity: 0;
  transition:
    bottom 0.4s ease,
    opacity 0.4s ease,
    transform 0.3s ease;
}
.scroll-chevron {
  position: relative;
  display: block;
  width: 2.4rem;
  height: 1.5rem;
}

.scroll-chevron::before,
.scroll-chevron::after {
  position: absolute;
  top: 0.55rem;
  width: 1.65rem;
  height: 0.45rem;
  background: #ffffff;
  border-radius: 1rem;
  content: "";
}

.scroll-chevron::before {
  left: 0;
  transform: rotate(-45deg);
}

.scroll-chevron::after {
  right: 0;
  transform: rotate(45deg);
}

#scroll-top.active {
  bottom: 2rem;
  opacity: 1;
}

#scroll-top:hover {
  background: #0876c9;
  transform: translateY(-4px);
}

/* Responsive layout */

@media screen and (max-width: 1050px) {
  header {
    padding: 1.5rem 4%;
  }

  header .navbar ul {
    gap: 1.5rem;
  }

  header .navbar ul li a {
    font-size: 1.4rem;
  }

  .contact {
    padding-right: 5%;
    padding-left: 5%;
  }
}

@media screen and (max-width: 850px) {
  #menu {
    display: block;
  }

  header .navbar {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 75%;
    min-height: calc(100vh - 6.5rem);
    padding: 2rem;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    box-shadow: -4px 8px 15px rgba(0, 0, 0, 0.12);
    transition: right 0.3s ease;
  }

  header .navbar.nav-toggle {
    right: 0;
  }

  header .navbar ul {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  header .navbar ul li a {
    display: block;
    padding: 1.2rem;
    background: var(--background-color);
    border-radius: 0.5rem;
    font-size: 1.6rem;
  }

  header .navbar ul li a::after {
    display: none;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media screen and (max-width: 600px) {
  html {
    font-size: 56%;
  }

  header {
    padding: 1.3rem 5%;
  }

  header .logo {
    font-size: 1.8rem;
  }

  header .navbar {
    width: 100%;
  }

  main {
    padding-top: 6.5rem;
  }

  .contact {
    padding: 4.5rem 1.5rem;
  }

  .section-heading h1 {
    font-size: 2.8rem;
  }

  .section-heading p {
    font-size: 1.5rem;
  }

  .contact {
  background-attachment: scroll;
  background-position: center;
}
  .contact-info,
  .contact-form-container {
    padding: 2rem;
  }

  .contact-item {
    align-items: flex-start;
  }

  .footer {
    padding: 4rem 2rem 2rem;
  }
}
