/* ───────────  Global Reset  ─────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  transition: background 0.4s, color 0.4s;
  animation: fadeIn 1.2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───────────  Header  ─────────── */
header {
  background-color: #ffffff;
  padding: 0.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.navbar {
  display: flex;
  align-items: center;
}

.navbar .logo {
  height: 90px;
  transition: transform 0.3s ease;
}
.navbar .logo:hover { transform: scale(1.05); }

nav {
  margin-left: auto; /* Moves nav to the right */
}

nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

nav ul li a {
  color: #145A32;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}
nav ul li a:hover { color: #27AE60; }

.enquiry-btn {
    background-color: #1E8449;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}
 .enquiry-btn:hover {
    background-color: #145A32;
}


.menu-toggle {
    display: none; /* Hidden by default on desktop */
}

/* ───────────  Hero  ─────────── */
.hero {
  background: url('/images/polyhouse-bg.jpeg') no-repeat center center/cover;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  animation: fadeIn 1.5s ease-in-out;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.45);
  z-index: 0;
}
.hero-text { 
  position: relative; 
  z-index: 1;
}
.hero h1   { 
    font-size: 5rem;
    margin-bottom: 0.2rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
  background-color: #27AE60;
  color: white;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s, transform 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background-color: #1E8449;
  transform: scale(1.05);
}

.btn-whatsapp {
    background-color: #25D366;
}
.btn-whatsapp:hover {
    background-color: #1DA851;
}
.btn-whatsapp svg {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

/* ───────────  Sections  ─────────── */
.about, .products, .gallery, .contact, .features, .dealership {
  padding: 4rem 2rem;
  text-align: center;
  animation: fadeIn 1s ease;
}

/* ───────────  About Section Additions  ─────────── */
.director-grid {
  display: flex;
  justify-content: center;
  gap: 10rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.director-card {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.director-card:hover {
  transform: scale(1.05);
}

.director-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.director-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px; /* fixed height for alignment */
    background-color: rgba(93, 168, 47, 0.8);
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
  }

.director-card:hover .overlay {
  opacity: 1;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.about h1 {
    margin-bottom: 1rem;
    color: #145A32;
}

.provide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.provide-item {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    font-size: 1.1rem;
    font-weight: 500;
    border-left: 5px solid #27AE60;
    text-align: left;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease-in-out;
}
.provide-item span {
    position: relative;
    z-index: 2;
}
.provide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1E8449;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease-in-out;
    z-index: 1;
}
.provide-item:hover {
    color: white;
    border-left-color: #145A32;
}
.provide-item:hover::before {
    transform: scaleX(1);
}

/* ───────────  Products  ─────────── */
.products .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.product-card {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

/* ─────────── Features & Clients ─────────── */
.features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}
.feature-stats {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.stat-card h2 {
    font-size: 3rem;
    color: #145A32;
}
.stat-card p {
    font-size: 1.1rem;
    color: #555;
}
.world-map {
    flex: 2;
    min-width: 300px;
    position: relative;
}
.world-map img {
    width: 100%;
    height: auto;
    opacity: 0.5;
}
.client-marker {
    position: absolute;
    background-color: #27AE60;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.client-marker:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.client-marker.asia { background-color: #3498db; }

/* Client Marker Positions (Top, Left %) */
.marker-india { top: 40%; left: 68%; }
.marker-vietnam { top: 38%; left: 78%; }
.marker-indonesia { top: 35%; left: 70%; }
.marker-nigeria { top: 42%; left: 48%; }
.marker-ethiopia { top: 43%; left: 55%; }
.marker-kenya { top: 48%; left: 54%; }
.marker-safrica { top: 68%; left: 51%; }
.marker-brazil { top: 55%; left: 30%; }

/* ─────────── Dealership Section ─────────── */
.dealership-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.dealership-card {
    background: #fff;
    border-radius: 0; /* Sharp corners */
    border: 4px solid #145A32; /* Thicker, dark green border */
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s; /* Only transition shadow */
    width: 300px;
}
.dealership-card:hover {
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.dealership-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

/* ───────────  Gallery  ─────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s;
}
.gallery-grid img:hover { transform: scale(1.05); }

/* ───────────  Contact  ─────────── */
.contact {
    text-align: left;
}

.contact-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.map-container {
    flex: 1;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-info {
    flex: 1;
}
.contact-info .logo {
    height: 100px;
    margin-bottom: 1rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: #145A32;
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 1rem;
    line-height: 2;
}

.contact-details a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-details a:hover {
    color: #1E8449;
    text-decoration: underline;
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    display: inline-block;
    margin-right: 1rem;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icons svg {
    width: 32px;
    height: 32px;
}

/* ───────────  Footer  ─────────── */
footer {
  background-color: #145A32;
  color: white;
  text-align: center;
  padding: 1rem;
  transition: background-color 0.3s;
}

.section-title-bar {
  background-color: #145A32;
  color: white;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  padding: 1rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

/* ─────────── Modal Styles ─────────── */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.5s;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  transition: color 0.3s;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#directorModal .modal-content img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #145A32;
}

#productModal .modal-content img {
  width: 80%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #145A32;
}

#enquiryModal .modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}
#enquiryModal .modal-content input,
#enquiryModal .modal-content textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 1rem;
    font-family: 'Segoe UI', sans-serif;
}
#enquiryModal .modal-content button {
    width: 100%;
}

#form-status {
    margin-top: 1rem;
    font-weight: bold;
}
.status-success {
    color: #28a745;
}
.status-error {
    color: #dc3545;
}

.modal-content h3 {
  font-size: 1.8rem;
  color: #145A32;
  margin-bottom: 10px;
}

.modal-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* ─────────── Responsive Styles ─────────── */
@media (max-width: 992px) {
  .navbar {
    justify-content: space-between;
  }
  .navbar nav {
    display: none;
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-left: 0;
  }
  .navbar nav.active {
    display: block;
  }
  .navbar nav ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .navbar nav ul li {
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
  }
  .navbar nav ul li a {
    display: block;
    padding: 1rem;
  }
  .enquiry-btn {
      border-radius: 0;
  }
  .menu-toggle {
    display: block;
    cursor: pointer;
  }
  .menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #145A32;
    transition: all 0.3s ease-in-out;
  }
  .contact-container {
    flex-direction: column;
  }
  .contact-info {
    text-align: center;
  }
  .contact {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dealership-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .products .product-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero-buttons {
      flex-direction: column;
  }
}