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

:root {
  --bg: #0b0b0f;
  --surface: #14141b;
  --surface-hover: #1b1b25;

  /* Soft tech palette */
  --pink: #F28AB8;
  --pink-light: #F7B4D1;
  --blue: #A5C8FF;
  --blue-light: #C2D9FF;

  --text: #f5f5f7;
  --muted: #a5a5b2;
  --border: #292933;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pink);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease,
              background 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--blue);
}

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

.container {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

/* Navigation */

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 15, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  color: var(--text);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.logo span {
  color: var(--pink);
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
}

/* Home hero */

.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: center;
  gap: 60px;
  padding-top: 80px;
  padding-bottom: 90px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--blue);
}

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.hero h1 {
  margin: 22px 0 8px;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 800;
}

.gradient-text {
  color: var(--pink);
}

.hero h2 {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.intro {
  max-width: 600px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-image-wrap {
  position: relative;
  width: min(100%, 330px);
  justify-self: end;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  opacity: 0.75;
}

.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  filter: saturate(0.9);
}

.actions, .socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-primary {
  color: #171019;
  background: var(--pink);
  border-color: var(--pink);
}

.btn-primary:hover {
  color: #171019;
  background: var(--pink-light);
  border-color: var(--pink-light);
  transform: translateY(-2px);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.social-link {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.social-link:hover {
  color: var(--pink);
}

/* Shared sections */

.section {
  padding: 70px 0;
}

.section-border {
  border-top: 1px solid var(--border);
}

.section-heading {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
}

.section-description {
  max-width: 650px;
  color: var(--muted);
  margin-top: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
}

.card h3 {
  margin: 12px 0;
  font-size: 1.3rem;
}

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

.tag {
  display: inline-block;
  padding: 4px 9px;
  margin: 4px 4px 0 0;
  border: 1px solid #39465D;
  border-radius: 6px;
  color: var(--blue-light);
  font-size: 0.75rem;
  line-height: 1.6;
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
}

.page-header {
  padding: 80px 0 42px;
}

.page-header h1 {
  margin: 14px 0;
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.page-header p {
  max-width: 700px;
  color: var(--muted);
}

/* Project article */

.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 0 90px;
}

.article h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
}

.article h2 {
  margin-top: 42px;
  font-size: 1.7rem;
}

.article p, .article li {
  color: var(--muted);
}

.article strong {
  color: var(--text);
}

.code-note {
  padding: 18px;
  background: var(--surface);
  border-left: 3px solid var(--blue);
  border-radius: 0 10px 10px 0;
}

.author {
  color: var(--blue-light);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

/* Footer */

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.centered-image {
  text-align: center;
  margin: 20px auto;
}

.centered-image img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* Responsive layout */

@media (max-width: 700px) {
  .nav-inner {
    min-height: 68px;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 55px;
    padding-bottom: 65px;
  }

  .hero-image-wrap {
    width: min(75%, 270px);
    justify-self: start;
    margin: 0 16px 16px 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .page-header {
    padding-top: 55px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

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

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
