:root {
  --primary: #194e48;
  --light: #ffff;
  --dark: #111111;
  --secondary: #ebebeb;
  --text-dark: #272727;
  --text-dimmed: #747474;
  --text-dimmed-dark: #666666;

  --large: 3rem;
  --medium: 1.2rem;
  --small: 0.9rem;

  --radius: 1rem;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  /* font-size: 18px; */
}

a {
  color: var(--text-dark);
  text-decoration: none;
  cursor: pointer;
}

/*util*/
.span_primary_light {
  color: var(--primary);
  font-weight: 400;
  font-size: 24px;
  position: relative;
  text-transform: uppercase;
}

/* main section */
.main {
  height: 100vh;
}

.main_title {
  font-size: 2rem;
  position: absolute;
  bottom: 0;
  left: 0;
  transform: translateX(10%);
  color: var(--light);
  z-index: 0;
  width: 50%;
}

.main_title > p {
  width: 50%;
}

.main_background_video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* navbar */
.navbar {
  width: 100%;
  height: 70px;
  position: fixed;
  top: 0;
  background-color: var(--light);
  margin: 0;
  padding: 0;
  z-index: 1;
}

.navbar_main {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 65px;
}

.navbar_title {
  color: var(--primary);
  font-weight: 500;
  font-size: 1.3rem;
}

.navbar_scrolled {
  position: fixed;
  top: 0;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(13.2px);
  z-index: 1;
  width: 100%;
  transition: backdrop-filter 1s ease;
}

.navbar_list {
  display: flex;
  justify-content: space-between;
  list-style: none;
  gap: 3rem;
}

.navbar_list_item {
  border-bottom: 2px solid transparent;
}

.navbar_list_item:hover {
  border-bottom: 2px solid var(--primary);
}

.mobile_navbar_list {
  display: none;
  position: absolute;
  top: calc(100%);
  right: 0;
  background-color: var(--light);
  padding: 2rem;
  animation: slideInFromTop 0.3s ease forwards;
}

.mobile_navbar_list_item {
  color: var(--primary);
  width: 100%;
}

.active {
  display: flex;
  flex-direction: column;
}

@keyframes slideInFromTop {
  0% {
    transform: translateY(-30%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.navbar_toggle {
  display: none;
  border: none;
  cursor: pointer;
  padding: 10px 15px;
  background-color: transparent;
}

.navbar_toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: var(--radius);
}

.navbar_toggle.open span:nth-child(2) {
  opacity: 0;
}

.navbar_toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar_toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.navbar_progress {
  width: 100%;
  height: 3px;
}

.navbar_progress_bar {
  height: 3px;
  background: var(--primary);
  width: 0%;
}

/* stats */
.stats {
  display: flex;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  padding: 4rem;
  margin: 3rem 0;
}

.stats_card {
  background-color: var(--secondary);
  width: 300px;
  padding: 2rem;
  border-radius: var(--radius);
}

.stats_card > span {
  font-weight: 600;
  font-size: 3.2rem;
}

/* desc */

.desc {
  /* background-color: var(--secondary); */
  padding: 3rem;
  display: flex;
  gap: 3rem;
  text-align: center;
}

/* company*/
.company {
  display: flex;
  padding: 5rem;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 5em;
}

.company_side_picture {
  width: 40%;
  height: 50%;
  border-radius: var(--radius);
}

.company_desc p {
  color: var(--text-dimmed);
}

.company_desc span {
  bottom: -20px;
}

/* projects */

.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 6rem 4rem;
  margin-top: 5rem;
  text-align: center;
  background-color: var(--secondary);
}

.projects_description {
  margin: 4rem 0;
}

.projects_description span {
  bottom: -20px;
}

.projects_description p {
  color: var(--text-dimmed-dark);
}

.projects_cards {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

.project_card {
  background-color: var(--light);
  padding: 2rem;
  border-radius: var(--radius);
}

.project_card h3 {
  color: var(--primary);
  padding-bottom: 1rem;
  margin-bottom: 2cqh;
  border-bottom: 2px dashed var(--secondary);
}

/* about */
.about {
  padding: 5rem;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 10%;
  align-items: center;
}

.about_description {
  width: 40%;
}

.about_description span {
  bottom: -20px;
}

.about_description p {
  color: var(--text-dimmed);
  padding: 2rem 0;
}

.about_side {
  width: 40%;
  height: 50%;
  border-radius: var(--radius);
}

.about_stats {
  display: flex;
  gap: 1rem;
  border-top: 2px solid var(--secondary);
  text-align: center;
  padding: 2rem 0;
}

/* contact */
.contact {
  background-image: url("./assets/p4.jpeg");
  background-repeat: no-repeat;
  background-size: cover;
  height: 1000px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact_form {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(13.2px);
  padding: 2rem;
  border-radius: var(--radius);
}

.contact-intro > * + * {
  margin-top: 1rem;
}

.contact-title {
  font-size: 2rem;
  line-height: 2.25rem;
  font-weight: 700;
}

.contact-description {
  color: var(--text-dimmed);
}

.form_container {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.form_group {
  display: flex;
  flex-direction: column;
}

.form_label {
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  padding: 0.5rem;
  border: 1px solid var(--secondary);
  display: flex;
  height: 2.5rem;
  width: 97%;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.form-input::placeholder,
.form-textarea:focus-visible {
  color: var(--text-dimmed);
}

.form-input:focus-visible,
.form-textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.form-textarea {
  min-height: 120px;
  max-height: 300px;
  max-width: 800px;
}

.form-submit {
  width: 100%;
  margin-top: 1.2rem;
  background-color: var(--primary);
  outline: none;
  border: none;
  color: var(--light);
  padding: 13px 5px;
  border-radius: 0.375rem;
}

.form-submit:hover {
  cursor: pointer;
  background-color: var(--dark);
  transition: all ease 1s;
}

.h-captcha {
  text-align: center;
  margin-top: 1rem;
}

/* footer */
footer {
  background-color: var(--dark);
  color: var(--light);
  padding: 4rem;
  display: flex;
  gap: 2em;
}

.footer_left {
  padding: 2em;
}

.footer_right {
  padding: 2em;
}

@media screen and (max-width: 1250px) {
  .main_background_video {
    position: relative;
    width: 100%;
    height: 100vh;
  }

  .main_title {
    font-size: 2rem;
    width: 70%;
  }

  .stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stats_card {
    width: 90%;
  }

  .desc {
    flex-direction: column;
  }

  .about {
    flex-direction: column;
    text-align: center;
  }

  .about_stats {
    justify-content: center;
    gap: 3rem;
  }

  .about_description {
    width: 90%;
  }

  .about_side {
    width: 50%;
  }

  .projects_cards {
    flex-direction: column;
  }

  .company {
    flex-direction: column-reverse;
    text-align: center;
    align-items: center;
  }

  .company_side_picture {
    width: 90%;
  }

  footer {
    flex-direction: column;
  }
}

@media screen and (max-width: 1025px) {
  .navbar_list {
    display: none;
  }

  .main_title {
    font-size: 1.8rem;
  }

  .navbar_toggle {
    display: block;
  }

  .mobile_navbar_list {
    width: 95%;
    text-align: center;
  }
}

@media screen and (max-width: 700px) {
  .main_title {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 500px) {
  .main_title {
    font-size: 1rem;
  }

  .mobile_navbar_list {
    width: 85%;
  }
}

@media screen and (max-width: 380px) {
  .main_title {
    font-size: 0.8em;
  }
}

@media screen and (max-height: 800px) {
  .main_title {
    font-size: 1em;
  }
}

@media screen and (max-height: 270px) {
  .main_title {
    font-size: 0.8em;
  }
}
