/* ===== Theme Variables ===== */

:root {
  --bg: #ffffff;
  --bg-secondary: #f5f5f5;
  --text: #1a1a1a;
  --text-muted: #555;
  --link: #2e7d32;
  --header-bg: #ffffff;
  --border: #e0e0e0;
}

[data-theme="dark"] {
  --bg: #0f1211;
  --bg-secondary: #161a18;
  --text: #f1f3f2;
  --text-muted: #b6bbb8;
  --link: #7fe0a3;
  --header-bg: #0f1211;
  --border: #2a2f2c;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
}

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

.header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.header nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--link);
  font-weight: 500;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
}

.hero {
  background-color: var(--bg-secondary);
  padding: 80px 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.section {
  padding: 60px 0;
  background-color: var(--bg);
}

.section.grey {
  background-color: var(--bg-secondary);
}

.section h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* logo animation */
.logo-img,
.logo-text {
  opacity: 0;
  transform: translateY(10px) scale(0.9);
}

/* icon pops in first */
.logo-img.animate {
  animation: logoImgIn 650ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* text follows */
.logo-text.animate {
  animation: logoTextIn 650ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 180ms;
}

@keyframes logoImgIn {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes logoTextIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .logo-img,
  .logo-text {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}
