/* ============================================================
   STYLE.CSS — the look of the whole website.
   You normally don't need to touch this file, BUT if you want
   to change the site's colors, just edit the values right below
   (the lines inside :root). For example, change --accent to
   another color like #e8638c (pink) or #3b82f6 (blue).
   ============================================================ */

:root {
  /* ---- 🎨 Change these to restyle the whole site ---- */
  --accent: #7c6ce0;            /* main color (buttons, links, highlights) */
  --accent-soft: #efecfd;       /* light version of the main color */
  --heading-font: "Sora", "Avenir Next", "Segoe UI", sans-serif;

  /* ---- You probably don't need to change these ---- */
  --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --ink: #2b2640;               /* main text color */
  --ink-soft: #6f6a85;          /* secondary text color */
  --bg: #fdfcfb;                /* page background */
  --card-bg: #ffffff;
  --line: #ece9f4;
  --radius: 16px;
  --shadow: 0 2px 6px rgba(60, 50, 110, 0.06);
  --shadow-hover: 0 12px 28px rgba(60, 50, 110, 0.14);
  --max-width: 1060px;
}

/* ---------- base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(253, 252, 251, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-brand {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}
.nav-brand:hover { text-decoration: none; color: var(--accent); }

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

.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 999px;
}
.nav-links a:hover { text-decoration: none; color: var(--accent); background: var(--accent-soft); }
.nav-links a.active { color: var(--accent); background: var(--accent-soft); }

/* ---------- hero (home page) ---------- */

.hero {
  padding: 72px 0 56px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-text { flex: 1.4; }

.hero-text .hello {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 10px;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  margin-bottom: 14px;
}

.hero-text .tagline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 26px;
  max-width: 34em;
}

.hero-photo { flex: 1; display: flex; justify-content: center; }

.hero-photo img {
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  object-fit: cover;
  border-radius: 36% 64% 58% 42% / 48% 40% 60% 52%;
  box-shadow: var(--shadow-hover);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.btn.ghost {
  background: transparent;
  color: var(--accent);
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- sections ---------- */

.section { padding: 48px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2 { font-size: 1.7rem; margin: 0; }
.section-head .see-all { font-weight: 600; white-space: nowrap; }

.page-title { padding: 56px 0 8px; }
.page-title h1 { font-size: clamp(2rem, 4.5vw, 2.6rem); }
.page-title p { color: var(--ink-soft); font-size: 1.1rem; max-width: 40em; margin-top: 0; }

/* ---------- project cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  color: inherit;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.project-card .thumb {
  height: 175px;
  width: 100%;
  object-fit: cover;
}

.project-card .thumb-fallback {
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading-font);
  font-size: 2.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.project-card .card-body { padding: 18px 20px 20px; flex: 1; }

.project-card h3 { font-size: 1.12rem; margin-bottom: 6px; }

.project-card .date {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.project-card p { margin: 8px 0 12px; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- tags & filters ---------- */

.tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 11px;
  border-radius: 999px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 28px;
}

.filter-btn {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--card-bg);
  border: 1.5px solid var(--line);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- about page ---------- */

.about-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding: 40px 0 16px;
}

.about-photo img {
  width: min(260px, 80vw);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}

.about-text { flex: 1; }
.about-text p { margin: 0 0 1em; }

/* ---------- awards ---------- */

.award-list { list-style: none; margin: 0; padding: 0; }

.award-item {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.award-item:last-child { border-bottom: none; }

.award-year {
  flex: 0 0 64px;
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--accent);
}

.award-body h3 { font-size: 1.05rem; margin-bottom: 2px; }
.award-body p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- blog ---------- */

.post-list { list-style: none; margin: 0; padding: 0; }

.post-item {
  display: block;
  padding: 22px 24px;
  margin-bottom: 16px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }

.post-item h3 { margin-bottom: 4px; font-size: 1.2rem; }
.post-item .date { color: var(--ink-soft); font-size: 0.85rem; font-weight: 600; }
.post-item p { margin: 8px 0 0; color: var(--ink-soft); }

.post-article { max-width: 700px; margin: 0 auto; padding: 24px 0 56px; }
.post-article .date { color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.post-article h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 6px 0 20px; }
.post-article .post-body h2 { font-size: 1.4rem; margin-top: 1.6em; }
.post-article .post-body h3 { font-size: 1.15rem; margin-top: 1.4em; }
.post-article .post-body img { border-radius: var(--radius); margin: 1em 0; }
.post-article .post-body blockquote {
  margin: 1em 0;
  padding: 4px 20px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  color: var(--ink-soft);
}
.post-article .post-body code {
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}
.post-article .post-body pre {
  background: #2b2640;
  color: #f4f2fc;
  padding: 16px 20px;
  border-radius: var(--radius);
  overflow-x: auto;
}
.post-article .post-body pre code { background: none; padding: 0; color: inherit; }

.back-link {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.92rem;
}

/* ---------- empty state ---------- */

.empty-state {
  text-align: center;
  padding: 56px 24px;
  background: var(--card-bg);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.empty-state .emoji { font-size: 2.2rem; display: block; margin-bottom: 10px; }

/* ---------- contact links / footer ---------- */

.contact-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }

.contact-links a {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 16px;
  background: var(--accent-soft);
  border-radius: 999px;
}
.contact-links a:hover { text-decoration: none; background: var(--accent); color: #fff; }

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  .hero { flex-direction: column-reverse; text-align: center; padding: 44px 0 32px; }
  .hero-text .tagline { margin-left: auto; margin-right: auto; }
  .btn-row { justify-content: center; }
  .about-layout { flex-direction: column; align-items: center; text-align: left; }
  .award-item { flex-direction: column; gap: 2px; }
  .award-year { flex: none; }
}
