/* ===================================================================
   Modern CV Hub - Inspired by Start Bootstrap Personal
   Mobile-First | Vanilla CSS | No External Dependencies
   =================================================================== */

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

:root {
  /* Colors - Modern palette with gradients */
  --primary: #1e40af;
  --primary-light: #3b82f6;
  --primary-dark: #1e3a8a;
  --secondary: #8b5cf6;
  --secondary-light: #a78bfa;
  --accent: #ec4899;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-lighter: #f3f4f6;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Spacing - Mobile first */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Typography - Mobile first */
  --font-base: 15px;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Container */
  --container-max: 1100px;
}

@media (min-width: 768px) {
  :root {
    --font-base: 16px;
    --spacing-lg: 2rem;
    --spacing-xl: 2.5rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;
  }
}

/* Smooth scroll with reduced motion support */

/* ===================================================================
   FIX 3: Supprimer overflow-x (no horizontal scroll)
   =================================================================== */
html,
body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: var(--font-base);
  line-height: 1.6;
  color: var(--text-primary);
  /* Background image sur tout le site - 100% largeur pour voir le phare */
  background-image: url("assets/img/beacon_home.webp");
  background-size: 100% auto;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  /* Couleur de fond pour remplir les espaces autour de l'image */
  background-color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Overlay "fumé" global sur toute la page */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.75) 0%,
    rgba(30, 64, 175, 0.65) 30%,
    rgba(30, 64, 175, 0.6) 50%,
    rgba(139, 92, 246, 0.55) 70%,
    rgba(15, 23, 42, 0.7) 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* Tout le contenu au-dessus de l'overlay */
body > * {
  position: relative;
  z-index: 1;
}

/* Mobile: background scroll au lieu de fixed */
@media (max-width: 767px) {
  body {
    background-attachment: scroll;
    background-size: auto 100%;
    background-position: center top;
  }

  body::before {
    position: absolute;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
  line-height: 1.2;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

h1 {
  font-size: var(--text-3xl);
}
h2 {
  font-size: var(--text-2xl);
}
h3 {
  font-size: var(--text-xl);
}
h4 {
  font-size: var(--text-lg);
}
h5 {
  font-size: var(--text-base);
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
}

a {
  color: rgba(139, 92, 246, 0.9);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: rgba(167, 139, 250, 1);
}
a:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.8);
  outline-offset: 2px;
  border-radius: 2px;
}

strong {
  font-weight: 600;
  color: white;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--spacing-xl);
  }
}

/* ===================================================================
   Header & Navigation
   =================================================================== */
.site-header {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 50%,
    var(--secondary) 100%
  );
  color: white;
  padding: var(--spacing-lg) 0 0;
  box-shadow: var(--shadow-lg);
}

.site-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .site-title {
    font-size: var(--text-4xl);
  }
}

.site-tagline {
  text-align: center;
  font-size: var(--text-sm);
  opacity: 0.95;
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
}

/* Tab Pills - Modern compact design */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  padding: 0 var(--spacing-md) var(--spacing-md);
  justify-content: center;
  max-width: 100%;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: var(--radius-full);
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
  max-width: 100%;
}

/* Onglets plus compacts sur mobile */
@media (max-width: 640px) {
  .tab-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    min-height: 40px;
  }
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.tab-btn:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.tab-btn.active {
  background: white;
  color: var(--primary);
  border-color: white;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .tabs-nav {
    padding: 0 0 var(--spacing-lg);
  }
  .tab-btn {
    font-size: var(--text-base);
    padding: 0.75rem 1.5rem;
  }
}

/* ===================================================================
   Tab Content
   =================================================================== */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================================
   HOME SECTION (Split page avec fond d'écran)
   =================================================================== */
/* Background avec image */
.home-split-bg {
  position: relative;
  min-height: 100vh;
  background-image: url("assets/img/beacon_home.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

/* Overlay sombre pour lisibilité */
.home-split-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.85) 50%,
    rgba(30, 64, 175, 0.75) 100%
  );
  z-index: 1;
}

/* Container contenu */
.home-split-bg .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Contenu principal */
.home-split-content {
  max-width: 700px;
  padding: var(--spacing-2xl) 0;
}

@media (min-width: 768px) {
  .home-split-content {
    max-width: 750px;
    padding: var(--spacing-3xl) 0;
  }
}

@media (min-width: 1024px) {
  .home-split-content {
    max-width: 800px;
  }
}

/* Titre */
.home-split-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: white;
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .home-split-title {
    font-size: var(--text-4xl);
  }
}

/* Baseline neutre */
.home-split-baseline {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  margin-bottom: var(--spacing-xl);
  letter-spacing: 0.025em;
}

/* Bloc texte complet */
.home-split-text {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
  .home-split-text {
    padding: var(--spacing-xl);
  }
}

.home-split-text p {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
  font-size: var(--text-base);
}

.home-split-text p:last-child {
  margin-bottom: 0;
}

.home-split-text strong {
  color: white;
  font-weight: 600;
}

/* CTAs (2 boutons) */
.home-split-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-2xl);
}

@media (min-width: 640px) {
  .home-split-ctas {
    flex-direction: row;
    gap: var(--spacing-md);
  }
}

.home-split-ctas .btn-primary,
.home-split-ctas .btn-secondary {
  flex: 1;
  min-width: 0;
  justify-content: center;
  text-align: center;
}

/* 4 cartes navigation empilées */
.home-split-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-sm);
}

@media (min-width: 640px) {
  .home-split-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
}

/* Carte individuelle */
.home-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  min-height: 90px;
}

.home-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

.home-card:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.home-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: white;
  margin: 0;
}

.home-card-desc {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.5;
}

.home-card-arrow {
  position: absolute;
  top: 50%;
  right: var(--spacing-md);
  transform: translateY(-50%);
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.home-card:hover .home-card-arrow {
  color: white;
  transform: translateY(-50%) translateX(4px);
}

/* Responsive mobile: background fixed désactivé */
@media (max-width: 767px) {
  .home-split-bg {
    background-attachment: scroll;
  }

  .home-split-overlay {
    background: linear-gradient(
      to bottom,
      rgba(15, 23, 42, 0.94) 0%,
      rgba(30, 64, 175, 0.88) 100%
    );
  }
}

/* ===================================================================
   SECTION HERO (Big hero for each section)
   =================================================================== */
.section-hero {
  /* Plus de gradient, juste un overlay subtil pour lisibilité */
  background: transparent;
  color: white;
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

/* Overlay léger pour augmenter lisibilité du texte */
.section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.75) 0%,
    rgba(15, 23, 42, 0.65) 40%,
    rgba(30, 64, 175, 0.55) 70%,
    rgba(30, 64, 175, 0.45) 100%
  );
  z-index: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .section-hero {
    padding: var(--spacing-3xl) 0;
  }
}

.section-hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .section-hero-content {
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-2xl);
  }
}

.section-hero-content--simple {
  flex-direction: column;
  text-align: center;
}

.section-hero-text {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .section-hero-text {
    text-align: left;
  }
}

.section-hero-content--simple .section-hero-text {
  text-align: center;
}

.section-hero-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.025em;
  color: white;
}

@media (min-width: 768px) {
  .section-hero-title {
    font-size: var(--text-4xl);
  }
}

.section-hero-subtitle {
  font-size: var(--text-base);
  font-weight: 300;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .section-hero-subtitle {
    font-size: var(--text-lg);
  }
}

.section-hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

@media (min-width: 640px) {
  .section-hero-cta-group {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .section-hero-cta-group {
    justify-content: flex-start;
  }
}

.section-hero-content--simple .section-hero-cta-group {
  justify-content: center;
}

.section-hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  order: -1;
}

@media (min-width: 768px) {
  .section-hero-image {
    order: 0;
  }
}

.section-hero-image img {
  max-width: 280px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-2xl);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@media (min-width: 768px) {
  .section-hero-image img {
    max-width: 400px;
  }
}

/* ===================================================================
   BD HERO SPECIFIC LAYOUT (Mobile-first 2-column)
   =================================================================== */
/* BD Hero: Position absolue pour l'image dans le coin bas-droit */
.section-hero--bd {
  position: relative;
  padding: var(--spacing-xl) 0 0 0 !important;
  /* Plus de background ici, utilise le body background global */
}

.section-hero--bd .container {
  position: relative;
  overflow: visible;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  z-index: 1;
}

.section-hero--bd .section-hero-content {
  position: relative;
  flex-direction: row;
  align-items: flex-end;
  min-height: 500px;
  gap: 0;
}

.section-hero--bd .section-hero-text {
  flex: 1;
  max-width: 60%;
  min-width: 0;
  text-align: left;
  padding-right: 1.5rem;
  padding-bottom: var(--spacing-xl);
  align-self: center;
  z-index: 3;
  position: relative;
}

.section-hero--bd .section-hero-cta-group {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.section-hero--bd .section-hero-cta-group .btn-primary,
.section-hero--bd .section-hero-cta-group .btn-secondary {
  min-width: 0;
  max-width: 100%;
}

/* FIX 1 & 2: Image énorme bottom-right + halo effect */
.section-hero--bd .section-hero-image {
  position: absolute;
  right: -12px;
  bottom: -12px;
  z-index: 2;
  margin: 0;
  padding: 0;
  line-height: 0;
  pointer-events: none;
}

/* FIX 2: Halo/glow derrière l'image */
.section-hero--bd .section-hero-image::before {
  content: "";
  position: absolute;
  inset: -80px -120px -80px -120px;
  background: radial-gradient(
    circle at 35% 45%,
    rgba(139, 92, 246, 0.35),
    rgba(30, 64, 175, 0.25) 40%,
    rgba(0, 0, 0, 0) 65%
  );
  filter: blur(24px);
  opacity: 0.85;
  z-index: -1;
}

.section-hero--bd .section-hero-image img {
  display: block;
  width: auto;
  height: min(68vh, 600px);
  object-fit: contain;
  object-position: bottom right;
  border-radius: 0;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}

/* Mobile small: image encore plus imposante */
@media (max-width: 520px) {
  .section-hero--bd .section-hero-text {
    max-width: 58%;
    padding-right: 1rem;
    padding-bottom: var(--spacing-lg);
  }

  .section-hero--bd .section-hero-image img {
    height: min(72vh, 550px);
  }
}

/* Tablet/Desktop: image ÉNORME et imposante */
@media (min-width: 768px) {
  .section-hero--bd {
    padding: var(--spacing-3xl) 0 0 0 !important;
  }

  .section-hero--bd .section-hero-content {
    min-height: 650px;
  }

  .section-hero--bd .section-hero-text {
    max-width: 52%;
    padding-right: var(--spacing-2xl);
    padding-bottom: var(--spacing-3xl);
  }

  .section-hero--bd .section-hero-image img {
    height: 85vh;
    max-height: none;
    border-top-left-radius: var(--radius-xl);
  }

  .section-hero--bd .section-hero-image::before {
    inset: -120px -160px -120px -160px;
    filter: blur(35px);
  }
}

/* Desktop large: image MAXIMALE (plein écran) */
@media (min-width: 1024px) {
  .section-hero--bd .section-hero-content {
    min-height: 720px;
  }

  .section-hero--bd .section-hero-text {
    max-width: 50%;
  }

  .section-hero--bd .section-hero-image img {
    height: 90vh;
  }

  .section-hero--bd .section-hero-image::before {
    inset: -140px -180px -140px -180px;
    filter: blur(40px);
  }
}

/* Desktop XL (1440px+): image ÉNORME avec width minimum */
@media (min-width: 1440px) {
  .section-hero--bd .section-hero-content {
    min-height: 800px;
  }

  .section-hero--bd .section-hero-text {
    max-width: 48%;
  }

  .section-hero--bd .section-hero-image img {
    height: 95vh;
    min-width: 550px;
  }

  .section-hero--bd .section-hero-image::before {
    inset: -160px -200px -160px -200px;
    filter: blur(45px);
  }
}

/* Desktop XXL (1920px+): image MAXIMALE absolue */
@media (min-width: 1920px) {
  .section-hero--bd .section-hero-content {
    min-height: 900px;
  }

  .section-hero--bd .section-hero-text {
    max-width: 45%;
  }

  .section-hero--bd .section-hero-image img {
    height: 100vh;
    min-width: 650px;
  }

  .section-hero--bd .section-hero-image::before {
    inset: -180px -220px -180px -220px;
    filter: blur(50px);
  }
}

/* PrecurSys Placeholder */
.precursys-placeholder {
  width: 280px;
  height: 200px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: var(--radius-2xl);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .precursys-placeholder {
    width: 400px;
    height: 280px;
  }
}

.placeholder-content {
  text-align: center;
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-sm);
}

.placeholder-content p {
  font-size: var(--text-xl);
  font-weight: 600;
  color: white;
  opacity: 0.9;
  margin: 0;
}

/* Badge (still used in section heroes) */
.badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.15) 100%
  );
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-md);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===================================================================
   Content Sections
   =================================================================== */
main {
  padding-bottom: var(--spacing-3xl);
}

.content-section {
  margin: var(--spacing-2xl) 0;
}

.section-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 3px solid rgba(139, 92, 246, 0.8);
  display: inline-block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===================================================================
   Buttons
   =================================================================== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 44px;
  text-decoration: none;
  font-family: inherit;
}

@media (min-width: 640px) {
  .btn-primary,
  .btn-secondary {
    padding: 0.875rem 2rem;
    font-size: var(--text-base);
    min-height: 48px;
  }
}

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

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===================================================================
   Cards & Boxes
   =================================================================== */
.text-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1.8;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.text-box p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.text-box.highlight {
  border-left: 4px solid rgba(139, 92, 246, 0.8);
  background: rgba(139, 92, 246, 0.15);
}

.skill-card,
.activity-card,
.info-card,
.project-card,
.document-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.skill-card:hover,
.activity-card:hover,
.project-card:hover,
.document-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.35);
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.skill-card h4,
.activity-card h4,
.project-card h4 {
  color: white;
  margin-bottom: var(--spacing-sm);
  font-size: var(--text-lg);
  font-weight: 600;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.skill-card p,
.activity-card p,
.info-card p,
.project-card p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .skills-grid.compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Activity Grid */
.activity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 768px) {
  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================================================
   Experience Cards - Premium design
   =================================================================== */
.experience-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.3s ease;
}

.experience-card:hover {
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

.experience-meta {
  background: rgba(139, 92, 246, 0.2);
  padding: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.date-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.experience-title {
  font-size: var(--text-lg);
  font-weight: 800;
  color: white;
  margin-bottom: var(--spacing-xs);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.experience-company {
  font-size: var(--text-base);
  color: white;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.location {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 1);
  font-style: italic;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.experience-body {
  padding: var(--spacing-lg);
}

.experience-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.experience-body li {
  padding-left: 1.5rem;
  margin-bottom: var(--spacing-sm);
  position: relative;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.experience-body li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: rgba(139, 92, 246, 0.9);
  font-weight: bold;
}

.note {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
}

/* ===================================================================
   Info Cards
   =================================================================== */
.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}

@media (min-width: 640px) {
  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-card {
  text-align: center;
  padding: var(--spacing-xl);
}

.info-card strong {
  display: block;
  font-size: var(--text-lg);
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
}

/* ===================================================================
   Document & Project Cards
   =================================================================== */
.document-grid,
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .document-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .document-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.document-card {
  text-align: center;
  padding: var(--spacing-xl);
}

.doc-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.document-card h4 {
  margin-bottom: var(--spacing-md);
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.document-card p {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.document-card .btn-secondary {
  margin-top: var(--spacing-md);
}

/* ===================================================================
   Tech Tags
   =================================================================== */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.tag {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--secondary-light) 100%
  );
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.tag:hover {
  transform: translateY(-2px);
}

/* ===================================================================
   Contact CTA
   =================================================================== */
.contact-cta {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-2xl);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
  text-align: center;
  border: 2px solid rgba(139, 92, 246, 0.5);
}

.contact-cta h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--spacing-lg);
  color: white;
}

.contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.contact-links a {
  color: rgba(167, 139, 250, 1);
  transition: color 0.2s ease;
}

.contact-links a:hover {
  color: white;
  text-decoration: underline;
}

.location {
  color: var(--text-secondary);
  font-size: var(--text-base);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: var(--spacing-2xl);
  border-radius: var(--radius-2xl);
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.cta-banner h3 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.cta-banner p {
  font-size: var(--text-lg);
  line-height: 1.8;
  margin-bottom: 0;
}

.cta-banner a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
}

.cta-banner a:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--spacing-xl) 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: var(--spacing-3xl);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  margin: 0;
}

/* ===================================================================
   Text Utilities
   =================================================================== */
.text-note {
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-top: var(--spacing-lg);
  font-size: var(--text-sm);
}

/* ===================================================================
   Print Styles
   =================================================================== */
@media print {
  @page {
    size: A4;
    margin: 1.5cm;
  }

  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 10pt;
    line-height: 1.4;
  }

  /* Hide navigation and non-content elements */
  .site-header,
  .tabs-nav,
  .site-footer,
  .btn-primary,
  .btn-secondary,
  .badge,
  .home-nav-cards {
    display: none !important;
  }

  /* Show only active tab content */
  .tab-content {
    display: none !important;
  }

  .tab-content.active {
    display: block !important;
  }

  /* Section hero in print */
  .section-hero {
    background: transparent !important;
    padding: 0.5cm 0;
    border-bottom: 2pt solid black;
    margin-bottom: 0.5cm;
  }

  .section-hero-image {
    display: none !important;
  }

  .section-hero-title {
    font-size: 16pt;
    color: black !important;
  }

  .section-hero-subtitle {
    font-size: 10pt;
    color: black !important;
    opacity: 1;
  }

  .section-hero-cta-group {
    display: none !important;
  }

  .precursys-placeholder {
    display: none !important;
  }

  /* Content styles */
  .section-title {
    font-size: 12pt;
    color: black !important;
    border-bottom: 1pt solid black;
    padding-bottom: 0.2cm;
    margin-bottom: 0.4cm;
    page-break-after: avoid;
  }

  .skill-card,
  .experience-card,
  .info-card,
  .project-card,
  .document-card,
  .activity-card {
    border: 0.5pt solid #999;
    padding: 0.3cm;
    page-break-inside: avoid;
    box-shadow: none;
  }

  .experience-card {
    margin-bottom: 0.4cm;
  }

  .date-badge {
    background: transparent !important;
    color: black !important;
    border: 0.5pt solid black;
    padding: 0.1cm 0.3cm;
  }

  a {
    text-decoration: none;
    color: black !important;
  }

  .contact-links a::after {
    content: " (" attr(href) ")";
    font-size: 8pt;
  }
}
