:root {
  --bg-main: #070b12;
  --bg-secondary: #0d1320;
  --bg-card: #111827;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.15);
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.15), transparent 35%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 30%),
    var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 11, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 0.2s ease;
}

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

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 3rem;
  min-height: 70vh;
}

.eyebrow,
.section-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--accent);
}

.hero h2 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-description {
  max-width: 720px;
  font-size: 1.08rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.hero-description.secondary {
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

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

.btn-secondary {
  border-color: var(--border);
  background: rgba(15, 23, 42, 0.65);
  color: var(--text-main);
}

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

.hero-card {
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.22), rgba(14, 165, 233, 0.14));
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.8rem;
  box-shadow: var(--shadow);
}

.hero-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1.4rem;
}

.featured-project {
  margin-top: 3rem;
  padding: 2.5rem;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid var(--border);
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.featured-project h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1rem;
}

.featured-project p {
  max-width: 850px;
  color: #cbd5e1;
  font-size: 1.05rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.8rem 0;
}

.tech-list span {
  padding: 0.45rem 0.75rem;
  background: var(--accent-soft);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #bbf7d0;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.site-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 900px) {
  .navbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-card {
    max-width: 420px;
  }
}

@media (max-width: 560px) {
  main {
    padding: 2.5rem 1rem;
  }

  .navbar {
    padding: 1rem;
  }

  .nav-links {
    font-size: 0.85rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .featured-project {
    padding: 1.5rem;
  }
}

.page-hero {
  max-width: 880px;
  margin-bottom: 3rem;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1;
  margin-bottom: 1.4rem;
}

.page-hero p {
  color: #cbd5e1;
  font-size: 1.12rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
  margin-bottom: 3rem;
}

.content-card,
.callout {
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.7rem;
  box-shadow: var(--shadow);
}

.content-card h2,
.callout h2 {
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.content-card p,
.callout p {
  color: #cbd5e1;
}

.skills-section {
  margin-bottom: 3rem;
}

.callout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.3rem;
}

@media (max-width: 800px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.project-card {
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.project-card.featured {
  border-color: rgba(34, 197, 94, 0.45);
  background:
    linear-gradient(145deg, rgba(34, 197, 94, 0.12), rgba(14, 165, 233, 0.08)),
    rgba(17, 24, 39, 0.9);
}

.project-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}

.project-card p {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.project-info {
  margin: 1.3rem 0;
  padding: 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(15, 23, 42, 0.7);
  border-radius: 0.8rem;
}

.project-status {
  color: var(--accent) !important;
  font-weight: 800;
  margin-top: 1rem;
}

.contact-card {
  max-width: 850px;
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin-bottom: 1rem;
}

.contact-card p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.cert-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.cert-actions .btn {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

.cert-actions.multi {
  align-items: flex-start;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: rgba(17, 24, 39, 0.78);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.blog-card.featured {
  grid-column: 1 / -1;
  border-color: rgba(34, 197, 94, 0.45);
  background:
    linear-gradient(145deg, rgba(34, 197, 94, 0.12), rgba(14, 165, 233, 0.08)),
    rgba(17, 24, 39, 0.9);
}

.blog-card h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.blog-card p {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

@media (max-width: 800px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
