/* ========================================
   Les Lobrys — Style
   ======================================== */

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

:root {
  --navy: #0b1120;
  --navy-light: #141e33;
  --slate: #64748b;
  --slate-light: #94a3b8;
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.1);
  --white: #ffffff;
  --off-white: #f1f5f9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav__list {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav__link {
  text-decoration: none;
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--amber);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--navy);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--amber);
  color: var(--navy) !important;
  transform: translateY(-1px);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2744 50%, var(--navy-light) 100%);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 40%, rgba(245, 158, 11, 0.08), transparent 60%),
              radial-gradient(ellipse 40% 40% at 20% 60%, rgba(100, 116, 139, 0.06), transparent 50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-dim);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  text-align: center;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--slate-light);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
  text-align: center;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--slate-light);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--slate-light), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.3); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--amber);
  color: var(--navy);
}

.btn--primary:hover {
  background: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.section:not(.section--dark) .btn--outline {
  color: var(--navy);
  border-color: var(--slate);
}

.section:not(.section--dark) .btn--outline:hover {
  border-color: var(--navy);
  background: var(--off-white);
  transform: translateY(-2px);
}

.btn--linkedin {
  background: #0a66c2;
  color: var(--white);
}

.btn--linkedin:hover {
  background: #004182;
  transform: translateY(-2px);
}

/* ---------- Section ---------- */

.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section__title--light {
  color: var(--white);
}

/* ---------- About ---------- */

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__text p {
  font-size: 1.05rem;
  color: var(--slate);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about__text strong {
  color: var(--navy);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat__number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--slate);
  font-weight: 500;
}

/* ---------- Profile ---------- */

.profile__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.profile__photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
  transition: transform var(--transition), box-shadow var(--transition);
}

.profile__photo:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.profile__content .section__tag {
  margin-bottom: 8px;
}

.profile__subtitle {
  color: var(--slate);
  font-size: 1rem;
  margin-bottom: 32px;
}

.section--dark .profile__subtitle {
  color: var(--slate-light);
}

.profile__skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.profile__block h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 12px;
}

.profile__block ul {
  list-style: none;
}

.profile__block li {
  font-size: 0.95rem;
  color: var(--slate);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.section--dark .profile__block li {
  color: var(--slate-light);
}

.profile__block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.profile__links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section--dark .btn--outline {
  border-color: rgba(255, 255, 255, 0.2);
}

.section--dark .btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Expertises ---------- */

.expertises__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.expertise-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
}

.expertise-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(245, 158, 11, 0.2);
  transform: translateY(-4px);
}

.expertise-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1;
}

.expertise-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.expertise-card p {
  font-size: 0.88rem;
  color: var(--slate-light);
  line-height: 1.7;
}

/* ---------- References ---------- */

.references__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.ref-item {
  background: var(--off-white);
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.ref-item:hover {
  background: var(--amber);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.references__note {
  text-align: center;
  color: var(--slate);
  font-size: 0.92rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Contact ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 640px;
  margin: 0 auto;
}

.contact__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
}

.contact__card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(245, 158, 11, 0.2);
  transform: translateY(-4px);
}

.contact__card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--white);
}

.contact__role {
  font-size: 0.85rem;
  color: var(--slate-light);
  margin-bottom: 20px;
}

.contact__link {
  display: block;
  color: var(--amber);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 0;
  transition: color var(--transition);
}

.contact__link:hover {
  color: #fbbf24;
}

.contact__link--linkedin {
  color: var(--slate-light);
}

.contact__link--linkedin:hover {
  color: var(--white);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--navy);
  color: var(--slate);
  font-size: 0.85rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .nav__list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: flex-start;
  }

  .nav__list--open {
    right: 0;
  }

  .burger {
    display: flex;
  }

  .about__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .profile__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .profile__grid--reverse .profile__image {
    order: 0;
  }

  .profile__image {
    max-width: 240px;
    margin: 0 auto;
  }

  .expertises__grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 64px 0;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }

  .expertises__grid {
    grid-template-columns: 1fr;
  }

  .profile__skills {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .references__grid {
    gap: 10px;
  }

  .ref-item {
    font-size: 0.85rem;
    padding: 10px 18px;
  }
}
