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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1a1a1a; /* Changed from white to deep dark gray */
  color: #e0e0e0; /* Changed from #333 to light gray */
  line-height: 1.6;
}

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

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

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

/* --- Container for Centering Content --- */
/* Added for consistent content centering if needed, similar to previous work */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

/* HERO SECTION */
.hero {
  position: relative;
  background: url("images/AC2.jpeg") center center/cover no-repeat;
  min-height: 100vh; /* Changed from height: 100vh for better adaptability */
  color: white; /* Retained as per your hero section */
  display: flex; /* Added for flex layout within hero */
  flex-direction: column;
  justify-content: space-between;
}

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

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Aligns logo and nav links to the top */
  position: relative;
  z-index: 1000; /* Ensure navbar is above other elements */
  padding-bottom: 15px; /* Added some bottom padding for separation */
}

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

/* Vertical nav links */
.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column; /* Links will stack vertically */
  gap: 0.8rem; /* Decreased from 1.2rem as per previous discussions */
  position: absolute;
  top: 0;
  right: 0;
}

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

.nav-links a:hover {
  color: #ffcccb; /* Retained as per your provided snippet */
}

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

.hero-content-box {
  background-color: #333333; /* Changed from #2d2d2d to slightly lighter dark gray */
  padding: 30px; /* Retained value */
  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; /* Retained value */
  margin-bottom: 12px; /* Retained value */
  color: #FF6B6B; /* Changed from #ff4f4f to bright red accent */
}

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

/* CTA Button */
.btn-box {
  background-color: #4ECDC4; /* Changed from white to bright teal */
  color: #1a1a1a; /* Changed from #000 to dark text on bright button */
  padding: 12px 24px; /* Retained value */
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px; /* Increased border-radius */
  width: fit-content;
  margin-top: 15px; /* Increased margin-top */
  transition: background-color 0.3s ease, transform 0.2s ease; /* Added transform transition */
  align-self: flex-start; /* Align to the start of the column */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Added shadow */
  font-size: 0.95rem; /* Consistent font size */
}

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

/* Contact Section */
.contact-section {
  background-color: #222222; /* Changed from #2d2d2d to slightly lighter dark gray */
  padding: 60px 15px; /* Decreased padding from 80px 20px */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center; /* Added for general section heading centering */
}

.contact-section h2 { /* Added consistent heading style for contact section */
  font-size: 2.2rem;
  color: #FF6B6B;
  margin-bottom: 30px; /* Increased margin-bottom for spacing */
}

.contact-form {
  background-color: #333333; /* Changed from #f8f8f8 to slightly lighter dark gray */
  padding: 30px; /* Decreased padding from 40px */
  border-radius: 10px; /* Increased border-radius */
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25); /* Enhanced shadow */
  max-width: 450px; /* Decreased max-width from 500px */
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 15px; /* Decreased gap from 18px */
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px; /* Decreased padding */
  border: 1px solid #444444; /* Darker border */
  border-radius: 8px; /* Increased border-radius */
  font-size: 0.95rem; /* Decreased font-size */
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #222222; /* Darker background for inputs */
  color: #e0e0e0; /* Light text for input */
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaaaaa; /* Lighter placeholder text */
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4ECDC4; /* Changed focus border to bright teal */
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2); /* Teal shadow on focus */
  outline: none;
}

.contact-form button {
  background-color: #FF6B6B; /* Changed from #ff4f4f to bright red */
  color: #1a1a1a; /* Changed from white to dark text */
  padding: 14px 28px; /* Consistent padding */
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px; /* Consistent border-radius */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease; /* Added transform transition */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Added shadow */
}

.contact-form button:hover {
  background-color: #e65c5c; /* Slightly darker red on hover */
  transform: translateY(-2px); /* Added subtle hover effect */
}

/* Style for the thank-you overlay/message */
.thank-you-message {
  display: none;
  background-color: rgba(0, 0, 0, 0.9); /* Darker, more opaque overlay */
  color: #e0e0e0; /* Light gray text */
  padding: 25px; /* Increased padding */
  border-radius: 12px; /* More rounded corners */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  text-align: center;
  width: 90%; /* Increased width for mobile */
  max-width: 400px;
  font-size: 1.2rem; /* Increased font size */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
}

.contact-form .thank-you-message.active {
  display: block;
}

/* Footer */
.site-footer {
  background-color: #121212; /* Changed from #555 to very dark, almost black */
  color: #e0e0e0; /* Changed from #fff to light gray */
  padding: 60px 15px 25px; /* Decreased padding from 60px 20px */
}

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

@media (min-width: 768px) {
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

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

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

.footer-text h3 {
  font-size: 1.8rem; /* Increased from 1.6rem */
  color: #4ECDC4; /* Changed from #ff4d4d to bright teal accent */
  margin-bottom: 20px; /* Retained value */
}

.footer-text p {
  margin-bottom: 10px; /* Retained value */
  font-size: 0.95rem; /* Decreased from 1rem */
  color: #cccccc; /* Consistent light text */
}

.footer-text strong { /* Added for consistent contact info labels */
  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; /* Changed from #0097a7 to bright red for footer CTA */
  color: #1a1a1a; /* Changed from #ff4d4d to dark text on bright button */
  padding: 12px 25px; /* Retained value */
  border-radius: 6px; /* Consistent border-radius */
  margin-top: 20px; /* Retained value */
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease; /* Added transform transition */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Added shadow */
  font-size: 0.95rem; /* Consistent font size */
}

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

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

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

.footer-bottom {
  margin-top: 40px; /* Retained value */
  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-overlay {
    padding: 1.8rem 2.5rem; /* Adjusted padding */
  }

  .hero-container {
    padding-left: 2.5rem; /* Adjusted padding */
    padding-right: 2.5rem; /* Adjusted padding */
  }

  .contact-section {
    padding: 80px 20px;
  }

  .contact-section h2 {
    font-size: 2.6rem;
  }
}

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

  .hero-container {
    padding-left: 3rem; /* Further adjusted padding */
    padding-right: 3rem; /* Further adjusted padding */
    max-width: 700px; /* Increased max-width */
  }

  .hero-content-box {
    padding: 35px; /* Increased padding */
  }

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

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

  .btn-box {
    padding: 14px 28px; /* Increased padding */
    font-size: 1rem; /* Increased font size */
  }

  .contact-section {
    padding: 100px 30px; /* Increased padding */
  }

  .contact-section h2 {
    font-size: 2.8rem;
  }

  .contact-form {
    padding: 40px; /* Increased padding */
    max-width: 500px; /* Increased max-width */
    gap: 18px; /* Increased gap */
  }

  .contact-form input,
  .contact-form textarea {
    padding: 14px 16px; /* Increased padding */
    font-size: 1rem; /* Increased font size */
  }

  .contact-form button {
    padding: 16px 32px; /* Increased padding */
  }

  .footer-text h3 {
    font-size: 2rem; /* Increased font size */
  }

  .footer-text p {
    font-size: 1.05rem; /* Increased font size */
  }

  .footer-text .footer-btn {
    padding: 14px 30px; /* Increased padding */
    font-size: 1rem; /* Increased font size */
  }
}

/* Mobile Styles (Max 767px) - Refined */
@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 */
  }

  .contact-section {
    padding: 40px 10px; /* Decreased padding from 60px 15px */
  }

  .contact-section h2 {
    font-size: 1.8rem; /* Decreased font size */
    margin-bottom: 20px; /* Decreased margin-bottom */
  }

  .contact-form {
    padding: 20px; /* Decreased padding */
    gap: 10px; /* Decreased gap */
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px 12px; /* Decreased padding */
    font-size: 0.85rem; /* Decreased font size */
  }

  .contact-form button {
    padding: 12px 20px; /* Decreased padding */
    font-size: 0.9rem; /* Decreased font size */
  }

  .thank-you-message {
    padding: 20px; /* Decreased padding */
    font-size: 1.1rem; /* Decreased font size */
  }

  .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 */
  }
}