/* ===== Ocean Forest - Main Stylesheet ===== */

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

:root {
  --deep-ocean: #0a1628;
  --dark-blue: #0d2137;
  --mid-blue: #1a3a5c;
  --teal: #1b6b7d;
  --cyan: #00d4aa;
  --cyan-light: #00f5c8;
  --foam: #e0f7fa;
  --white: #ffffff;
  --text: #b8c9d9;
  --text-light: #dce8f0;
  --coral: #ff6b6b;
  --gold: #ffd93d;
  --gradient-1: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d2137 100%);
  --gradient-2: linear-gradient(135deg, #00d4aa 0%, #0099cc 100%);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--deep-ocean);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: var(--cyan-light); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Animated Ocean Background --- */
.ocean-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--gradient-1);
}

.ocean-bg .wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 200px;
  opacity: 0.08;
}

.ocean-bg .wave::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%2300d4aa' fill-opacity='0.3' d='M0,160L48,176C96,192,192,224,288,218.7C384,213,480,171,576,165.3C672,160,768,192,864,202.7C960,213,1056,203,1152,181.3C1248,160,1344,128,1392,112L1440,96L1440,320L0,320Z'/%3E%3C/svg%3E") repeat-x;
  animation: wave 15s linear infinite;
}

.ocean-bg .wave:nth-child(2)::before {
  animation: wave 20s linear infinite reverse;
  opacity: 0.5;
}

@keyframes wave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Particles --- */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(10, 22, 40, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 170, 0.08);
  transition: all 0.4s ease;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(10, 22, 40, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--foam) !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .icon {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  background: rgba(0, 212, 170, 0.08);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

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

.burger span {
  width: 28px;
  height: 2.5px;
  background: var(--foam);
  border-radius: 3px;
  transition: all 0.3s;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .burger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(30px);
    padding: 40px 30px;
    transition: right 0.4s ease;
    gap: 4px;
  }
  .nav-links.open { right: 0; }
  .nav-links a {
    font-size: 1.15rem;
    padding: 14px 24px;
  }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 20px 80px;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--foam) 0%, var(--cyan) 50%, var(--cyan-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s both;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  opacity: 0.4;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-2);
  color: var(--deep-ocean);
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 170, 0.4);
  color: var(--deep-ocean);
}

.btn-outline {
  background: transparent;
  color: var(--foam);
  border: 2px solid rgba(0, 212, 170, 0.3);
}

.btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(0, 212, 170, 0.08);
  color: var(--foam);
}

/* --- Section Styles --- */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.15);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--foam);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Cards --- */
.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-grid.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.cards-grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.card {
  background: rgba(13, 33, 55, 0.6);
  border: 1px solid rgba(0, 212, 170, 0.08);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-2);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 170, 0.2);
  box-shadow: var(--shadow);
}

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

.card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.25rem;
  color: var(--foam);
  margin-bottom: 12px;
}

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

/* --- Stats --- */
.stats-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 60px;
}

.stat {
  text-align: center;
  padding: 28px 40px;
  background: rgba(13, 33, 55, 0.5);
  border: 1px solid rgba(0, 212, 170, 0.06);
  border-radius: 14px;
  min-width: 180px;
  transition: all 0.3s;
}

.stat:hover {
  border-color: rgba(0, 212, 170, 0.15);
  transform: translateY(-2px);
}

.stat .number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat .label {
  color: var(--text);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* --- Feature Section --- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature.reverse { direction: rtl; }
.feature.reverse > * { direction: ltr; }

.feature-img {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 170, 0.08);
  aspect-ratio: 4/3;
  position: relative;
  background: linear-gradient(135deg, var(--dark-blue), var(--mid-blue));
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-img .placeholder-icon {
  font-size: 6rem;
  opacity: 0.3;
}

.feature-text h2 {
  font-size: 2rem;
  color: var(--foam);
  margin-bottom: 16px;
}

.feature-text p {
  color: var(--text);
  margin-bottom: 24px;
}

.feature-text ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 0.95rem;
}

.feature-text ul li .check {
  color: var(--cyan);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

@media (max-width: 768px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.reverse { direction: ltr; }
}

/* --- Species Cards --- */
.species-card {
  background: rgba(13, 33, 55, 0.6);
  border: 1px solid rgba(0, 212, 170, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.species-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 212, 170, 0.15);
}

.species-card .img-wrap {
  height: 200px;
  background: linear-gradient(135deg, var(--dark-blue), var(--mid-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.species-card .img-wrap .label {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(0, 212, 170, 0.15);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.species-card .info {
  padding: 24px;
}

.species-card .info h3 {
  color: var(--foam);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.species-card .info .latin {
  color: var(--cyan);
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 12px;
  opacity: 0.8;
}

.species-card .info p {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: linear-gradient(135deg, var(--dark-blue), var(--mid-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 212, 170, 0.06);
  transition: all 0.4s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  border-color: rgba(0, 212, 170, 0.2);
  box-shadow: var(--shadow);
}

.gallery-item .placeholder {
  font-size: 3.5rem;
  opacity: 0.25;
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-item:hover .overlay { opacity: 1; }

.gallery-item .overlay h4 {
  color: var(--foam);
  font-size: 1rem;
  margin-bottom: 4px;
}

.gallery-item .overlay p {
  color: var(--text);
  font-size: 0.85rem;
}

/* --- Threat Cards --- */
.threat-card {
  background: rgba(13, 33, 55, 0.6);
  border: 1px solid rgba(0, 212, 170, 0.08);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  transition: all 0.3s;
}

.threat-card:hover {
  transform: translateX(4px);
  border-color: rgba(255, 107, 107, 0.2);
}

.threat-card .threat-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 107, 0.08);
  border-radius: 12px;
}

.threat-card h3 {
  color: var(--coral);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.threat-card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --- Progress Bars --- */
.progress-bar-wrap {
  margin-bottom: 20px;
}

.progress-bar-wrap .label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.progress-bar-wrap .label-row span {
  font-size: 0.9rem;
  color: var(--text);
}

.progress-bar-wrap .label-row strong {
  color: var(--foam);
}

.progress-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(0, 212, 170, 0.08);
  overflow: hidden;
}

.progress-bar .fill {
  height: 100%;
  border-radius: 4px;
  background: var(--gradient-2);
  transition: width 1.5s ease;
  width: 0;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cyan);
  border: 3px solid var(--deep-ocean);
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.4);
}

.timeline-item .year {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.timeline-item h4 {
  color: var(--foam);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.timeline-item p {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 212, 170, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item h4 {
  color: var(--foam);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-item p {
  color: var(--text);
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(13, 33, 55, 0.6);
  border: 1px solid rgba(0, 212, 170, 0.1);
  color: var(--foam);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(0, 212, 170, 0.4);
}

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

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* --- Footer --- */
.footer {
  border-top: 1px solid rgba(0, 212, 170, 0.06);
  padding: 60px 0 24px;
  background: rgba(10, 22, 40, 0.5);
}

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

.footer h4 {
  color: var(--foam);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer p {
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer ul a {
  color: var(--text);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer ul a:hover { color: var(--cyan); }

.footer .bottom {
  border-top: 1px solid rgba(0, 212, 170, 0.06);
  padding-top: 24px;
  text-align: center;
  color: var(--text);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- Page Header --- */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--foam), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.page-header p {
  color: var(--text);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text);
}

.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { opacity: 0.4; }

/* --- Utility --- */
@media (max-width: 480px) {
  .cards-grid.cols-3,
  .cards-grid.cols-2 {
    grid-template-columns: 1fr;
  }
  .stats-row { gap: 16px; }
  .stat { min-width: 140px; padding: 20px 24px; }
  .stat .number { font-size: 2rem; }
}