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

:root {
  --bg: #0d0d0f;
  --surface: #16161a;
  --border: #2a2a30;
  --text: #e8e8ed;
  --muted: #888896;
  --accent: #6aa7f7;
  --accent-glow: rgba(124, 106, 247, 0.18);
  --radius: 14px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

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

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

/* ── Layout ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
  max-width: 520px;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(13, 13, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

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

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 48px;
  position: relative;
}

.hero-content { flex: 1; z-index: 1; }

.hero-eyebrow {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-headline {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-graphic {
  flex: 0 0 340px;
  height: 340px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blob {
  width: 280px;
  height: 280px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: radial-gradient(135deg, var(--accent) 0%, #4f3fd4 60%, transparent 100%);
  opacity: 0.18;
  animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  33%       { border-radius: 40% 60% 45% 55% / 60% 40% 60% 40%; }
  66%       { border-radius: 55% 45% 60% 40% / 40% 55% 45% 60%; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: #6a59e0;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

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

.btn-large { padding: 16px 36px; font-size: 1rem; }

/* ── About Cards ── */
.about { background: var(--surface); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

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

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

.card-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 16px;
}

.card-icon svg {
  display: block;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

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

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

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

.project-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.project-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  flex: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  transition: gap 0.2s;
}

.project-link:hover { gap: 10px; }

/* ── Profile Links ── */
.profile-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.profile-card:hover {
  border-color: var(--accent);
  transform: translateX(6px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.profile-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--accent);
}

.profile-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.profile-name {
  font-weight: 700;
  font-size: 1rem;
}

.profile-handle {
  color: var(--muted);
  font-size: 0.88rem;
}

.profile-arrow {
  color: var(--muted);
  font-size: 1.2rem;
  transition: color 0.2s;
}

.profile-card:hover .profile-arrow { color: var(--accent); }

/* ── Contact ── */
.contact { background: var(--surface); }
.contact-inner { text-align: center; }
.contact-inner .section-sub { margin-left: auto; margin-right: auto; }

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

/* ── Responsive ── */
@media (max-width: 720px) {
  .nav { padding: 16px 20px; }
  .nav-links { gap: 20px; }

  .hero {
    flex-direction: column;
    padding: 100px 24px 60px;
    text-align: center;
  }

  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-graphic { flex: none; width: 200px; height: 200px; }
  .blob { width: 180px; height: 180px; }

  .section { padding: 64px 0; }
}
