/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background: rgba(30, 30, 60, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff !important;
}

.navbar-brand i {
  margin-right: 10px;
  color: #4caf50;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #4caf50 !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
    no-repeat bottom;
  background-size: cover;
  opacity: 0.1;
  animation: wave 10s ease-in-out infinite;
}

@keyframes wave {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-50px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.badge-success {
  display: inline-block;
  padding: 10px 25px;
  background: rgba(76, 175, 80, 0.2);
  border: 2px solid #4caf50;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
  animation: slideDown 0.8s ease;
}

.badge-success i {
  margin-right: 8px;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
  animation: fadeInUp 1s ease 0.6s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-item i {
  font-size: 2rem;
  color: #4caf50;
  margin-bottom: 10px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 5px;
}

.stat-value {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.live-indicator {
  position: relative;
  padding-left: 20px;
}

.live-indicator::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #4caf50;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-50%) scale(1.2);
  }
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: #fff;
}

.section-title i {
  margin-right: 15px;
  color: #4caf50;
}

/* Pipeline Section */
.pipeline-section {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.pipeline-stages {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.stage {
  flex: 0 0 180px;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4caf50, #45a049);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.stage.completed::before {
  transform: scaleX(1);
}

.stage:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.stage-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  transition: all 0.3s ease;
}

.stage:hover .stage-icon {
  transform: rotate(360deg) scale(1.1);
}

.stage-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.stage-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.stage-status {
  display: inline-block;
  padding: 5px 15px;
  background: #4caf50;
  color: #fff;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.stage-status i {
  margin-right: 5px;
}

.pipeline-arrow {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.6);
  animation: arrowMove 2s ease-in-out infinite;
}

@keyframes arrowMove {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

/* Tech Stack Section */
.tech-section {
  background: rgba(255, 255, 255, 0.1);
}

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

.tech-card {
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tech-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.tech-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
  transform: scale(1.15) rotate(5deg);
}

.spring-boot {
  background: linear-gradient(135deg, #6db33f 0%, #5a9c2f 100%);
}
.maven {
  background: linear-gradient(135deg, #c71a36 0%, #a01529 100%);
}
.jenkins {
  background: linear-gradient(135deg, #d24939 0%, #b03b2d 100%);
}
.docker {
  background: linear-gradient(135deg, #2496ed 0%, #1a7abb 100%);
}
.kubernetes {
  background: linear-gradient(135deg, #326ce5 0%, #2557b8 100%);
}
.argocd {
  background: linear-gradient(135deg, #ef7b4d 0%, #d96438 100%);
}

.tech-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.tech-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Status Section */
.status-section {
  background: rgba(255, 255, 255, 0.05);
}

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

.status-card {
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.status-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.status-header i {
  font-size: 1.5rem;
  color: #667eea;
}

.status-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(76, 175, 80, 0.1);
  border-radius: 10px;
  margin-top: 15px;
}

.status-indicator.healthy {
  border-left: 4px solid #4caf50;
}

.pulse {
  width: 15px;
  height: 15px;
  background: #4caf50;
  border-radius: 50%;
  position: relative;
  animation: pulse 2s infinite;
}

.pulse::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: #4caf50;
  border-radius: 50%;
  opacity: 0;
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.status-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4caf50;
}

.status-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #667eea;
  margin-top: 10px;
}

.status-detail {
  color: #666;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* Footer */
.footer {
  background: rgba(30, 30, 60, 0.95);
  padding: 40px 0;
  color: #fff;
  text-align: center;
}

.footer-content p {
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-content i {
  margin-right: 8px;
  color: #4caf50;
}

.footer-links {
  margin-top: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin: 0 15px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #4caf50;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    gap: 20px;
  }

  .pipeline-stages {
    flex-direction: column;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
  }

  .section-title {
    font-size: 2rem;
  }

  .tech-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }
}
