html {
  scroll-behavior: smooth;
}

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

body {
font-family: poppins, sans-serif;
line-height: 1.6;
}

/* Header styles */
header {
background-color: white;
padding: 20px 0;
box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.containerheader {
width: 90%;
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}

.logo {
width: 230px;
height: auto;
}

.nav-menu {
display: flex;
list-style: none;
align-items: center;
}

.nav-link {
text-decoration: none;
color: #333;
font-size: 18px;
margin: 0 20px;
padding: 5px 0;
position: relative;
}

.nav-link.active {
color: #759934;
}

.nav-link.active::after {
content: '';
position: absolute;
bottom: -10px;
left: 0;
border-radius: 20px;
width: 100%;
height: 3px;
background-color: #759934;
}

.contact-btn {
background-color: #415223;
color: white;
text-decoration: none;
padding: 15px 30px;
border-radius: 15px;
font-size: 18px;
font-weight: 500;
margin-left: 20px;
}
 
.projects-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}

/* Projects grid */
/* Projects section styles */
.projects {
background-color: #1a1a1a;
padding: 40px 0;
}

.projects .section-title h2 {
font-size: 48px;
color: #759934;
margin-bottom: 20px;
text-align: center;
}

.projects .section-title p {
font-size: 18px;
color: white;
max-width: 900px;
margin: 0 auto 30px;
text-align: center;
line-height: 1.5;
font-weight: 400;
}

.projects-container {
display: block;
grid-template-columns: repeat(4, 1fr);
gap: 40px;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

.project-card {
position: relative;
border-radius: 8px;
overflow: hidden;
height: 500px;
transition: all 0.3s ease;
box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
cursor: pointer;
}

.project-card:hover {
transform: translateY(-8px);
box-shadow: 0 20px 30px rgba(0, 0, 0, 0.6);
}

.project-card img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
cursor: pointer;
}

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

.project-info {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 25px 20px;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.9));
color: white;
transform: translateY(0);
transition: transform 0.3s ease;
}

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

.project-info h3 {
font-size: 22px;
font-weight: 600;
margin-bottom: 8px;
}

.project-info p {
color: white;
font-size: 16px;
opacity: 0.9;
}

.project-category {
font-size: 14px;
color: #8BAF5E;
font-weight: 500;
letter-spacing: 0.5px;
}
.company-name {
  color: #759934;
  font-weight: 700;
}

/* Responsive design for projects section */
@media (max-width: 1200px) {
.projects-container {
padding: 0 30px;
}
}

@media (max-width: 992px) {
.projects-container {
grid-template-columns: repeat(2, 1fr);
gap: 25px;
}

.projects .section-title h2 {
font-size: 42px;
}
}

@media (max-width: 768px) {
.projects {
padding: 60px 0;
}

.projects .section-title h2 {
font-size: 36px;
}

.projects .section-title p {
font-size: 16px;
padding: 0 20px;
}

.project-card {
height: 350px;
}
}

@media (max-width: 576px) {
.projects-container {
grid-template-columns: 1fr;
gap: 30px;
padding: 0 20px;
}

.project-card {
height: 320px;
}

.projects .section-title h2 {
font-size: 32px;
}
}

/* Modal styles */

.full-image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
}

.modal-image {
  display: block;
  max-width: 90%;
  max-height: 90vh;
  margin: 40px auto;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.image-caption {
  margin: 20px auto;
  width: 80%;
  text-align: center;
  color: white;
  font-size: 20px;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
}

.close-modal:hover,
.close-modal:focus {
  color: #8BAF5E;
  text-decoration: none;
  transform: scale(1.2);
}

/* Animación para la imagen */
@keyframes fadeZoomIn {
  from {
      opacity: 0;
      transform: scale(0.8);
  }
  to {
      opacity: 1;
      transform: scale(1);
  }
}

.modal-image {
  animation: fadeZoomIn 0.4s ease-out;
}

/* Footer styles */
.footer {
  background-color: white;
  padding: 40px 60px 10px;
  font-family: 'Poppins', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  display: grid;
  justify-content: center;
  justify-items: column;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}

.footer-top {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-logo {
  flex: 1;
  min-width: 150px;
  max-width: 200px;
}

.footer-logo img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.footer-top h3 {
  font-size: 22px;
  margin: 10px 0;
  font-weight: 600;
}

.footer-logo p {
  font-size: 15px;
  color: white;
  line-height: 1;
}

.footer-content {
  display: flex;
  flex: 3;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h3 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
  color: black;
}

.footer-column p, .footer-column a {
  font-size: 14px;
  margin: 6px 0;
  line-height: 1.6;
  color: #1a1a1a;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #759934;
}

.footer h3 {
  color: #759934;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icon {
  width: 36px;
  height: 36px;
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon:hover {
  color: black;
}

.social-icon i {
  font-size: 16px;
  color: #759934;
}

.footer-bottom {
  position: relative;
  justify-content: center;
  text-align: center;
  color: #6c6c6c;
  font-size: 13px;
  flex-direction: column;
}
