/* Universal Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1a1a1a; /* Deep Dark Gray Background */
  color: #e0e0e0; /* Light Gray Text */
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  height: auto; /* Ensure images scale proportionally */
}

a {
  text-decoration: none;
  color: #4ECDC4; /* Bright Teal for links */
  transition: color 0.3s ease;
}

a:hover {
  color: #FF6B6B; /* Bright Red on hover */
}

/* --- Container for Centering Content --- */
.container {
  max-width: 1000px; /* Decreased from 1200px */
  margin: 0 auto;
  padding: 0 15px; /* Decreased from 20px */
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  background: url("images/AC4.jpeg") center center/cover no-repeat;
  min-height: 100vh; /* Use min-height to ensure it adapts to content */
  display: flex; /* Use flex to control content layout within hero */
  flex-direction: column;
  justify-content: space-between; /* Pushes content and navbar to ends */
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Darker overlay for strong contrast */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1.5rem; /* Decreased from 2rem */
  flex-grow: 1; /* Allow overlay to fill available space */
}

/* Navbar - As requested, this will apply to all screen sizes unless overridden */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Aligns items to the top of the flex container */
}

.logo img {
  height: 44px; /* Decreased from 48px */
  width: 44px; /* Decreased from 48px */
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column; /* Links will stack vertically */
  gap: 0.8rem; /* Decreased from 1rem */
}

.nav-links a {
  text-decoration: none;
  color: white; /* Changed from #e0e0e0 to white as per your snippet */
  font-weight: 600;
  font-size: 0.85rem; /* Decreased from 0.95rem */
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffcccb; /* Changed from #FF6B6B to #ffcccb as per your snippet */
}

/* Hero Content Box */
.hero-container {
  max-width: 600px; /* Decreased from 700px */
  margin-left: 0;
  display: flex;
  flex-direction: column;
  gap: 20px; /* Decreased from 25px */
  padding-bottom: 50px; /* Decreased from 60px */
  margin-top: auto; /* Push content to the bottom of the hero-overlay */
  padding-left: 1.5rem; /* Decreased from 2rem */
  padding-right: 1.5rem; /* Decreased from 2rem */
}

.hero-content-box {
  background-color: #333333; /* Slightly lighter dark gray */
  padding: 30px; /* Decreased from 35px */
  border-radius: 8px; /* Slightly more rounded corners */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
}

.hero-content-box h1 {
  font-size: 2.2rem; /* Decreased from 2.8rem */
  margin-bottom: 12px; /* Decreased from 15px */
  color: #FF6B6B; /* Bright Red Accent */
  line-height: 1.2;
}

.hero-content-box p {
  font-size: 1.05rem; /* Decreased from 1.2rem */
  color: #cccccc; /* Slightly darker light gray for paragraph */
}

/* CTA Button */
.btn-box {
  background-color: #4ECDC4; /* Bright Teal for primary CTA */
  color: #1a1a1a; /* Dark text on bright button */
  padding: 12px 24px; /* Decreased from 14px 28px */
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  width: fit-content;
  margin-top: 15px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start; /* Align to the start of the column */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 0.95rem; /* Decreased from current implicit size (was ~1rem) */
}

.btn-box:hover {
  background-color: #39a39f; /* Slightly darker teal on hover */
  transform: translateY(-2px);
}

/* --- Info Section --- */
.information {
  background-color: #222222; /* Slightly lighter dark gray */
  padding: 60px 15px; /* Decreased from 80px 20px */
  text-align: center;
}

.information h2 {
  font-size: 2.2rem; /* Decreased from 2.6rem */
  color: #FF6B6B; /* Bright Red Accent */
  margin-bottom: 15px; /* Decreased from 20px */
}

.information p {
  font-size: 1rem; /* Decreased from 1.15rem */
  color: #cccccc; /* Consistent light text */
  margin-top: 10px; /* Decreased from 15px */
  max-width: 700px; /* Decreased from 800px */
  margin-left: auto;
  margin-right: auto;
}

/* --- Features Section --- */
.features {
  background-color: #1a1a1a; /* Deep Dark Gray */
  padding: 80px 15px; /* Decreased from 100px 20px */
  text-align: center;
}

.features h2 {
  font-size: 2.4rem; /* Decreased from 2.8rem */
  margin-bottom: 40px; /* Decreased from 60px */
  color: #4ECDC4; /* Bright Teal Accent */
}

.services-grid-boxes {
  display: grid; /* Use grid for better control on desktop */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjusted minmax for smaller cards */
  gap: 25px; /* Decreased from 30px */
  max-width: 1000px; /* Decreased from 1200px */
  margin: 0 auto;
}

.service-box {
  background-color: #333333; /* Slightly lighter dark gray */
  border: 1px solid #444444; /* Darker border */
  padding: 25px; /* Decreased from 30px */
  text-align: left;
  border-radius: 10px; /* Decreased from 12px */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.service-box:hover {
  transform: translateY(-3px); /* Decreased from -5px */
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25); /* Adjusted shadow subtly */
}

.service-box h3 {
  color: #FF6B6B; /* Bright Red Accent */
  font-size: 1.1rem; /* Decreased from 1.25rem */
  margin: 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.service-arrow {
  font-size: 1.5rem; /* Decreased from 1.8rem */
  color: #4ECDC4; /* Bright Teal */
  transition: transform 0.3s ease;
  margin-left: 12px; /* Decreased from 15px */
}

.service-box.open .service-arrow {
  transform: rotate(90deg);
}

.service-box p {
  display: none;
  font-size: 0.9rem; /* Decreased from 1rem */
  color: #cccccc; /* Light text */
  margin-top: 12px; /* Decreased from 15px */
}

.service-box.open p {
  display: block;
}

/* Ensure the full width for open box only on desktop */
@media (min-width: 768px) {
  .service-box.open {
    grid-column: span 2;
  }
}

/* --- Why Us Section --- */
.why-us {
  background-color: #222222; /* Slightly lighter dark gray */
  padding: 80px 15px; /* Decreased from 100px 20px */
  text-align: center;
}

.why-us h3 {
  font-size: 2.4rem; /* Decreased from 2.8rem */
  margin-bottom: 30px; /* Decreased from 50px */
  color: #FF6B6B; /* Bright Red Accent */
}

.why-grid {
  display: flex;
  gap: 25px; /* Decreased from 30px */
  justify-content: center;
  flex-wrap: wrap; /* Allows wrapping on smaller screens */
  max-width: 1000px; /* Decreased from 1200px */
  margin: 0 auto;
}

.why-card {
  background-color: #333333; /* Slightly lighter dark gray */
  border-radius: 10px; /* Decreased from 12px */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  padding: 22px; /* Decreased from 28px */
  width: 230px; /* Decreased from 250px */
  text-align: left;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0; /* Prevent shrinking below width */
}

.why-card:hover {
  transform: translateY(-3px); /* Decreased from -5px */
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25); /* Adjusted shadow subtly */
}

.why-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Space out icon and text */
}

.why-icon {
  font-size: 1.8rem; /* Decreased from 2rem */
  color: #4ECDC4; /* Bright Teal */
  margin-right: 12px; /* Decreased from 15px */
}

.why-header h4 {
  font-size: 1.1rem; /* Decreased from 1.25rem */
  color: #FF6B6B; /* Bright Red Accent */
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1; /* Allow text to take space */
}

.why-arrow {
  font-size: 1.3rem; /* Decreased from 1.5rem */
  color: #FF6B6B; /* Bright Red */
  margin-left: auto;
  transition: transform 0.3s ease;
}

.why-card.open .why-arrow {
  transform: rotate(90deg);
}

.why-card p {
  display: none;
  font-size: 0.85rem; /* Decreased from 0.95rem */
  color: #cccccc; /* Light text */
  margin-top: 10px; /* Decreased from 15px */
}

.why-card.open p {
  display: block;
}

/* --- Footer --- */
.site-footer {
  background-color: #121212; /* Very dark, almost black */
  color: #e0e0e0; /* Light text */
  padding: 60px 15px 25px; /* Decreased from 80px 20px 30px */
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 30px; /* Decreased from 40px */
  align-items: center;
  justify-content: center;
  max-width: 900px; /* Decreased from 1100px */
  margin: 0 auto;
}

.footer-text {
  flex: 1;
  max-width: 480px; /* Decreased from 550px */
  text-align: center; /* Center text on mobile */
}

.footer-text h3 {
  font-size: 1.8rem; /* Decreased from 2rem */
  color: #4ECDC4; /* Bright Teal Accent */
  margin-bottom: 20px; /* Decreased from 25px */
}

.footer-text p {
  margin-bottom: 10px; /* Decreased from 12px */
  font-size: 0.95rem; /* Decreased from 1.05rem */
  color: #cccccc; /* Light text */
}

.footer-text strong {
  color: #FF6B6B; /* Highlight contact info labels */
}

.footer-text a {
  color: #cccccc; /* Lighter link color */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-text a:hover {
  color: #4ECDC4; /* Teal on hover */
}

.footer-text .footer-btn {
  display: inline-block;
  background-color: #FF6B6B; /* Bright Red for footer CTA */
  color: #1a1a1a; /* Dark text on bright button */
  padding: 12px 25px; /* Decreased from 14px 30px */
  border-radius: 6px;
  margin-top: 20px; /* Decreased from 25px */
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 0.95rem; /* Decreased from current implicit size */
}

.footer-text .footer-btn:hover {
  background-color: #e65c5c; /* Slightly darker red on hover */
  transform: translateY(-2px);
}

.footer-img {
  flex: 1;
  display: flex;
  justify-content: center; /* Center image horizontally */
}

.footer-img img {
  width: 100%;
  max-width: 380px; /* Decreased from 450px */
  border-radius: 10px;
  object-fit: cover;
  height: auto; /* Ensure image scales correctly */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
  margin-top: 40px; /* Decreased from 50px */
  padding-top: 15px; /* Decreased from 20px */
  border-top: 1px solid #333333; /* Separator line */
  text-align: center;
  font-size: 0.85rem; /* Decreased from 0.9rem */
  color: #aaaaaa; /* Slightly darker light gray */
}

/* --- Responsive Design --- */

/* Tablet & Smaller Desktop (768px to 1024px) */
@media (min-width: 768px) {
  .hero-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start; /* Align text and image at the top */
  }

  .footer-text {
    text-align: left; /* Align text left on larger screens */
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .hero-overlay {
    padding: 1.8rem 3rem; /* Decreased from 2rem 4rem */
  }

  .navbar {
    padding-bottom: 30px; /* Decreased from 40px */
  }

  /* No changes to .nav-links here as you specified it should be column for all sizes */
  .nav-links a {
    font-size: 0.95rem; /* Decreased from 1.05rem */
  }

  .hero-container {
    padding-left: 3rem; /* Decreased from 4rem */
    padding-right: 3rem; /* Decreased from 4rem */
    max-width: 700px; /* Decreased from 800px */
  }

  .hero-content-box {
    padding: 35px; /* Decreased from 40px */
  }

  .hero-content-box h1 {
    font-size: 2.8rem; /* Decreased from 3.5rem */
  }

  .hero-content-box p {
    font-size: 1.15rem; /* Decreased from 1.3rem */
  }

  .btn-box {
    padding: 14px 28px; /* Decreased from 16px 32px */
    font-size: 1rem; /* Decreased from 1.05rem */
  }

  .information h2 {
    font-size: 2.6rem; /* Decreased from 3.2rem */
  }

  .information p {
    font-size: 1.05rem; /* Decreased from 1.25rem */
  }

  .features h2 {
    font-size: 2.8rem; /* Decreased from 3.2rem */
  }

  .why-us h3 {
    font-size: 2.8rem; /* Decreased from 3.2rem */
  }

  .why-card {
    width: 250px; /* Decreased from 280px */
    padding: 28px; /* Decreased from 35px */
  }

  .why-icon {
    font-size: 2rem; /* Decreased from 2.2rem */
  }

  .why-header h4 {
    font-size: 1.2rem; /* Decreased from 1.35rem */
  }

  .footer-text h3 {
    font-size: 2rem; /* Decreased from 2.2rem */
  }

  .footer-text p {
    font-size: 1.05rem; /* Decreased from 1.1rem */
  }

  .footer-text .footer-btn {
    padding: 14px 30px; /* Decreased from 16px 32px */
  }
}

/* Mobile Styles (Max 767px) */
@media (max-width: 767px) {
  .hero {
    min-height: 70vh; /* Decreased from 80vh */
  }

  .hero-overlay {
    padding: 1rem 1rem; /* Decreased from 1.5rem 1.5rem */
  }

  /* Navbar and nav-links remain as per your provided snippet for mobile too */
  /* This means: logo on left, nav-links stacked vertically on the right, both aligned to flex-start (top) */

  .hero-container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%; /* Allow content to use full width */
  }

  .hero-content-box {
    padding: 20px; /* Decreased from 25px */
  }

  .hero-content-box h1 {
    font-size: 1.6rem; /* Decreased from 2rem */
  }

  .hero-content-box p {
    font-size: 0.9rem; /* Decreased from 1rem */
  }

  .btn-box {
    padding: 10px 18px; /* Decreased from 12px 20px */
    font-size: 0.85rem; /* Decreased from 0.9rem */
  }

  .information,
  .features,
  .why-us,
  .site-footer {
    padding: 40px 10px; /* Decreased from 60px 15px */
  }

  .information h2,
  .features h2,
  .why-us h3,
  .footer-text h3 {
    font-size: 1.8rem; /* Decreased from 2.2rem */
    margin-bottom: 20px; /* Decreased from 30px */
  }

  .information p,
  .service-box p,
  .why-card p,
  .footer-text p {
    font-size: 0.85rem; /* Decreased from 0.95rem */
  }

  .services-grid-boxes,
  .why-grid {
    gap: 15px; /* Decreased from 20px */
  }

  .service-box,
  .why-card {
    padding: 18px; /* Decreased from 20px */
  }

  .service-box h3,
  .why-header h4 {
    font-size: 1rem; /* Decreased from 1.1rem */
  }

  .why-icon {
    font-size: 1.6rem; /* Decreased from 1.8rem */
  }

  .footer-container {
    gap: 20px; /* Decreased from 30px */
  }

  .footer-img img {
    max-width: 95%; /* Adjusted for very small screens */
  }

  .footer-bottom {
    margin-top: 20px; /* Decreased from 30px */
    font-size: 0.75rem; /* Decreased from 0.9rem */
  }
}