/* === Page Beautification & Animation Enhancements (Updated) === */

/* Section spacing & smooth appearance */
section {
  padding-top: 120px;
  padding-bottom: 120px;
  position: relative;
  background-color: #f9f9f9;
  overflow: hidden;
}

/* Text entrance animation */
.mil-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth image zoom on hover */
img {
  transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Section headers styling */
h1, h2, h3, h5 {
  font-weight: 700;
  color: #222;
  font-family: 'Poppins', sans-serif;
}

/* Section paragraphs */
p {
  color: #555;
  font-size: 1.15rem;
  line-height: 1.8;
  font-family: 'Open Sans', sans-serif;
}

/* Center section content consistently */
section .container > .row > div[class^="col"] {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 1000px;
}

/* Improve spacing between blocks */
.mil-mb-30, .mil-mb-60 {
  margin-bottom: 30px;
}

/* Animate each image slightly staggered */
.mil-up:nth-child(1) { animation-delay: 0.2s; }
.mil-up:nth-child(2) { animation-delay: 0.4s; }
.mil-up:nth-child(3) { animation-delay: 0.6s; }
.mil-up:nth-child(4) { animation-delay: 0.8s; }

/* Smooth scroll behavior for anchor links */
html {
  scroll-behavior: smooth;
}

/* Accent line under headings */
h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #0056b3;
  margin: 10px auto 0;
  border-radius: 4px;
  animation: growLine 1s ease forwards;
}

@keyframes growLine {
  0% { width: 0; }
  100% { width: 60px; }
}
