:root {
  --ocean-deep: #0a1828;
  --ocean-mid: #178ca4;
  --ocean-light: #3ab0c8;
  --foam: #e8f4f8;
  --sand: #f5e6d3;
  --coral: #ff6b6b;
  --seaweed: #2d5f3f;
  --dolphin-gray: #7c98ab;
  --text-dark: #1a1a2e;
  --text-light: #f0f0f0;
  --text-readable: #e8f4f8;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for fixed navbar */
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  background: linear-gradient(
    180deg,
    var(--ocean-deep) 0%,
    var(--ocean-mid) 40%,
    var(--ocean-light) 80%,
    var(--sand) 100%
  );
  color: var(--text-readable);
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 24, 40, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(58, 176, 200, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--foam);
  text-decoration: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}

.nav-logo:hover {
  color: var(--ocean-light);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
  flex-wrap: nowrap; /* Prevent wrapping on desktop */
}

.nav-link {
  color: var(--foam);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0.8rem;
  border-radius: 5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  display: inline-block;
}

/* Dropdown Menu */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(10, 24, 40, 0.95);
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  border: 1px solid rgba(58, 176, 200, 0.3);
  backdrop-filter: blur(10px);
  top: 100%;
  left: 0;
  padding: 0.5rem 0;
}

/* Invisible bridge to prevent menu from closing when moving mouse */
.dropdown-content::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.dropdown-content li {
  list-style: none;
}

.dropdown-content a {
  color: var(--foam);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background-color: rgba(58, 176, 200, 0.2);
  color: var(--ocean-light);
}

.nav-dropdown:hover .dropdown-content {
  display: block;
}

.nav-link:hover {
  color: var(--ocean-light);
  background: rgba(58, 176, 200, 0.1);
}

.nav-special {
  background: linear-gradient(135deg, var(--coral), #ff8787);
  color: white !important;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.nav-special:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, #ff8787, #ffa0a0);
}

/* Back to Home Button - Consistent across all tools */
.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(10, 24, 40, 0.6);
  border: 1px solid rgba(58, 176, 200, 0.3);
  border-radius: 20px;
  color: var(--ocean-light);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.back-home-btn:hover {
  background: rgba(58, 176, 200, 0.2);
  color: var(--foam);
  transform: translateX(-3px);
  border-color: var(--ocean-light);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--foam);
  margin: 3px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

/* Mobile Navigation */
@media (max-width: 1100px) {
  /* Increased breakpoint for earlier switch */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%; /* Slightly wider */
    height: 100vh;
    background: rgba(10, 24, 40, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    overflow-y: auto; /* Allow scrolling if menu is tall */
  }

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

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(58, 176, 200, 0.2);
    font-size: 1.1rem; /* Larger text for touch */
  }

  /* Mobile Dropdown Handling */
  .nav-dropdown {
    width: 100%;
    display: block;
  }

  .nav-dropdown > .nav-link {
    background: rgba(255, 255, 255, 0.05);
  }

  .dropdown-content {
    display: block; /* Always show dropdown items on mobile */
    position: static;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    min-width: 100%;
  }

  .dropdown-content a {
    padding-left: 2rem; /* Indent dropdown items */
    font-size: 1rem;
    color: var(--ocean-light);
    border-bottom: 1px solid rgba(58, 176, 200, 0.1);
  }

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

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

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* Improved text contrast for readability */
p,
li,
.stat-label,
.quote-author {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Floating bubbles animation */
.bubble {
  position: fixed;
  bottom: -100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  opacity: 0.6;
  animation: rise linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rise {
  to {
    bottom: 100vh;
    opacity: 0;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

header {
  text-align: center;
  padding: 8rem 2rem 3rem; /* Increased top padding to clear fixed navbar */
  animation: fadeInDown 1s ease-out;
}

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

h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  color: var(--foam);
}

.tagline {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--sand);
  font-style: italic;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--text-readable);
  max-width: 700px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* Header badges */
.header-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0 1rem;
}

.badge {
  display: inline-block;
  padding: 0.6rem 1.3rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.badge-science {
  background: linear-gradient(135deg, #2d5f3f, #3d7f5f);
  color: white;
}

.badge-ai {
  background: linear-gradient(135deg, #7c98ab, #5a7a8f);
  color: white;
}

.badge-data {
  background: linear-gradient(135deg, #178ca4, #1fa8c0);
  color: white;
}

.badge-open {
  background: linear-gradient(135deg, #3ab0c8, #5dc4dc);
  color: white;
}

/* Douglas Adams quote */
.quote-box {
  background: rgba(0, 0, 0, 0.4);
  border-left: 4px solid var(--coral);
  padding: 2rem;
  margin: 3rem auto;
  max-width: 800px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  animation: fadeIn 2s ease-out;
  backdrop-filter: blur(5px);
  line-height: 1.8;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.quote-author {
  text-align: right;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--sand);
}

/* Wave divider */
.wave-divider {
  height: 60px;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.wave {
  position: absolute;
  width: 200%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 60"><path d="M0,30 Q300,0 600,30 T1200,30 L1200,60 L0,60 Z" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat-x;
  animation: wave 20s linear infinite;
}

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

section {
  margin: 4rem 0;
  padding: 2.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 1s ease-out;
  animation-fill-mode: both;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

section:nth-child(2) {
  animation-delay: 0.2s;
}
section:nth-child(3) {
  animation-delay: 0.4s;
}
section:nth-child(4) {
  animation-delay: 0.6s;
}
section:nth-child(5) {
  animation-delay: 0.8s;
}
section:nth-child(6) {
  animation-delay: 1s;
}

h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--sand);
  font-weight: 300;
  border-bottom: 2px solid var(--ocean-light);
  padding-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 2rem 0 1rem;
  color: var(--foam);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.feature-card {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(58, 176, 200, 0.5);
}

.highlight-card {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.15),
    rgba(58, 176, 200, 0.15)
  );
  border: 2px solid rgba(255, 107, 107, 0.4);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff6b6b, #3ab0c8, #ff6b6b);
  background-size: 300% 300%;
  border-radius: 8px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: gradientShift 6s ease infinite;
}

.highlight-card:hover::before {
  opacity: 0.3;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.feature-tech {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  color: var(--sand);
  font-style: italic;
}

.feature-highlight-box {
  background: linear-gradient(
    135deg,
    rgba(45, 95, 63, 0.3),
    rgba(23, 140, 164, 0.3)
  );
  border: 2px solid var(--ocean-light);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  backdrop-filter: blur(10px);
}

.feature-highlight-box h3 {
  color: var(--coral);
  text-align: center;
  margin-top: 0;
  font-size: 1.8rem;
}

.detection-modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.mode-card {
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mode-card h4 {
  color: var(--foam);
  margin-top: 0;
  font-size: 1.3rem;
}

.mode-card code {
  display: block;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.75rem;
  border-radius: 4px;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ocean-light);
  overflow-x: auto;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.code-block {
  background: rgba(0, 0, 0, 0.6);
  border-left: 4px solid var(--ocean-light);
  padding: 1.5rem;
  border-radius: 4px;
  overflow-x: auto;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}

.code-block code {
  color: var(--foam);
}

.highlight {
  color: var(--coral);
  font-weight: bold;
}

.science-fact {
  background: linear-gradient(
    135deg,
    rgba(45, 95, 63, 0.4),
    rgba(23, 140, 164, 0.4)
  );
  border-left: 4px solid var(--seaweed);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  backdrop-filter: blur(5px);
}

.science-fact::before {
  content: "🐬 Science Fact: ";
  font-weight: bold;
  color: var(--sand);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.attribution-box {
  background: linear-gradient(
    135deg,
    rgba(23, 140, 164, 0.4),
    rgba(45, 95, 63, 0.4)
  );
  border-left: 4px solid var(--ocean-light);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  backdrop-filter: blur(5px);
}

.attribution-box::before {
  content: "📊 Data Source: ";
  font-weight: bold;
  color: var(--sand);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.update-banner {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.2),
    rgba(58, 176, 200, 0.2)
  );
  border: 2px solid var(--coral);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  backdrop-filter: blur(5px);
}

.update-banner h3 {
  color: var(--coral);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.update-banner ul li {
  padding: 0.5rem 0;
  line-height: 1.6;
}

.update-banner strong {
  color: var(--foam);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-light));
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cta-button.secondary {
  background: linear-gradient(135deg, var(--seaweed), var(--ocean-mid));
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.cta-card {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.cta-card:hover {
  transform: translateY(-5px);
  border-color: rgba(58, 176, 200, 0.5);
}

.cta-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--foam);
}

.cta-card p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--text-readable);
}

.cta-card .cta-button {
  margin: 0;
  width: 100%;
  max-width: 250px;
}

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

.stat-box {
  text-align: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--coral);
  display: block;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

footer {
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--sand);
  background: rgba(0, 0, 0, 0.2);
}

footer a {
  color: var(--ocean-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--foam);
}

.emoji {
  font-style: normal;
}

/* The 42 Easter Egg */
.forty-two {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--coral);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.forty-two:hover {
  transform: scale(1.2) rotate(360deg);
}

.forty-two-tooltip {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  max-width: 300px;
  z-index: 1001;
  backdrop-filter: blur(10px);
}

.forty-two:hover + .forty-two-tooltip {
  display: block;
}
h1 {
  padding-top: 4rem;
}
/* Responsive design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
    padding-top: 0px;
  }

  .tagline {
    font-size: 1.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .feature-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 1rem;
  }

  section {
    padding: 1.5rem;
  }

  .quote-box,
  .attribution-box {
    padding: 1.25rem;
  }
}

/* Links styling */
a {
  color: var(--coral);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--sand);
}

/* List styling */
ul {
  list-style-position: inside;
  margin: 1rem 0;
}

li {
  margin: 0.5rem 0;
}

/* Examples section styles */
.example-item {
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.example-item h3 {
  color: var(--sand);
  margin-top: 0;
  font-size: clamp(1.5rem, 3vw, 1.8rem);
}

.example-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.example-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

code {
  display: block;
  white-space: pre-wrap;
}

/* ========================================
   CONTRIBUTION SECTION STYLES
   ======================================== */

.contribute-section {
  margin: 4rem 0;
  padding: 3rem 2rem;
}

.contribute-intro {
  background: linear-gradient(
    135deg,
    rgba(45, 95, 63, 0.3),
    rgba(23, 140, 164, 0.3)
  );
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--seaweed);
  margin-bottom: 3rem;
  backdrop-filter: blur(5px);
}

.contribute-philosophy {
  margin: 3rem 0;
}

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

.philosophy-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.philosophy-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.philosophy-item h4 {
  color: var(--sand);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.contribute-guide {
  margin: 4rem 0;
}

.step-by-step {
  margin-top: 2rem;
}

.step {
  display: flex;
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  border-left: 4px solid var(--ocean-light);
}

.step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--ocean-mid), var(--ocean-light));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.step-content {
  flex: 1;
}

.step-content h4 {
  color: var(--sand);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.step-content pre {
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-content code {
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--ocean-light);
}

.step-note {
  background: rgba(255, 107, 107, 0.1);
  border-left: 3px solid var(--coral);
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}

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

.adventure-card {
  background: linear-gradient(
    135deg,
    rgba(10, 24, 40, 0.6),
    rgba(23, 140, 164, 0.3)
  );
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(58, 176, 200, 0.3);
  transition: all 0.3s ease;
}

.adventure-card:hover {
  transform: translateY(-5px);
  border-color: var(--ocean-light);
  box-shadow: 0 8px 25px rgba(58, 176, 200, 0.3);
}

.adventure-card h5 {
  color: var(--sand);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.adventure-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--ocean-light);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.adventure-link:hover {
  color: var(--foam);
}

.vibe-tips {
  margin-top: 1rem;
}

.vibe-tip {
  background: rgba(58, 176, 200, 0.1);
  padding: 1rem;
  margin: 0.75rem 0;
  border-left: 3px solid var(--ocean-light);
  border-radius: 0 8px 8px 0;
}

.pr-template {
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.contribute-best-practices {
  margin: 4rem 0;
}

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

.practice-card {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.practice-card:hover {
  border-color: var(--seaweed);
  box-shadow: 0 8px 25px rgba(45, 95, 63, 0.3);
}

.practice-card h4 {
  color: var(--sand);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.practice-card details {
  margin-top: 1rem;
}

.practice-card summary {
  cursor: pointer;
  color: var(--ocean-light);
  font-weight: bold;
  padding: 0.5rem;
  background: rgba(58, 176, 200, 0.1);
  border-radius: 5px;
  margin-bottom: 0.5rem;
}

.practice-card summary:hover {
  background: rgba(58, 176, 200, 0.2);
}

.contribute-resources {
  margin: 4rem 0;
}

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

.resource-card {
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.resource-card h4 {
  color: var(--sand);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.resource-card ul {
  list-style: none;
  padding-left: 0;
}

.resource-card li {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.resource-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--ocean-light);
}

.contribute-faq {
  margin: 4rem 0;
}

.faq-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1rem 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.faq-item summary {
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--sand);
  padding: 0.5rem;
  list-style-position: outside;
}

.faq-item summary:hover {
  color: var(--ocean-light);
}

.faq-item p {
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--ocean-light);
}

.contribute-cta {
  background: linear-gradient(
    135deg,
    rgba(45, 95, 63, 0.4),
    rgba(23, 140, 164, 0.4)
  );
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  margin: 4rem 0;
  border: 2px solid rgba(58, 176, 200, 0.3);
}

.contribute-cta h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--foam);
}

/* Mobile responsiveness for contribution section */
@media (max-width: 768px) {
  .step {
    flex-direction: column;
    gap: 1rem;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .philosophy-grid,
  .adventure-grid,
  .best-practices-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .contribute-section {
    padding: 2rem 1rem;
  }

  .contribute-intro,
  .contribute-cta {
    padding: 1.5rem;
  }

  .step-content pre {
    font-size: 0.8rem;
  }
}

/* Smooth scrolling enhancements */
section {
  scroll-margin-top: 100px;
}
