@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");

:root {
  --primary: white;
  --text: black;
  --body-font: "Poppins", sans-serif;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --z-fixed: 100;
  --secondery: #ec4e20;
  --accent: #7fb7be;
  --header-height: 60px;
}

@media screen and (min-width: 768px) {
  :root {
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
  }
}

*,
::before,
::after {
  box-sizing: border-box;
}

body {
  margin-top: var(--header-height);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: 500;
  line-height: 1.5;
  overflow-x: hidden;
  padding-top: 60px;
  background: var(--primary);
  font-family: var(--body-font);
}
html,
body {
  width: 100vw;
  height: 100%;
  margin: 0;
  padding: 0;
  padding-top: 60px;
  overflow-x: hidden;
  background-color: var(--primary);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.bd-grid {
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 1.5rem;
}

@media screen and (min-width: 768px) {
  .bd-grid {
    max-width: 1024px;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.header {
  position: fixed;
  width: 100%;
  height: var(--header-height);
  top: 0;
  left: 0;
  padding: 0 1.5rem;
  background-color: var(--secondery);
  z-index: var(--z-fixed);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.header.hidden {
  opacity: 0;
  transform: translateY(-100%);
}

.header.visible {
  opacity: 1;
  transform: translateY(0);
}

.header_logo {
  color: var(--primary);
}

.header_toggle {
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

.nav {
  position: fixed;
  top: 0;
  left: -100%;
  background-color: var(--secondery);
  color: var(--text);
  height: 100vh;
  width: 100vw;
  padding: 1.5rem 0;
  z-index: var(--z-fixed);
  transition: 0.5s;
  display: flex;
}

.nav_content {
  height: 110%;
  display: grid;
  grid-template-rows: max-content 1fr max-content;
  gap: 2rem;
}

@media screen and (min-width: 768px) {
  .nav {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
  }
}

.nav_close {
  position: absolute;
  right: 1.5rem;
  font-size: 1.3rem;
  padding: 0.25rem;
  background-color: var(--primary);
  border-radius: 50%;
  cursor: pointer;
}

.nav_perfil {
  display: flex;
  align-items: center;
}

.nav_img {
  display: inline-block;
  width: 56px;
  height: 56px;
  background-color: var(--primary);
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.nav_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav_name {
  display: block;
  color: var(--text);
  font-size: var(--normal-font-size);
}

.nav_profession {
  font-size: var(--small-font-size);
  color: var(--text);
  display: block;
}

.nav_menu {
  align-self: center;
}

.nav_item {
  margin: 2.5rem 0;
}

.nav_link {
  color: var(--text);
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

.nav_social {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
  margin-top: auto;
  padding: 1rem 0;
  align-items: center;
}

.nav_social-icon {
  font-size: 1.5rem;
  color: var(--text);
  margin: 0 0.5rem;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
}

.nav_social-icon:hover {
  color: var(--primary);
}

.show {
  left: 0;
}

.active {
  color: var(--primary);
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }

  .header {
    height: calc(var(--header-height) + 1rem);
  }

  .header_logo,
  .header_toggle {
    display: none;
  }

  .nav {
    display: flex;
    width: 100%;
    height: 70px;
    background-color: transparent;
    padding: 0;
    position: static;
  }

  .nav_content {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
  }

  .nav_close,
  .nav_profession {
    display: none;
  }

  .nav_img {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
  }

  .nav_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .nav_list {
    display: flex;
    gap: 0.5rem;
  }

  .nav_link {
    padding: 0.5rem 1rem;
    border-radius: 4px;
  }

  .nav_link:hover {
    background-color: var(--primary);
  }

  .active {
    background-color: var(--primary);
    color: var(--text);
  }
}

@media screen and (min-width: 1024px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
}
* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}
a {
  text-decoration: none;
  color: var(--text);
}
a:hover {
  color: var(--primary);
}
.nav_list a:hover {
  color: var(--accent);
}

.container {
  padding: 4rem 2rem;
  color: var(--text);
}
.highlighted {
  color: var(--secondery);
}
.hidden {
  display: none;
}
.btn {
  background-color: var(--secondery);
  color: var(--text);
  padding: o.5rem 3rem;
  border-radius: 5rem;
  display: inline-block;
  margin-top: 2rem;
  border: 2px solid var(--secondery);
}
.bth:hover {
  background-color: transparent;
  color: var(--secondery);
}
.nav {
  background-color: var(--secondery);
  display: flex;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-links {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 50%;
  background-color: var(--secondery);
  width: 100%;
  left: -100%;
  padding: 1rem;
  transition: left 0.5s ease;
}
.toogler line {
  width: 30px;
  height: 2px;
  display: block;
  background-color: var(--text);
  margin: 5px;
}

.hero {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  color: var(--text);
}

.hero-img {
  padding-top: 2rem;
  width: 300%;
  max-width: 400px;
  height: auto;
}

.hero-info {
  text-align: center;
  padding-top: 3rem;
}

.title {
  font-size: 2.5rem;
}

.hero-description {
  opacity: 0.7;
}

.about {
  color: var(--text);
}
.about-info {
  padding-top: 2rem;
}
.description {
  opacity: 0.7;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.secondery-tittle {
  display: inline-block;
  margin-bottom: 1.5rem;
}
.secondery-tittle::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 0.5rem;
  background-color: var(--accent);
}
.services-item {
  background: var(--secondery);
  border-radius: 10px;
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 1.5rem;
}

.services-item i {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.projects-header {
  padding-bottom: 2rem;
}
.projects-tab-btn {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--text);
  padding: 0.3rem 1.5rem;
  border-radius: 5rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.projects-tab-btn-active {
  background-color: var(--accent);
}
projects-item {
  margin-bottom: 1rem;
}
.project-item img {
  border-radius: 10px;
}

.contact-info-item {
  display: flex;
  color: var(--text);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 0.5rem;
  margin-bottom: 1rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

input,
textarea {
  background: var(--secondery);
  border: none;
  border-radius: 10px;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  color: var(--primary);
}
textarea::placeholder {
  color: var(--primary);
}
input::placeholder {
  color: var(--primary);
}

.footer {
  color: var(--text);
  text-align: center;
  padding: 2rem 0;
}
@media screen and (min-width: 700px) {
  .container {
    padding: 4rem 6rem;
  }

  .description {
    font-size: 1rem;
  }

  .grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .grid-item {
    width: 30%;
  }

  .hero {
    flex-direction: row;
    justify-content: space-between;
  }

  .hero-info {
    text-align: left;
  }

  .title {
    font-size: 5rem;
  }

  .about {
    display: flex;
    justify-content: space-between;
  }

  .about-img {
    width: 40%;
  }

  .about-info {
    width: 55%;
  }

  .contact {
    display: flex;
    justify-content: space-between;
  }

  .contact-form {
    width: 55%;
  }

  .submit-btn {
    font-size: 1.5rem;
  }
}

#services {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
h1.text-center.mb-5 {
  color: black;
  text-align: left;
  position: relative;
  left: 20px;
}

.servicesText {
  background-color: var(--secondery);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 250px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.servicesText:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.card-body {
  text-align: center;
}

.servicesIcon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.card-text {
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

#projects {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  cursor: pointer;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-item {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.grid-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.card-title {
  color: var(--primary);
}
#projectsShowcase {
  padding: 2rem;
  text-align: center;
  color: var(--primary);
}
h1.text-center.mb-3 {
  color: black;
  text-align: left;
  position: relative;
  left: 90px;
}
.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.projectCard {
  position: relative;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 0;
  background-color: var(--secondery);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.projectCard:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-content {
  padding: 1.5rem;
}

.project-title {
  font-weight: bold;
  font-size: 1.2rem;
}

.project-text {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-image,
.project-video {
  width: 80%;
  margin: 0 auto 1rem auto;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  object-fit: cover;
  display: block;
}
.project-video {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
}

.projectCard:hover .project-video {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.projectCard:hover .project-image {
  opacity: 0;
}
.media-wrapper {
  position: relative;
  width: 80%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 5px;
}
.tech-label {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.5rem;
  background-color: var(--primary);
  color: var(--text);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-top: 1rem;
}

.hover-effect {
  color: black;
  font-size: 12px;
  transition: color 0.3s ease-in-out, text-shadow 0.3s;
}

.hover-effect:hover {
  color: rgb(0, 174, 255);
  text-decoration: underline;
  text-shadow: 0px 0px 10px rgba(255, 0, 0, 0.8);
}
