/* ===================================================
   AZMAYEEN AGROTECH - MODERN EARTH THEME
   =================================================== */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap");

:root {
  --primary: #1b4332; /* Deep Forest Green */
  --primary-light: #2d6a4f;
  --accent: #d4a373; /* Harvest Gold */
  --bg-warm: #fefae0; /* Warm Cream */
  --text-dark: #2b2d42; /* Charcoal Slate */
  --text-light: #6c757d;
  --white: #ffffff;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Base Styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
}

body {
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

h1,
h2,
h3,
.grid-title,
.quality-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

/* ===================================================
   NAVIGATION & HEADER
   =================================================== */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 2000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.logo-img {
  height: 50px;
  transition: var(--transition);
}

.header .logo a {
  color: #2b2d42;
  text-decoration: none;
  /* font-size: larger; 
  */
  display: flex;
}

.header .logo a h1 {
  position: relative;
  top: -5px;
  left: 10px;
}

.header .logo a h6 {
  position: relative;
  top: -20px;
  text-align: left;
  left:10px;
  color: rgb(240, 123, 142);
}

.navlinks-ul1 {
  list-style: none;
  display: flex;
  gap: 35px;
  align-items: center;
}

.navlinks-ul1 > li {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
}

.navlinks-ul1 > li a,
.nav-label {
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
  cursor: pointer;
}

.navlinks-ul1 > li:hover > a,
.navlinks-ul1 > li:hover .nav-label {
  color: var(--accent);
}

/* Modern Dropdown */
.navlinks-ul2,
.navlinks-ul3 {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 250px;
  border-radius: 8px;
  padding: 15px 0;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
  list-style: none;
}

.navlinks-ul1 li:hover ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navlinks-ul2 li a,
.navlinks-ul3 li a {
  padding: 10px 25px;
  display: block;
  font-size: 0.9rem;
}

.navlinks-ul2 li a:hover,
.navlinks-ul3 li a:hover {
  background-color: var(--bg-warm);
  color: var(--primary);
}

.header .navlinks .dropdown-toggle {
  background: none;
  border: none;
  outline: none;
}

/* ===================================================
   CAROUSEL
   =================================================== */

.azmayeen-carousel-container {
  height: 80vh;
  background: var(--primary);
}

.carousel-slide {
  display: none;
  height: 80vh;
  position: relative;
}

.carousel-slide.active {
  display: block;
  animation: fadeIn 1s ease;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.carousel-text {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: var(--white);
  max-width: 600px;
  z-index: 10;
}

.carousel-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  padding: 20px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 15;
  transition: var(--transition);
}

.next {
  right: 2%;
}
.prev {
  left: 2%;
}

.prev:hover,
.next:hover {
  color: var(--accent);
}

.dots-container {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
  z-index: 20;
}

.dot {
  height: 12px;
  width: 12px;
  background: rgba(255, 255, 255, 0.3);
  display: inline-block;
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
}

.active-dot {
  background: var(--accent);
  width: 30px;
  border-radius: 10px;
}

/* ===================================================
   SECTIONS
   =================================================== */

section {
  padding: 100px 10%;
}

.welcome h1 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 10px;
  margin-top: 100px;
}

.welcome h4 {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.welcome p {
  color: var(--text-light);
  font-size: 1.1rem;
  text-align: justify;
}

.right-aligned-text {
  margin-top: 50px;
  font-size: 2rem;
  color: var(--primary);
  border-right: 5px solid var(--accent);
  padding-right: 20px;
  text-align: right;
    font-family: 'Poppins', sans-serif;
}

/* Solutions Grid */
.solutions-grid-container {
  background: var(--bg-warm);
}

.grid-title {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 10px;
  text-align: center;
}

.solutions-grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.grid-item {
  position: relative;
  width: 400px;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27, 67, 50, 0.9), transparent);
  display: flex;
  align-items: flex-end;
  padding: 40px;
  opacity: 0;
  transition: var(--transition);
}

.overlay span {
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
}

.grid-item:hover img {
  transform: scale(1.1);
}
.grid-item:hover .overlay {
  opacity: 1;
}

/* Expertise Section */
.expert-container {
  display: flex;
  align-items: center;
  gap: 60px;
  background: var(--white);
  padding: 50px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.expertise-section .section-title {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.expert-image img {
  width: 300px;
  height: 300px;
  border-radius: 20px;
  object-fit: cover;
}

.expert-info h3 {
  font-size: 2rem;
  color: var(--primary);
}

.expert-info .expert-email {
    color: #1b4332;
}

.expertise-section .bio-text p {
  text-align: justify;
}

.designation {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 15px;
}

/* ===================================================
   QUALITY SECTION NAVIGATION (Right Aligned)
   =================================================== */

.quality-section .quality-nav {
    display: flex;
    justify-content: flex-end; /* Pushes content to the right */
    align-items: center;      /* Centers items vertically against each other */
    gap: var(--space-md);     /* Maintains consistent spacing between link and button */
    margin-bottom: var(--space-md); /* Space between nav and the title below */
}

/* Specific styling for the text link next to the button */
.quality-nav .nav-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
  text-align: justify;
}

.quality-nav .nav-text p {
  text-align: justify;
}

.quality-nav .nav-text:hover {
    color: var(--accent);
}

.quality-section .quality-title {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

/* CTA Buttons - Refined with right alignment context */
.explore-btn,
.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: 2px solid transparent; /* Prevents layout shift on hover if you add borders later */
    white-space: nowrap;          /* Prevents button text from wrapping */
}

.explore-btn:hover,
.hero-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.3); /* Subtle glow using accent color */
}

.hero-section {
  background-image: url(img/img5.png);
  background-size: cover;
  background-position: center;
}

/* ===================================================
   FOOTER
   =================================================== */

.main-footer {
  background: var(--primary);
  color: var(--white);
  padding: 80px 10% 20px;
}

.main-footer .fa-facebook,
.main-footer .contact-info a {
  color: #fefae0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  height: 60px;
}

.contact-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.contact-info i {
  color: var(--accent);
  margin-top: 5px;
}

.sub-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.developer-name {
  color: var(--accent);
  font-weight: 700;
}

/* ===================================================
   ABOUT PAGE SPECIFIC STYLING
   =================================================== */

/* --- Values Section --- */
.values-section {
    background-color: var(--white);
    padding-top: 150px;
}

.values-intro {
    margin: 0 auto var(--space-xl) auto;
}

.values-main-title {
    font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.values-intro p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
    text-align: justify;
}

/* --- Value Rows (Alternating Layout) --- */
.value-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: var(--space-xl);
    margin-top: 100px ;

}

.value-row.reverse {
    flex-direction: row-reverse;
}

.value-text {
    flex: 1;
    text-align: justify;
}

.value-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    position: relative;
}

.value-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-top: var(--space-xs);
}

.value-image {
    flex: 1;
}

.value-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* --- Team Section --- */
.team-section {
    background-color: var(--bg-warm);
    padding: 100px 10%;
}

.team-intro {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.team-main-title {
    font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.connect-text {
    color: var(--primary);
    font-weight: 700;
    margin-top: var(--space-sm);
    font-size: 1.2rem;
}

.group-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--space-md);
    color: var(--text-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- Team Grid --- */
.team-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
}

.team-member {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 350px;
    transition: var(--transition);
    border-radius: 10px;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-img-box {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--space-sm) auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--bg-warm);
}

.member-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.team-member .role {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.member-email {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.member-email:hover {
    color: var(--primary);
}

.poultry-challenges {
  margin-top: 100px;
}

.poultry-challenges .page-title {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.contact-details-section {
  padding-top: 200px;
}

.contact-details-section .section-title {
  font-size: 30px;
  color: var(--primary);
}

.contact-details-section .contact-item a {
  color: #2b2d42;
}

.contact-details-section h1 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

/* --- Responsive Fixes for About Page --- */
@media (max-width: 992px) {
    .value-row, .value-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .value-text h2::after {
        margin: var(--space-xs) auto 0 auto;
    }

    .value-image img {
        height: 350px;
    }
    
    .values-main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .team-grid {
        flex-direction: column;
        align-items: center;
    }
} 

/* ===================================================
   RESPONSIVE
   =================================================== */

@media (max-width: 1024px) {
  .carousel-text h1 {
    font-size: 2.5rem;
  }
  .expert-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 550px) {
    .header .logo a .h1s {
        display: none;
    }
}

@media (max-width: 768px) {
  .header {
    padding: 15px 5%;
  }

  .hamburger {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 5px 0;
    transition: 0.3s;
  }

  .navlinks {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    z-index: 100;
    transition: 0.5s;
    padding-top: 100px;
  }

  .navlinks.open {
    right: 0;
  }

  .navlinks-ul1 {
    flex-direction: column;
    padding: 0 40px;
  }

  .navlinks-ul2,
  .navlinks-ul3 {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    padding-left: 20px;
  }

  .dropdown-open .navlinks-ul2,
  .dropdown-open .navlinks-ul3 {
    display: block;
  }

  .carousel-text h1 {
    font-size: 2rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
