/* ========================================
   Custom Properties
   ======================================== */

:root {
  --bg-primary: #0c1117;
  --bg-secondary: #0a0e14;
  --bg-card: #111920;
  --accent: #10b981;
  --accent-hover: #34d399;
  --text-primary: #ffffff;
  --text-body: #c8d0e0;
  --text-muted: #94a3b8;
  --text-faint: #4b5563;
}

/* ========================================
   Reset
   ======================================== */

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

/* ========================================
   Body
   ======================================== */

body {
  background: var(--bg-primary);
  color: var(--text-body);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* ========================================
   Nav
   ======================================== */

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  padding: 16px 0;
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-name {
  color: var(--text-primary);
  font-weight: bold;
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s, border-bottom 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* ========================================
   Main
   ======================================== */

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* ========================================
   Hero
   ======================================== */

.hero {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid rgba(16, 185, 129, 0.27);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content h1 {
  color: var(--text-primary);
  font-size: 28px;
  font-weight: bold;
}

.tagline {
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 16px;
}

.hero-content p {
  color: var(--text-body);
  font-size: 15px;
  margin-bottom: 12px;
}

/* ========================================
   Buttons
   ======================================== */

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

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

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
  background: transparent;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(16, 185, 129, 0.08);
}

/* ========================================
   Sections
   ======================================== */

.section {
  padding: 32px 0;
}

.section h2 {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 6px;
}

.section-sub {
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ========================================
   Cards Grid
   ======================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

.card h3 {
  color: var(--text-primary);
  font-size: 16px;
  margin-bottom: 6px;
}

.card p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.card-image {
  height: 140px;
  background: var(--bg-secondary);
  border-radius: 6px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
}

.card-link {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

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

/* ========================================
   Social Grid
   ======================================== */

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.social-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.social-card:hover {
  border-color: rgba(16, 185, 129, 0.2);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

.social-name {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: bold;
}

.social-handle {
  color: var(--text-faint);
  font-size: 12px;
}

/* ========================================
   Footer
   ======================================== */

footer {
  max-width: 900px;
  margin: 32px auto 0;
  padding: 32px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

/* ========================================
   Page Label
   ======================================== */

.page-label {
  background: var(--accent);
  color: var(--bg-primary);
  font-size: 11px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 13px;
  }
}
