/* Projects Section Styles */
.projects-section {
  padding: 18px 24px;
  background: var(--section-bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1200px;
  margin: 20px auto 0 auto;
}

.projects-section h2 {
  text-align: left;
  font-size: var(--section-heading-size);
  margin-bottom: var(--section-heading-margin);
  color: var(--section-heading-color);
  font-family: var(--section-heading-font);
  font-weight: var(--section-heading-weight);
}

.projects-section h2 i {
  color: var(--section-icon-color);
  margin-right: 15px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: #f8fafc;
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(30,60,120,0.06);
  padding: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
  height: 380px;
  min-height: 380px;
}

.project-card:hover {
  box-shadow: 0 6px 24px rgba(30,60,120,0.12);
  transform: translateY(-4px) scale(1.01);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f8f8f8;
  display: block;
  border-radius: 8px;
  margin-bottom: 18px;
}

.project-card h3 {
  font-size: 1.18rem;
  color: var(--text-color);
  font-weight: 700;
  margin: 0 0 10px 0;
  padding: 0 24px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 24px;
  margin-top: 8px;
}

.project-tag {
  background: #e3f7fa;
  color: #1ecbe1;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #d1f2f6;
}

.project-card p {
  font-size: var(--body-font-size);
  color: var(--body-color);
  margin: 0;
  padding: 0 24px;
  flex-grow: 1;
  display: flex;
  align-items: flex-start;
}

@media (max-width: 700px) {
  .projects-section {
    padding: 10px 6vw;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .project-card {
    height: 320px;
    min-height: 320px;
  }
  .project-card img {
    height: 160px;
  }
}

.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}

.project-modal.active {
  display: flex;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: white;
  padding: 30px;
  max-width: 900px;
  width: 90%;
  margin: 40px auto;
  border-radius: 8px;
  z-index: 1001;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #888;
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #1ecbe1;
}

.modal-img-wrap {
  width: 100%;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 400px;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 2px 12px rgba(30,60,120,0.10);
}

.modal-text-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#modal-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: #1a2a4d;
  margin-bottom: 12px;
}

.modal-description {
  font-size: 1.08rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal-section {
  margin-bottom: 16px;
}

.modal-section strong {
  color: #1a2a4d;
  font-size: 1.04rem;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

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

.modal-tag {
  background: #e3f7fa;
  color: #1ecbe1;
  border-radius: 4px;
  padding: 2px 10px;
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 4px;
}

@media (max-width: 700px) {
  .modal-content {
    padding: 18px 6vw 18px 6vw;
    max-width: 98vw;
  }
  .modal-img-wrap {
    margin-bottom: 18px;
  }
  .modal-img-wrap img {
    max-height: 300px;
    height: 300px;
  }
}

/* Modal Carousel Styles */
.modal-carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.modal-carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.modal-carousel-slide {
  display: none;
  width: 100%;
}

.modal-carousel-slide.active {
  display: block;
}

.modal-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-carousel-caption {
  text-align: center;
  padding: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  position: absolute;
  bottom: 0;
  width: 100%;
}

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

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

.modal-carousel-prev {
  left: 10px;
}

.modal-carousel-next {
  right: 10px;
}

.modal-carousel-dots {
  text-align: center;
  padding: 10px 0;
}

.modal-carousel-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-carousel-dot.active {
  background: #717171;
}

.modal-single-image {
  width: 100%;
  margin: 20px 0;
  display: none;
}

.modal-single-image img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f8f8;
}

.modal-carousel {
  display: none;
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
} 