:root {
  --bg: #0f172a;
  --bg-2: #111c32;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #aebbd0;
  --primary: #60a5fa;
  --primary-strong: #2563eb;
  --cyan: #67e8f9;
  --green: #22c55e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 28px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.26), transparent 34%),
    radial-gradient(circle at 80% 4%, rgba(103, 232, 249, 0.16), transparent 32%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 20%), rgba(96, 165, 250, 0.06), transparent 28rem);
  opacity: 0.55;
  z-index: -1;
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 100;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.55);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.28s ease;
}

.site-header.scrolled {
  background: rgba(15, 23, 42, 0.93);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

.navbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  transition: min-height 0.28s ease;
}

.site-header.scrolled .navbar {
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #06101f;
  box-shadow: 0 10px 26px rgba(96, 165, 250, 0.18);
  transition: 0.28s ease;
}

.site-header.scrolled .brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 13px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 13px;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.35rem;
  cursor: pointer;
}


.hero {
  padding: 98px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.eyebrow,
.section-title p,
.contact-box > p {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.86rem;
  font-weight: 900;
  margin-bottom: 16px;
}





.hero-title {
  max-width: 920px;
  line-height: 0.94;
  margin-bottom: 24px;
}

.hero-name {
  display: block;
  width: fit-content;
  font-size: clamp(3.1rem, 8vw, 5.9rem);
  letter-spacing: -0.055em;
  font-weight: 850;
  color: #f1f5f9;
  animation: clean-fade-up 0.65s ease both;
}

.hero-role {
  position: relative;
  display: block;
  width: fit-content;
  margin-top: 14px;
  font-size: clamp(1.25rem, 2.8vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 750;
  color: #93c5fd;
  animation: clean-fade-up 0.75s ease 0.1s both;
}

.hero-role::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 56%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), rgba(103, 232, 249, 0.45), transparent);
  opacity: 0.85;
  animation: line-appear 1s ease 0.35s both;
}

.clean-title {
  animation: title-settle 0.8s ease both;
}

@keyframes clean-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-settle {
  from {
    transform: translateY(8px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes line-appear {
  from {
    opacity: 0;
    transform: scaleX(0.4);
    transform-origin: left;
  }

  to {
    opacity: 0.85;
    transform: scaleX(1);
    transform-origin: left;
  }
}

.hero-description {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

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

.btn-primary {
  color: #06101f;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 14px 32px rgba(96, 165, 250, 0.18);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
}

.hero-card,
.card,
.timeline-item,
.skill-card,
.formation-card,
.interest-card,
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.18);
  transition: 0.25s ease;
}

.hero-card:hover,
.card:hover,
.timeline-item:hover,
.skill-card:hover,
.formation-card:hover,
.interest-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.24);
  background: rgba(255, 255, 255, 0.095);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.2);
  filter: blur(36px);
}

.hero-card > * {
  position: relative;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #dbeafe;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.18);
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 26px;
}

.status span {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
}

.status span::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  animation: soft-pulse 2.4s ease-out infinite;
}

@keyframes soft-pulse {
  0% {
    transform: scale(0.75);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.55);
    opacity: 0;
  }

  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.hero-card h2 {
  font-size: 2rem;
  letter-spacing: -0.05em;
  margin-bottom: 12px;
}

.hero-card p,
.card p,
.timeline-content p,
.timeline-content li,
.formation-card p,
.contact-box span {
  color: var(--muted);
}

.quick-tags,
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.quick-tags span,
.skill-list span {
  padding: 8px 12px;
  color: #dbeafe;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.section {
  padding: 76px 0;
}

.section-soft {
  background: rgba(255, 255, 255, 0.025);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.section-title {
  margin-bottom: 32px;
}

.section-title h2 {
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.about-grid,
.skills-grid,
.formation-grid,
.interest-grid {
  display: grid;
  gap: 18px;
}

.about-grid,
.skills-grid,
.interest-grid {
  grid-template-columns: repeat(4, 1fr);
}

.formation-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.skill-card,
.formation-card,
.interest-card {
  padding: 24px;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: rgba(96, 165, 250, 0.14);
  margin-bottom: 18px;
}

.card h3,
.skill-card h3,
.formation-card h3,
.interest-card h3 {
  font-size: 1.18rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  padding: 26px;
}

.timeline-date {
  color: var(--cyan);
  font-weight: 900;
}

.timeline-content .subtitle {
  margin-bottom: 12px;
  font-weight: 700;
}

.timeline-content ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.formation-card span {
  display: inline-block;
  color: var(--cyan);
  font-weight: 900;
  margin-bottom: 14px;
}

.formation-card.current {
  background:
    radial-gradient(circle at top right, rgba(103, 232, 249, 0.14), transparent 42%),
    var(--surface);
}

.interest-card {
  min-height: 160px;
}

.interest-card span {
  display: block;
  font-size: 2rem;
  margin-bottom: 18px;
}

.contact-section {
  padding-bottom: 92px;
}

.contact-box {
  padding: 42px;
  background:
    radial-gradient(circle at right, rgba(103, 232, 249, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(255, 255, 255, 0.06));
}

.contact-box h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
  margin-bottom: 14px;
}

.contact-box span {
  display: block;
  max-width: 680px;
  margin-bottom: 26px;
  font-size: 1.08rem;
}

.site-footer {
  padding: 34px 0;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
  transition: opacity 0.75s ease, transform 0.75s ease, filter 0.75s ease;
}

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


@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .skills-grid,
  .formation-grid,
  .interest-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content {
    grid-column: 1 / -1;
  }
}

@media (max-width: 740px) {
  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav-links {
    position: fixed;
    top: 84px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px);
    transition: 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    padding: 14px;
  }

  .hero {
    padding-top: 58px;
  }

  .hero-grid,
  .about-grid,
  .skills-grid,
  .formation-grid,
  .interest-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .hero-name {
    font-size: clamp(2.65rem, 12vw, 4rem);
    letter-spacing: -0.045em;
  }

  .hero-role {
    font-size: clamp(1.05rem, 5.7vw, 1.65rem);
  }

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

  .btn {
    width: 100%;
  }

  .contact-box {
    padding: 28px;
  }
}
