:root {
  color-scheme: dark;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  background: #05070f;
  color: #edf2ff;
  --surface: rgba(16, 24, 40, 0.85);
  --surface-strong: rgba(14, 22, 46, 0.95);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #2f7cff;
  --accent-soft: rgba(47, 124, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at top, rgba(56, 104, 255, 0.12), transparent 28%),
    radial-gradient(circle at 20% 10%, rgba(48, 214, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #04050a 0%, #060911 100%);
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  backdrop-filter: blur(18px);
  background: rgba(3, 7, 18, 0.72);
  border-bottom: 1px solid var(--border);
}

.site-brand {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #8ab7ff;
}

.site-nav {
  display: flex;
  gap: 1.8rem;
}

.site-nav a {
  color: rgba(237, 242, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #2f7cff, #4b8dff);
  color: #fff;
  border: none;
}

.button-ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #dce3ff;
  background: rgba(255, 255, 255, 0.03);
}

main {
  padding: 2.5rem 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-section {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-section h1 {
  font-size: clamp(3.4rem, 5vw, 6rem);
  line-height: 0.95;
  margin: 0;
}

.headline-accent {
  display: block;
  color: rgba(237, 242, 255, 0.72);
}

.hero-copy {
  max-width: 680px;
  color: rgba(237, 242, 255, 0.76);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.hero-icons {
  display: flex;
  gap: 0.9rem;
}

.hero-icons a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: rgba(237, 242, 255, 0.8);
  text-decoration: none;
}

.about-section,
.projects-section,
.skills-section,
.contact-section {
  margin-top: 5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.4rem;
  align-items: center;
}

.about-visual {
  min-height: 520px;
  border-radius: 28px;
  background: linear-gradient(180deg, #1f293f 0%, #0f1627 100%);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #4f79f7;
  margin-bottom: 1rem;
}

.about-section h2,
.projects-section h2,
.contact-section h2 {
  font-size: clamp(2rem, 2.7vw, 3.2rem);
  margin: 0;
}

.about-section p,
.projects-section p,
.skills-section p,
.contact-section p {
  color: rgba(237, 242, 255, 0.74);
  line-height: 1.85;
}

.stats-row {
  display: flex;
  gap: 1rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}

.stat-card {
  min-width: 150px;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(12, 19, 34, 0.75);
}

.stat-card strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.3rem;
}

.project-filter-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.filter-heading {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(237, 242, 255, 0.68);
}

.project-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.filter-button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(237, 242, 255, 0.8);
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  cursor: pointer;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.project-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(160, 190, 255, 0.95);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card {
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(8, 13, 26, 0.85);
  padding: 1.8rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 124, 255, 0.35);
  background: rgba(10, 17, 33, 0.95);
}

.project-media {
  margin-top: 2.4rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.media-item {
  border-radius: 24px;
  overflow: hidden;
  background: rgba(9, 14, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.media-item.media-item-white {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.1);
}

.media-item.span-2 {
  grid-column: 1 / -1;
}

.media-grid .media-item:nth-child(5) {
  min-height: 260px;
}

.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.media-item.media-item-white img {
  background: #fff;
}

.media-item video {
  min-height: 280px;
}

.project-page-content {
  padding: 4rem 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.project-detail-intro {
  margin-bottom: 2rem;
}

.project-overview {
  margin-top: 1.6rem;
  max-width: 760px;
  color: rgba(237, 242, 255, 0.82);
  line-height: 1.85;
}

.project-outcomes {
  margin-top: 1.8rem;
  padding: 1.6rem;
}

.project-outcomes strong {
  font-size: 1rem;
}

.project-outcomes ul {
  margin: 1rem 0 0 1.2rem;
  color: rgba(237, 242, 255, 0.82);
}

.filter-button.active,
.filter-button:hover {
  background: rgba(47, 124, 255, 0.16);
  border-color: rgba(47, 124, 255, 0.35);
  color: #fff;
}

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

.project-card {
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(8, 13, 26, 0.85);
  padding: 1.8rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 124, 255, 0.35);
  background: rgba(10, 17, 33, 0.95);
}

.project-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: #a4c6ff;
  background: rgba(47, 124, 255, 0.08);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.project-tags {
  margin-top: auto;
  color: rgba(237, 242, 255, 0.6);
  font-size: 0.92rem;
  line-height: 1.6;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.8rem;
}

.skill-card {
  padding: 1.4rem;
  border-radius: 24px;
  background: rgba(11, 18, 35, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.skill-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 2rem;
  margin-top: 4rem;
  border-radius: 28px;
  background: rgba(8, 13, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-section a {
  width: fit-content;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .about-grid,
  .contact-section,
  .project-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero-section {
    padding-top: 2rem;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .project-grid,
  .skills-grid {
    gap: 1rem;
  }
}
