/* ============================================
   Conservation Tech Solutions — Main Stylesheet
   ============================================ */

/* ----- Custom Properties ----- */
:root {
  --color-primary: #2d5f5d;
  --color-secondary: #3d8b85;
  --color-secondary-light: #e6f7f6;
  --color-success: #48bb78;
  --color-alert: #e53e3e;
  --color-text-dark: #2d3748;
  --color-text-body: #4a5568;
  --color-text-light: #718096;
  --color-bg-light: #f7fafc;
  --color-bg-white: #ffffff;
  --color-footer-bg: #1a365d;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 36px rgba(0, 0, 0, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.4s ease;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

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

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-dark);
  line-height: 1.3;
  font-weight: 600;
}

/* ----- Layout ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  color: var(--color-text-dark);
  margin-bottom: 60px;
  font-weight: 700;
}

.section-title--teal {
  color: var(--color-primary);
}

.section-intro {
  text-align: center;
  font-size: 1.15rem;
  color: var(--color-text-body);
  max-width: 800px;
  margin: -40px auto 60px auto;
  line-height: 1.7;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-primary);
  transition: background var(--transition-base), box-shadow var(--transition-base);
  height: var(--header-height);
}

.site-header.scrolled {
  background: rgba(45, 95, 93, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo-break {
  display: none;
}

.logo:hover {
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu li a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.nav-cta {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1010;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  color: white;
  padding: 160px 24px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slideshow */
.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide.slide-active {
  opacity: 1;
}

.slideshow-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.55),
    transparent
  );
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: heroFadeIn 0.8s ease forwards;
}

.hero-tagline {
  font-size: 1.3rem;
  font-weight: 600;
  opacity: 0;
  line-height: 1.7;
  margin-bottom: 88px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  animation: heroFadeIn 0.8s ease 0.2s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-hero {
  background: white;
  color: var(--color-primary);
  font-size: 1.05rem;
  padding: 16px 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  animation: heroFadeIn 0.8s ease 0.4s forwards;
}

.btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.btn-hero .btn-icon {
  width: 18px;
  height: 18px;
  animation: bounceDown 2s ease-in-out infinite;
}

.btn-light {
  background: white;
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: white;
  transform: translateY(-2px);
}

.btn-small {
  background: var(--color-primary);
  color: white;
  font-size: 0.9rem;
  padding: 10px 24px;
}

.btn-small:hover {
  background: var(--color-secondary);
  transform: translateY(-1px);
}

.btn-submit {
  background: var(--color-primary);
  color: white;
  font-size: 1.05rem;
  padding: 14px 40px;
  width: 100%;
  justify-content: center;
}

.btn-submit:hover:not(:disabled) {
  background: var(--color-secondary);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn svg,
.btn i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem-section {
  padding: 100px 24px;
  background: var(--color-bg-light);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.problem-card {
  text-align: center;
  padding: 36px 24px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.problem-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform var(--transition-base);
}

.problem-card:hover .problem-icon {
  transform: scale(1.08);
}

.problem-icon i,
.problem-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-alert);
  stroke: var(--color-alert);
}

.problem-card h3 {
  font-size: 1.1rem;
  color: var(--color-text-dark);
  margin-bottom: 10px;
  font-weight: 600;
}

.problem-card p {
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ============================================
   SOLUTIONS SECTION
   ============================================ */
.solutions-section {
  padding: 100px 24px;
  background: white;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.solution-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--color-secondary);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.solution-header {
  margin-bottom: 16px;
}

.solution-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #e0f0ef;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.solution-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
}

.solution-description {
  color: var(--color-text-body);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.98rem;
}

.solution-features {
  margin-bottom: 20px;
  padding: 0;
}

.solution-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.solution-features li i,
.solution-features li svg {
  width: 20px;
  height: 20px;
  color: var(--color-success);
  stroke: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

.solution-features li span {
  color: var(--color-text-dark);
  line-height: 1.5;
  font-size: 0.95rem;
}

.solution-uses {
  background: var(--color-bg-light);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-body);
}

.solution-uses strong {
  color: var(--color-primary);
}

/* Expandable Details */
.solution-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--transition-slow), opacity var(--transition-base), margin-top var(--transition-base);
}

.solution-card.expanded .solution-details {
  max-height: 800px;
  opacity: 1;
  margin-top: 20px;
}

.solution-tech-note {
  color: var(--color-text-body);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 16px;
  padding: 16px;
  background: #f0fdf9;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-secondary);
}

.solution-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: none;
  border: none;
  padding: 12px 0 0;
  margin-top: 16px;
  color: var(--color-secondary);
  transition: color var(--transition-fast);
  border-top: 1px solid #edf2f7;
}

.solution-toggle:hover {
  color: var(--color-primary);
}

.solution-toggle i,
.solution-toggle svg {
  width: 22px;
  height: 22px;
  transition: transform var(--transition-base);
}

.solution-card.expanded .solution-toggle i,
.solution-card.expanded .solution-toggle svg {
  transform: rotate(180deg);
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process-section {
  padding: 100px 24px;
  background: var(--color-bg-light);
}

.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}

.process-step {
  flex: 1;
  text-align: center;
  background: white;
  padding: 36px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 18px;
  transition: background var(--transition-base), transform var(--transition-base);
}

.process-step:hover .step-number {
  background: var(--color-primary);
  transform: scale(1.08);
}

.process-step h3 {
  font-size: 1.15rem;
  color: var(--color-text-dark);
  margin-bottom: 10px;
  font-weight: 600;
}

.process-step p {
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 0.93rem;
}

.process-arrow {
  color: #cbd5e0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.process-arrow i,
.process-arrow svg {
  width: 28px;
  height: 28px;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
  padding: 100px 24px;
  background: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1230px;
  margin: 0 auto;
}

.project-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  cursor: pointer;
  outline: none;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.06);
}

.project-image.arm-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-image.wet-bg {
  background: linear-gradient(135deg, #38b2ac 0%, #2d5f5d 100%);
}

.project-image.tracking-bg {
  background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
}

.project-image.coral-bg {
  background: linear-gradient(135deg, #38b2ac 0%, #2d8b85 100%);
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project-card:hover .project-image-overlay,
.project-card:focus-visible .project-image-overlay {
  opacity: 1;
}

.project-view-label {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-view-label i,
.project-view-label svg {
  width: 20px;
  height: 20px;
}

.project-content {
  padding: 24px;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-secondary-light);
  color: var(--color-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-status {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-status--implemented {
  background: #d4edda;
  color: #155724;
}

.project-status--ongoing {
  background: #fff3cd;
  color: #856404;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-client {
  color: var(--color-text-light);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.project-summary {
  color: var(--color-text-body);
  font-size: 0.93rem;
  line-height: 1.6;
}

.project-summary strong {
  color: var(--color-text-dark);
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients-section {
  padding: 100px 24px;
  background: var(--color-bg-light);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 1000px;
  margin: 0 auto;
}

.client-card {
  text-align: center;
  background: white;
  padding: 44px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.client-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e6f4f3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: transform var(--transition-base);
}

.client-card:hover .client-icon {
  transform: scale(1.08);
}

.client-icon i,
.client-icon svg {
  width: 32px;
  height: 32px;
  color: var(--color-secondary);
  stroke: var(--color-secondary);
}

.client-card h3 {
  font-size: 1.2rem;
  color: var(--color-text-dark);
  margin-bottom: 14px;
  font-weight: 600;
}

.client-card p {
  color: var(--color-text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 100px 24px;
  background: linear-gradient(135deg, rgba(45, 95, 93, 0.88) 0%, rgba(61, 139, 133, 0.85) 100%),
              url('../assets/images/fieldwork-forest.jpg') center/cover no-repeat;
  text-align: center;
  color: white;
}

.cta-section h2 {
  font-size: 2.25rem;
  color: white;
  margin-bottom: 20px;
  font-weight: 700;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  padding: 100px 24px;
  background: white;
}

.contact-form {
  max-width: 720px;
  margin: 0 auto;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.form-group:last-child:not(.form-row .form-group) {
  margin-bottom: 24px;
}

.form-group label {
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.required {
  color: var(--color-alert);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-family);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: white;
  color: var(--color-text-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(61, 139, 133, 0.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--color-alert);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0aec0;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  transition: color var(--transition-fast);
}

.checkbox-label:hover {
  color: var(--color-secondary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-secondary);
}

.checkbox-label span {
  user-select: none;
}

.other-details {
  margin-top: 12px;
  padding-left: 28px;
  transition: opacity var(--transition-base);
}

.other-details input {
  width: 100%;
  font-family: var(--font-family);
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  background: white;
  color: var(--color-text-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.other-details input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(61, 139, 133, 0.12);
}

.other-details input::placeholder {
  color: #a0aec0;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  margin-bottom: 8px;
}

.error-message {
  color: var(--color-alert);
  font-size: 0.82rem;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.error-message[hidden] {
  display: none;
}

.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  margin-top: 20px;
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  border-radius: var(--radius-sm);
  color: #276749;
  font-weight: 500;
  font-size: 0.95rem;
}

.success-message[hidden] {
  display: none;
}

.success-message i,
.success-message svg {
  width: 22px;
  height: 22px;
  color: var(--color-success);
  stroke: var(--color-success);
}

/* ============================================
   PROJECT MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(4px);
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform var(--transition-base);
  box-shadow: var(--shadow-xl);
}

.modal-overlay.visible .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
  background: white;
  transform: scale(1.1);
}

.modal-close i,
.modal-close svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-dark);
  stroke: var(--color-text-dark);
}

.project-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--color-bg-light);
}

.ai-caption {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 0.5rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  z-index: 2;
  pointer-events: none;
}

.modal-image {
  position: relative;
  height: 260px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background-size: cover;
  background-position: center;
}

.modal-ai-caption {
  position: absolute;
  bottom: 12px;
  right: 12px;
}

.modal-image.arm-bg {
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.25)),
                    url('../assets/images/arm-training-2.jpg');
}

.modal-image.wet-bg {
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.25)),
                    url('../assets/images/mangrove-wetland.jpg');
}

.modal-image.tracking-bg {
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.25)),
                    url('../assets/images/tortoise-tracking.jpg');
}

.modal-image.coral-bg {
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.25)),
                    url('../assets/images/coral-facility-AI.png');
}

.modal-body {
  padding: 32px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 12px 0 8px;
  line-height: 1.3;
}

.modal-client {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.modal-section p {
  color: var(--color-text-body);
  line-height: 1.7;
  font-size: 0.95rem;
}

.modal-cta {
  margin-top: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 64px 24px 32px;
  background: var(--color-footer-bg);
  color: white;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-about h4 {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-about p {
  opacity: 0.85;
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.footer-specialist {
  font-size: 0.88rem !important;
  opacity: 0.6 !important;
  font-style: italic;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-column h5 {
  font-size: 0.82rem;
  color: white;
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.93rem;
  margin-bottom: 10px;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-column a:hover {
  color: white;
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  opacity: 0.6;
  font-size: 0.88rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(4px);
  }
  60% {
    transform: translateY(2px);
  }
}

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

/* Scroll-triggered animation classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.animate-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.animate-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.animate-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.animate-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.animate-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.animate-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }

.animate-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   RESPONSIVE — TABLET (<=1024px)
   ============================================ */
@media (max-width: 1024px) {
  .logo {
    font-size: 1rem;
    white-space: normal;
    line-height: 1.3;
    max-width: 55%;
  }

  .hero-section {
    min-height: 70vh;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .process-steps {
    flex-direction: column;
    gap: 24px;
  }

  .process-arrow {
    transform: rotate(90deg);
  }

  .process-step {
    width: 100%;
    max-width: 480px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-grid .client-card:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* ============================================
   RESPONSIVE — MOBILE (<=768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 40px;
  }

  .section-intro {
    font-size: 1rem;
    margin: -24px auto 40px;
  }

  .container {
    padding: 0 12px;
  }

  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: flex;
  }

  .logo {
    font-size: 0.92rem;
    white-space: normal;
    line-height: 1.3;
    max-width: 70%;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-primary);
    padding: 100px 40px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    transition: right var(--transition-base);
    z-index: 1005;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    min-height: 48px;
  }

  .nav-menu li a:hover,
  .nav-menu li a.active {
    background: none;
    padding-left: 8px;
  }

  .nav-cta {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: var(--radius-sm) !important;
    text-align: center;
    padding: 14px 24px !important;
    border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  }

  /* Hero */
  .hero-section {
    padding: 120px 20px 80px;
    min-height: 60vh;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-tagline {
    font-size: 1.05rem;
    margin-bottom: 32px;
  }

  .btn-hero {
    padding: 14px 32px;
    font-size: 0.98rem;
  }

  /* Slideshow mobile */
  .slide img {
    object-position: center 30%;
  }

  /* Sections */
  .problem-section,
  .solutions-section,
  .process-section,
  .projects-section,
  .clients-section,
  .cta-section,
  .contact-section {
    padding: 64px 16px;
  }

  .problems-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .problem-card {
    padding: 20px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    gap: 4px 12px;
  }

  .problem-icon {
    margin: 0;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .problem-icon i,
  .problem-icon svg {
    width: 18px;
    height: 18px;
  }

  .problem-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
    flex: 1;
  }

  .problem-card p {
    font-size: 0.9rem;
    flex-basis: 100%;
    margin-top: 4px;
    color: var(--color-text-light);
  }

  /* Solutions */
  .solutions-section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .solutions-grid {
    max-width: 100%;
    gap: 14px;
  }

  .solution-card {
    padding: 20px 14px;
  }

  .solution-number {
    font-size: 2rem;
  }

  .solution-title {
    font-size: 1.2rem;
  }

  .solution-description {
    font-size: 0.93rem;
  }

  .solution-card.expanded .solution-details {
    max-height: 1200px;
  }

  .solution-toggle {
    min-height: 44px;
  }

  /* Projects */
  .projects-section {
    padding-left: 10px;
    padding-right: 10px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card {
    border-radius: var(--radius-md);
  }

  .project-image {
    height: 180px;
  }

  .project-content {
    padding: 18px 16px;
  }

  .project-title {
    font-size: 1.15rem;
  }

  /* Clients */
  .clients-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .clients-grid .client-card:last-child {
    max-width: 100%;
  }

  .client-card {
    padding: 20px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    text-align: left;
    gap: 4px 14px;
  }

  .client-icon {
    margin: 0;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .client-icon i,
  .client-icon svg {
    width: 22px;
    height: 22px;
  }

  .client-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0;
    flex: 1;
  }

  .client-card p {
    font-size: 0.9rem;
    flex-basis: 100%;
    margin-top: 4px;
  }

  /* CTA */
  .cta-section h2 {
    font-size: 1.6rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    padding: 0 16px;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Contact Form */
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form {
    padding: 0;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

  .btn-submit {
    padding: 16px 40px;
    font-size: 1rem;
  }

  /* Footer */
  .site-footer {
    padding: 48px 16px 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-about h4 {
    font-size: 1.15rem;
  }

  /* Modal */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-content {
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .modal-image {
    height: 150px;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-section p {
    font-size: 0.9rem;
  }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (<=480px)
   ============================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 8px;
  }

  .logo {
    font-size: 0.82rem;
    max-width: 65%;
  }

  .hero-section {
    padding: 100px 16px 64px;
    min-height: 50vh;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .btn-hero {
    padding: 12px 28px;
    font-size: 0.92rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 32px;
  }

  .section-intro {
    font-size: 0.93rem;
    margin: -16px auto 32px;
  }

  .solutions-section {
    padding-left: 6px;
    padding-right: 6px;
  }

  .solution-card {
    padding: 16px 12px;
  }

  .solution-number {
    font-size: 1.75rem;
  }

  .solution-title {
    font-size: 1.1rem;
  }

  .solution-features li span {
    font-size: 0.88rem;
  }

  .solution-uses {
    font-size: 0.85rem;
    padding: 12px 14px;
  }

  .solution-tech-note {
    font-size: 0.88rem;
    padding: 14px;
  }

  .projects-section {
    padding-left: 6px;
    padding-right: 6px;
  }

  .project-image {
    height: 160px;
  }

  .project-content {
    padding: 14px 12px;
  }

  .project-title {
    font-size: 1.05rem;
  }

  .project-summary {
    font-size: 0.88rem;
  }

  .client-card {
    padding: 18px 14px;
    gap: 4px 12px;
  }

  .client-icon {
    width: 36px;
    height: 36px;
  }

  .client-card h3 {
    font-size: 1rem;
  }

  .client-card p {
    font-size: 0.85rem;
  }

  .cta-section {
    padding: 56px 16px;
  }

  .cta-section h2 {
    font-size: 1.4rem;
  }

  .cta-section p {
    font-size: 0.93rem;
    margin-bottom: 28px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom p {
    font-size: 0.8rem;
  }

  .modal-body {
    padding: 16px;
  }

  .modal-title {
    font-size: 1.2rem;
  }
}

/* ============================================
   RESPONSIVE — EXTRA SMALL MOBILE (<=500px)
   ============================================ */
@media (max-width: 500px) {
  .logo {
    font-size: 0.88rem;
    max-width: 75%;
    white-space: normal;
  }

  .logo-break {
    display: block;
  }

  .logo-dash {
    display: none;
  }
}
