/* ==========================================
   FINCA NOQAN KANI — PREMIUM DARK MODE
   Color System:
   - BG Primary:    #0a0f0d (deep forest)
   - BG Secondary:  #111d17 (dark green)
   - BG Card:       rgba(16, 185, 129, 0.06)
   - Emerald:       #10B981
   - Emerald Light: #34D399
   - Gold:          #F59E0B
   - Gold Light:    #FBBF24
   - Text Primary:  #E2E8F0
   - Text Secondary:#94A3B8
   ========================================== */

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

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #E2E8F0;
  background-color: #0a0f0d;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero Header Bar ── */
.hero-header {
  background: linear-gradient(135deg, #0a0f0d 0%, #111d17 50%, #0a0f0d 100%);
  padding: 1.2rem 0 0.8rem 0;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
  overflow: hidden;
}

.hero-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 30% 50%, rgba(16, 185, 129, 0.08), transparent),
    radial-gradient(ellipse 400px 200px at 70% 50%, rgba(245, 158, 11, 0.06), transparent);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #E2E8F0;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.hero-highlight {
  display: block;
  background: linear-gradient(135deg, #10B981 0%, #34D399 50%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0.5rem 0 0.3rem 0;
}

.hero-location {
  display: block;
  font-size: 1.05rem;
  color: #94A3B8;
  font-weight: 500;
  margin-top: 0.2rem;
  letter-spacing: 0.5px;
}

/* ── Carousel ── */
.carousel-container {
  position: relative;
  overflow: hidden;
  height: 100vh;
  margin-top: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide.active {
  opacity: 1;
}

.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 13, 0.5) 0%,
    rgba(10, 15, 13, 0.4) 40%,
    rgba(10, 15, 13, 0.75) 100%
  );
}

.slide-content {
  position: relative;
  z-index: 2;
  background: rgba(16, 185, 129, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1.25rem;
  padding: 3rem;
  color: white;
  max-width: 720px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(16, 185, 129, 0.1);
}

.slide h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.5px;
}

.slide p {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  margin-bottom: 2rem;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.7;
}

.hero-button {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #ffffff;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.hero-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #34D399, #10B981);
}

/* ── Carousel Navigation ── */
.carousel-nav {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 3;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(226, 232, 240, 0.3);
  cursor: pointer;
  transition: all 0.35s ease;
  border: 2px solid transparent;
}

.nav-dot.active {
  background-color: #10B981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
  transform: scale(1.3);
}

.nav-dot:hover {
  background-color: rgba(16, 185, 129, 0.6);
}

.carousel-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #E2E8F0;
  font-size: 1.5rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
  z-index: 3;
}

.carousel-arrows:hover {
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

/* ── Scroll Indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(226, 232, 240, 0.6);
  font-size: 0.85rem;
  letter-spacing: 1px;
  animation: bounce 2s infinite;
  z-index: 3;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ── Section Common ── */
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #E2E8F0;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #94A3B8;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  line-height: 1.7;
}

/* ── Benefits Section ── */
.benefits-section {
  padding: 6rem 0;
  background: #0a0f0d;
  position: relative;
}

.benefits-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 20% 30%, rgba(16, 185, 129, 0.04), transparent),
    radial-gradient(ellipse 600px 300px at 80% 70%, rgba(245, 158, 11, 0.03), transparent);
  pointer-events: none;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
}

.benefit-card {
  background: rgba(16, 185, 129, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(16, 185, 129, 0.12);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10B981, #34D399, #FBBF24);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.benefit-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow:
    0 12px 40px rgba(16, 185, 129, 0.1),
    0 0 0 1px rgba(16, 185, 129, 0.15);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
  background: linear-gradient(135deg, #10B981, #059669);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.benefit-icon svg {
  width: 26px;
  height: 26px;
  fill: #10B981;
  transition: fill 0.3s ease;
}

.benefit-card:hover .benefit-icon svg {
  fill: #ffffff;
}

.benefit-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #E2E8F0;
}

.benefit-card p {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.7;
}

/* ── Tech Section ── */
.tech-section {
  padding: 6rem 0;
  background: #111d17;
  position: relative;
}

.tech-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.tech-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.tech-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.tech-row.reverse {
  flex-direction: row-reverse;
}

.tech-text {
  flex: 1;
}

.tech-text h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #E2E8F0;
  letter-spacing: -0.3px;
}

.tech-text .tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10B981;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tech-text p {
  font-size: 1.05rem;
  color: #94A3B8;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.tech-img {
  flex: 1;
  max-width: 520px;
}

.tech-img img {
  border-radius: 1rem;
  border: 1px solid rgba(16, 185, 129, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.tech-img img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 50px rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

/* ── Sustainability / Biodigester Section ── */
.sustainability-section {
  padding: 6rem 0;
  background: #0a0f0d;
  position: relative;
}

.sustainability-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 50% 50%, rgba(245, 158, 11, 0.04), transparent);
  pointer-events: none;
}

.sustainability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.sustainability-card {
  background: rgba(245, 158, 11, 0.04);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 1rem;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.sustainability-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F59E0B, #FBBF24, #10B981);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sustainability-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow: 0 12px 40px rgba(245, 158, 11, 0.08);
}

.sustainability-card:hover::after {
  opacity: 1;
}

.sustainability-card.featured {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.sustainability-card.featured img {
  max-width: 400px;
  border-radius: 0.75rem;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.sustainability-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FBBF24;
  margin-bottom: 0.8rem;
}

.sustainability-card p {
  font-size: 1rem;
  color: #94A3B8;
  line-height: 1.7;
}

.sustainability-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.sustainability-stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sustainability-stat .number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sustainability-stat .label {
  color: #94A3B8;
  font-size: 0.9rem;
}

/* ── IoT Details Section ── */
.iot-details-section {
  padding: 6rem 0;
  background: #111d17;
  position: relative;
}

.iot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.iot-card {
  background: rgba(16, 185, 129, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.iot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.1);
}

.iot-card .iot-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.iot-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 0.5rem;
}

.iot-card p {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.6;
}

.iot-card .iot-tag {
  display: inline-block;
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  padding: 0.2rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.8rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ── CTA Section ── */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #064e3b 0%, #0a0f0d 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 300px at 50% 50%, rgba(16, 185, 129, 0.1), transparent);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.cta-section p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.7;
}

.cta-button {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #ffffff;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 25px rgba(16, 185, 129, 0.3);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 35px rgba(16, 185, 129, 0.45);
}

/* ── Footer ── */
.footer {
  background: #060a08;
  border-top: 1px solid rgba(16, 185, 129, 0.1);
  color: #64748B;
  text-align: center;
  padding: 2.5rem 0;
}

.footer p {
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

.footer a img {
  transition: opacity 0.3s ease;
}

.footer a img:hover {
  opacity: 0.8;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.1); }
  50% { box-shadow: 0 0 30px rgba(16, 185, 129, 0.2); }
}

.fade-in-up {
  animation: fadeInUp 0.7s ease-out forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.7s ease-out forwards;
}

.fade-in-right {
  animation: fadeInRight 0.7s ease-out forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .sustainability-grid {
    grid-template-columns: 1fr;
  }

  .sustainability-card.featured {
    flex-direction: column;
  }

  .sustainability-card.featured img {
    max-width: 100%;
  }

  .tech-row, .tech-row.reverse {
    flex-direction: column;
  }

  .tech-img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .carousel-container {
    height: 85vh;
  }

  .slide-content {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  .carousel-arrows {
    display: none;
  }

  .benefits-grid, .iot-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .hero-title { font-size: 1.2rem; }
  .hero-highlight { font-size: 1.4rem; }
  .hero-location { font-size: 0.9rem; }
  .hero-header { padding: 1.5rem 0 1rem 0; }
}

@media (max-width: 480px) {
  .slide-content {
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
  }

  .benefit-card, .sustainability-card, .iot-card {
    padding: 1.5rem;
  }
}
