/* Project detail page specific styles */

.project-header {
  margin-bottom: 60px;
}

.project-title {
  font-size: 32px;
  margin-bottom: 20px;
}

.project-description {
  max-width: var(--text-container-width);
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.8;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 60px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.meta-item {
  margin-right: 60px;
  margin-bottom: 20px;
}

.meta-label {
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 5px;
  opacity: 0.7;
}

.meta-value {
  font-size: 16px;
}

.project-content {
  max-width: var(--text-container-width);
  margin-bottom: 60px;
}

.project-section {
  margin-bottom: 60px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 30px;
  color: var(--accent-color);
}

.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.image-container {
  position: relative;
  padding-bottom: 75%;
  /* 4:3 aspect ratio */
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-video {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 60px;
}

.project-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Vimeos specific start */
/* Estilos para el div */
#colour-whiplash div {
  padding: 56.25% 0 0 0;
  position: relative;
}

#colour-riojy div {
  padding: 58.93% 0 0 0;
  position: relative;
}

#mols-eyes div {
  padding: 99.44% 0 0 0;
  position: relative;
}

#pixel-kraftwerk div {
  padding: 56.67% 0 0 0;
  position: relative;
}

/* Estilos para el frame */
#colour-whiplash iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#colour-riojy iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#mols-eyes iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#pixel-kraftwerk iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Vimeos specific end */

.project-link-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--bg-color);
  padding: 12px 30px;
  margin-top: 30px;
  font-family: var(--font-primary);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background-color 0.3s;
  border: none;
}

.project-link-button:hover {
  background-color: var(--accent-dim-color);
  opacity: 1;
}

.back-to-projects {
  display: inline-flex;
  align-items: center;
  margin-bottom: 40px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.back-to-projects:before {
  content: "←";
  margin-right: 8px;
}

.back-to-projects:hover {
  opacity: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.tech-tag {
  background-color: var(--border-color);
  color: var(--text-color);
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .project-meta {
    flex-direction: column;
  }

  .meta-item {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .project-images {
    grid-template-columns: 1fr;
  }

  .intro,
  .about,
  .contact,
  .project-description,
  .project-content {
    max-width: 100%;
  }
}