/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f1117;
  --bg-soft: #161a23;
  --text: #e6e8ee;
  --text-muted: #9aa3b2;
  --accent: #6c8cff;
  --border: #262b36;
  --max-width: 900px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

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

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.nav nav a {
  margin-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-tagline {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex-shrink: 0;
}

.hero-image img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
  display: block;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}

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

/* ---------- Sections ---------- */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 620px;
}

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.project-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.project-card p {
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  font-size: 0.88rem;
}

/* ---------- Contact ---------- */
.email-link {
  font-size: 1.15rem;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

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

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .nav nav a {
    margin-left: 1rem;
    font-size: 0.9rem;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 3rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image img {
    width: 160px;
    height: 160px;
  }
}