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

:root {
  --bg: #161616;
  --surface: #1f1f1f;
  --border: #2a2a2a;
  --text: #e2e2e2;
  --muted: #777;
  --green: #4ade80;
}

[data-theme="light"] {
  --bg: #f8f8f8;
  --surface: #efefef;
  --border: #ddd;
  --text: #181818;
  --muted: #666;
  --green: #16a34a;
}

html {
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.2s, color 0.2s;
}

/* MAIN */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2.5rem 5rem;
  flex: 1;
  width: 100%;
}

/* HERO */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 4rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-left h1 {
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

/* TAG SYSTEM */
.tag {
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;

  display: inline-flex;
  align-items: center;

  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;

  cursor: default;

  /* smooth hover animation */
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}

/* TAG HOVER EFFECT (NEW) */
.tag:hover {
  transform: translateY(-2px);
  border-color: var(--muted);
  background: var(--surface);
}

/* TAGLINE CONTAINER */
.tagline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

/* socials */
.socials {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.socials a {
  color: var(--text);
  opacity: 0.6;
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}

.socials a:hover {
  opacity: 1;
}

/* divider */
.divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 3rem;
}

/* visitor count */
.visitor-count {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.5;
  margin-bottom: 1.5rem;
}

/* section label */
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* project cards */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color 0.15s, transform 0.15s;
  cursor: default;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--muted);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.project-card h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.project-card p {
  flex: 1;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.meta {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.7;
}

/* footer */
footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

footer a:hover {
  color: var(--text);
}

/* responsive */
@media (max-width: 600px) {
  main {
    padding: 2rem 1.25rem 3rem;
  }

  .hero {
    flex-direction: column;
    gap: 0;
    margin-bottom: 2.5rem;
  }

  .hero-left h1 {
    font-size: 2rem;
  }

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

  footer {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .divider {
    margin-bottom: 2rem;
  }
}