:root {
  --bg: #050816;
  --bg-alt: #07101f;
  --card: #0f172a;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.16);
  --accent-strong: rgba(249, 115, 22, 0.26);
  --text: #f9fafb;
  --muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.9);
  --radius-lg: 16px;
  --radius-xl: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 80%);
  color: var(--text);
}

body {
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 25, 0.96);
  border-bottom: 1px solid rgba(31, 41, 55, 0.6);
}

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

.logo {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  background: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.btn-primary {
  background: #050816;
  border-radius: 10px;
  padding: 0.75rem 1.6rem;
  border: 1px solid rgba(248, 150, 69, 0.6);
  color: #ffffff;
  font-weight: 500;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 24px 40px rgba(255, 107, 74, 0.2);
}

.btn-primary-glow {
  position: relative;
  overflow: visible;
}

.btn-primary-glow::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14px;
  height: 18px;
  background: radial-gradient(circle at 50% 0, rgba(255, 107, 74, 0.3), transparent 70%);
  filter: blur(8px);
  opacity: 1;
  pointer-events: none;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
}

.btn-ghost {
  border-color: rgba(75, 85, 99, 0.6);
  background: rgba(15, 23, 42, 0.5);
}

.hero {
  padding: 2.75rem 0 1.75rem;
  background: radial-gradient(circle at top right, #020617 0, #020617 55%, #020617 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-copy {
  max-width: 32rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.hero-name {
  margin: 0 0 0.2rem;
  font-size: clamp(2.6rem, 3.4vw, 3rem);
  color: var(--accent);
}

.hero-role {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.hero-text {
  color: var(--muted);
  margin: 0 0 1.8rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-contact {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-pill {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.85rem;
}

.contact-pill-outline {
  background: transparent;
  border-color: rgba(249, 115, 22, 0.6);
  color: #fed7aa;
}

.contact-pill:hover {
  border-color: rgba(249, 115, 22, 0.9);
  color: #fef3c7;
}

.hero-photo-wrapper {
  position: relative;
  width: 240px;
  justify-self: center;
  aspect-ratio: 1 / 1;
}

.hero-photo-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.3);
}

.hero-photo-ring-outer {
  transform: scale(1.06);
  border-color: rgba(249, 115, 22, 0.5);
}

.hero-photo-ring-inner {
  transform: scale(0.9);
  border-color: rgba(37, 99, 235, 0.35);
}

.hero-photo {
  position: absolute;
  inset: 16%;
  border-radius: 999px;
  overflow: hidden;
  background: #020617;
}

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

.hero-stats {
  border-top: 1px solid rgba(31, 41, 55, 0.7);
  border-bottom: 1px solid rgba(31, 41, 55, 0.7);
  background: #020617;
  margin-top: 1.4rem;
}

.domains-chips {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  justify-content: center;
}

.site-footer .footer-inner {
  text-align: center;
}

.hero-stats-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0 1.1rem;
}

.stat {
  text-align: center;
  flex: 1;
}

.stat-value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.section {
  padding: 1.8rem 0;
}

.section-alt {
  background: radial-gradient(circle at top right, #020617 0, #020617 60%);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 3.2rem;
  align-items: flex-start;
}

.section h2 {
  margin-top: 0;
  font-size: 1.7rem;
}

.section-title {
  margin: 0;
}

.section-underline {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.5rem;
}

.section-underline.center {
  margin-left: auto;
  margin-right: auto;
}

.section-title.center {
  text-align: center;
}

.card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 1.6rem 1.8rem;
}

.card-soft {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 1), rgba(15, 23, 42, 1));
  box-shadow: var(--shadow-soft);
}

.section-text.center {
  text-align: center;
  max-width: 640px;
  margin: 1.2rem auto 0;
  color: var(--muted);
}

.tech-list {
  margin-top: 1.2rem;
  margin-bottom: 0;
  text-align: center;
  color: var(--muted);
}

.about-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
}

.about-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-card {
  text-align: center;
}

.tech-chips {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.7rem;
}

.chip {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: #020617;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.responsibility-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.responsibility-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 0.8rem 0.9rem;
  background: #020617;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.experience-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 760px;
  margin: 1.6rem auto 0;
}

.experience-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  padding: 1.6rem 1.8rem;
  background: #020617;
}

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

.experience-header h3 {
  margin: 0;
}

.experience-period {
  font-size: 0.9rem;
  color: #fb923c;
}

.experience-label {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--muted);
}

.experience-roles {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.experience-roles li + li {
  margin-top: 0.4rem;
}

.role-dates {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
}

.education-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  max-width: 640px;
  margin: 1.6rem auto 0;
}

.education-icon,
.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.5);
}

.education-school {
  margin: 0.35rem 0 0.1rem;
  color: #fb923c;
}

.education-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.certification-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  max-width: 640px;
  margin: 1.6rem auto 0;
}

.cert-issuer {
  margin: 0.35rem 0 0.1rem;
  color: #fb923c;
}

.cert-date {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.education-text,
.cert-text {
  text-align: left;
}

.education-text h3,
.cert-text h3 {
  margin-top: 0;
}

.education-text,
.cert-text {
  text-align: left;
}

.contact-card {
  max-width: 640px;
  margin: 1.8rem auto 0;
  text-align: left;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 0;
}

.contact-list li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.contact-list a {
  color: var(--accent);
}

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

.site-footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  padding: 1.2rem 0 1.6rem;
  background: radial-gradient(circle at top, #020617, #000);
}

.footer-inner {
  font-size: 0.8rem;
  color: var(--muted);
}

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

  .nav-links {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-photo-wrapper {
    margin-top: 1.5rem;
  }

  .hero-stats-inner {
    flex-direction: column;
    text-align: center;
  }

  .two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .responsibility-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Print styles – make a clean CV PDF */
@media print {
  :root {
    --bg: #ffffff;
    --bg-alt: #ffffff;
    --card: #ffffff;
    --text: #111827;
    --muted: #4b5563;
    --border-subtle: #e5e7eb;
  }

  body {
    background: #ffffff;
  }

  .site-header,
  .site-footer,
  .hero-actions,
  #download-cv,
  #download-cv-hero {
    display: none !important;
  }

  .container {
    width: 100%;
    margin: 0;
    padding-inline: 0;
  }

  .section,
  .hero {
    padding-inline: 0;
    page-break-inside: avoid;
  }
}

