/* ===== Base ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card: #0f172a;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.1);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border-subtle: #1f2937;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.7);
  --shadow-subtle: 0 10px 30px rgba(15, 23, 42, 0.5);
  --max-width: 1080px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ===== Layout ===== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section--alt {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.7)
  );
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.9),
    rgba(2, 6, 23, 0.3)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav__link {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
  position: relative;
  padding-bottom: 0.1rem;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #a855f7);
  transition: width 0.16s ease-out;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after {
  width: 100%;
}

/* ===== Hero ===== */

.hero {
  padding: 4rem 0 3rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero__text {
  max-width: 640px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero__subtitle {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 32rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
    background 0.12s ease-out, border-color 0.12s ease-out;
}

.btn--primary {
  background: radial-gradient(
    circle at 0 0,
    #38bdf8,
    #2563eb 45%,
    #4c1d95 100%
  );
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.45);
  color: #f9fafb;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.9);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(15, 23, 42, 1);
}

/* ===== Sections ===== */

.section__header {
  margin-bottom: 2rem;
}

.section__title {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.section__subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 32rem;
  font-size: 0.95rem;
}

/* ===== Projects Grid ===== */

.projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.project-card {
  background: radial-gradient(
    circle at top left,
    rgba(56, 189, 248, 0.06),
    rgba(15, 23, 42, 0.95)
  );
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out,
    border-color 0.16s ease-out, background 0.16s ease-out;
}

.project-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.project-card__image-wrapper {
  position: relative;
  overflow: hidden;
  max-height: 220px;
  aspect-ratio: 16 / 9;
}

.project-card__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.3s ease-out;
}

.project-card__body {
  padding: 1.1rem 1.2rem 1.2rem;
}

.project-card__title {
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
}

.project-card__tags {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.project-card__description {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(56, 189, 248, 0.6);
  background: radial-gradient(
    circle at top left,
    rgba(56, 189, 248, 0.15),
    rgba(15, 23, 42, 0.9)
  );
}

.project-card:hover .project-card__image {
  transform: scale(1.06);
}

/* ===== About ===== */

.about {
  display: flex;
  justify-content: space-between;
}

.about__content {
  max-width: 640px;
}

.about p {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: var(--muted);
}

/* ===== Contact ===== */

.contact__content {
  max-width: 480px;
}

.contact__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.3rem 0;
  position: relative;
}

.contact__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #a855f7);
  transition: width 0.18s ease-out;
}

.contact__link:hover::after {
  width: 100%;
}

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.25rem 0 1.75rem;
  background: radial-gradient(
    circle at bottom,
    rgba(15, 23, 42, 0.9),
    rgba(2, 6, 23, 1)
  );
}

.site-footer__inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Responsive tweaks ===== */

@media (max-width: 640px) {
  .site-header__inner {
    padding: 0.75rem 0;
  }

  .nav {
    gap: 0.75rem;
  }

  .hero {
    padding-top: 3rem;
  }
}

@media (max-width: 720px) {
  .about {
    flex-direction: column;
    gap: 1.25rem;
  }
}
