/* Projects page styles */
body {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 50%, #fff5fb 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  align-items: center;
  padding: 10px 0px;
}

.container .projects-grid {
  margin: auto 0 2rem 0;

}

.projects-hero {
  padding: 48px 20px;
  text-align: center;
}

.projects-hero h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 8px;
  background: linear-gradient(135deg, #005187 0%, #df2fa7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projects-hero p {
  color: #005187;
  max-width: 760px;
  margin: 0 auto 20px;
}

/* Projects grid layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  background: linear-gradient(135deg, #00518769, #df2fa769);
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px;

}

/* Project card styles */
.project-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  overflow: hidden;
  height: 320px;
  width: 100%;
  aspect-ratio: 1;
  background: whitesmoke;
  border-radius: 1px;
  border: 4px solid transparent;
  /*border-image: linear-gradient(#005187, #df2fa7) 30;*/
  box-shadow: 0 8px 20px rgba(0, 81, 135, 0.1);
  transition: transform 0.3s ease;
}

.project-media {
  display: block;
  width: 320px;
  height: 250px;
  object-fit: fill;
  border-radius: 10%;
  border-image: linear-gradient(#005187, #df2fa7) 30;
}

.project-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 81, 135, 0.95), rgba(223, 47, 167, 0.95));
  backdrop-filter: blur(10px);
  padding: 20px;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.project-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: white;
  text-align: center;
}

.project-desc {
  color: white;
  font-size: 16px;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.4;
}

.project-cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  background: white;
  color: #005187;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(223, 47, 167, 0.3);
}

/* Hover animations */
.project-card:hover .project-content {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(223, 47, 167, 0.25);
}

.project-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(223, 47, 167, 0.5);
  color: #df2fa7;
}

/* Modal styles */
.project-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.project-modal[aria-hidden="false"] {
  display: flex;
}

.project-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.6);
}

.project-modal-panel {
  position: relative;
  width: min(880px, 92%);
  max-height: 86vh;
  overflow: auto;
  background: linear-gradient(135deg, #c5e2f5c9, rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 2px solid transparent;
  box-shadow: 0 30px 80px rgba(0, 81, 135, 0.3);
  display: flex;
  flex-direction: column;
}

.project-modal .modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  border: none;
  color: #a7108e;
  font-size: 26px;
  cursor: pointer;
}

.modal-media {
  width: 100%;
  height: 420px;
  padding: 15px;
  object-fit: contain;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.modal-body {
  padding: 10px 18px 18px 18px;
}

.modal-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.modal-desc {
  color: #07336b;
  margin-bottom: 12px;
}

/* Helper note */
.note {
  font-size: 13px;
  color: #cbd9ee;
  margin-top: 18px;
  text-align: center;
}

/* Responsive styles */
@media (max-width: 768px) {
   .header-inner {
    padding: 1rem;
  }

  .container .projects-grid {
    margin: 0 auto;
  }
  .project-card {
    height: 280px;
  }
  .project-media {
    height: 180px;
    width: 260px;
  }
  

  .modal-media {
    padding: 12px;
    height: auto;
    
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 90%;
    gap: 15px;
  }
  
}

@media (max-width: 560px) {
 

  .projects-grid {
    grid-template-columns: auto;
    grid-template-rows: auto;
  
  }
.project-card {
    height: 300px;
  }
  .project-media {
    height: 220px;
    width: 280px;
  }

  .modal-media {
    padding: 5px;
    height: auto;
  }

  .modal-body {
    padding: 12px;
  }
}

@media (max-width: 480px) {

}