:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.15);
  --text: #f9fafb;
  --muted: #9ca3af;
  --card: #111827;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.75);
  --shadow-sm: 0 10px 25px rgba(15, 23, 42, 0.6);
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  caret-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: #141b2b;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    sans-serif;
  background: radial-gradient(
    circle at center,
    #334155 0%,
    #1f2937 50%,
    #141b2b 100%
  );
  color: var(--text);
  min-height: 100dvh;
  display: flex;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

section,
footer {
  scroll-margin-top: 120px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  border-radius: 999px;
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  position: sticky;
  top: 0.75rem;
  z-index: 20;
}

@media (max-width: 880px) {
  header {
    border-radius: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.personal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.personal-logo {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #a855f7, #4f46e5 55%, #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow:
    0 0 0 2px rgba(15, 23, 42, 0.9),
    0 12px 30px rgba(79, 70, 229, 0.7);
}

.personal-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.personal-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.personal-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  justify-content: space-between;
  padding: 1rem 0;
}

nav a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

nav a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
  transform: translateY(-1px);
}

nav a.primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1, #0ea5e9);
  color: #e5e7eb;
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.7);
}

nav a.primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.9);
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    padding-top: 1rem;
  }

  .nav-links.active {
    display: flex;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.7rem 0.25rem 0.25rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  width: fit-content;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

.badge-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #22c55e, #22c55e 45%, #16a34a);
  box-shadow:
    0 0 0 2px rgba(15, 23, 42, 0.9),
    0 0 25px rgba(34, 197, 94, 0.9);
}

.badge-text {
  font-size: 0.8rem;
  color: var(--muted);
}

.badge-text strong {
  color: #e5e7eb;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h1 span.gradient {
  background: linear-gradient(135deg, #a855f7, #6366f1, #0ea5e9);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.6;
}

.hero-subtitle strong {
  color: #e5e7eb;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1, #0ea5e9);
  border-color: rgba(129, 140, 248, 0.7);
  box-shadow: 0 14px 35px rgba(79, 70, 229, 0.9);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 18px 45px rgba(79, 70, 229, 1);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.85);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

.btn-icon {
  font-size: 1.1rem;
  transform: translateY(1px);
}

section.cards {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (max-width: 880px) {
  section.cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  border-radius: var(--radius-md);
  padding: 1rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
  display: grid;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 70, 229, 0.18);
  color: #a5b4fc;
  font-size: 1.1rem;
}

.card-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.card-text {
  color: var(--muted);
  line-height: 1.5;
}

.card-keywords {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.pill,
.badge-soft {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.7rem;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.9);
}

.pill.accent,
.badge-soft.accent {
  border-color: rgba(129, 140, 248, 0.9);
  background: var(--accent-soft);
  color: #e5e7eb;
}

footer,
.site-footer {
  margin-top: 3.5rem;
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-text {
  margin-top: 1rem;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(12px);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.25s ease;
}

.linkedin-link:hover {
  color: #e5e7eb;
  border-color: rgba(129, 140, 248, 0.6);
  background: rgba(15, 23, 42, 0.85);
  transform: translateY(-2px);
}

.linkedin-icon {
  width: 18px;
  height: 18px;
  fill: #0a66c2;
  opacity: 0.9;
  transition: opacity 0.25s ease;
}

.linkedin-link:hover .linkedin-icon {
  opacity: 1;
}

[data-fade] {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

section.highlight article {
  animation: border-glow 0.4s ease-out forwards;
}

@keyframes border-glow {
  0% {
    box-shadow: 0 0 0 rgba(129, 140, 248, 0);
  }
  100% {
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.25);
  }
}

.certificate-list {
  list-style: none;
}

.certificate-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.certificate-list li::before {
  content: "•";
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 0;
}
