/* --------------------------- */
/*        GLOBAL STYLES        */
/* --------------------------- */
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: "Inter", sans-serif;
  background: url("../images/mountains.jpg") no-repeat center center/cover;
}

.overlay {
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.content {
  text-align: center;
  color: white;
  width: 90%;
  max-width: 1000px;
  padding-top: 300px;
}

.name {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 40px;
}

.footer-credit {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 501;
  color: white;
  background: rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 9999px;
  pointer-events: auto;
}

.footer-credit a {
  color: white;
  text-decoration: underline;
}


/* --------------------------- */
/*        PROJECT BOXES        */
/* --------------------------- */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 0 auto;
  padding: 1rem 0;
}

.project {
  flex: 1 1 30%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
}

/* Container for Header and Details */
.project-content {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

/* Header */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 14px 20px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
}

.project-header:hover {
  background: rgba(255,255,255,0.2);
}

.arrow {
  transition: transform 0.3s ease;
}

/* Details Box */
.project-details {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.35s ease, padding 0.35s ease;
  text-align: left;
}

.project-details p {
  margin: 0;
  font-weight: 525;
  text-align: left;
  line-height: 1.6;
}

/* Details open */
.project.open .project-details {
  max-height: 200px;
  padding: 10px 20px;
}

/* Rotate Arrow */
.project.open .arrow {
  transform: rotate(180deg);
}

/* Continue Button */
.continue-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  background: white;
  color: black;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
}

.coming-soon-badge {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgb(196, 196, 196);
  color: rgb(54, 54, 54);
  font-weight: 600;
  pointer-events: none;
  margin-top: 10px;
}

.continue-btn:hover {
  background: rgba(229, 229, 229, 0.8);
}


/* --------------------------- */
/*        RESPONSIVE           */
/* --------------------------- */
@media (max-width: 900px) {
  /* One Project per Row on Mobile */
  .project {
    flex: 1 1 100%;
  }
}

@media (max-width: 600px) {
  .content {
    padding-top: 30px;
  }

  .project-header {
    font-size: 1rem;
    padding: 12px 18px;
  }

  .project-details {
    font-size: 0.95rem;
  }

  .continue-btn {
    padding: 8px 16px;
  }
}