/* ============================================
   Céline Berthelin — Portfolio
   Design tokens & base styles
   ============================================ */

@font-face {
  font-family: 'GT Pressura Trial VF';
  src: url('../fonts/GT-Pressura-Trial-VF.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Colors */
  --primary-a: #070079;
  --primary-b: #ffffff;
  --bg-cream: #f5f2f0;
  --bg-blue: #070079;
  --accent-sky: #ade9e8;
  --accent-lemon: #cef9ad;
  --accent-mint: #ade9d2;
  --accent-sakura: #fbcfff;
  --shadow-light: 0px 4px 4px rgba(7, 0, 121, 0.04);
  --shadow-card: 2px 6px 8px rgba(7, 0, 121, 0.1);

  /* Typography */
  --font-heading: 'GT Pressura Trial VF', 'Georgia', serif;
  --font-body: 'Archivo', sans-serif;

  /* Spacing */
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 32px;
  --space-xl: 64px;
  --space-xxl: 104px;
}

/* ============================================
   Reset & base
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--primary-a);
  background-color: var(--bg-cream);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.mobile-only {
  display: none;
}

/* ============================================
   Header
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 127px;
  background: transparent;
  transition: transform 0.4s ease;
}

.header--hidden {
  transform: translateY(-100%);
}

.header__logo {
  position: absolute;
  top: 24px;
  left: 24px;
  height: 36px;
  display: flex;
  align-items: center;
}

.header__nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 401px;
}

.header__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.header__links {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.nav-pill {
  display: inline-block;
  padding: 4px 8px 6px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.32px;
  line-height: 1.3;
  transition: opacity 0.3s;
}

.nav-pill:hover {
  opacity: 0.7;
}

.nav-pill--lemon { background: var(--accent-lemon); }
.nav-pill--mint { background: var(--accent-mint); }
.nav-pill--sky { background: var(--accent-sky); }
.nav-pill--sakura { background: var(--accent-sakura); }

.header__contact {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-a);
  cursor: pointer;
  transition: opacity 0.3s;
}

.header__contact:hover {
  opacity: 0.8;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 40px 60px;
  gap: 0;
}

.hero__image-wrapper {
  max-width: 713px;
  width: 100%;
}

.hero__image {
  width: 100%;
  height: auto;
}

.hero__tagline {
  font-weight: 300;
  font-size: 20px;
  text-align: center;
  max-width: 600px;
  letter-spacing: 0.32px;
  line-height: 1.5;
}

.hero__cta {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 24px;
  border: 1px solid var(--primary-a);
  border-radius: 84px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1.28px;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.hero__cta:hover {
  background: var(--primary-a);
  color: var(--primary-b);
  transform: translateY(-2px);
}

/* ============================================
   Projects
   ============================================ */

.projects {
  padding: 40px 0;
  background: #ffffff;
}

.project {
  position: relative;
  max-width: 1156px;
  margin: 0 auto 120px;
  min-height: 900px;
  padding: 0 40px;
}

.project__gallery {
  position: relative;
  width: 100%;
  height: 973px;
}

.project__img {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.project__img:hover {
  transform: scale(1.02);
}

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

/* LETEC gallery layout */
.project--letec .project__img--1 {
  right: 0;
  top: 0;
  width: 212px;
  height: 377px;
}

.project--letec .project__img--2 {
  left: 0;
  top: 316px;
  width: 280px;
  height: 537px;
}

.project--letec .project__img--3 {
  right: 0;
  top: 588px;
  width: 684px;
  height: 385px;
}

/* Audiens gallery layout */
.project--audiens .project__img--1 {
  left: 116px;
  top: 0;
  width: 451px;
  height: 282px;
}

.project--audiens .project__img--2 {
  right: 0;
  top: 316px;
  width: 212px;
  height: 406px;
}

.project--audiens .project__img--3 {
  left: 0;
  top: 588px;
  width: 684px;
  height: 444px;
}

/* Rayon gallery layout */
.project--rayon .project__img {
  box-shadow: none;
}

.project--rayon .project__img--1 {
  right: 0;
  top: 148px;
  width: 333px;
  height: 333px;
  background: white;
}

.project--rayon .project__img--2 {
  left: 0;
  top: 316px;
  width: 212px;
  height: 426px;
}

.project--rayon .project__img--3 {
  right: 0;
  top: 588px;
  width: 684px;
  height: 444px;
  display: flex;
  gap: 10px;
}

/* Project info card */
.project__info {
  position: absolute;
  top: 345px;
  left: 50%;
  transform: translateX(-50%);
  width: 448px;
  text-align: center;
  z-index: 2;
  padding-top: 32px;
}

.project__title {
  font-family: var(--font-heading);
  font-size: 68px;
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.project__meta {
  margin-bottom: 24px;
}

.project__meta-bold {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.8px;
  line-height: 1.3;
}

.project__meta-light {
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.32px;
  line-height: 1.3;
}

.project__links {
  display: flex;
  gap: 23px;
  justify-content: center;
}

.project__link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  width: 211px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project__link:hover {
  transform: translateY(-4px);
  box-shadow: 0px 8px 16px rgba(7, 0, 121, 0.1);
}

.project__link--sky { background: var(--accent-sky); }
.project__link--lemon { background: var(--accent-lemon); }
.project__link--sakura { background: var(--accent-sakura); }

.project__link-label {
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.32px;
  line-height: 1.3;
}

.project__link-cta {
  font-weight: 500;
  font-size: 16px;
}

.project__link-cta em {
  text-decoration: underline;
  font-style: italic;
  font-weight: 500;
}

.arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.project__link:hover .arrow {
  transform: translateX(4px);
}

/* ============================================
   Presentation / Skills
   ============================================ */

.presentation {
  max-width: 920px;
  margin: 0 auto;
  padding: 80px 40px 120px;
  text-align: center;
}

.presentation__header {
  margin-bottom: 60px;
}

.presentation__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 32px;
}

.presentation__subtitle {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.8px;
  line-height: 1.3;
  max-width: 573px;
  margin: 0 auto;
}

.presentation__label {
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.32px;
  margin-bottom: 16px;
}

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

.skills__column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-card {
  background: var(--primary-b);
  border-radius: 16px;
  padding: 16px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.skill-card__title {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.skill-card__desc {
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.32px;
  line-height: 1.3;
}

/* ============================================
   Contact
   ============================================ */

.contact {
  padding: var(--space-xxl) 40px var(--space-xl);
  text-align: center;
}

.contact__content {
  max-width: 464px;
  margin: 0 auto;
}

.contact__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-m);
}

.contact__text {
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1.5;
  margin-bottom: var(--space-m);
}

.contact__email {
  display: inline-block;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  text-decoration: underline;
  line-height: 1.5;
  transition: opacity 0.3s;
}

.contact__email:hover {
  opacity: 0.7;
}

.contact__icon {
  margin-top: var(--space-l);
  display: flex;
  justify-content: center;
}

.contact__envelope {
  width: 180px;
  height: auto;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--bg-blue);
  color: var(--primary-b);
  text-align: center;
  padding: 60px 40px var(--space-xl);
  border-radius: 16px 16px 0 0;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 28px;
  letter-spacing: 4.85px;
  font-weight: 300;
  margin-bottom: var(--space-m);
}

.footer__credit {
  font-weight: 300;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1.5;
}

/* ============================================
   Hero entrance animation
   ============================================ */

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__image-wrapper {
  animation: hero-enter 1s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.hero__tagline {
  animation: hero-enter 1s 0.2s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.hero__cta {
  animation: hero-enter 1s 0.4s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* ============================================
   Scroll reveal animations
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* Project info (text & containers) — appear first */
.project__info {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.project.in-view .project__info {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Project images — appear after 0.8s delay */
.project__img {
  opacity: 0;
  transition: opacity 1.4s ease,
              box-shadow 0.3s;
}

.project__img--1 { transition-delay: 0.2s; }
.project__img--2 { transition-delay: 0.35s; }
.project__img--3 { transition-delay: 0.5s; }

.project.in-view .project__img {
  opacity: 1;
}

/* Skill cards stagger */
.skill-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.3s;
}

.skills.in-view .skill-card:nth-child(1) { transition-delay: 0.05s; }
.skills.in-view .skill-card:nth-child(2) { transition-delay: 0.15s; }
.skills.in-view .skill-card:nth-child(3) { transition-delay: 0.25s; }

.skills.in-view .skill-card {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Mobile — 375px
   ============================================ */

@media (max-width: 768px) {
  .header {
    height: auto;
    padding: 16px 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .header__logo {
    position: static;
    height: auto;
  }

  .header__logo svg {
    width: 200px;
    height: auto;
  }

  .header__nav {
    position: static;
    transform: none;
    width: auto;
  }

  .header__title {
    font-size: 20px;
  }

  .header__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .header__contact {
    top: 16px;
    right: 16px;
  }

  .mobile-only {
    display: block;
  }

  .hero {
    padding: 32px 0;
    gap: 16px;
  }

  .hero__image-wrapper {
    width: 100%;
    max-width: 375px;
  }

  .hero__tagline {
    font-size: 16px;
    padding: 0 20px;
  }

  .hero__cta {
    margin-top: 0;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 16px;
    letter-spacing: 1.28px;
    line-height: 1.3;
  }

  /* Projects — stack layout for mobile */
  .project {
    min-height: auto;
    margin-bottom: 80px;
    padding: 0 20px;
  }

  .project__gallery {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .project__img {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
  }

  /* Mobile: show only the first image per project */
  .project--letec .project__img--1,
  .project--letec .project__img--2 {
    display: none;
  }

  .project--audiens .project__img--2,
  .project--audiens .project__img--3 {
    display: none;
  }

  /* Rayon: show logo on mobile, hide screens */
  .project--rayon .project__img--1 {
    display: block !important;
    box-shadow: none;
  }

  .project--rayon .project__img--2,
  .project--rayon .project__img--3 {
    display: none;
  }

  .project__img img {
    height: auto;
  }

  .project__info {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    padding-top: 24px;
  }

  .project.in-view .project__info {
    transform: none;
  }

  .project__title {
    font-size: 40px;
  }

  .project__links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .project__link {
    width: 100%;
  }

  /* Presentation */
  .presentation {
    padding: 40px 20px 60px;
  }

  .presentation__title {
    font-size: 32px;
  }

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

  /* Contact */
  .contact {
    padding: 60px 20px 40px;
  }

  .contact__text {
    font-size: 16px;
  }

  .contact__email {
    font-size: 16px;
  }

  /* Footer */
  .footer {
    padding: 40px 20px;
  }

  .footer__logo {
    font-size: 22px;
  }

  .footer__credit {
    font-size: 16px;
  }
}
