/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background-color: #f4f7fa;
  overflow-x: hidden;
  min-height: 100vh; /* Ensure body takes full viewport height */
  display: flex;
  flex-direction: column;
}

html {
  height: 100%; /* Ensure html takes full height */
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.logo img {
  height: 100px; /* Larger logo */
}

.logo {
  text-decoration: none; /* Ensure logo link has no underline */
}

.burger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #2d3748;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #2d3748;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #38a169; /* Green hover effect */
}

/* Sections */
.section {
  padding: 4rem 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  flex: 1 0 auto; /* Allow section to grow but not shrink */
}

.section:nth-child(odd) {
  background: linear-gradient(135deg, #f4f7fa 0%, #e6fffa 100%); /* Light gray to light green */
}

.section:nth-child(even) {
  background: linear-gradient(135deg, #ffffff 0%, #f4f7fa 100%); /* White to light gray */
}

h1, h2 {
  color: #2d3748;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(90deg, #38a169, #2d3748); /* Green to dark gray gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #38a169; /* Green for service titles */
  margin: 0.5rem 0;
}

p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #4a5568;
}

/* Services */
.services {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.service-item {
  text-align: center;
  max-width: 350px; /* Increased to give more space */
}

.service-item img {
  width: 100%;
  height: 150px; /* Reduced height to show more of the image */
  object-fit: contain; /* Changed to contain to show entire image */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-item img:hover {
  transform: scale(1.05);
}

.service-item p {
  margin-top: 0.5rem;
}

/* Values */
.values {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  flex-wrap: wrap;
}

.value-item {
  text-align: center;
  max-width: 300px;
  padding: 1rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Projects */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.project img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project img:hover {
  transform: scale(1.05);
}

/* Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-info p {
  margin: 0.5rem 0;
}

.contact-info .phone {
  font-size: 1.3rem; /* Larger phone number */
}

.contact-info a {
  color: #38a169; /* Green link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #2f855a; /* Darker green on hover */
}

/* Why DitiPro */
.why-ditipro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.reasons {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reason-item {
  text-align: left; /* Left-align text within each reason item */
  width: 100%;
  max-width: 600px;
  margin: 0.5rem 0;
}

/* Footer */
footer {
  background: #2d3748; /* Dark gray footer */
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  flex-shrink: 0; /* Prevent footer from shrinking */
  width: 100%;
}

/* Ensure footer stays at the bottom */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.section:last-child {
  margin-bottom: 0; /* Remove any unwanted margin at the bottom */
}

footer a {
  color: #a0aec0;
  text-decoration: none;
  margin: 0 0.5rem;
}

footer a:hover {
  color: #38a169; /* Green hover for footer links */
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 110px; /* Adjusted for larger logo */
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 1rem 0;
    text-align: center; /* Center the text in mobile menu */
    width: 100%; /* Ensure full width for centering */
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .header-content {
    padding: 4rem 0;
  }

  .services {
    flex-direction: column;
    align-items: center;
  }

  .service-item {
    width: 100%;
    max-width: 350px;
  }

  .contact-info {
    max-width: 90%; /* Adjust for smaller screens */
  }

  .values {
    flex-direction: column;
    align-items: center;
  }

  .value-item {
    width: 100%;
    max-width: 300px;
  }

  .reasons {
    align-items: flex-start; /* Ensure reasons start aligned on mobile */
  }
}