/* DevOps Projects Page Styles */

/* Section Padding */
.sect-pt4 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Cover Image Section */
.section-counter.paralax-mf.bg-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.overlay-mf {
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.title-box {
  margin-bottom: 3rem;
}

.title-a {
  text-decoration: none;
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
}

/* DevOps Projects Section */
.devops-projects-section {
  background: linear-gradient(135deg, #d9dcd6 0%, #ffffff 100%);
  min-height: 80vh;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #051923;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(45deg, #00A6FB, #0582CA);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #003554;
  margin-bottom: 3rem;
}

/* DevOps Project Cards */
.devops-project-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.devops-project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Project Image */
.project-image-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.devops-project-card:hover .project-image {
  transform: scale(1.1);
}

/* Project Overlay */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 166, 251, 0.9), rgba(5, 130, 202, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.devops-project-card:hover .project-overlay {
  opacity: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.project-link:hover {
  background: rgba(1, 3, 163, 0.3);
  color: #fff;
  transform: scale(1.1);
}

/* Project Content */
.project-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #051923;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.project-description {
  color: #003554;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Tech Stack */
.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: #afafaf;
  position: relative;
  overflow: hidden;
}

.tech-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.tech-tag:hover::before {
  left: 100%;
}

.tech-tag:hover{
  background: #00A6FB;
}

/* Project Stats */
.project-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #003554;
  font-size: 0.9rem;
}

.stat-item i {
  color: #00A6FB;
}

/* Modal Enhancements */
.modal-content {
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(45deg, #00A6FB, #0582CA);
  color: #fff;
  border-bottom: none;
}

.modal-title {
  font-weight: 700;
}

.btn-close {
  filter: invert(1);
}

.modal-body {
  padding: 2rem;
}

.modal-body img {
  border-radius: 10px;
}

.modal-body ul {
  padding-left: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .project-content {
    padding: 1.8rem;
  }
}

@media (max-width: 992px) {
  .section-title {
    font-size: 2rem;
  }
  
  .project-image-container {
    height: 220px;
  }
  
  .project-content {
    padding: 1.6rem;
  }
  
  .project-title {
    font-size: 1.3rem;
  }
  
  .project-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .project-image-container {
    height: 200px;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .project-title {
    font-size: 1.2rem;
  }
  
  .project-description {
    font-size: 0.9rem;
  }
  
  .tech-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  
  .project-stats {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  .devops-project-card {
    margin-bottom: 2rem;
  }
  
  .project-tech-stack {
    justify-content: center;
  }
  
  .project-links {
    gap: 0.5rem;
  }
  
  .project-link {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .project-image-container {
    height: 180px;
  }
  
  .project-content {
    padding: 1.2rem;
  }
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.devops-project-card {
  animation: fadeInUp 0.6s ease-out;
}

.devops-project-card:nth-child(1) { animation-delay: 0.1s; }
.devops-project-card:nth-child(2) { animation-delay: 0.2s; }
.devops-project-card:nth-child(3) { animation-delay: 0.3s; }
.devops-project-card:nth-child(4) { animation-delay: 0.4s; }
.devops-project-card:nth-child(5) { animation-delay: 0.5s; }
.devops-project-card:nth-child(6) { animation-delay: 0.6s; }

/* Loading and hover effects */
.devops-project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.8s;
  z-index: 1;
  pointer-events: none;
}

.devops-project-card:hover::before {
  left: 100%;
}
