﻿:root {
  --bg: #f4efe7;
  --bg-accent: #e8dac8;
  --panel: #fffaf3;
  --ink: #1f1b18;
  --muted: #675f57;
  --brand: #b14a2f;
  --brand-dark: #8f3118;
  --line: #d9c7b3;
  --ok: #2d7a55;
  --radius: 18px;
  --max: 1160px;
  --font-head: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at 15% 5%, #f8f2e9 0%, var(--bg) 46%), linear-gradient(145deg, #f6efe6 0%, #efe2d3 100%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(255, 247, 237, 0.85);
  border-color: rgba(155, 97, 72, 0.2);
}

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

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a,
.admin-link,
.footer a,
.contact-links a,
.hero-social a,
.project-links a {
  text-decoration: none;
  color: inherit;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
}

.admin-link {
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero {
  position: relative;
  padding: 80px 0 40px;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
}

.hero-bg-shape-a {
  width: 420px;
  height: 420px;
  background: #f6c9ab;
  top: -180px;
  left: -120px;
}

.hero-bg-shape-b {
  width: 360px;
  height: 360px;
  background: #d8c0ff;
  right: -140px;
  bottom: -120px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.pill {
  display: inline-block;
  background: #f8dfcc;
  color: #7f351f;
  border: 1px solid #e7bfa4;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 16px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.1;
}

.hero-sub {
  margin-top: 14px;
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.stats {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-box {
  background: #fff7ef;
  border: 1px solid #edd9c3;
  border-radius: 12px;
  padding: 12px;
}

.stat-box strong {
  font-size: 1.2rem;
  display: block;
}

.stat-box span {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-card,
.panel,
.skill-card,
.project-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-card {
  padding: 22px;
  align-self: start;
}

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

.hero-social,
.contact-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero-social a,
.contact-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.9rem;
}

.section {
  padding: 72px 0;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.muted {
  color: var(--muted);
}

.about-grid,
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-detail-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.about-detail-item {
  border-left: 3px solid #e4b190;
  padding-left: 10px;
  color: #4d443c;
}

.panel {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.panel input,
.panel textarea,
.panel select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  font-family: var(--font-body);
}

.skills-grid,
.projects-grid {
  display: grid;
  gap: 14px;
}

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

.skill-card {
  padding: 16px;
}

.tags,
.stack,
.project-metrics,
.project-links,
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag,
.metric,
.stack span,
.filter {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.83rem;
  background: #fff;
}

.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.project-card {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.project-card.featured {
  border-color: #d57f52;
  box-shadow: 0 12px 25px rgba(177, 74, 47, 0.16);
}

.project-links a {
  font-weight: 700;
  color: var(--brand-dark);
}

.filter.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

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

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

.form-status {
  color: var(--ok);
  min-height: 1.3em;
}

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-wrap,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    font-size: 0.9rem;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 8px;
  }
}
