:root {
  --bg: #0d0d0f;
  --bg-elevated: #151518;
  --border: #252528;
  --text: #eaeaea;
  --text-muted: #8a8a95;
  --accent: #34b06a;
  --accent-dim: #0b280b;
  --accent-deep: #0e2218;
}

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

html {
  scroll-behavior: smooth;
  /* Reserve the scrollbar gutter so short pages (contact, 404) don't
     shift centered content when the scrollbar disappears. */
  scrollbar-gutter: stable;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

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

a:hover {
  text-decoration: underline;
}

/* Skip navigation */
.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 100;
  background: var(--accent);
  color: #0d0d0f;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(13, 13, 15, 0);
  backdrop-filter: blur(8px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.logo a:hover {
  text-decoration: none;
  opacity: 0.75;
}

.logo svg {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.site-nav a.active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Section header background */
.hero,
.page-header,
.not-found {
  background-image: linear-gradient(rgba(13, 13, 15, 0.55), rgba(13, 13, 15, 0.85)),
    url("../assets/v882-kul-42-a.jpg");
  background-size: cover;
  background-position: center 5%;
  background-repeat: no-repeat;
}

/* Hero */
.hero {
  padding: 96px 0 64px;
}


.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: #0b280b;
  color: #eaeaea;
}

.btn-primary:hover {
  background: #fff;
  color: #0b280b;
}

.btn-ghost {
  background: #0b280b;
  color: #eaeaea;
}

.btn-ghost:hover {
  background: #fff;
  border-color: transparent;
  color: #0b280b;
}

/* Services */
.services {
  padding: 64px 0 96px;
  border-top: 1px solid var(--border);
}

.services h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Page header (Projects page) */
.page-header {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-header p {
  color: var(--text-muted);
}

/* Project list */
.project-list {
  padding: 56px 0 96px;
}

.project-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.project-card h2 {
  font-size: 1.2rem;
  font-weight: 600;
}

.project-card p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

.status::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status.in-development {
  color: var(--accent);
  border-color: var(--accent-deep);
}

.status.in-development::before {
  background: var(--accent);
}

.status.beta {
  color: #fbbf24;
  border-color: #4d3a0d;
}

.status.beta::before {
  background: #fbbf24;
}

.status.planning {
  color: #93a3ec;
  border-color: #232a4d;
}

.status.planning::before {
  background: #93a3ec;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 9px;
}

/* Footer */
.site-footer a {
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-footer a:hover {
  background: #0b280b;
  color: #eaeaea;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact page */
.contact-body {
  padding: 56px 0 96px;
}

.contact-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  margin-bottom: 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-card span,
.contact-card a {
  font-size: 0.95rem;
  color: var(--text);
}

/* 404 page */
.not-found {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 24px;
}

.not-found h1 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.not-found p.not-found-code {
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.not-found p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    padding: 64px 0 48px;
  }

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

  .page-header h1 {
    font-size: 1.75rem;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
