/* Projects section styles */

#projects {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 4rem 6rem 4rem;
}


.projects-summary {
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  text-align: left;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.projects-summary strong {
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Project Card Styles */
.project-card {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow-light);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-medium);
}

.project-card h3 {
  color: var(--text-primary);
  font-size: 1.5em;
  margin-bottom: 16px;
  font-family: 'Libre Baskerville', serif;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  background: var(--gray-light);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 4px;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Remove the rule that changes all tags when hovering over the project card */

.project-tags span:hover {
  background: var(--white) !important;
  color: var(--accent-red) !important;
  border-color: var(--accent-primary) !important;
  transform: scale(1.05);
}

.project-tags span:nth-child(2n):hover {
  background: var(--white) !important;
  color: var(--accent-secondary) !important;
  border-color: var(--accent-secondary) !important;
}

.project-tags span:nth-child(3n):hover {
  background: var(--white) !important;
  color: var(--accent-tertiary) !important;
  border-color: var(--accent-tertiary) !important;
}

/* Remove project card description styles */
.project-card p {
  display: none;
}

/* Responsive design */
@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1rem 0.5rem;
    max-width: 100vw;
  }
  .project-card {
    min-width: 0;
    width: 100%;
    margin: 0 auto;
    padding: 10px;
  }
}

/* Project Modal Styles */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  overflow-y: auto;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.project-modal-content {
  background: var(--secondary-bg);
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  margin: 2rem auto;
  position: relative;
  border: 1px solid var(--border-light) !important;
  box-shadow: 0 8px 32px var(--shadow-darker) !important;
}

.project-modal-content:hover {
  border-color: var(--border-light) !important;
  box-shadow: 0 8px 32px var(--shadow-darker) !important;
}



.project-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.project-modal-title {
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.project-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.project-modal-tags span {
  background: rgba(255, 255, 255, 0.9);
  color: #333333;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-modal-close {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1002;
}

.project-modal-close:hover {
  opacity: 1;
}

.project-modal-section {
  margin-bottom: 2rem;
}

.project-modal-section h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.project-modal-section p,
.project-modal-section ul {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.project-modal-section ul {
  list-style: none;
  padding-left: 0;
}

.project-modal-section li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-modal-section li:before {
  content: "•";
  color: var(--accent-red);
  position: absolute;
  left: 0;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .project-modal {
    padding: 1rem;
  }

  .project-modal-content {
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .project-modal-title {
    font-size: 1.5rem;
  }

  .project-modal-section h3 {
    font-size: 1.2rem;
  }

  .project-modal-section p,
  .project-modal-section ul {
    font-size: 0.9rem;
  }
}

.project-modal-description {
  color: var(--text-primary);
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 24px;
}

.project-modal-details {
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.6;
}

.project-modal-carousel {
    position: relative;
    width: 100%;
    height: 2000px;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.project-modal-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.project-modal-carousel-prev,
.project-modal-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    transition: background-color 0.3s ease;
    border: none;
    z-index: 2;
}

.project-modal-carousel-prev:hover,
.project-modal-carousel-next:hover {
    background: rgba(0, 0, 0, 0.9);
}

.project-modal-carousel-prev {
    left: 30px;
}

.project-modal-carousel-next {
    right: 30px;
}

.project-modal-carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 2;
}

.project-modal-carousel-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.project-modal-carousel-dot.active {
    background: white;
} 