:root {
  --primary: #0b3d20;
  --secondary: #f0f4f2;
  --accent: #2e7d32;
  --text: #222;
  --muted: #666;
  --max-width: 1100px;
  --bg-dark: #111;
  --text-dark: #eee;
  --secondary-dark: #1c1c1c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: white;
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

body.dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

header, section, footer {
  padding: 4rem 1rem;
}

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

h1, h2, h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

body.dark h1, body.dark h2, body.dark h3 {
  color: var(--accent);
}

.hero {
  background: var(--secondary);
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

body.dark .hero {
  background: var(--secondary-dark);
}

.hero h1 {
  font-size: 2.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 700px;
  margin: 1rem auto 2rem;
}

.scroll-btn {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.divider {
  border-top: 2px solid var(--accent);
  width: 60px;
  margin: 3rem auto;
}

ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.75rem;
}

.contact {
  text-align: center;
  background: var(--secondary);
}

body.dark .contact {
  background: var(--secondary-dark);
}

.contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

footer {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p, ul, p {
    font-size: 1rem;
  }

  header, section, footer {
    padding: 2rem 1rem;
  }
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--secondary);
}

body.dark .topbar {
  background-color: var(--secondary-dark);
}

.logo {
  height: 60px;
  width: auto;
}

#theme-toggle {
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

body.dark #theme-toggle {
  color: var(--text-dark);
  border-color: var(--text-dark);
}


.tech-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.tech-logos img {
  height: 40px;
  max-width: 100px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.tech-logos img:hover {
  opacity: 1;
}

.tech-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.tech-logos img {
  height: 50px;
  width: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.tech-logos img:hover {
  filter: grayscale(0%);
}