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

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --text: #e4e4e4;
  --muted: #888;
  --accent: #6c63ff;
  --accent-hover: #5a52d9;
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ---------- NAV ---------- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  z-index: 100;
}

nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

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

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

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

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.greeting {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.tagline {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 440px;
  margin: 0 auto 2rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--accent-hover);
}

/* ---------- SECTIONS ---------- */
section {
  max-width: 960px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about p {
  color: var(--muted);
  max-width: 600px;
  font-size: 1.05rem;
}

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

.project-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.tags span {
  background: rgba(108, 99, 255, 0.15);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.project-link:hover {
  text-decoration: underline;
}

/* ---------- CONTACT ---------- */
.contact {
  text-align: center;
}

.contact p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.socials {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.socials a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  nav ul {
    gap: 1.2rem;
  }

  section {
    padding: 4rem 1.5rem;
  }
}
