:root {
  --ink: #f4f8f3;
  --muted: #bdcabc;
  --panel: rgba(7, 18, 13, 0.84);
  --panel-strong: rgba(2, 7, 5, 0.92);
  --line: rgba(159, 218, 165, 0.24);
  --green: #75d16d;
  --cyan: #65d6d7;
  --gold: #e2bc5d;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(3, 7, 5, 0.58), rgba(3, 7, 5, 0.92)),
    url("rain.jpeg") center / cover fixed;
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(35, 35, 35, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: min(100% - 24px, var(--max));
  margin: 0 auto;
  padding: 10px 0;
}

.navbar a {
  padding: 10px 14px;
  border-radius: 4px;
  color: white;
  text-decoration: none;
}

.navbar a:hover {
  background: rgba(117, 209, 109, 0.16);
  color: var(--green);
}

main {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  padding: 86px 0 70px;
}

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

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Roboto Slab", Georgia, serif;
  line-height: 1.08;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(52px, 9vw, 104px);
  text-shadow: 0 5px 28px rgba(0, 0, 0, 0.62);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 56px);
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.tagline {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(19px, 2.5vw, 26px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: #07100c;
}

.button.primary:hover {
  background: var(--cyan);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  color: white;
}

.button.secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.brain-mark {
  width: min(100%, 260px);
  justify-self: center;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.55));
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(28px, 7vw, 86px);
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.intro p {
  color: var(--muted);
  font-size: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 42px 0 78px;
}

.project-card {
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.project-card:hover {
  border-color: rgba(101, 214, 215, 0.64);
  background: rgba(9, 28, 22, 0.92);
  transform: translateY(-3px);
}

.project-card span {
  display: block;
  margin-bottom: 36px;
  color: var(--cyan);
  font-weight: 700;
}

.project-card p {
  color: var(--muted);
}

.footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 26px 0 42px;
  color: var(--muted);
  text-align: center;
}

.footer p {
  margin-bottom: 6px;
}

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

@media (max-width: 900px) {
  .hero,
  .intro,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .brain-mark {
    width: 180px;
  }

  .intro {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .navbar {
    justify-content: center;
  }

  .project-grid {
    padding-bottom: 54px;
  }
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(101, 214, 215, 0.34);
  border-radius: 6px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
}

.social-links a:hover {
  border-color: var(--green);
  color: var(--green);
}

