@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
  --primary-color: #7AC142;
  --secondary-color: #2F5D1F;
  --accent-color: #F7931E;
  --bg-color: #F9FDF7;
  --text-color: #333333;
  --white: #FFFFFF;
  --gray: #F0F0F0;
  --border-radius: 16px;
  --box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Header & Nav */
header:not(.page-header) {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  transition: var(--transition);
}

header.scrolled {
  padding: 0.5rem 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo img {
  height: 70px;
  transition: var(--transition);
  mix-blend-mode: multiply;
}

header.scrolled .logo img {
  height: 55px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links li a {
  font-weight: 700;
  color: var(--secondary-color);
  position: relative;
  font-size: 1.1rem;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -8px;
  inset-inline-start: 0;
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(122, 193, 66, 0.3);
  transition: var(--transition);
  display: inline-block;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(47, 93, 31, 0.3);
  color: var(--white);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.05);
  animation: zoomInOut 20s infinite alternate ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(47, 93, 31, 0.7), rgba(0, 0, 0, 0.5));
  z-index: -1;
}

.hero-content {
  max-width: 900px;
  color: var(--white);
  animation: fadeInUp 1.2s ease;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.4);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Sections */
.section {
  padding: 7rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-bg {
  background-color: var(--white);
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  color: var(--secondary-color);
  margin-bottom: 4rem;
  position: relative;
  font-weight: 800;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 5px;
  background-color: var(--primary-color);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.card-img-wrapper {
  overflow: hidden;
  height: 280px;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img {
  transform: scale(1.1);
}

.card-content {
  padding: 2.5rem;
  background: var(--white);
  position: relative;
  z-index: 1;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.card-text {
  color: #666;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-link {
  color: var(--primary-color);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link:hover {
  color: var(--secondary-color);
  gap: 0.8rem;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 5rem 5% 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 3rem;
}

.footer-logo img {
  height: 100px;
  margin-bottom: 1.5rem;
  background: white;
  padding: 10px;
  border-radius: 10px;
}

.footer-links h3, .footer-contact h3 {
  margin-bottom: 2rem;
  font-size: 1.4rem;
  color: var(--primary-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 1rem;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-inline-start: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
}

/* Page Header (for inner pages) */
.page-header {
  height: 50vh;
  background: linear-gradient(rgba(47, 93, 31, 0.85), rgba(122, 193, 66, 0.7)), url('../assets/agriculture_hero_1784633299980.png') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  margin-top: 90px;
}

.page-header h1 {
  font-size: 4rem;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
  font-weight: 800;
}

/* Internal Page Content */
.content-wrapper {
  background: var(--white);
  padding: 4rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-top: -50px;
  position: relative;
  z-index: 10;
}

.sector-detail {
  display: flex;
  gap: 3rem;
  margin-bottom: 4rem;
  align-items: center;
}

.sector-detail:nth-child(even) {
  flex-direction: row-reverse;
}

.sector-text {
  flex: 1;
}

.sector-text h2 {
  color: var(--secondary-color);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.sector-text ul {
  list-style-type: none;
  margin-top: 1rem;
}

.sector-text ul li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-inline-start: 25px;
}

.sector-text ul li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.sector-img {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.sector-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.sector-img:hover img {
  transform: scale(1.05);
}

/* Mobile Menu Toggle Base */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--secondary-color);
  border-radius: 3px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomInOut {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 3.5rem; }
  .sector-detail, .sector-detail:nth-child(even) { flex-direction: column; }
  .sector-img img { height: 300px; }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 2rem 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
  }
  
  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .hero-content h1 { font-size: 2.8rem; }
  .page-header h1 { font-size: 2.8rem; }
  .content-wrapper { padding: 2rem; }
}
