@import url(https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap);
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  color: #243e63;
}
html {
  scroll-behavior: smooth;
}
body {
  max-width: 100vw;
  background-color: rgb(254, 218, 188);
}

.row {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.container {
  padding: 96px 0;
}

a {
  display: inline;
  text-decoration: none;
}

h1 {
  color: #1a202c;
  line-height: 1.25;
}

.section_title {
    font-size: 16px;
    color: rgb(42, 149, 69);
    letter-spacing: 1.6px;
    font-weight: 700;
}

.section_wrapper {
    width: 100%;
    text-align: center;
}

.section_sub-title {
    font-size: 56px;
    margin-top: 12px;
    color: #1a202c;
}

.section_para {
    max-width: 750px;
    margin: 24px auto;
    color: #718096;
}

p {
  font-size: 18px;
  line-height: 1.5;
}

.purple {
  color: #6415ff;
}

.fade_up {
    opacity: 0;
    transform: translateY(50px);
    transition: all .8s ease;
}

.fade_up.show {
    opacity: 1;
    transform: translateY(0);
}

/* NAV */

nav {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 9999;
}

.nav_logo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 4px;
  margin: 8px 0;
  background-color: #ffffff;
  top: 0;
  z-index: 1000;
}
.nav_logo img {
  height: 120px;
  width: auto;
}
.nav_links {
  display: flex;
  align-items: center;
  padding-bottom: 2px;
  margin-left: auto;
}

.nav_link {
  font-size: 14px;
  font-weight: 600;
  padding-top: 4px;
  letter-spacing: 0.35px;
  border-bottom: 2px solid transparent;
  position: relative;
  transition: all 300ms;
  margin: 0 24px;
  margin-left: 24px;
  text-decoration: none;
  white-space: nowrap;
}
.nav_link:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: rgb(42, 149, 69);
  transition: all 300ms ease;
  opacity: 0;
}
.nav_link:hover:after {
  opacity: 1;
}

.nav_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  margin: 0 auto;
  background-color: #ffffff;
  width: 100%;
  max-width: 1200px;
}

.sign-up {
    margin: 0;
    margin-top: 2px;
    padding: 10px 32px;
    color: #fff;
    border-radius: 9999px;
    line-height: 1.5;
    background-color: rgb(42, 149, 69);
    width: auto;
    border: none;
    transition: all 300ms ease;
    white-space: nowrap;

}

.sign-up:after {
  content: "";
  width: 0;
  height: 0;
}
.sign-up:hover {
  background-color: rgba(42, 149, 69, 0.678);
  color: white;
}

.login {
    margin-left: 48px;
}

/* LANDING */

.projects_hero {
    height: 45vh;

    background:
    linear-gradient(
        rgba(0,0,0,.45),
        rgba(0,0,0,.45)
    ),
    url("assets/projects-banner.jpg");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.projects_hero-overlay h1 {
    font-size: 64px;
    color: white;
    margin-bottom: 16px;
}

.projects_hero-overlay p {
    color: white;
    max-width: 700px;
}

/* MENU */

.btn_menu {
  border: none;
  transition: all 300ms ease;
  display: none;
}
.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 378px;
  margin: 24px 16px;
  padding: 32px;
  background-color: #fff;
  border: 1px solid rgb(229, 231, 235);
  border-radius: 8px;
  z-index: 1001;
  visibility: hidden;
  opacity: 0;
  transform: translateX(300%);
  transition: all 300ms ease;
  pointer-events: none;
}
.menu-open {
  max-height: 100vh;
  overflow-y: hidden;
}
.menu-open .menu {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.menu_links {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.menu_link {
  color: #1a202c;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin: 8px 0;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.menu_link-primary {
  color: #f7fafc;
  padding: 12px 32px;
  background: rgb(42, 149, 69);
  border-radius: 500px;
  border: none;
}
.btn_menu-close {
  position: fixed;
  top: 24px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 32px;
  color: #243e63;
  z-index: 10;
}
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 300ms;
  z-index: 1000;
}
.menu-open .overlay {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* PROJECTS */

#Projects {
    padding: 100px 0;
}

.projects_controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.projects_filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(36,62,99,0.08);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: #243e63;
  cursor: pointer;
  transition: all 200ms ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: rgb(42,149,69);
  color: white;
  border-color: rgb(42,149,69);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(42,149,69,0.12);
}

.projects_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.project_card {
    background: white;

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
    0 20px 40px rgba(0,0,0,.08);

    transition: all 300ms ease;
}

.project_card:hover {
    transform: translateY(-12px);

    box-shadow:
    0 40px 80px rgba(0,0,0,.15);
}

.project_media {
    overflow: hidden;
}

.project_media img {
    width: 100%;
    height: 280px;
    object-fit: cover;

    transition: 500ms;
}

.project_card:hover img {
    transform: scale(1.08);
}

.project_body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.project_body h3 {
  font-size: 20px;
  color: #1f3b57;
}

.project_meta {
  color: #718096;
  font-size: 14px;
}

.view-project.btn_primary {
  padding: 10px 18px;
  border-radius: 8px;
  align-self: flex-start;
}

.project-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.project-modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 24px;
  width: 92%;
  max-width: 1000px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 420px;
}

.modal-media .modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.modal-title {
  font-size: 32px;
  margin-bottom: 12px;
  color: #243e63;
}

.modal-desc {
  color: #4a5568;
  font-size: 17px;
  line-height: 1.6;
}

.modal-controls {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.modal-prev,
.modal-next {
  background: rgb(42,149,69);
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

.modal-prev:hover,
.modal-next:hover {
    opacity: .8;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.45);
  border-radius: 8px;
  border: none;
  color: white;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
}

.btn_primary {
    background: rgb(42,149,69);

    color: white;

    border: none;

    padding: 12px 24px;

    border-radius: 999px;

    font-weight: 700;

    cursor: pointer;

    transition: all 300ms ease;
}

.btn_primary:hover {
    transform: translateY(-2px);

    background: rgb(34,126,57);
}

/* FOOTER */

footer {
    background: #1f2b1f;
    color: white;
}

.footer_container {
    padding: 80px 24px;

    text-align: center;
}

.footer_container img {
    width: 220px;

    margin-bottom: 20px;
}

.footer_container h3 {
    color: white;
    font-size: 28px;
}

.footer_container p {
    color: rgba(255,255,255,.75);
}

.footer_socials {
    margin: 30px 0;
}

.footer_socials a {
    color: white;

    font-size: 24px;

    margin: 0 16px;

    transition: 300ms;
}

.footer_socials a:hover {
    color: rgb(42,149,69);
}

/* MEDIA */

@media (max-width: 1024px) {
  .projects_grid { grid-template-columns: repeat(2, 1fr); }
  .modal-content { grid-template-columns: 1fr 320px; }
}

@media (max-width: 768px) {
  .projects_grid { grid-template-columns: 1fr; }
  .modal-content { grid-template-columns: 1fr; min-height: 360px; }
  .modal-body { order: 2; }
  .modal-media { order: 1; }
}

@media (max-width: 768px) {
  .nav_links {
    display: none;
  }

  .btn_menu {
    display: block;
  }
}