/* Projects Page */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.project-image {
    height: 200px;
    overflow: hidden;
}

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

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

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: #00e0ff;
}

.project-info p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: #fff;
    text-decoration: none;
    background-color: #00e0ff;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-links a:hover {
    background-color: #fff;
    color: #00e0ff;
}

/* Modal dos projetos */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background-color: #222;
  margin: 100px auto;
  padding: 30px;
  border: 1px solid #00e0ff;
  width: 90%;
  max-width: 600px;
  border-radius: 10px;
  color: #fff;
  position: relative;
}

.fechar {
  color: #00e0ff;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.fechar:hover {
  color: #fff;
}

.modal-img {
  width: 100%;
  margin-top: 20px;
  border-radius: 8px;
  border: 2px solid #00e0ff;
  transition: transform 0.3s ease;
  cursor: pointer;
}

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

.ver-mais-btn {
  margin-top: 10px;
  background-color: transparent;
  color: #00e0ff;
  border: 1px solid #00e0ff;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s ease;
}

.ver-mais-btn:hover {
  background-color: #00e0ff;
  color: #222;
}

/* Modal expandido para imagens */
.image-expanded {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
}

.image-expanded.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.expanded-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.expanded-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}

.expanded-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.close-expanded {
  position: fixed;
  top: 20px;
  right: 30px;
  color: #00e0ff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10002;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.3s ease;
  line-height: 1;
}

.close-expanded:hover {
  color: #fff;
  background-color: transparent;
}

.close-expanded:focus {
  outline: none;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 224, 255, 0.8);
  color: #222;
  border: none;
  font-size: 30px;
  cursor: pointer;
  padding: 15px 20px;
  border-radius: 5px;
  z-index: 10001;
  transition: background-color 0.3s ease;
}

.nav-arrow:hover {
  background-color: #00e0ff;
}

.nav-arrow:focus {
  outline: none;
}

.nav-arrow.left {
  left: 20px;
}

.nav-arrow.right {
  right: 20px;
}

.image-counter {
  color: #00e0ff;
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
}

/* RESPONSIVIDADE MOBILE */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .nav-arrow {
      padding: 10px 15px;
      font-size: 24px;
    }

    .expanded-content img {
      max-height: 70vh;
    }

    .close-expanded {
      font-size: 32px;
      right: 15px;
      top: 15px;
    }
}
