:root {
  --selim-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --selim-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --selim-color-bg: #07111c;
  --selim-color-surface: #0d1826;
  --selim-color-surface-2: #112033;
  --selim-color-surface-3: rgba(255, 255, 255, 0.04);
  --selim-color-border: rgba(173, 189, 210, 0.16);
  --selim-color-text: #e8eef6;
  --selim-color-muted: #9eb0c7;
  --selim-color-accent: #67d69c;
  --selim-color-accent-2: #59c3ff;
  --selim-shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.2);
  --selim-shadow-strong: 0 22px 60px rgba(0, 0, 0, 0.28);
  --selim-radius-lg: 28px;
  --selim-radius-md: 20px;
  --selim-radius-sm: 14px;
  --selim-space-1: 0.25rem;
  --selim-space-2: 0.5rem;
  --selim-space-3: 0.75rem;
  --selim-space-4: 1rem;
  --selim-space-5: 1.5rem;
  --selim-space-6: 2rem;
  --selim-space-8: 3rem;
  --selim-border: 1px solid var(--selim-color-border);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top, rgba(89, 195, 255, 0.08), transparent 26%),
    linear-gradient(180deg, #07111c 0%, #091421 40%, #050b14 100%);
  color: var(--selim-color-text);
  font-family: var(--selim-font-sans);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 75%);
}

a {
  color: inherit;
}

a:hover {
  color: var(--selim-color-accent);
}

:focus-visible {
  outline: 3px solid var(--selim-color-accent);
  outline-offset: 3px;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  z-index: 9999;
  background: var(--selim-color-surface);
  border: var(--selim-border);
  border-radius: 999px;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100vw - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1rem 0 0;
}

.site-header__inner,
.site-footer__inner {
  border: var(--selim-border);
  background: rgba(7, 17, 28, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--selim-shadow-soft);
  border-radius: 999px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-brand {
  min-width: 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-brand__eyebrow {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-brand__tagline {
  color: var(--selim-color-muted);
  font-family: var(--selim-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav-toggle {
  display: none;
  margin-left: auto;
  border: var(--selim-border);
  border-radius: 999px;
  background: var(--selim-color-surface-3);
  color: var(--selim-color-text);
  padding: 0.75rem 1rem;
  font: inherit;
  cursor: pointer;
}

.site-nav {
  margin-left: auto;
}

.primary-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  color: var(--selim-color-text);
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current_page_parent > a {
  background: rgba(103, 214, 156, 0.12);
  color: #ffffff;
}

.site-header__cta {
  margin-left: 0.5rem;
  text-decoration: none;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  color: #06101c;
  background: linear-gradient(135deg, var(--selim-color-accent), #8af0be);
  font-weight: 700;
  white-space: nowrap;
}

.site-content {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.site-main {
  display: grid;
  gap: 1.5rem;
}

.hero-section,
.page-hero,
.cta-card,
.info-card,
.project-card,
.site-footer__inner {
  border-radius: var(--selim-radius-lg);
}

.hero-section,
.page-hero,
.cta-card,
.info-card,
.project-card {
  border: var(--selim-border);
  background: linear-gradient(180deg, rgba(13, 24, 38, 0.96), rgba(9, 20, 33, 0.9));
  box-shadow: var(--selim-shadow-strong);
}

.hero-section,
.page-hero,
.cta-card {
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
}

.eyebrow {
  color: var(--selim-color-accent);
  font-family: var(--selim-font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 0.75rem;
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.95rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 0;
}

.hero-headline {
  font-size: clamp(1.15rem, 1.85vw, 1.4rem);
  max-width: 32rem;
  margin: 1rem 0 0;
}

.hero-support,
.page-intro,
.section-heading p,
.card-copy,
.info-card p,
.project-card p,
.cta-card p,
.page-content p,
.page-content li {
  color: var(--selim-color-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button--primary {
  color: #06101c;
  background: linear-gradient(135deg, var(--selim-color-accent), #9af5c4);
}

.button--secondary {
  color: var(--selim-color-text);
  border: var(--selim-border);
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.hero-panel__stat {
  padding: 1rem;
  border-radius: var(--selim-radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: var(--selim-border);
}

.hero-panel__stat strong,
.info-card h3,
.project-card h3,
.page-hero h1,
.cta-card h2 {
  display: block;
  margin: 0 0 0.5rem;
}

.section-block {
  display: grid;
  gap: 1rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.section-heading p {
  margin: 0;
  max-width: 48rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card,
.project-card {
  padding: 1.25rem;
}

.info-card p,
.card-summary {
  margin: 0.35rem 0 0;
}

.tag-row,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.project-tag,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(103, 214, 156, 0.2);
  background: rgba(103, 214, 156, 0.1);
  color: #c8f7dd;
  font-family: var(--selim-font-mono);
  font-size: 0.72rem;
}

.project-card {
  display: grid;
  gap: 0.85rem;
}

.project-card__footer,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.project-link {
  color: var(--selim-color-accent);
  text-decoration: none;
  font-weight: 700;
}

.project-details {
  border-top: var(--selim-border);
  padding-top: 0.75rem;
}

.project-details summary {
  cursor: pointer;
  color: #ffffff;
  font-weight: 700;
}

.project-details__body {
  padding-top: 0.85rem;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.detail-block {
  padding: 0.95rem;
  border-radius: var(--selim-radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: var(--selim-border);
}

.detail-block--full {
  grid-column: 1 / -1;
}

.detail-block strong {
  display: block;
  margin-bottom: 0.4rem;
}

.page-content {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.page-content > *:first-child {
  margin-top: 0;
}

.page-content ul {
  padding-left: 1.1rem;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer {
  padding: 0 0 1.5rem;
}

.site-footer__inner {
  justify-content: space-between;
  padding: 1rem 1.1rem;
}

.site-footer__inner p {
  margin: 0.25rem 0 0;
  color: var(--selim-color-muted);
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--selim-color-muted);
}

.post-meta {
  margin: 0;
  color: var(--selim-color-muted);
  font-family: var(--selim-font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card-title a {
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 960px) {
  .site-header__inner {
    border-radius: var(--selim-radius-lg);
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .site-nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
  }

  .primary-menu {
    display: none;
    padding-top: 0.75rem;
  }

  .site-header.is-open .primary-menu {
    display: grid;
  }

  .site-header__cta {
    margin-left: 0;
  }

  .hero-section,
  .card-grid--three,
  .card-grid--two,
  .project-detail-grid,
  .cta-card {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .site-footer__inner {
    border-radius: var(--selim-radius-lg);
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-content,
  .site-footer {
    width: min(100vw - 1rem, 1200px);
  }

  .site-header__inner {
    padding: 0.85rem 0.85rem;
  }

  .page-hero,
  .hero-section,
  .info-card,
  .project-card,
  .cta-card {
    border-radius: 22px;
  }

  .hero-actions,
  .cta-card .hero-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
