/* --- Google Font Import --- */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

/* --- CSS Variables for Theming --- */
:root {
  --p3-green: #299b0d;
  --p3-dark-gray: #414042;
  --primary-color: var(--p3-green);
  --secondary-color: var(--p3-dark-gray);
  --light-gray-bg: #f8f9fa;
  --text-color: #5a5a5a;
  --heading-color: var(--secondary-color);
  --footer-bg: var(--secondary-color);
}

/* --- General Body Styling --- */
body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  line-height: 1.7;
  background-color: #ffffff;
}
.lead {
  font-weight: 300;
}

/* --- Header & Navigation Bar --- */
.header .navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0;
}
.navbar-toggler {
  border: none;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-nav .nav-link {
  color: var(--secondary-color);
  font-weight: 600;
  margin: 0 1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  /* THIS IS THE FIX: min-height allows it to grow */
  min-height: 90vh;
  padding: 100px 0; /* Ensures space on all screens */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
}
.hero-section .container {
  z-index: 2;
}
.hero-title {
  font-size: 4rem;
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}
.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 300;
  max-width: 700px;
  margin: 1.5rem auto 2rem auto;
}
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 1rem 2.5rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background-color: #2c8f3a;
  border-color: #2c8f3a;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- Page Header (for inner pages) --- */
.page-header-section {
  position: relative;
  min-height: 50vh;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}

/* --- Partners Section --- */
.partner-logo {
  max-height: 70px;
  width: auto;
  max-width: 100%;
}

/* --- General Section Styling --- */
.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1rem;
}
.py-5 {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

/* --- Service & Value Card Styling --- */
.service-card,
.vision-card,
.value-card {
  background: #fff;
  padding: 35px;
  border-radius: 8px;
  border: 1px solid #eee;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover,
.vision-card:hover,
.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}
.service-icon,
.vision-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
.service-card h3,
.vision-card h3 {
  color: var(--secondary-color);
  font-weight: 600;
}
.value-card h4 {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}
.value-card h4 .fas {
  color: var(--primary-color);
  display: block;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* --- Footer --- */
.footer {
  background-color: var(--footer-bg);
  color: rgba(255, 255, 255, 0.8);
}
.footer-logo {
  width: 140px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.footer-links li {
  margin-bottom: 0.7rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-links a:hover {
  color: #fff;
}
.footer hr {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.contact-info {
  display: flex;
  align-items: flex-start;
}
.contact-info .fas {
  color: var(--primary-color);
}

/* --- Animations --- */
@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.animate-on-load {
  animation: slideInUp 0.8s ease-out forwards;
}
.animate-on-load-delay1 {
  animation: slideInUp 0.8s ease-out 0.3s forwards;
  opacity: 0;
}
.animate-on-load-delay2 {
  animation: slideInUp 0.8s ease-out 0.6s forwards;
  opacity: 0;
}
.fade-in-section,
.slide-in-left,
.slide-in-right {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.visible {
  opacity: 1;
}
.slide-in-left {
  transform: translateX(-50px);
}
.slide-in-right {
  transform: translateX(50px);
}
.fade-in-section.visible .slide-in-left,
.fade-in-section.visible .slide-in-right {
  opacity: 1;
  transform: translateX(0);
}

/* --- MEDIA QUERY FOR MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  .hero-title,
  .page-header-section .hero-title {
    font-size: 2.5rem; /* Smaller title on mobile */
  }
  .hero-subtitle,
  .page-header-section .hero-subtitle {
    font-size: 1.1rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
}

/* --- STYLES FOR SERVICES PAGE --- */

.detailed-service-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-align: left; /* Align text to the left for better readability */
}

.detailed-service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.detailed-service-card h3 {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1.3rem; /* Slightly smaller heading for cards */
  margin-top: 1rem;
}

/* Override for service icon alignment */
.detailed-service-card .service-icon {
  margin-bottom: 0; /* Remove bottom margin */
  text-align: left; /* Align icon to the left */
}

/* --- STYLES FOR PORTFOLIO PAGE --- */

.project-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.project-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows the body to fill the card height */
}

.project-title {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.2rem;
    flex-grow: 1; /* Pushes the client and duration down */
}

.project-client {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.project-duration {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    padding: 5px 15px;
    align-self: flex-start; /* Aligns the badge to the left */
}

/* --- STYLES FOR BLOG PAGE --- */

.blog-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}
.blog-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
.blog-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-card-meta {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.5rem;
}
.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}
.blog-card-title a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}
.blog-card-title a:hover {
    color: var(--primary-color);
}
.blog-card-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.btn-read-more {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}
.btn-read-more:hover {
    color: var(--secondary-color);
}

/* --- STYLES FOR SINGLE POST PAGE --- */
.single-post-section {
    padding-top: 150px; /* Space from top navbar */
    padding-bottom: 5rem;
}
.post-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.2;
}
.post-meta {
    color: #777;
    margin-top: 1rem;
}
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}
.post-content h4 {
    font-weight: 600;
    color: var(--heading-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.post-content .blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    font-style: italic;
    font-size: 1.2rem;
    margin: 2rem 0;
}

/* --- STYLES FOR CONTACT PAGE --- */

.contact-form-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.07);
}

.form-group .label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-control {
    border-radius: 50px;
    padding: 12px 20px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(55, 179, 74, 0.25);
}

textarea.form-control {
    border-radius: 20px;
}

.info-wrap {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.info-wrap h3 {
    color: #fff;
}

.info-wrap .info-item span {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-wrap .info-item p {
    margin-bottom: 0;
}

.info-wrap .info-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-wrap .info-item a:hover {
    color: #fff;
}

.map-container iframe {
    border-radius: 8px;
}