/* ================== Global & Reset ================== */
:root {
  --primary-blue: #0d6efd;
  --accent-red: #ff0000;
  --dark-bg: #061730;
  --light-gray: #f4f6f8;
  --text-main: #333;
}

body {
  line-height: 1.6;
  color: var(--text-main);
  font-family: 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;
}

/* ================== Navbar ================== */
.navbar {
  padding: 0.8rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-brand img {
  height: 60px; /* Adjusted for better proportion */
  transition: transform 0.3s;
}

.navbar .nav-link {
  color: #111 !important;
  font-weight: 700;
  margin-left: 1rem;
  position: relative;
  transition: color 0.3s;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--accent-red);
  left: 0;
  bottom: 0;
  transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

.navbar .nav-link:hover {
  color: var(--primary-blue) !important;
}

/* Hero Section Styles */
.hero {
  position: relative;
  overflow: hidden;
  background-color: #222; 
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll !important; 
    height: 80vh !important; 
  }
}
.hero h1 {
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  letter-spacing: -1px;
}

.hero .lead {
  max-width: 700px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* Custom Button Styling */
.btn-light {
  padding: 12px 35px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.btn-light:hover {
  background-color: transparent;
  color: #fff !important;
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Optional: Soft animation for the content */
.hero .container {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
section p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

/* ================== Interactive Components (Cards & Steps) ================== */
.card, .process-step {
  border: 1px solid #eee; /* Added subtle border for definition */
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #fff;
  overflow: hidden;
  height: 100%; /* Ensures all cards in a row are equal height */
}

.card:hover, .process-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
  border-color: #007bff; /* Optional: matches your primary-blue */
}

.card-img-top {
  height: 250px; /* Fixed height for uniformity */
  width: 100%;
  
  /* KEY CHANGE: 'contain' shows the FULL image without cutting */
  object-fit: contain; 
  
  /* Styling to make 'contained' images look professional */
  background-color: #f8f9fa; 
  padding: 15px; 
  
  border-radius: 12px 12px 0 0;
  transition: transform 0.6s ease;
}

/* Optional: Slight zoom on hover that doesn't break the 'contain' boundaries */
.card:hover .card-img-top {
  transform: scale(1.05);
}
/* ================== Forms ================== */
.form-label {
  font-weight: 600;
  color: var(--primary-blue);
}

.form-control {
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.form-control:focus {
  box-shadow: 0 0 8px rgba(13, 110, 253, 0.25);
  border-color: var(--primary-blue);
}

.btn-primary {
  border-radius: 50px;
  padding: 0.75rem 2.5rem;
  font-weight: 600;
  background-color: var(--primary-blue);
  border: none;
  transition: 0.3s;
}

.btn-primary:hover {
  background-color: var(--accent-red);
  transform: scale(1.05);
}

/* ================== Footer ================== */
footer.footer {
  background-color: var(--dark-bg);
  color: #fff;
  padding: 4rem 0 2rem;
}

footer.footer h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

footer.footer h5::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: var(--accent-red);
  left: 0;
  bottom: 0;
}

footer.footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: 0.3s;
}

footer.footer a:hover {
  color: var(--accent-red) !important;
  padding-left: 5px;
}

/* ================== Mobile Responsiveness ================== */
@media (max-width: 768px) {
  h2.text-primary { font-size: 1.8rem; }
  
  .navbar-brand img { height: 50px; }
  
  section { padding: 50px 0; }
  
  section p { text-align: left; }
  .card-img-top {
    height: 180px;      /* Slightly shorter height for smaller screens */
    object-fit: contain; /* STOP CRIPPING: Shows the full image on mobile */
    padding: 10px;      /* Adds a little space so image doesn't touch edges */
  }
}