@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ── Palette ── */
:root {
  --bg-primary:   #0C0F14;
  --bg-surface:   #1A1F2B;
  --accent:       #3ECFB4;
  --accent-deep:  #1A8F78;
  --text:         #E8E6E1;
  --text-muted:   #9A9890;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent-deep); }

/* ── Navigation (3-column: links | brand | icons) ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(62, 207, 180, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.nav-left,
.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
}
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }

.nav-center {
  flex: 0 0 auto;
  text-align: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav-brand img {
  height: 36px;
  width: auto;
}
.nav-brand-text {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--text);
}

.nav-right {
  gap: 1.25rem;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-icons {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.nav-icons a {
  color: var(--accent);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-icons a:hover { color: var(--accent-deep); }

/* ── Mobile nav ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

.nav-mobile {
  display: none;
}

@media (max-width: 640px) {
  .nav-left,
  .nav-right { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(62, 207, 180, 0.08);
    flex-direction: column;
    gap: 1rem;
  }
  .nav-mobile.open {
    display: flex;
  }
  .nav-mobile .nav-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ── Layout ── */
main { flex: 1; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Hero (index) ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem 1.5rem;
}

.hero-mark {
  width: 72px;
  height: 72px;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero .tagline {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

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

/* ── Divider ── */
.divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  margin: 1.5rem auto;
}

/* ── Services grid ── */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem;
  max-width: 960px;
  margin: 0 auto 3rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid rgba(62, 207, 180, 0.06);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s;
}
.service-card:hover {
  border-color: rgba(62, 207, 180, 0.2);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.service-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── About section ── */
.about {
  text-align: center;
  padding: 2rem 2rem 4rem;
  max-width: 620px;
  margin: 0 auto;
}

.about p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ── CTA button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ── Research page ── */
.page-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
}
.page-header h1 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.page-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.talks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.talk-item {
  background: var(--bg-surface);
  border: 1px solid rgba(62, 207, 180, 0.06);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.3s;
}
.talk-item:hover {
  border-color: rgba(62, 207, 180, 0.2);
}

.talk-item h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.talk-item .venue {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.talk-links {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
}
.talk-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tools-section {
  text-align: center;
  padding: 2rem 0 4rem;
}
.tools-section .gitlab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--accent);
  transition: color 0.2s;
}
.tools-section .gitlab-link:hover {
  color: var(--accent-deep);
}
.tools-section .gitlab-link i {
  font-size: 2rem;
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(62, 207, 180, 0.06);
  font-size: 0.8rem;
  color: var(--text-muted);
}
