/* ==========================================================================
   DevOps & Cloud AWS - Detail Subpages CSS
   ========================================================================== */

/* Keyframe Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hero Section with Animations */
.devops-hero {
  background: linear-gradient(135deg, #000000 0%, #1a0a3e 50%, #000000 100%) !important;
  color: #ffffff;
  padding: 130px 20px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.devops-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(139, 92, 246, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.5;
  pointer-events: none;
}

.devops-hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.devops-hero .container {
  position: relative;
  z-index: 1;
}

.devops-hero-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #d8b4fe;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.devops-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  letter-spacing: 0.5px;
  animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.devops-hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  animation: slideUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Subpage KPI Banner */
.devops-subpage-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 950px;
  margin: 40px auto 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
}

.subpage-kpi-item {
  text-align: center;
  padding: 8px;
}

.subpage-kpi-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.subpage-kpi-val {
  font-size: 1.6rem;
  font-weight: 800;
  color: #a78bfa;
  margin-bottom: 2px;
}

.subpage-kpi-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Introduction Section */
.devops-intro-section {
  padding: 80px 0;
  background-color: #ffffff;
  text-align: center;
  animation: fadeIn 0.9s 0.3s ease-out both;
}

.devops-quote {
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: #1a0a3e;
  max-width: 900px;
  margin: 0 auto 35px;
  padding: 30px;
  border-left: 5px solid #330cb3;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(51, 12, 179, 0.08);
  line-height: 1.6;
}

.highlight-stat {
  color: #330cb3;
  font-weight: 700;
  font-style: normal;
}

.devops-value-prop {
  font-size: 1.15rem;
  color: #4b5768;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Detail Cards Section (2 by 2 grid on desktop) */
.devops-section {
  padding: 80px 0;
  background-color: #f8fafc;
}

.devops-section-title {
  font-size: 2.3rem;
  font-weight: 700;
  color: #330cb3;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.devops-section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #330cb3;
  margin: 15px auto 0;
  border-radius: 2px;
}

.devops-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.devops-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px 30px;
  border: 1px solid rgba(51, 12, 179, 0.12);
  box-shadow: 0 10px 30px rgba(51, 12, 179, 0.05);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.7s ease-out both;
}

.devops-card:nth-child(1) { animation-delay: 0.1s; }
.devops-card:nth-child(2) { animation-delay: 0.2s; }
.devops-card:nth-child(3) { animation-delay: 0.3s; }
.devops-card:nth-child(4) { animation-delay: 0.4s; }

.devops-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 35px rgba(51, 12, 179, 0.12);
  border-color: rgba(51, 12, 179, 0.35);
}

.devops-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.devops-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #192231;
  margin-bottom: 0;
}

.devops-card-desc {
  font-size: 0.95rem;
  color: #4b5768;
  line-height: 1.7;
  margin-bottom: 20px;
}

.devops-card-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.card-tech-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: #330cb3;
  background: rgba(51, 12, 179, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
}

.devops-card-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #330cb3;
  background: rgba(51, 12, 179, 0.08);
  padding: 5px 14px;
  border-radius: 50px;
  margin-top: auto;
  align-self: flex-start;
}

/* Call to Action Banner */
.devops-cta-banner {
  background: linear-gradient(135deg, #330cb3 0%, #1a0a3e 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  margin-top: 50px;
  box-shadow: 0 15px 35px rgba(51, 12, 179, 0.25);
}

.devops-cta-banner h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.devops-cta-banner p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.devops-cta-btn {
  display: inline-block;
  background: #ffffff;
  color: #330cb3;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.devops-cta-btn:hover {
  background: #f0edff;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* Responsive */
@media (max-width: 900px) {
  .devops-hero-title {
    font-size: 2rem;
  }
  .devops-hero-subtitle {
    font-size: 1.05rem;
  }
  .devops-subpage-kpis {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .subpage-kpi-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
  }
  .devops-quote {
    font-size: 1.15rem;
    padding: 20px;
  }
  .devops-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
