/* --- Global Styles & Variables --- */
:root {
  --primary-color: #28a745; /* A slightly more modern green */
  --primary-dark: #1e7e34;
  --secondary-color: #007bff;
  --light-green: #e9f5ea;
  --text-color: #333;
  --text-light: #555;
  --heading-color: #222;
  --bg-color: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #343a40;
  --border-color: #dee2e6;
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.07);
  --shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.1);

  --font-primary: "Poppins", sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  --border-radius: 8px;
  --transition-speed: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --- Typography & Common Elements --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75em;
}

h1 {
  font-size: 2.8rem;
}
h2 {
  font-size: 2.2rem;
}
h3 {
  font-size: 1.6rem;
}
h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1em;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-speed);
}
a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-padding {
  padding: 80px 0;
}
.section-padding-deep {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-subtitle {
  display: block;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pmain-underline {
  width: 70px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 0.95rem;
  text-align: center;
}
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}
.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}
.btn-admin {
  /* Specific admin button in header */
  background-color: var(--primary-color);
  color: white;
  padding: 8px 18px;
  font-size: 0.9rem;
}
.btn-admin:hover {
  background-color: var(--primary-dark);
  color: white;
}

/* --- Header / Navbar --- */
.navbar {
  background-color: var(--bg-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-light);
  border-bottom: 1px solid var(--border-color);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link {
  display: inline-block;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.logo-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}
.logo-text {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--heading-color);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links li a {
  color: var(--text-light);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  font-size: 0.95rem;
}
.nav-links li a:hover,
.nav-links li a.active-link {
  color: var(--primary-color);
}
.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed);
}
.nav-links li a:hover::after,
.nav-links li a.active-link::after {
  width: 100%;
}



.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--heading-color);
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(
      to right,
      rgba(233, 245, 234, 0.95),
      rgba(200, 230, 200, 0.85)
    ),
    url("../assets/image/hero-bg-placeholder.jpg"); /* Add a subtle background pattern or image */
  background-color: var(--light-green); /* Fallback */
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-text {
  flex: 1;
  max-width: 600px;
}
.hero-text h1 {
  color: var(--heading-color);
  margin-bottom: 20px;
  font-weight: 700;
}
.hero-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 550px;
}
.hero-buttons {
  display: flex;
  gap: 15px;
}
.hero-image {
  flex: 1;
  max-width: 550px;
}
.hero-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-strong);
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.feature-card {
  background-color: var(--bg-color);
  padding: 40px 30px;
  text-align: center;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-speed);
  border: 1px solid var(--border-color);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}
.feature-icon {
  font-size: 2.8rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  display: inline-block;
  padding: 15px;
  background-color: var(--light-green);
  border-radius: 50%;
  line-height: 1; /* Fix icon vertical alignment */
}
.feature-card h3 {
  margin-bottom: 15px;
  color: var(--heading-color);
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* --- Asset Management Section --- */
.asset-management-content {
  display: flex;
  align-items: center;
  gap: 50px;
}
.asset-image {
  flex: 0 0 45%; /* Fixed width for image container */
}
.asset-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-strong);
}
.asset-points {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.asset-point-card {
  display: flex;
  align-items: flex-start; /* Align icon to top */
  gap: 20px;
  padding: 25px;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-speed);
}
.asset-point-card:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
}
.asset-point-card i {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-top: 5px; /* Align icon better with text */
  background-color: var(--light-green);
  padding: 12px;
  border-radius: var(--border-radius);
}
.point-text h4 {
  margin-bottom: 8px;
  color: var(--heading-color);
}
.point-text p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* --- Digital Solutions Section --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.solution-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  overflow: hidden;
  transition: all var(--transition-speed);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}
.solution-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.solution-content {
  padding: 25px;
  flex-grow: 1; /* Make content take remaining space */
  display: flex;
  flex-direction: column;
}
.solution-content h4 {
  margin-bottom: 10px;
  color: var(--heading-color);
  font-size: 1.3rem;
}
.solution-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  flex-grow: 1; /* Allow paragraph to take space if titles differ in length */
}

/* --- Footer --- */
.site-footer {
  background-color: var(--dark-gray);
  color: #adb5bd; /* Lighter gray for text */
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}
.footer-column h4 {
  color: var(--bg-color);
  margin-bottom: 25px;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 10px;
}
.footer-column h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}
.footer-logo {
  width: 60px;
  margin-bottom: 20px;
}
.footer-column.about-us p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.social-icons a {
  color: #adb5bd;
  font-size: 1.3rem;
  margin-right: 15px;
  transition: color var(--transition-speed);
}
.social-icons a:hover {
  color: var(--primary-color);
}
.footer-column ul {
  list-style: none;
}
.footer-column ul li {
  margin-bottom: 12px;
}
.footer-column ul li a {
  color: #adb5bd;
  font-size: 0.9rem;
  transition: color var(--transition-speed),
    padding-left var(--transition-speed);
}
.footer-column ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}
.contact-info p {
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.contact-info p i {
  color: var(--primary-color);
  margin-right: 10px;
  width: 20px; /* Align icons */
  text-align: center;
}
.footer-bottom {
  text-align: center;
  padding: 25px 0;
  border-top: 1px solid #495057; /* Slightly darker border */
  font-size: 0.85rem;
}
.footer-bottom p {
  margin-bottom: 0;
  color: #868e96;
}
.footer-bottom .fa-heart {
  color: var(--primary-color);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-text h1 {
    font-size: 2.4rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-image {
    margin-top: 30px;
    max-width: 450px;
  }
  .asset-management-content {
    flex-direction: column;
  }
  .asset-image {
    flex: 0 0 auto; /* Reset flex basis */
    width: 80%;
    max-width: 500px;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .section-padding,
  .section-padding-deep {
    padding: 60px 0;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; /* Position below navbar */
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    padding: 20px 0;
    box-shadow: var(--shadow-light);
    border-top: 1px solid var(--border-color);
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    text-align: center;
    margin: 0; /* Reset gap */
  }
  .nav-links li a {
    display: block;
    padding: 15px 20px;
    width: 100%;
  }
  .nav-links li a::after {
    /* Remove underline effect for mobile menu */
    display: none;
  }
  .dropdown-content {
    /* Adjust dropdown for mobile */
    position: static;
    box-shadow: none;
    border: none;
    background-color: var(--light-green); /* Differentiate dropdown in mobile */
    padding-left: 30px; /* Indent */
  }
  .dropdown:hover .dropdown-content {
    /* Show on click or hover if using JS for click */
    /* This might need JS for click handling on mobile if :hover is not desired */
  }

  .hamburger {
    display: block;
  }
  .header-actions .btn-admin {
    display: none; /* Optionally hide admin button on very small screens or move to menu */
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .features-grid,
  .solutions-grid {
    grid-template-columns: 1fr; /* Stack cards */
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-column h4::after {
    margin: 0 auto; /* Center underline */
  }
  .social-icons {
    justify-content: center;
    display: flex;
  }
  .contact-info p {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .footer-bottom {
    font-size: 0.8rem;
  }
}
