/* CSS Reset */
html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
img,
ul,
ol,
li,
form,
label,
table,
tr,
th,
td {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

body {
  line-height: 1;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

button {
  border: none;
  cursor: pointer;
}
/* End CSS Reset */

/* Fonts */
@font-face {
  font-family: "MPlusRoundedRegular";
  src: url("./fonts/MPLUSRounded1c-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "MPlusRoundedMedium";
  src: url("./fonts/MPLUSRounded1c-Medium.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "MPlusRoundedBold";
  src: url("./fonts/MPLUSRounded1c-Bold.ttf") format("truetype");
  font-display: swap;
}

/* Global Styles */
html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}

h1 {
  font-family: MPlusRoundedBold;
  font-size: 2.4rem;
}

h2 {
  font-family: MPlusRoundedMedium;
  font-size: 1.65rem;
}

h3 {
  font-family: MPlusRoundedRegular;
  font-size: 1.2rem;
}

p {
  font-family: MPlusRoundedRegular;
  font-size: 1rem;
  line-height: 28px;
}

sub {
  font-family: MPlusRoundedRegular;
  font-size: 0.9rem;
  line-height: 20px;
}

@media (max-width: 440px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  p {
    font-size: 0.95rem;
  }
}

.subtitle {
  font-family: MPlusRoundedMedium;
  font-size: 0.9rem;
}

b {
  font-family: MPlusRoundedBold;
}

.text-container {
  padding-inline: 40px;
  max-width: 1920px;
}

@media (min-width: 1921px) {
  .text-container {
    margin: 0 auto;
    width: 100%;
  }
}

main {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

/* Nav Bar Styles*/
nav {
  margin: 0 auto;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-inline: 18px;
  padding-block: 14px;
  font-family: MPlusRoundedRegular;
  position: sticky;
  top: 0px;
  z-index: 9999;
}

nav ul {
  display: flex;
  gap: 20px;
}

nav ul a {
  text-decoration: none;
  color: black;
  font-size: 1.2rem;
}

nav h1 {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-family: MPlusRoundedRegular;
}

nav h1 img {
  height: 38px;
  width: 38px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 10000;
}

.hamburger span {
  background-color: black;
  height: 3px;
  width: 100%;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(2) {
  transition: opacity 0.1s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    padding-inline: 15px;
  }

  .hamburger {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 9998;
  }

  nav ul.active {
    display: flex;
  }

  nav ul a {
    font-size: 1.1rem;
    padding: 10px 0;
    width: 100%;
    text-align: left;
  }

  nav h1 {
    font-size: 1.8rem;
  }

  nav h1 img {
    height: 30px;
    width: 30px;
  }
}

/* About Us Styles */

#aboutus {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

#aboutus-gradient {
  position: relative;
  background-image: url("./svgs/aboutus_gradient_long.svg");
  background-position: -1600px 0;
  background-repeat: no-repeat;
  background-color: #5994ce;
  color: white;
  padding-block: 30px;
  min-height: 420px;
}

@media (min-width: 1921px) {
  #aboutus-gradient {
    background-position: 68% 0;
  }
}

#aboutus-gradient .text-container {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

#aboutus-gradient h3,
#aboutus-gradient p,
#aboutus-gradient a {
  margin-left: 5px;
}

#aboutus-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@keyframes slideInDown {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#aboutus-header h1 {
  animation: slideInDown 1.5s ease forwards;
  transform: translateY(-30px);
  opacity: 0;
}

#aboutus-header span:nth-child(1) {
  transform: translateY(-30px);
  opacity: 0;
  animation: 2s ease 1s forwards slideInDown;
}

#aboutus-header span:nth-child(2) {
  transform: translateY(-30px);
  opacity: 0;
  animation: 2s ease 1.5s forwards slideInDown;
}

#aboutus-header span:nth-child(3) {
  transform: translateY(-30px);
  opacity: 0;
  animation: 2s ease 2s forwards slideInDown;
}

#aboutus-gradient p {
  max-width: 480px;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: white;
  font-family: MPlusRoundedBold;
  background-color: #4192f0;
  padding-inline: 30px;
  padding-block: 9px;
  border-radius: 6px;
  width: fit-content;
}

#aboutus-gradient #wave-divider {
  background-image: url("./svgs/wave-divider.svg");
  background-position: 18% 0;
  width: 100vw;
  height: 90px;
  position: absolute;
  bottom: 0px;
}

#aboutus-typography {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#aboutus-typography p {
  max-width: 600px;
}

/* Services Styles */

#services {
  display: flex;
  flex-direction: column;
}

#services h1 {
  align-self: flex-end;
}

#services h2 {
  text-align: center;
  margin-block: 50px;
}

.service-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 300px;
  width: 250px;
  text-align: center;
  gap: 8px;
  box-shadow: 0px 2px 6px -3px #000000;
  border-radius: 12px;
}

.service-card img {
  height: 88px;
  padding-top: 45px;
  padding-bottom: 38px;
}

.service-card sub {
  max-width: 220px;
}

#whychooseus h1 {
  margin-top: 50px;
}

#whychooseus ul {
  margin-block: 45px;
  margin-inline: 62px;
}

#whychooseus ul li p {
  margin-block: 20px;
  margin-inline: 30px;
  max-width: 570px;
}

@media (max-width: 630px) {
  #whychooseus ul {
    margin-inline: 5px;
  }
}

#contact {
  position: relative;
  background-image: url("./svgs/contact_us_gradient.svg");
  background-position: 62% 0;
  background-repeat: no-repeat;
  background-color: #5994ce;
  color: white;
  padding-block: 30px;
  min-height: 720px;
  padding-top: 140px;
}

#contact #wave-divider {
  background-image: url("./svgs/wave-divider.svg");
  background-position: 18% 0;
  width: 100vw;
  height: 90px;
  position: absolute;
  top: 0px;
  transform: scaleY(-1);
}

#contact .text-container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

#contact-us-p {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: flex-end;
  max-width: 418px;
}

#contact-us-p p {
  margin-left: 3px;
}

#contact-info-row {
  display: flex;
  justify-content: center;
  gap: 40px;
}

@media (max-width: 900px) {
  #contact-info-row {
    flex-direction: column;
    align-items: center;
  }
}

#contact-info-card {
  background-color: white;
  color: black;
  width: 100%;
  max-width: 400px;
  height: fit-content;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0px 2px 16px -3px #000000;
}

#contact-info-card ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#contact-info-card li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}

#contact-info-card li img {
  height: 32px;
  width: 32px;
}

#contact-info-card li p {
  font-family: MPlusRoundedMedium;
}

#send-message-card {
  display: flex;
  flex-direction: column;
  background-color: white;
  color: black;
  width: 100%;
  max-width: 500px;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0px 2px 16px -3px #000000;
  gap: 30px;
}

#send-message-card h2 {
  align-self: center;
}

#send-message-card input {
  line-height: 28px;
}

#send-message-card input,
#send-message-card textarea {
  font-family: MPlusRoundedRegular;
  font-size: 0.8rem;
  border: none;
  border-bottom: 2px solid black;
  resize: vertical;
  box-sizing: border-box;
}

#send-message-card input:focus,
#send-message-card textarea:focus {
  outline: none;
  border-color: #4192f0;
}

#send-message-card button {
  align-self: flex-end;
  width: 120px;
  height: 34px;
  font-size: 0.9rem;
}

#send-message-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#contact #slogan {
  text-align: center;
  align-self: center;
}

#footer {
  padding-block: 20px;
  padding-inline: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 650px) {
  #footer {
    flex-direction: column;
    gap: 10px;
  }
}

#powered-by-cc {
  position: relative;
}

#tooltip {
  display: none;
  position: absolute;
  background: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  text-align: center;
}

#powered-by-cc:hover #tooltip {
  display: block;
}

@media (max-width: 460px) {
  #powered-by-cc.active #tooltip {
    display: block;
  }
}
