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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e5e7eb;              /* light text */
  background: #020617;         /* very dark slate */
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.9); /* dark, slightly transparent */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1f2937;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav a {
  margin-left: 1rem;
  font-size: 0.95rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 2px;
  background: #e5e7eb;
  transition: width 0.2s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* HERO */

.hero {
  padding: 4rem 0 3rem;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-text h1 {
  font-size: 2.4rem;
  margin: 0 0 0.25rem;
}

.tagline {
  font-size: 1.1rem;
  font-weight: 500;
  color: #9ca3af; /* muted text */
  margin-top: 0;
}

.hero-desc {
  max-width: 36rem;
  color: #9ca3af;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-links a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

.hero-links a:hover {
  background: #e5e7eb;
  color: #020617;
}

/* SECTIONS */

.section {
  padding: 3rem 0;
  background: #020617;
}

.section-alt {
  background: #020617; /* keep consistent, cards provide contrast */
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.section p {
  margin-top: 0;
  color: #9ca3af;
}

.section-subtitle {
  margin-bottom: 1.5rem;
}

/* TABS */

.tabs-header {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.2rem;
  background: #020617;
  border: 1px solid #1f2937;
  margin-bottom: 1.5rem;
}

.tab-btn {
  border: none;
  background: transparent;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  color: #9ca3af;
}

.tab-btn.active {
  background: #e5e7eb;
  color: #020617;
}

/* PROJECTS */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #020617;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #1f2937;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card h3 {
  margin: 0.25rem 0;
  font-size: 1.1rem;
  color: #e5e7eb;
}

.project-card p {
  margin: 0;
  color: #9ca3af;
}

.project-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid #374151;
  background: #020617;
  color: #e5e7eb;
}

.roblox-tag {
  border-color: #fb923c; /* orange accent still pops in dark */
}

.project-tech {
  font-size: 0.8rem;
  color: #6b7280;
}

.project-links {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.project-links a {
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}

.project-links a:hover {
  background: #e5e7eb;
  color: #020617;
}

/* CONTACT */

.contact-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-links a {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  font-size: 0.9rem;
}

.contact-links a:hover {
  background: #e5e7eb;
  color: #020617;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid #1f2937;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* RESPONSIVE */

@media (min-width: 768px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* PROJECT DETAIL PAGE */

.project-detail {
  max-width: 760px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  color: #9ca3af;
}

.back-link:hover {
  color: #e5e7eb;
}

.project-detail h1 {
  font-size: 1.9rem;
  margin: 0 0 0.75rem;
  color: #e5e7eb;
}

.project-intro {
  max-width: 40rem;
  color: #9ca3af;
}

.video-section {
  margin-top: 2rem;
}

.video-section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
  color: #e5e7eb;
}

.video-section p {
  margin-bottom: 0.75rem;
  color: #9ca3af;
}

.demo-video {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid #1f2937;
  background: #000;
}

.details-section {
  margin-top: 2.25rem;
}

.feature-list {
  padding-left: 1.25rem;
  color: #9ca3af;
}

.feature-list li + li {
  margin-top: 0.25rem;
}
