@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300;1,9..40,400&display=swap');

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #FAF8F5;
  color: #1C1917;
  line-height: 1.8;
  padding: 60px 30px;
}

.container {
  max-width: 700px;
  margin: 0 auto;
}

/* Navigation */
nav {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  gap: 28px;
  margin-bottom: 80px;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

nav a {
  color: #1C1917;
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.2s, text-decoration-color 0.2s;
}

nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

nav a.active {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Typography */
h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(56px, 10vw, 80px);
  font-weight: 400;
  margin-bottom: 50px;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 400;
  margin: 60px 0 24px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

p {
  font-size: 17px;
  line-height: 1.75;
  color: #1C1917;
  margin-bottom: 24px;
}

ul {
  margin: 0 0 28px 18px;
}

li {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 12px;
}

/* Projects layout */
.projects-container {
  max-width: 780px;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
  gap: 16px;
  align-items: start;
}

.project-text {
  max-width: 440px;
}

.project-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.project-dates {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #78716C;
  margin: 0;
}

.project-company {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
  color: #1C1917;
}

.project-company a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}

.project-company a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.project-text p {
  font-size: 16px;
  color: #57534E;
  margin-bottom: 0;
}

.project-media {
  display: flex;
  justify-content: flex-end;
}

.project-image {
  width: 220px;
  height: 150px;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  background: linear-gradient(135deg, #F3F1ED 0%, #E5E2DD 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
}

.project-image-lago {
  background: linear-gradient(135deg, #E7F0FF 0%, #C7D7FF 100%);
}

.project-image-co2 {
  background: linear-gradient(135deg, #E9F5EC 0%, #CBE8D2 100%);
}

.project-image-dataiku {
  background: linear-gradient(135deg, #F2EFFB 0%, #D8D1F0 100%);
}

.project-image-french {
  background: linear-gradient(135deg, #FFF0F0 0%, #FFDCDC 100%);
}

.project-logo {
  max-width: 72%;
  max-height: 84px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.project-logo-faccsf {
  max-height: 94px;
  max-width: 80%;
}

a {
  color: #1C1917;
  text-decoration: underline;
  text-decoration-color: #E7E5E0;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.3s;
}

a:hover {
  text-decoration-color: #1C1917;
}

.floating-menu {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(244, 244, 244, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0 6px;
  margin: 0;
  height: 46px;
  border-radius: 46px;
  box-shadow: 0 6px 36px rgba(0,0,0,0.16);
  border: 1px solid rgba(255, 255, 255, 0.7);
  text-wrap-mode: nowrap;
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  gap: 6px;
  min-width: 240px;
  position: fixed;
  justify-content: center;
}

.floating-menu-indicator {
  position: absolute;
  top: -1px;
  left: 0;
  height: 46px;
  width: 86px;
  background: #ffffff;
  border-radius: 46px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.15);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  pointer-events: none;
}

.floating-menu a {
  text-decoration: none;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  height: 46px;
  line-height: 43px;
  color: #434343;
  padding: 0 18px;
  margin: 0;
  border-radius: 46px;
  position: relative;
  z-index: 1;
  transition: color 0.5s;
}

.floating-menu a:first-child {
  margin-left: 0;
  padding-left: 18px;
}

.floating-menu a:hover {
  color: #2E2E2E;
  text-decoration: none;
}

.floating-menu a.active {
  color: #000;
}

/* Image */
.profile-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 0 32px;
  display: block;
  border-radius: 4px;
}

.profile-section {
  display: block;
  margin-top: 16px;
}

/* Contact */
.contact {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #E7E5E0;
}

.contact p {
  font-size: 18px;
  font-style: italic;
  font-family: 'DM Serif Display', Georgia, serif;
}

/* Divider */
hr {
  border: none;
  border-top: 1px solid #E7E5E0;
  margin: 80px 0;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 40px 20px;
  }

  .projects-container {
    max-width: 100%;
  }

  .project {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-text {
    max-width: none;
  }

  .project-media {
    justify-content: flex-start;
  }

  .project-image {
    width: 100%;
    max-width: 280px;
    height: 160px;
  }

  nav {
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
  }

  .floating-menu {
    bottom: 16px;
  }

  h1 {
    margin-bottom: 32px;
  }

  h2 {
    margin: 44px 0 18px;
  }
}

@media (max-width: 480px) {
  .project-image {
    height: 140px;
  }

  .project-company {
    font-size: 22px;
  }

  nav {
    gap: 12px;
  }

  .floating-menu {
    bottom: 14px;
  }
}
