/* =========================================================
   ✏️ THEME — change colors / font here, the whole site follows
   ========================================================= */
:root {
  --bg: #0e0f11;          /* page background */
  --bg-card: #17191c;     /* cards, buttons */
  --border: #26292e;
  --text: #e8e8ea;        /* main text */
  --muted: #9a9ca3;       /* secondary text */
  --accent: #ff7a1a;      /* the one orange accent */
  --accent-soft: rgba(255, 122, 26, 0.12);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --max-width: 1080px;
  --ease: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

::selection { background: var(--accent); color: #000; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(14, 15, 17, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.nav__logo { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color var(--ease);
}
.nav__links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 64px);
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero__eyebrow {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 20px;
}
.hero__title {
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  font-weight: 700;
}
.hero__subtitle {
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  max-width: 620px;
  margin: 0 0 40px;
}
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform var(--ease), border-color var(--ease), background var(--ease), color var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}
.btn--primary:hover { background: #ff8f3d; color: #111; }

/* ---------- Sections ---------- */
.section { padding-top: 110px; padding-bottom: 40px; scroll-margin-top: 40px; }
.section__title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 32px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section__title::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--border);
}

/* ---------- About ---------- */
.about { max-width: 680px; }
.about p { margin: 0 0 18px; font-size: 1.1rem; }
.tags {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tags li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Project cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 26, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #1f2226;
  transition: transform 0.5s ease;
}
.card:hover .card__img { transform: scale(1.03); }
.card__body { padding: 20px 22px 24px; }
.card__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.card__title { margin: 6px 0 8px; font-size: 1.15rem; font-weight: 600; }
.card__text { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact { padding-bottom: 100px; }
.contact__text { color: var(--muted); max-width: 520px; margin: 0 0 20px; }
.contact__email {
  display: inline-block;
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  transition: color var(--ease);
  word-break: break-all;
}
.contact__email:hover { color: var(--accent); }
.contact__links { display: flex; gap: 24px; margin-top: 32px; }
.contact__links a { color: var(--muted); transition: color var(--ease); }
.contact__links a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer p { margin: 0; }

/* ---------- Project page (projects/*.html) ---------- */
.project { padding-top: 70px; padding-bottom: 100px; max-width: 820px; }
.back-link {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color var(--ease);
}
.back-link:hover { color: var(--accent); }
.project__title {
  font-size: clamp(2rem, 6vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 28px 0 12px;
}
.project__meta { color: var(--muted); margin: 0 0 36px; }
.project__cover { border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 40px; }
.project h2 { font-size: 1.3rem; margin: 44px 0 12px; }
.project p { color: #cfd0d4; }

/* 3D viewer box (used with <model-viewer>) */
.viewer {
  width: 100%;
  height: 460px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: radial-gradient(circle at 50% 40%, #1f2226, var(--bg-card));
  --poster-color: transparent;
}

/* ---------- Phone ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .nav__links { gap: 18px; }
  .hero { padding-top: 48px; padding-bottom: 48px; }
  .section { padding-top: 80px; }
  .btn { padding: 11px 22px; }
  .viewer { height: 320px; }
}

/* Respect users who turn off animations */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
