/* ========================
   RESET & BASE
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0d0d0d;
  --bg-card: #161616;
  --bg-card-hover: #1e1e1e;
  --accent: #3B82F6;
  --text: #f0f0f0;
  --text-muted: #888;
  --border: #2a2a2a;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================
   NAV
======================== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background-color: rgb(24, 23, 23);
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ========================
   HERO
======================== */
.hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 60px 40px;
  max-width: 700px;
  margin: 0 auto;
}

.hero-tag {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
}

.accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
}

/* ========================
   BUTTON
======================== */
.btn {
  display: inline-block;
  text-decoration: none;
  background-color: var(--accent);
  color: #0d0d0d;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 6px;
  transition: opacity 0.2s, transform 0.2s;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ========================
   SECTIONS
======================== */
section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

section h2 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ========================
   ABOUT
======================== */
.about p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.8;
}

/* ========================
   SKILLS
======================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.skill-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: background-color 0.2s, border-color 0.2s;
}

.skill-card:hover {
  background-color: var(--bg-card-hover);
  border-color: #3a3a3a;
}

.skill-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 16px;
}

.skill-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color 0.2s, border-color 0.2s;
}

.project-card:hover {
  background-color: var(--bg-card-hover);
  border-color: #3a3a3a;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-lang {
  font-size: 12px;
  font-weight: 600;
  background-color: rgba(37, 99, 235, 0.25);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
}

.project-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.project-tags {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tags li {
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ========================
   CONTACT
======================== */
.contact p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ========================
   FOOTER
======================== */
footer {
  padding: 40px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}