/* 1. Base reset & typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-body: #020617;
  --bg-elevated: #020617;
  --bg-card: #020617;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.1);
  --accent-strong: rgba(59, 130, 246, 0.3);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-strong: #f9fafb;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.6);
  --radius-lg: 1.25rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background: radial-gradient(circle at top, #0f172a 0, #020617 45%, #000 100%);
}

/* Layout helper */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 2. Header & navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #ec4899);
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.6);
}

.site-title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-strong);
}

.site-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.nav-link:hover {
  color: var(--text-strong);
  background-color: rgba(148, 163, 184, 0.15);
  transform: translateY(-1px);
}

.btn-nav {
  border: 1px solid rgba(148, 163, 184, 0.5);
}

/* 3. Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.25), transparent 55%);
}

.section h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
  color: var(--text-strong);
}

/* 4. Hero section */
.section-hero {
  padding-top: 4.5rem;
  padding-bottom: 4rem;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 60%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  line-height: 1.25;
  color: var(--text-strong);
}

.hero-text {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--text-main);
  max-width: 38rem;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #ec4899);
  color: #f9fafb;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-1px) translateX(0);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.8);
}

.btn-ghost {
  background-color: rgba(15, 23, 42, 0.85);
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-main);
}

.btn-ghost:hover {
  background-color: rgba(15, 23, 42, 1);
  border-color: var(--accent);
  color: var(--text-strong);
}

.hero-links {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.hero-links a {
  color: var(--text-main);
  text-decoration: none;
}

.hero-links a:hover {
  text-decoration: underline;
}

.hero-aside {
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.95), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(129, 140, 248, 0.45);
}

.hero-aside h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  color: var(--text-strong);
}

.hero-aside ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.9rem;
}

/* 5. Cards & lists */
.card {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 55%),
              radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.9), #020617);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  margin-top: 1.4rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.9);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-strong);
}

.muted {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.tag-primary {
  border-color: rgba(59, 130, 246, 0.85);
  color: #bfdbfe;
}

.card ul {
  margin: 0.4rem 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
}

.card ul li + li {
  margin-top: 0.25rem;
}

.card h4 {
  margin-top: 0.9rem;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.highlight-list {
  list-style: disc;
}

/* 6. Skills */
.skills-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.chip {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.skills-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 1.4rem;
}

.skills-grid h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: var(--text-strong);
}

.skills-grid ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.skill-bars {
  margin-top: 0.4rem;
}

.skill-bar {
  margin-bottom: 0.8rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.skill-bar span {
  display: block;
  margin-bottom: 0.2rem;
}

.bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #22c55e, #ec4899);
  width: 0;
  transition: width 1.1s ease-out;
}

/* 7. Contact & footer */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
}

.contact-list li + li {
  margin-top: 0.3rem;
}

.contact-list a {
  color: #93c5fd;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1rem 0 1.2rem;
  background: rgba(2, 6, 23, 0.96);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.back-to-top {
  color: var(--text-muted);
  text-decoration: none;
}

.back-to-top:hover {
  text-decoration: underline;
}

/* 8. Reveal on scroll (animation) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 9. Responsive tweaks */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    order: -1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    flex-direction: column;
    gap: 0.4rem;
  }
}
