/* ----------------------------
   1. BASE STYLES & RESET
---------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: white;
  color: #333;
}

/* ----------------------------
   2. NAVBAR & HEADER
---------------------------- */
.navbar {
  background: #32cd32;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s;
}

nav a:hover {
  background: #1b5e20;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

.logos {
  width: 140px;
  height: 140px;
}

/* ----------------------------
   3. HERO SECTION
---------------------------- */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: #c8e6c9;
  height: 50vh;
  font-size: 1rem;
  padding: 1rem;
}

.hero .hero-text {
  font-size: 2rem;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text h1 {
  font-size: 2rem;
  color: #32cd32;
}

.hero-buttons a.view-all-btn:hover {
  background: #1b5e20;
}

.hero-img img {
  max-width: 400px;
  border-radius: 10px;
}

.mix {
  transform: scale(0.8);
}

.learn-btn,
.view-all-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: #32cd32;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s;
}

.learn-btn:hover {
  background-color: #1b5e20;
}


/* ----------------------------
   4. FEATURES SECTION
---------------------------- */
.features {
  text-align: center;
  padding: 1rem;
  font-size: 1.5rem;
}

.features h2 {
  font-size: 2rem;
  color: #32cd32;
  margin-bottom: 0.5rem;
}

.features h3 {
  font-size: 1.5rem;
}

.features p {
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.feature {
  background: #e8f5e9;
  padding: 1rem;
  border-radius: 10px;
}

/* ----------------------------
   5. PRODUCTS SECTION
---------------------------- */
.products {
  padding: 2rem;
  text-align: center;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.product {
  padding: 1rem;
  border-radius: 10px;
  width: 250px;
}

.product img {
  max-width: 100%;
  border-radius: 8px;
}

/* View All Button */
.view-all-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem;
  background: #32cd32;
  color: white;
  border-radius: 5px;
  border: none;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.view-all-btn:hover {
  background-color: #1b5e20;
}

h3 {
  font-weight: bold;
  font-size: 2rem;
}

/* ----------------------------
   6. WELCOME SECTION
---------------------------- */
.welcome-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 100%;
  transform: translateY(-30px);
  padding: 2rem;
}

.welcome-text {
  flex: 1;
  text-align: center;
}

.welcome-text h2 {
  font-size: 2.5rem;
}

.welcome-text p {
  font-size: 1.5rem;
}

.welcome {
  font-size: 30px;
  font-weight: bold;
}

.right {
  max-height: 22vh;
}

/* ----------------------------
   7. FOOTER
---------------------------- */
footer {
  background: #32cd32;
  color: white;
  padding: 2rem;
}

.footer-section h3 {
  font-size: 1.5rem;
}

.footer-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-section div {
  flex: 1;
  min-width: 200px;
}

footer h3,
footer h4 {
  margin-bottom: 0.5rem;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 0.25rem;
}

footer p {
  margin-top: 0.5rem;
}

footer .copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* ----------------------------
   8. SIDEBAR (MOBILE NAVIGATION)
---------------------------- */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 250px;
  height: 100vh;
  background-color: #2ca82c;
  display: flex;
  flex-direction: column;
  padding: 2rem 1rem;
  gap: 1rem;
  transition: left 0.3s ease-in-out;
  z-index: 1001;
}

.sidebar.show {
  left: 0;
}

.sidebar a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 5px;
  background-color: transparent;
  transition: background 0.3s;
}

.sidebar a:hover {
  background-color: #1b5e20;
}

/* Overlay behind sidebar */
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.overlay.show {
  display: block;
}

/* ----------------------------
   9. CONTACT FORM STYLING
---------------------------- */
.contact-form {
  margin-top: 2rem;
  background: #e8f5e9;
  padding: 2.5rem;
  border-radius: 10px;
  max-width: 800px;
  margin-inline: auto;
  font-weight: bold;
  width: 90%;
}

.input-field,
textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  resize: vertical;
}

/* ----------------------------
   10. RESPONSIVE MEDIA QUERIES
---------------------------- */
@media (max-width: 768px) {
  nav {
    display: none !important;
  }

  .navbar {
    height: 20vh;
  }

  .logos {
    height: 110px;
    width: 110px;
  }

  .hamburger {
    display: block;
  }

  .logo {
    display: none;
  }

  .hero-img {
    display: block;
    margin-top: 1rem;
  }

  .hero-img img {
    max-width: 100%;
  }

  .welcome-section {
    flex-direction: column;
    width: 100%;
    height: fit-content;
  }

  .welcome-text h2 {
    font-size: 1.5rem;
  }

  .welcome-text p {
    font-size: 1rem;
  }

  .hero {
  flex-direction: column;
  text-align: center;
  padding: 1rem;
  height: auto;
}

.hero-text h1 {
  font-size: 1.5rem;
}

.hero-text p {
  font-size: 1rem;
}

.hero-img {
  display: none;
}

.footer-section h3 {
  font-size: 1.5rem;
}

}

/* ----------------------------
   11. MISC STYLES
---------------------------- */
.profile {
  text-decoration: none;
  color: white;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px dashed #32cd32;
  outline-offset: 3px;
}

/* ----------------------------
   12. SLIDESHOW
---------------------------- */
.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 2rem;
  max-height: 80vh;
}

.slides {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.fade {
  animation: fadeEffect 1s ease-in-out;
}

@keyframes fadeEffect {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

@supports not (aspect-ratio: 16 / 9) {
  .slideshow {
    height: 40vw;
  }
}
