/* ---------- Global ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}
h1, h2, h3 {
  color: #023e8a;
}
a {
  text-decoration: none;
  color: inherit;
}
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary {
  background: #e63946;
  color: white;
}
.btn-primary:hover {
  background: #023e8a;
}
.btn-secondary {
  border: 2px solid #e63946;
  color: #e63946;
}
.btn-secondary:hover {
  background: #e63946;
  color: white;
}

/* ---------- Navbar ---------- */
header {
  background: #023e8a;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
}
.logo {
  font-weight: 700;
  font-size: 1.5rem;
}
.nav-links {
  display: flex;
  gap: 25px;
}
.nav-links li{
  list-style-type: none;
}
.nav-links a {
  color: white;
  transition: color 0.3s ease;
  text-decoration: none;
}
.nav-links a:hover {
  color: #ffb703;
}
.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
}

/* ====== NAV LINK HOVER ANIMATION ====== */
.nav-links a {
  position: relative;
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Underline effect (invisible at first) */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: rgb(240, 77, 85);
  transition: width 0.3s ease;
}

/* On hover: show underline + color glow */
.nav-links a:hover {
  color: #ffd700; /* gold accent for elegance */
}

.nav-links a:hover::after {
  width: 100%;
}

/* Optional: active page indicator */
.nav-links a.active::after {
  width: 100%;
}
nav {
  background: royalblue; /* red tint */
  backdrop-filter: blur(6px);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

nav.scrolled {
  background: rgba(255, 0, 0, 0.98);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}


/* ---------- Hero ---------- */
/* ====== Hero Section (Parallax) ====== */
.hero {
  position: relative;
  height: 100vh;
  background-image: url("./img/Best\ Organic\ Fertilizers\ for\ Summer\ Growth.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* parallax magic */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 700px;
  animation: fadeSlide 1.2s ease-out;
}

.hero-content .btn{
  border-radius: 5px;
   width: 80%; 
   background-color:#023e8a ;
    padding: 20px 40px;
    transition:all 0.5s ease;
}
.hero-content .btn:hover{
  background-color:#e63946 ;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.hero span {
  color: #e63946;
}

.hero p {
  font-size: 1.2rem;
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------- About ---------- */
.about {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 80px 10%;
  flex-wrap: wrap;
}
.about-img img {
  width: 100%;
  border-radius: 12px;
}
.about-text {
  flex: 1;
  min-width: 300px;
}

/* ---------- Services ---------- */
.services {
  background: #f7f7f7;
  padding: 80px 10%;
  text-align: center;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}
.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ====== Gallery ====== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Lightbox Overlay */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  font-weight: bold;
}


/* ---------- Contact ---------- */
.contact {
  padding: 80px 10%;
  text-align: center;
}
form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
input, textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}

/* ====== CTA Section ====== */
.cta {
  background: linear-gradient(135deg, #e63946, #4169e1);
  color: white;
  padding: 80px 10%;
  text-align: center;
  border-radius: 20px 20px 0 0;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.btn-whatsapp {
  background: #25D366;
}

.btn-instagram {
  background: linear-gradient(45deg, #FCAF45, #E1306C, #833AB4);
}

.btn-whatsapp:hover,
.btn-instagram:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}


/* ---------- Footer ---------- */
footer {
  background: #023e8a;
  color: white;
  text-align: center;
  padding: 15px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #023e8a;
    position: absolute;
    top: 70px;
    right: 10%;
    width: 50%;
    border-radius: 10px;
    text-align: center;
    
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}


/* ---------- Animations ---------- */

/* Start hidden */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

/* When visible */
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle zoom effect (used for gallery & cards) */
.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.7s ease;
}
.zoom-in.show {
  opacity: 1;
  transform: scale(1);
}

/* Smooth scrolling behavior for navigation */
html {
  scroll-behavior: smooth;
}


/* ====== Floating CTA Buttons ====== */
.floating-cta {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2000;
}

.floating-cta a {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-cta img {
  width: 30px;
  height: 30px;
}

.floating-cta a:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.floating-cta .whatsapp {
  background-color: #25D366;
}

.floating-cta .instagram {
  background: linear-gradient(45deg, #FCAF45, #E1306C, #833AB4);
}

/* Dropdown container */
.dropdown {
  position: relative;
}

/* Dropdown button (Divisions) */
.dropbtn {
  cursor: pointer;
  color: white;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 180px;
  top: 100%;
  left: 0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 6px;
  z-index: 1000;
  overflow: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
  transform: translateY(10px);
}

/* Dropdown links */
.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f2f2f2;
  color: #d40000;
}

/* ✅ Keep dropdown open while hovering on either the button or the dropdown */
.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Prevent flicker by giving slight padding around dropdown */
.dropdown:hover {
  padding-bottom: 0.5rem;
}

