:root {
  --bg: #0e0f13;
  --card: #161822;
  --text: #f5f7ff;
  --muted: #aab0c5;
  --accent: #5b7cff;
  --border: #232636;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #15182a 0%, #0e0f13 40%);
  color: var(--text);
  line-height: 1.6;
}

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

section {
  padding: 6rem 1.5rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

p {
  color: var(--muted);
  max-width: 700px;
}

/* NAV */

.nav {
  position: sticky;
  top: 0;
  background: rgba(14, 15, 19, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.nav-inner {
  max-width: 1100px;
  margin: auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 600;
  letter-spacing: 0.4px;
}

.nav-links a {
  margin-left: 1.5rem;
  color: var(--muted);
}

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

.nav-cta {
  color: var(--accent) !important;
}

/* HERO */

.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 900px;
  margin: auto;
}

.hero p {
  margin: 1.5rem 0 2.5rem;
  font-size: 1.1rem;
}

/* BUTTONS */

.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.btn.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn.secondary {
  margin-left: 1rem;
  color: var(--text);
  background: transparent;
}

.btn.secondary:hover {
  border-color: var(--accent);
}

/* PROJECTS */

.projects {
  max-width: 1100px;
  margin: auto;
}

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

.project-card {
  background: linear-gradient(180deg, #181b2a, #121420);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #2f3460;
}

.project-image {
  height: 140px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2b2f55, #1b1e35);
  margin-bottom: 1rem;
}

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

.project-tags {
  margin: 1rem 0;
}

.project-tags span {
  display: inline-block;
  font-size: 0.75rem;
  background: #1f2340;
  color: #c7ccff;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  margin-right: 0.4rem;
}

.project-link {
  color: var(--accent);
  font-weight: 500;
}

/* ABOUT */

.about {
  background: #0b0c12;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  max-width: 900px;
  margin: auto;
}

.about p {
  margin-bottom: 1.2rem;
}

/* CONTACT */

.contact {
  text-align: center;
}

.contact p {
  margin: 1rem auto 2rem;
}

/* FOOTER */

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