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

:root {
  --purple: #4b0082;
  --purple-mid: #6a0dad;
  --purple-light: #e8d5f5;
  --accent: #9b59b6;
  --bg: #f8f5ff;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --muted: #6b6b8a;
  --border: #e2d9f3;
  --tag-bg: #f4edfc;
  --tag-color: #5c2d91;
  --shadow: 0 4px 24px rgba(75, 0, 130, 0.08);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(75, 0, 130, 0.06);
}

.nav-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--purple);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
}

.back-link:hover {
  color: var(--purple);
}

.hero {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.hero-projects {
  text-align: center;
}

.hero-text-center {
  max-width: 760px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  background: var(--purple-light);
  color: var(--purple-mid);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -0.03em;
  margin-bottom: 0.7rem;
}

.hero p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 700px;
  margin: 0 auto;
}

.section {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--purple-light);
}

.projects-grid {
  display: grid;
  gap: 1rem;
}

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

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

.project-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(75, 0, 130, 0.08);
}

.project-image-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  background: #f4effb;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.compact-image-wrap {
  height: 170px;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.placeholder-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f8f3ff 0%, #f3ecfb 100%);
}

.placeholder-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.placeholder-icon {
  font-size: 2rem;
}

.placeholder-text {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-badge.live {
  background: #dff6e8;
  color: #1b8753;
}

.status-badge.progress {
  background: #e9dcff;
  color: var(--purple-mid);
}

.project-body {
  padding: 1rem 1rem 1.1rem;
}

.project-body h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.tech {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.55rem;
  line-height: 1.5;
}

.project-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0.7rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.project-tags span {
  background: var(--tag-bg);
  color: var(--tag-color);
  border-radius: 999px;
  padding: 0.26rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.links a {
  font-size: 0.82rem;
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
}

.links a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  nav {
    padding: 0 1rem;
  }

  .container {
    padding: 2rem 1rem 4rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .featured-grid,
  .secondary-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 1.5rem;
  }

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

  .project-image-wrap,
  .compact-image-wrap {
    height: 180px;
  }
}

@media (max-width: 560px) {
  .nav-links {
    display: none;
  }
}