/* ===================================
   GABRIELLE PETIT — Portfolio
   Clean & Minimal
   =================================== */

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a2e;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: #0891b2;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #066d87;
}

ul {
  list-style: none;
}

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

.section {
  padding: 80px 0;
}

.section-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 48px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: #0891b2;
  margin-top: 12px;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: #0891b2;
  color: #ffffff;
  border-color: #0891b2;
}

.btn-primary:hover {
  background: #066d87;
  border-color: #066d87;
}

.btn-outline {
  background: transparent;
  color: #0891b2;
  border-color: #0891b2;
}

.btn-outline:hover {
  background: #0891b2;
  color: #ffffff;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eaeaea;
}

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

.logo {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0891b2;
  transition: width 0.2s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: #0891b2;
}

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

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Hero */
.hero {
  padding-top: 144px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0891b2;
  background: rgba(8, 145, 178, 0.08);
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: 1.15rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 8px;
}

.hero-lang {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 4px;
}

.hero-location {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 32px;
}

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

.hero-image img {
  border-radius: 50%;
  object-fit: cover;
  width: 280px;
  height: 280px;
  border: 4px solid #f0f0f0;
}

/* About */
.about {
  background: #f9fafb;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  max-width: 720px;
}

/* Timeline */
.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 96px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #e0e0e0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 32px 1fr;
  gap: 0;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #0891b2;
  justify-self: center;
  align-self: flex-start;
  margin-top: 6px;
}

.timeline-content {
  padding-left: 16px;
}

.timeline-period {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0891b2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.timeline-content h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.timeline-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  justify-self: center;
  align-self: flex-start;
}

.timeline-org {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
}

.timeline-content ul {
  list-style: disc;
  padding-left: 20px;
}

.timeline-content li {
  font-size: 0.925rem;
  color: #444;
  margin-bottom: 4px;
  line-height: 1.6;
}

/* Education */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.edu-card {
  background: #f9fafb;
  border-radius: 8px;
  padding: 28px;
  border: 1px solid #eaeaea;
  transition: box-shadow 0.2s;
}

.edu-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.edu-period {
  font-size: 0.8rem;
  font-weight: 600;
  color: #0891b2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.edu-card h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.edu-school {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
}

.edu-detail {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.5;
}

/* Skills */
.skills {
  background: #f9fafb;
}

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

.skill-category {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid #eaeaea;
}

.skill-category h3 {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0891b2;
  margin-bottom: 10px;
}

.skill-category p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

/* Languages */
.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 500px;
}

.lang-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #eaeaea;
}

.lang-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.lang-level {
  font-size: 0.85rem;
  color: #666;
}

/* Publications */
.pub-group {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0891b2;
  margin-bottom: 8px;
  margin-top: 32px;
}

.pub-group:first-of-type {
  margin-top: 0;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.pub-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 6px;
  transition: background 0.2s;
  text-decoration: none;
}

.pub-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.pub-icon {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(8, 145, 178, 0.08);
}

.pub-item:hover {
  background: #f9fafb;
}

.pub-source {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0891b2;
  min-width: 110px;
}

.pub-title {
  flex: 1;
  font-size: 0.95rem;
  color: #1a1a2e;
}

.pub-date {
  font-size: 0.8rem;
  color: #999;
  white-space: nowrap;
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cert-item {
  padding: 20px 24px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #eaeaea;
}

.cert-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cert-issuer {
  font-size: 0.85rem;
  color: #666;
}

/* Contact */
.contact {
  background: #f9fafb;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: #444;
}

.contact-info strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #0891b2;
  margin-bottom: 4px;
}

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

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
  background: #ffffff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0891b2;
}

.contact-form button {
  align-self: flex-start;
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid #eaeaea;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  font-size: 0.85rem;
  color: #888;
}

.footer-links a {
  font-size: 0.85rem;
  color: #888;
}

.footer-links a:hover {
  color: #0891b2;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 2px;
  margin-left: 24px;
}

.lang-btn {
  background: none;
  border: 1px solid #d0d0d0;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.lang-btn:first-child {
  border-radius: 4px 0 0 4px;
}

.lang-btn:last-child {
  border-radius: 0 4px 4px 0;
}

.lang-btn:only-child {
  border-radius: 4px;
}

.lang-btn:hover {
  color: #555;
  border-color: #bbb;
}

.lang-btn.active {
  background: #0891b2;
  border-color: #0891b2;
  color: #ffffff;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 12px;
  }
  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
    border-bottom: 1px solid #eaeaea;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }

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

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

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    margin: 0 auto;
    width: 200px;
    height: 200px;
  }

  .hero-actions {
    justify-content: center;
  }

  .section {
    padding: 60px 0;
  }

  .edu-grid,
  .skills-grid,
  .cert-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .pub-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .pub-thumb {
    width: 100%;
    height: 160px;
  }

  .pub-icon {
    width: 100%;
    height: 120px;
    font-size: 2.5rem;
  }

  .pub-source {
    min-width: auto;
  }

  .footer .container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
