/* public/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #1b4d2e;
  --primary-dark: #0a1f12;
  --accent: #8cb369;
  --accent-light: #a8cf85;
  --background: #f9faf7;
  --foreground: #111a13;
  --card: #ffffff;
  --card-border: #e0e8dc;
  --muted: #6b7c6d;
  --dark-bg: #0a1710;
  --dark-bg2: #141b1f;
  --text-on-dark: rgba(255,255,255,0.85);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius: 1rem;
  --container: 1200px;
  --nav-height: 72px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: rgba(140, 179, 105, 0.2);
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; font-weight: 900; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

nav.scrolled {
  background-color: rgba(249, 250, 247, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}
nav.scrolled .nav-logo span,
nav.scrolled .nav-link {
  color: var(--foreground);
}
nav.scrolled .nav-link:hover {
  color: var(--primary);
}
nav.scrolled .hamburger span {
  background-color: var(--foreground);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  z-index: 1001;
}

.nav-logo svg {
  background-color: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 6px;
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.nav-link:hover {
  color: #fff;
}

.nav-link.active {
  color: var(--accent);
}

nav.scrolled .nav-link.active {
  color: var(--primary);
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover {
  background-color: #153b23;
}

nav .nav-cta {
  background-color: #fff;
  color: var(--primary);
}
nav .nav-cta:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

nav.scrolled .nav-cta {
  background-color: var(--primary);
  color: #fff;
}
nav.scrolled .nav-cta:hover {
  background-color: #153b23;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: #fff;
  display: block;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--primary-dark);
  flex-direction: column;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.mobile-logo {
  color: #fff;
  position: absolute;
  top: 24px;
  left: 24px;
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.mobile-cta {
  width: 100%;
  max-width: 300px;
  margin-top: 2rem;
  padding: 16px;
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  color: #fff;
  overflow: hidden;
}

@supports (-webkit-touch-callout: none) {
  .hero { min-height: -webkit-fill-available; }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 31, 18, 0.95) 0%, rgba(10, 31, 18, 0.8) 50%, transparent 100%);
  mix-blend-mode: multiply;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background) 0%, transparent 20%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 800px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: rgba(140, 179, 105, 0.2);
  border: 1px solid rgba(140, 179, 105, 0.4);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  backdrop-filter: blur(4px);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 650px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
}

.btn-accent {
  background-color: var(--accent);
  color: #111;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 30px rgba(140, 179, 105, 0.3);
  transition: all 0.2s;
}

.btn-accent:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat-item {
  border-left: 2px solid rgba(140, 179, 105, 0.5);
  padding-left: 16px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

/* Header pages (non-home) */
.page-header {
  padding: 160px 0 80px;
  background-color: var(--primary-dark);
  color: #fff;
  text-align: center;
  position: relative;
}

.page-header p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sections */
.section {
  padding: 96px 0;
}

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

.section-muted {
  background-color: rgba(240, 243, 238, 0.5);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.section-dark {
  background-color: var(--dark-bg);
  color: #fff;
}

.section-darker {
  background-color: var(--dark-bg2);
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--muted);
}
.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* Cards */
.card {
  background-color: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(27, 77, 46, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
}

.dark-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  border-radius: var(--radius);
}

.dark-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Image with text layout */
.img-text-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.img-text-layout img {
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  width: 100%;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
}

th {
  background-color: rgba(240, 243, 238, 0.5);
  padding: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--card-border);
}

td {
  padding: 20px;
  border-bottom: 1px solid var(--card-border);
}

tr:last-child td {
  border-bottom: none;
}

td:first-child {
  font-weight: 600;
}

td.impact-col {
  color: var(--primary);
  font-weight: 700;
}

/* Metric Strip */
.metric-strip {
  background-color: var(--primary);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}

.metric-strip .stat-value {
  font-size: 3rem;
  margin-bottom: 8px;
  color: var(--accent);
}

.stat-star {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(140, 179, 105, 0.5);
}

.star-tag {
  display: inline-block;
  background: var(--accent);
  color: #111;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* Forms */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--background);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 77, 46, 0.1);
}

.form-control.error {
  border-color: #ef4444;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-card {
  background: var(--card);
  padding: 48px;
  border-radius: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--card-border);
}

/* Team */
.team-img-wrapper {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}

.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-img-wrapper img {
  transform: scale(1.05);
}

.team-card h3 {
  margin-bottom: 4px;
}

.team-card p.title {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-card p.bio {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--card-border);
  transform: translateX(-50%);
}
.timeline-item {
  margin-bottom: 48px;
  position: relative;
  width: 50%;
  padding-right: 48px;
}
.timeline-item:nth-child(even) {
  margin-left: auto;
  padding-right: 0;
  padding-left: 48px;
}
.timeline-dot {
  position: absolute;
  right: -8px;
  top: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--background);
}
.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
  right: auto;
}

/* Badges */
.tech-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
}
.tech-badge {
  padding: 8px 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: #fff;
  padding: 80px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
}

.footer-links h4, .footer-contact h4 {
  font-size: 1.125rem;
  margin-bottom: 24px;
  color: #fff;
}

.footer-links a, .footer-contact p {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.btn-download {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
}
.btn-download:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Animations — elements are visible by default (no-JS fallback).
   JS adds .js-animations to <body> before observing, so the
   hide→reveal sequence only runs when JS is healthy. */
.fade-in {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-animations .fade-in {
  opacity: 0;
  transform: translateY(30px);
}
.fade-in.visible {
  opacity: 1 !important;
  transform: none !important;
}

/* Staggering utility classes */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  
  .hero h1 { font-size: 2.8rem; }
  .hero p { font-size: 1.125rem; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta button { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 24px; }
  
  h2 { font-size: 2rem; }
  
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .img-text-layout { grid-template-columns: 1fr; gap: 32px; }
  
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  
  .timeline::before { left: 24px; }
  .timeline-item { width: 100%; padding-left: 64px !important; padding-right: 0 !important; }
  .timeline-dot { left: 16px !important; right: auto !important; }
  
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.4rem; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .grid-5 { grid-template-columns: 1fr 1fr; }
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.social-icon:hover {
  border-color: var(--color-amber);
  color: var(--color-amber);
  background-color: rgba(230,138,0,0.08);
}

.social-icon-light {
  color: rgba(30,50,35,0.45);
  border-color: rgba(30,50,35,0.15);
}
.social-icon-light:hover {
  color: var(--color-amber);
  border-color: var(--color-amber);
  background-color: rgba(230,138,0,0.08);
}

.profile-socials {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.footer-socials {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}