/* root colors */
:root {
  --lavender: #aebde6;
  --blue: #708dd1;
  --mid-blue: #4067c6;
  --dark-blue: #1241b3;
  --darker-blue: #030f29;
  --gray: #8d8c91;
  --mid-gray: #6f7f99;
  --dark-gray: #424246;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background-color: white;
  font-family: Arial, Helvetica, sans-serif;
}

.custom-tag {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--dark-gray);
}

.custom-subtag {
  color: white;
  font-size: 12px;
  letter-spacing: 3px;
}

.custom-title {
  color: black;
  margin: 20px 0;
  font-size: 56px;
  font-weight: 500;
}

.custom-subtitle {
  color: black;
  margin: 20px 0;
  font-size: 45px;
  font-weight: 500;
}

.custom-large-separator {
  height: 1px;
  width: 500px;
  margin: 0 auto;
  background: var(--dark-gray);
}

.custom-img {
  width: 100%;
  height: 300px;
  margin: 20px 0;
  object-fit: cover;
  border-radius: 24px;
}

/* Navbar style */
.navbar {
  top: 0;
  width: 100%;
  z-index: 1000;
  position: fixed;
  background: white;
  box-shadow: 0 2px 10px var(--mid-gray);
}

.nav-container {
  margin: auto;
  display: flex;
  max-width: 1500px;
  padding: 10px 30px;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  max-width: 180px;
}

.nav-menu {
  gap: 24px;
  display: flex;
  list-style: none;
}

.nav-menu a {
  color: black;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--blue);
}

.nav-toggle {
  border: none;
  display: none;
  cursor: pointer;
  font-size: 24px;
  background: none;
  color: var(--mid-gray);
}

/* Principal info */
.overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  background: white;
  pointer-events: none;
  background: linear-gradient(0deg, var(--lavender) 0%, white 85%);
}

.info {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.info-content {
  top: 50%;
  left: 50%;
  width: 90%;
  padding: 20px;
  color: white;
  max-width: 600px;
  text-align: left;
  position: absolute;
  transform: translate(-50%, -50%);
}

.info-grid {
  gap: 150px;
  display: grid;
  align-items: center;
  grid-template-columns: 1.2fr 1fr;
}

.custom-title span {
  font-style: italic;
  color: var(--blue);
}

.info-description {
  font-size: 16px;
  max-width: 500px;
  line-height: 1.6;
  color: var(--dark-gray);
}

.info-right {
  gap: 24px;
  display: flex;
  flex-direction: column;
}

.info-stat {
  padding-top: 15px;
  border-top: 1px solid var(--lavender);
}

.info-stat h2 {
  margin: 0;
  color: black;
  font-size: 36px;
}

.info-stat p {
  margin: 5px 0 0;
  font-size: 14px;
  color: var(--dark-gray);
}

/* services */
.services {
  padding: 100px 50px;
  background: var(--lavender);
}

.services-container {
  margin: auto;
  max-width: 1200px;
}

.services-grid {
  gap: 25px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.service-card {
  background: white;
  border-radius: 24px;
  transition: all 0.3s ease;
  border: 1px solid var(--gray);
}

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.service-card-custom img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.service-card-wide {
  grid-column: span 2;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--dark-gray);
}

.service-card h3 {
  padding: 20px 30px 10px;
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--dark-gray);
}

.service-card p {
  padding: 15px 20px;
  font-size: 14px;
  line-height: 1.5;
  text-align: justify;
  color: var(--dark-gray);
}

/* Projects section */
.projects {
  padding: 100px 50px;
  background: var(--darker-blue);
}

.projects-container {
  margin: auto;
  max-width: 1500px;
}

.projects .custom-tag {
  color: var(--lavender);
}

.projects .custom-subtitle {
  color: white;
}

.projects-grid {
  gap: 30px;
  display: grid;
  margin-top: 60px;
  grid-template-columns: 1fr;
}

.project-card {
  overflow: hidden;
  position: relative;
  border-radius: 28px;
  background: var(--darker-blue);
  transition: transform 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-image {
  width: 100%;
  height: 650px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-overlay {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 50px;
  position: absolute;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    transparent 100%
  );
}

.project-content {
  max-width: 500px;
}

.project-content h3 {
  color: white;
  font-size: 52px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 20px;
}

.project-separator {
  width: 124px;
  height: 3px;
  margin-bottom: 30px;
  background: var(--blue);
}

.project-details {
  gap: 24px;
  display: flex;
  flex-wrap: wrap;
}

.project-details div {
  min-width: 140px;
}

.project-details span {
  display: block;
  color: var(--lavender);
  font-size: 11px;
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.project-details p {
  color: white;
  font-size: 15px;
  line-height: 1.5;
}

/* Carousel section */
.clients {
  overflow: hidden;
  padding: 100px 50px;
  background: white;
}

.clients-container {
  margin: auto;
  max-width: 1500px;
}

.clients-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.clients-track {
  display: flex;
  width: max-content;
  animation: scrollClients 50s linear infinite;
}

.clients-track img {
  width: 160px;
  height: 80px;
  margin: 0 24px;
  flex-shrink: 0;
  object-fit: contain;
}

@keyframes scrollClients {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Contact */
.contact {
  padding: 100px 20px;
  background: var(--lavender);
}

.contact-container {
  max-width: 1500px;
  margin: auto;
  text-align: start;
}

.contact-content {
  gap: 30px;
  display: grid;
  padding-top: 50px;
  align-items: center;
  grid-template-columns: 1.2fr 1.6fr 1.2fr;
}

.contact-info {
  gap: 20px;
  display: flex;
  flex-direction: column;
}

.info-card {
  gap: 15px;
  padding: 20px;
  display: flex;
  transition: 0.3s;
  border-radius: 14px;
  align-items: center;
  background: white;
}

.info-card h4,
.info-card p {
  margin-left: 10px;
}

.info-card ul {
  margin-left: 20px;
}

.contact-map iframe {
  width: 100%;
  border: none;
  height: 320px;
  border-radius: 14px;
}

.contact-form form {
  gap: 15px;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  font-size: 14px;
  border-radius: 14px;
  border: 1px solid white;
}

.contact-form textarea {
  resize: none;
  height: 150px;
}

.contact-form button {
  border: none;
  padding: 12px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  font-weight: bold;
  border-radius: 10px;
  background: var(--dark-blue);
}

.contact-form button:hover {
  background: var(--mid-blue);
}

.socials-title {
  padding: 10px;
}

.info-socials {
  gap: 20px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-socials a {
  color: inherit;
}

.info-socials svg {
  font-size: 24px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.info-socials svg:hover {
  transform: scale(1.2);
}

/* Footer section */
.footer {
  text-align: center;
  background: white;
  padding: 60px 20px 20px;
}

.footer-container {
  gap: 10px;
  margin: auto;
  display: flex;
  max-width: 1500px;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  height: auto;
  width: 140px;
  display: block;
  max-width: 100%;
  margin: 0 auto 14px;
}

.footer-container a {
  color: black;
  font-size: 16px;
  padding: 5px 10px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-container a:hover {
  color: var(--blue);
}

/* bottom */
.footer-bottom {
  margin-top: 24px;
  padding-top: 20px;
  text-align: center;
  border-top: 1px solid var(--lavender);
}

.footer-bottom p {
  font-size: 14px;
  color: var(--gray);
}

/* Sweet alert */
.my-popup {
  border-radius: 24px;
}

/* Responsive */
@media (max-width: 800px) {
  /* Navbar */
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    right: 0;
    top: 60px;
    gap: 20px;
    width: 100%;
    display: none;
    align-items: end;
    padding: 20px 30px;
    position: absolute;
    background: white;
    flex-direction: column;
  }

  .nav-menu.active {
    display: flex;
  }

  .custom-large-separator {
    width: 200px;
  }

  /* principal info */
  .info{
    margin-top: 60px;
  }

  .info-grid {
    gap: 40px;
    grid-template-columns: 1fr;
  }

  .info-right {
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: row;
  }

  .info-stat {
    width: 45%;
  }

  /* services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-wide {
    grid-column: span 1;
  }

  /* projects */
  .projects {
    padding: 100px 20px;
  }

  .project-image {
    height: 450px;
  }

  .project-overlay {
    padding: 30px;
  }

  .project-content h3 {
    font-size: 34px;
  }

  .project-details {
    gap: 16px;
    flex-direction: column;
  }

  /* contact */
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-map iframe {
    height: 250px;
  }

  .info-socials {
    gap: 100px;
    align-items: center;
    justify-content: center;
  }

  /* footer */
  .footer-container {
    gap: 4px;
    flex-direction: column;
  }

  .footer-container a {
    display: block;
    font-size: 16px;
  }
}