/* === IMPORT FONT === */
@import url('https://fonts.googleapis.com/css2?family=Caprasimo&display=swap');

/* === GLOBAL SECTION STYLE === */
.projects-section {
    font-family: "Caprasimo", serif;
    font-weight: 400;
    font-style: normal;
    padding: 0rem 2rem;
    text-align: center;
}

.projects-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
    color: #003344;
}

.projects-header p {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 2rem;
}

/* === PROJECTS GRID === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* === CARD === */
.project-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: scale(1.03);
}

/* === IMAGE === */
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 16 / 10;
}

/* === MODAL STYLE === */
.project-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    max-width: 300px;
    margin: 8% auto;
    padding: 2rem;
    border-radius: 14px;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #003344;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
    color: #333;
    margin-bottom: 1.5rem;
}

/* === BUTTON STYLE === */
.modal-button {
    display: inline-block;
    background-color: #00b300;
    color: white;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modal-button:hover {
    background-color: #009900;
    transform: scale(1.05);
}

/* === CLOSE BUTTON === */
.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.modal-close:hover {
    color: #000;
}

/* === MOBILE OPTIMIZATION === */
@media (max-width: 768px) {
  .projects-section {
    padding: 3rem 1rem;
  }

  .projects-header h2 {
    font-size: 2rem;
  }

  .projects-header p {
    font-size: 1rem;
  }

  .project-card {
    height: 200px;
  }
}