/* =========================
   Base & Reset
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  background-color: #fdfdfd;
  color: #333;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* Makes main take remaining space so footer sticks to bottom */
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* =========================
   Header & Navigation
========================= */
header {
  background: linear-gradient(90deg, #4caf50, #81c784);
  color: white;
  padding: 15px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-top: 10px;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 10px;
  transition: all 0.3s;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

/* =========================
   Hero Section (Home)
========================= */
#hero {
  text-align: center;
  padding: 100px 20px;
  background: url("../images/hero-bg.jpg") no-repeat center center/cover;
  color: white;
  position: relative;
}

#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

#hero h2,
#hero p,
.home-buttons {
  position: relative;
  z-index: 1;
}

#hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

#hero p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.home-buttons a {
  text-decoration: none;
  margin: 5px;
}

.home-buttons button {
  padding: 15px 30px;
  background-color: #ffb74d;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.home-buttons button:hover {
  transform: scale(1.1);
  background-color: #ffa726;
}

/* =========================
   Section Titles
========================= */
section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin: 50px 0 30px 0;
  color: #4caf50;
  position: relative;
}

section h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background-color: #ffb74d;
  display: block;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* =========================
   Service & Blog Cards
========================= */
.service-container,
.blog-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 0 20px 50px 20px;
}

.service-card,
.blog-card {
  background: linear-gradient(135deg, #fff, #f7f7f7);
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  width: 300px;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  text-align: center;
}

.service-card:hover,
.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.service-card img,
.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3,
.blog-card h3 {
  margin: 15px 0;
  color: #388e3c;
}

.service-card p,
.blog-card p {
  padding: 0 15px 15px 15px;
  color: #555;
}

.blog-card a {
  text-decoration: none;
  color: #4caf50;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 15px;
}

/* =========================
   Contact Form
========================= */
.contact-container {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 0 20px 50px 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 350px;
}

form input,
form select,
form textarea {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: all 0.3s;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #4caf50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

form button {
  padding: 12px;
  border: none;
  background-color: #ffb74d;
  color: white;
  border-radius: 50px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

form button:hover {
  background-color: #ffa726;
  transform: scale(1.05);
}

.contact-info {
  max-width: 300px;
  text-align: left;
}

.contact-info h3 {
  color: #4caf50;
  margin-bottom: 15px;
}

/* =========================
   Footer
========================= */
footer {
  background: #333;
  color: white;
  padding: 40px 20px 20px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-about,
.footer-links,
.footer-social {
  flex: 1;
  min-width: 200px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a,
.footer-social a {
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.footer-links ul li a:hover,
.footer-social a:hover {
  color: #ffb74d;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #ccc;
}

/* =========================
   Responsive
========================= */
@media (max-width: 800px) {
  .service-container,
  .blog-container,
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  #hero {
    padding: 60px 10px;
  }

  .home-buttons button {
    padding: 12px 25px;
    font-size: 14px;
  }

  section h2 {
    font-size: 2rem;
  }

  .service-card,
  .blog-card,
  form {
    width: 90%;
  }
}
