:root {
  /* Colors - Modern Turquoise-Teal adapted for harmony */
  --primary: #20b2aa;
  /* Light Turquoise for buttons/highlights */
  --primary-dark: #2c6566;
  /* Deep Teal background from previous step */
  --primary-light: #e0f2f1;
  --accent: #ff7f50;
  /* Coral for a modern spark */
  --accent-light: #fff5f2;
  --text-rich: #0d4d4b;
  --text-standard: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --soft-green: #f8fafc;

  /* Typography */
  --header-font: 'Montserrat', sans-serif;
  --body-font: 'Lato', sans-serif;

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --glass: rgba(255, 255, 255, 0.8);
  --glass-blur: blur(12px);

  /* Transitions */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.4s var(--ease-in-out);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--text-standard);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--header-font);
  font-weight: 700;
  color: var(--text-rich);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Layout Parts */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation - Modern Glassmorphism Overlay */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  z-index: 1000;
  padding: 0;
  /* Removing padding so logo fills the height */
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  position: relative;
}

.logo-img {
  height: 90px;
  width: auto;
  display: block;
  transition: var(--transition);
  filter: brightness(0);
  /* Makes the entire logo black */
}

header.scrolled .logo-img {
  height: 60px;
  /* Slight shrink on scroll */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-standard);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

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

/* Hero Section - Bold with High-Quality Image Background */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  background-image: linear-gradient(to right, rgba(44, 101, 102, 0.95), rgba(44, 101, 102, 0.2)), url('../assets/portrait.png');
  background-color: #2c6566;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  color: white;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: white;
  max-width: 850px;
  margin-bottom: 2rem;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.hero .btn-primary {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  box-shadow: 0 10px 15px -3px rgba(14, 116, 144, 0.4);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-sm);
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Advanced Grid & Cards */
section {
  padding: 8rem 0;
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
}

.section-head h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-head h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--accent);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.card {
  background: white;
  padding: 3.5rem 2.5rem;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary);
  opacity: 0.1;
  transition: var(--transition);
}

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

.card:hover::before {
  opacity: 1;
}

.card h4 {
  font-size: 1.5rem;
  margin-top: 1rem;
}

/* Images & About Section Highlights */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.img-frame {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.experience-tag {
  position: absolute;
  bottom: 2rem;
  right: -1rem;
  background: var(--accent);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-lg);
}

/* Reveal Animations Classes */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Footer - Clean Dark Aesthetic */
footer {
  background: var(--primary-dark);
  color: white;
  padding: 3rem 0 1.5rem;
  /* Reduced for smaller height */
  text-align: center;
  /* Center all elements */
}

footer h4 {
  color: var(--primary-light);
  margin-bottom: 1rem;
  /* Reduced to compact height */
}

footer a {
  opacity: 0.8;
}

footer a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer-bottom {
  margin-top: 2rem;
  /* Reduced from 5rem */
  padding-top: 1.5rem;
  /* Reduced from 2rem */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 70vh;
    padding: 10rem 0 6rem;
  }
}

/* RGPD Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--text-rich);
  color: var(--white);
  padding: 1.5rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 2px solid var(--primary);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  text-align: center;
  max-width: 800px;
}

.cookie-banner-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-banner-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cookie-banner-buttons .btn {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
}

.cookie-banner-buttons .btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  background: transparent;
}

.cookie-banner-buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    justify-content: space-between;
    padding: 1.5rem 3rem;
  }

  .cookie-banner-content {
    text-align: left;
  }
}