/* ============================================================
   PORTFOLIO ALBAN CHABALIER — style.css v2
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

/* ── 1. VARIABLES ──────────────────────────────────────────── */
:root {
  --cream:  #FFFBF0;
  --blue:   #3759C8;
  --red:    #FF5E5B;
  --yellow: #FFCE54;
  --dark:   #2D3047;
  --gray:   #555563;
  --white:  #ffffff;
  --shadow-brutal: 6px 6px 0px var(--dark);
  --shadow-hover:  2px 2px 0px var(--dark);
  --border-brutal: 2.5px solid var(--dark);
  --radius-card:   20px;
  --radius-pill:   50px;
  --font:   'Outfit', sans-serif;
  --mono:   'JetBrains Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --nav-height: 72px;
}

/* ── 2. RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background-color: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.7;
}
/* Grid background decoration */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--cream); border-left: 2px solid var(--dark); }
::-webkit-scrollbar-thumb { background-color: var(--blue); border: 2px solid var(--dark); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--red); }
::selection { background: var(--yellow); color: var(--dark); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── 3. NOUVEAU MENU — STYLE "TERMINAL / IDE" ──────────────── */

/* Barre de statut supérieure (comme un OS / IDE) */
.site-statusbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 28px;
  background: #111;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  z-index: 10001;
  font-family: var(--mono);
  font-size: 0.7rem;
}
.statusbar-dots { display: flex; gap: 6px; }
.statusbar-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.statusbar-title {
  color: rgba(255,255,255,0.4);
  flex: 1;
  text-align: center;
  letter-spacing: 1px;
}
.statusbar-clock-sm {
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
}

/* Header principal */
.site-header {
  position: fixed;
  top: 28px; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--dark);
  border-bottom: 3px solid var(--yellow);
  z-index: 10000;
  display: flex;
  align-items: center;
  padding: 0 40px;
  justify-content: space-between;
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* Brand / Logo */
.header-brand {
  display: flex;
  align-items: center;
  gap: 1px;
  text-decoration: none;
  user-select: none;
}
.brand-tag {
  font-family: var(--mono);
  color: var(--yellow);
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.7;
}
.brand-name {
  font-family: var(--font);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 2px;
}
.brand-cursor {
  display: inline-block;
  width: 10px; height: 18px;
  background: var(--yellow);
  margin-left: 4px;
  animation: cursorBlink 1.1s step-end infinite;
  border-radius: 1px;
  vertical-align: middle;
}
@keyframes cursorBlink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Liens de navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.65);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  border: 1px solid transparent;
}
.nav-item::before {
  content: '// ';
  color: var(--yellow);
  opacity: 0.5;
  font-size: 0.75rem;
  transition: opacity 0.2s;
}
.nav-item:hover, .nav-item.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}
.nav-item:hover::before, .nav-item.active::before { opacity: 1; }
.nav-item.active { color: var(--yellow); }

/* Bouton CTA "Alternance" */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: transparent;
  border: 2px solid var(--yellow);
  border-radius: var(--radius-pill);
  color: var(--yellow);
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--bounce);
}
.header-cta .cta-pulse {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.5s infinite;
  flex-shrink: 0;
}
.header-cta:hover {
  background: var(--yellow);
  color: var(--dark);
  transform: scale(1.05);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

/* Burger (mobile) */
.header-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px; height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10002;
}
.header-burger span {
  display: block;
  width: 100%; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.header-burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.header-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header-burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Menu mobile (overlay) */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(45,48,71,0.97);
  backdrop-filter: blur(10px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.mobile-menu-inner a {
  color: #fff;
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: lowercase;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  opacity: 0.7;
}
.mobile-menu-inner a::before { content: '> '; color: var(--yellow); }
.mobile-menu-inner a:hover { opacity: 1; border-bottom-color: var(--yellow); }
.mobile-menu-close {
  position: absolute;
  top: 110px; right: 30px;
  color: rgba(255,255,255,0.4);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--mono);
  transition: color 0.2s;
}
.mobile-menu-close:hover { color: var(--red); }

/* ── 4. LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
section { padding: 60px 0; }
/* Offset pour la navbar fixe (28px statusbar + 72px header) */
body { padding-top: calc(28px + var(--nav-height)); }

/* ── 5. HERO ───────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  padding: 60px 0;
}
.hero-inner { display: flex; align-items: center; gap: 60px; width: 100%; }
.hero-text { flex: 1; min-width: 300px; z-index: 2; }
.hero-eyebrow {
  display: inline-block;
  color: var(--blue);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-eyebrow::before { content: '// '; color: var(--yellow); }

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 22px;
}
.hero-title .name { color: var(--red); }
.hero-title .underline-wrap { position: relative; white-space: nowrap; }
.hero-title .underline-wrap svg {
  position: absolute;
  width: 100%; height: 14px;
  bottom: 4px; left: 0;
  z-index: -1;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  border: var(--border-brutal);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin-bottom: 28px;
  box-shadow: 3px 3px 0 var(--dark);
  animation: badgePulse 3s infinite;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: blink 1.5s infinite; }
@keyframes badgePulse { 0%,100%{box-shadow:3px 3px 0 var(--dark)} 50%{box-shadow:5px 5px 0 var(--dark)} }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Bulles hero */
.hero-illus { flex: 1; min-width: 300px; height: 480px; position: relative; }
.bubble {
  position: absolute;
  border-radius: 50%;
  border: 3px solid var(--dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px; cursor: pointer;
  transition: var(--bounce);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
}
.bubble:hover { transform: scale(1.15) !important; z-index: 10; box-shadow: 8px 8px 0 var(--dark); }
.bubble-design:hover { transform: translateY(-50%) scale(1.15) !important; }
.bubble span { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }
.bubble-code  { background: var(--red);    width: 145px; height: 145px; top: 20px;  left: 10px; animation: floatUp 5s ease-in-out infinite; }
.bubble-design{ background: var(--blue);   width: 200px; height: 200px; top: 50%; right: 10px; transform: translateY(-50%); animation: pulseBubble 4.5s ease-in-out infinite; }
.bubble-video { background: var(--yellow); width: 155px; height: 155px; bottom: 30px; left: 50px; animation: floatDown 6s ease-in-out infinite; }
.bubble-code span, .bubble-design span { color: #fff; }
.bubble-video span { color: var(--dark); }
@keyframes floatUp    { 0%,100%{transform:translateY(0)}   50%{transform:translateY(-16px)} }
@keyframes floatDown  { 0%,100%{transform:translateY(0)}   50%{transform:translateY(16px)}  }
@keyframes pulseBubble{ 0%,100%{transform:translateY(-50%) scale(1)} 50%{transform:translateY(-50%) scale(1.06)} }

/* ── 6. MARQUEE ────────────────────────────────────────────── */
.marquee-wrap {
  background: var(--dark);
  border-top: 3px solid var(--yellow);
  border-bottom: 3px solid var(--yellow);
  padding: 16px 0;
  transform: rotate(-1deg);
  margin: 0 -30px;
  overflow: hidden;
}
.marquee-track { display: flex; animation: marqueeScroll 28s linear infinite; white-space: nowrap; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { color: var(--yellow); font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; padding: 0 24px; flex-shrink: 0; }
.marquee-sep  { color: var(--red); padding: 0 4px; }
@keyframes marqueeScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── 7. SECTIONS COMMUNES ──────────────────────────────────── */
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--blue);
  font-family: var(--mono);
  font-weight: 700; font-size: 0.75rem;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 12px; height: 12px;
  background: var(--red);
  border-radius: 50%; border: 2px solid var(--dark);
  display: inline-block; flex-shrink: 0;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; color: var(--dark); line-height: 1.2; margin-bottom: 20px;
}
.section-title .accent { color: var(--blue); }

/* ── 8. À PROPOS ───────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-photo { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-card); border: 3px solid var(--dark); box-shadow: var(--shadow-brutal); transition: var(--transition); }
.about-photo:hover { transform: rotate(1deg); box-shadow: 10px 10px 0 var(--yellow); }
.about-photo-wrap { position: relative; }
.about-photo-badge { position: absolute; bottom: -16px; right: -16px; background: var(--red); color: #fff; border: 3px solid var(--dark); border-radius: var(--radius-pill); padding: 10px 20px; font-weight: 900; font-size: 0.85rem; text-transform: uppercase; box-shadow: 4px 4px 0 var(--dark); }
.about-content p { font-size: 1.05rem; color: var(--gray); margin-bottom: 16px; line-height: 1.75; }
.about-content p strong { color: var(--dark); font-weight: 800; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag { display: inline-block; padding: 6px 16px; font-size: 0.85rem; font-weight: 700; border: 2px solid var(--dark); border-radius: var(--radius-pill); background: #fff; box-shadow: 3px 3px 0 var(--dark); transition: var(--transition); text-transform: uppercase; letter-spacing: 0.5px; color: var(--dark); }
.tag:hover { background: var(--blue); color: #fff; transform: translate(2px,2px); box-shadow: var(--shadow-hover); }

/* ── 9. COMPÉTENCES — GRILLE 2×2 ──────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Force 2 colonnes */
  gap: 24px;
  margin-top: 48px;
}
.skill-card {
  background: #fff; border: var(--border-brutal); border-radius: var(--radius-card);
  padding: 30px; box-shadow: var(--shadow-brutal); transition: var(--transition);
  position: relative; overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%;
  background: var(--blue);
}
.skill-card:nth-child(2)::before { background: var(--red); }
.skill-card:nth-child(3)::before { background: var(--yellow); }
.skill-card:nth-child(4)::before { background: #22c55e; }
.skill-card:hover { transform: translate(4px,4px); box-shadow: var(--shadow-hover); }
.skill-card-icon { font-size: 2rem; margin-bottom: 14px; }
.skill-card h3 { font-size: 1.05rem; font-weight: 900; color: var(--dark); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag { background: var(--cream); border: 1.5px solid var(--dark); border-radius: 8px; padding: 4px 12px; font-size: 0.78rem; font-weight: 600; color: var(--dark); }

/* ── 10. SECTION EXPERTISE (avec icônes animées) ───────────── */
.expertise-section { background: transparent; }

.expertise-intro {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}
.expertise-intro p {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 14px;
}
.expertise-intro p:last-child { margin-bottom: 0; }

.tech-icons-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 15px;
  max-width: 100%;
  margin: 80px auto 60px;
}

.tech-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tech-icon-item:hover {
  transform: translateY(-10px) scale(1.1);
}
.tech-icon-item {
  cursor: default;
}
.tech-icon-box {
  width: 72px; height: 72px;
  background: var(--dark);
  border-radius: 16px;
  border: 2.5px solid var(--dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 4px 4px 0 var(--dark);
  transition: var(--bounce);
  position: relative;
  overflow: hidden;
}
.tech-icon-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.tech-icon-box svg {
  width: 38px; height: 38px;
  fill: #fff;
}
.tech-icon-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark);
}

/* Animations individuelles */
.tech-icon-item:nth-child(1) .tech-icon-box { animation: iconFloat1 3.5s ease-in-out infinite; }
.tech-icon-item:nth-child(2) .tech-icon-box { animation: iconFloat2 4s ease-in-out infinite; }
.tech-icon-item:nth-child(3) .tech-icon-box { animation: iconFloat3 3.8s ease-in-out infinite; }
.tech-icon-item:nth-child(4) .tech-icon-box { animation: iconFloat4 4.2s ease-in-out infinite; }
.tech-icon-item:nth-child(5) .tech-icon-box { animation: iconFloat1 4.5s ease-in-out infinite reverse; }
.tech-icon-item:nth-child(6) .tech-icon-box { animation: iconFloat2 3.6s ease-in-out infinite reverse; }
.tech-icon-item:nth-child(7) .tech-icon-box { animation: iconFloat3 4.1s ease-in-out infinite reverse; }
.tech-icon-item:nth-child(8) .tech-icon-box { animation: iconFloat4 3.9s ease-in-out infinite; }

@keyframes iconFloat1 { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-8px) rotate(-2deg)} }
@keyframes iconFloat2 { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-10px) rotate(2deg)} }
@keyframes iconFloat3 { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-6px) rotate(-1deg)} }
@keyframes iconFloat4 { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-12px) rotate(3deg)} }

.tech-icon-item:hover .tech-icon-box {
  animation: none;
  transform: translateY(-6px) scale(1.1) rotate(-3deg);
  box-shadow: 6px 6px 0 var(--yellow);
}

/* ── 11. PROJETS ───────────────────────────────────────────── */
.projects-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; flex-wrap: wrap; gap: 20px; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; }

.project-card {
  background: #fff; border: var(--border-brutal); border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow-brutal); transition: var(--transition);
  position: relative; top: 0;
}
.project-card:hover { transform: translate(5px,5px); box-shadow: var(--shadow-hover); }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-img {
    position: relative;
    width: 100%;
    height: 280px; /* Increased height */
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    display: flex;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.project-img::-webkit-scrollbar { display: none; }
.project-img img, .project-img video, .project-img iframe {
    width: 100%;
    height: 100%;
    flex: 0 0 100%;
    scroll-snap-align: center;
    object-fit: contain;
    background: #f8f9fa;
    transition: transform 0.4s;
}
.project-img:not(:has(video)):not(:has(iframe)):hover img {
    transform: scale(1.05);
}
.project-carousel-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(20, 20, 20, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.video-thumbnail {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.video-thumbnail:hover img {
    transform: scale(1.05);
}
.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(229, 9, 20, 0.9);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.video-thumbnail:hover .play-btn-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: #e50914;
}
.project-img-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--dark); color: #fff; border-radius: 8px;
  padding: 4px 12px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.project-body { padding: 24px; }
.project-type { display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.type-dev     { background: #e8edff; color: var(--blue); }
.type-design  { background: #fff0f0; color: var(--red); }
.type-av      { background: #fffce8; color: #7a6200; }
.type-ux      { background: #edfff6; color: #117a45; }
.project-title { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; line-height: 1.3; }
.project-desc {
    color: var(--gray);
    font-size: 0.95rem; /* Reduced font size */
    line-height: 1.6; /* Increased line height */
    margin-bottom: 20px;
    flex-grow: 1;
}
.project-desc p {
    margin-bottom: 12px;
}
.project-desc p:last-child {
    margin-bottom: 0;
}
.project-tech  { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tech-pill     { background: var(--cream); border: 1.5px solid var(--dark); border-radius: 6px; padding: 3px 10px; font-size: 0.75rem; font-weight: 700; color: var(--dark); }
.project-links { display: flex; gap: 10px; flex-wrap: wrap; }
.project-card.featured { grid-column: 1 / -1; }
.project-card.featured .project-img { height: 300px; }
.project-card.featured .project-body { padding: 28px; }
.project-card.featured .project-title { font-size: 1.5rem; }

/* ── 12. TIMELINE ──────────────────────────────────────────── */
.timeline { position: relative; margin-top: 48px; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 3px; background: var(--dark); }
.timeline-item {
  position: relative; margin-bottom: 40px; padding: 28px;
  background: #fff; border: var(--border-brutal); border-radius: var(--radius-card);
  box-shadow: var(--shadow-brutal); transition: var(--transition);
}
.timeline-item:hover { transform: translate(4px,4px); box-shadow: var(--shadow-hover); }
.timeline-item::before { content: ''; position: absolute; left: -38px; top: 28px; width: 16px; height: 16px; background: var(--red); border: 3px solid var(--dark); border-radius: 50%; }
.timeline-date  { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.timeline-title { font-size: 1.1rem; font-weight: 900; color: var(--dark); margin-bottom: 4px; }
.timeline-org   { font-size: 0.88rem; font-weight: 600; color: var(--gray); margin-bottom: 12px; }
.timeline-desc  { font-size: 0.93rem; color: var(--gray); line-height: 1.65; }

/* ── 13. CONTACT ───────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr; max-width: 600px; gap: 60px; margin: 48px auto 0 auto; }
.contact-info p { font-size: 1.05rem; color: var(--gray); margin-bottom: 32px; line-height: 1.75; }
.contact-socials { display: flex; gap: 14px; flex-wrap: wrap; }
.social-btn {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  background: #fff; border: var(--border-brutal); border-radius: var(--radius-pill);
  box-shadow: var(--shadow-brutal); font-weight: 800; font-size: 0.88rem;
  color: var(--dark); text-transform: uppercase; letter-spacing: 0.5px; transition: var(--bounce);
}
.social-btn svg { width: 18px; height: 18px; fill: var(--dark); transition: fill 0.3s; }
.social-btn:hover { background: var(--red); color: #fff; transform: translateY(-4px) rotate(-2deg); box-shadow: 6px 8px 0 var(--dark); }
.social-btn:hover svg { fill: #fff; }
.contact-form { background: #fff; border: var(--border-brutal); border-radius: var(--radius-card); padding: 36px; box-shadow: var(--shadow-brutal); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--mono); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--dark); margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 2px solid var(--dark); border-radius: 12px; font-family: var(--font); font-size: 1rem; background: var(--cream); color: var(--dark); transition: border-color 0.2s, box-shadow 0.2s; outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(55,89,200,0.15); }
.form-group textarea { min-height: 130px; resize: vertical; }

/* ── 14. BOUTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; font-family: var(--font); font-size: 0.9rem;
  font-weight: 900; text-transform: uppercase; letter-spacing: 1px;
  border-radius: var(--radius-pill); cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary   { background: var(--red); color: #fff; border: 3px solid var(--dark); box-shadow: 5px 5px 0 var(--dark); }
.btn-primary:hover { background: var(--yellow); color: var(--dark); transform: translate(3px,3px); box-shadow: var(--shadow-hover); }
.btn-secondary { background: transparent; color: var(--dark); border: 3px solid var(--dark); box-shadow: 5px 5px 0 var(--dark); }
.btn-secondary:hover { background: var(--dark); color: #fff; transform: translate(3px,3px); box-shadow: var(--shadow-hover); }
.btn-sm { padding: 7px 16px; font-size: 0.78rem; box-shadow: 3px 3px 0 var(--dark); }
.btn-sm:hover { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--dark); }
.btn-site { background: var(--blue); color: #fff; border: 3px solid var(--dark); box-shadow: 4px 4px 0 var(--dark); }
.btn-site:hover { background: var(--dark); color: #fff; transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--dark); }

/* ── 15. FOOTER ────────────────────────────────────────────── */
footer { background: var(--dark); color: var(--cream); padding: 70px 0 40px; border-top: 5px solid var(--yellow); margin-top: 60px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.footer-name  { font-size: 2rem; font-weight: 900; color: var(--yellow); text-transform: uppercase; letter-spacing: 1px; }
.footer-role  { font-size: 0.95rem; opacity: 0.7; margin-top: 4px; }
.footer-links-row { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links-row a { color: rgba(255,251,240,0.55); font-family: var(--mono); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; transition: color 0.2s; }
.footer-links-row a:hover { color: var(--yellow); }
.footer-socials-row { display: flex; gap: 14px; }
.footer-social-btn { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--cream); border: 3px solid var(--dark); border-radius: 50%; box-shadow: 4px 4px 0 var(--blue); transition: var(--bounce); }
.footer-social-btn svg { width: 20px; height: 20px; fill: var(--dark); }
.footer-social-btn:hover { background: var(--red); transform: translateY(-5px) rotate(6deg); box-shadow: 6px 6px 0 var(--yellow); }
.footer-social-btn:hover svg { fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,251,240,0.12); padding-top: 22px; font-family: var(--mono); font-size: 0.72rem; opacity: 0.4; width: 100%; text-align: center; }

/* ── 16. SCROLL-TO-TOP ─────────────────────────────────────── */
#scroll-top { position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; background: var(--dark); color: #fff; border: 3px solid var(--dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 4px 4px 0 var(--yellow); opacity: 0; transform: translateY(20px); transition: var(--bounce); z-index: 500; }
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--red); transform: translateY(-3px); box-shadow: 4px 6px 0 var(--dark); }

/* ── 17. SCROLL REVEAL ─────────────────────────────────────── */
@keyframes revealFloat {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 206, 84, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255, 206, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 206, 84, 0); }
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── 18. LIGHTBOX / CARROUSEL ──────────────────────────────── */
.lightbox-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.open { opacity: 1; pointer-events: auto; }

.lightbox-inner {
  position: relative;
  max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.lightbox-img {
  max-width: 90vw; max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: lightboxIn 0.3s ease;
}
@keyframes lightboxIn { from{transform:scale(0.92);opacity:0} to{transform:scale(1);opacity:1} }

.lightbox-caption {
  color: rgba(255,255,255,0.7);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-align: center;
}
.lightbox-close {
  position: absolute; top: -44px; right: 0;
  color: rgba(255,255,255,0.6); background: none; border: none;
  font-size: 1.8rem; cursor: pointer; line-height: 1;
  transition: color 0.2s, transform 0.2s;
  font-family: var(--mono);
}
.lightbox-close:hover { color: var(--red); transform: rotate(90deg); }

.lightbox-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff; font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.lightbox-nav:hover { background: var(--yellow); color: var(--dark); border-color: var(--yellow); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-nav:disabled { opacity: 0.2; cursor: default; }

.lightbox-dots {
  display: flex; gap: 8px; justify-content: center;
}
.lightbox-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer; transition: background 0.2s;
}
.lightbox-dot.active { background: var(--yellow); }

/* ── 19. PAGE PROJETS ──────────────────────────────────────── */
.page-hero { padding: 60px 0; text-align: center; }
.page-hero .section-title { font-size: clamp(2.5rem, 6vw, 4rem); display: inline-block; position: relative; }
.page-hero .section-title::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 10px; background: var(--yellow); z-index: -1; }
.page-hero p { font-size: 1.05rem; color: var(--gray); max-width: 560px; margin: 16px auto 0; }
.project-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 48px; }
.filter-btn { padding: 7px 18px; font-family: var(--mono); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; border: 2px solid var(--dark); border-radius: var(--radius-pill); background: #fff; color: var(--dark); cursor: pointer; transition: var(--transition); box-shadow: 3px 3px 0 var(--dark); }
.filter-btn:hover, .filter-btn.active { background: var(--blue); color: #fff; transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--dark); }
.projects-grid, .projects-full-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
@media (max-width: 768px) {
    .projects-grid, .projects-full-grid {
        grid-template-columns: 1fr;
    }
}
[data-category] { transition: opacity 0.3s ease, transform 0.3s ease; }
.project-img.no-img { display: flex; align-items: center; justify-content: center; font-size: 3rem; background: linear-gradient(135deg, #f0f4ff, #e8edff); }

/* ── 20. RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner   { flex-direction: column; }
  .hero-illus   { width: 100%; height: 360px; }
  .about-grid   { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: auto; }
  .skills-grid  { grid-template-columns: 1fr; }
  .tech-icons-grid { grid-template-columns: repeat(4, 1fr); }
  section { padding: 70px 0; }
}

@media (max-width: 760px) {
  .site-header { padding: 0 20px; }
  .header-nav, .header-cta { display: none; }
  .header-burger { display: flex; }
  .tech-icons-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .tech-icon-box { width: 58px; height: 58px; }
  .tech-icon-box svg { width: 30px; height: 30px; }
  .tech-icon-label { font-size: 0.62rem; }
  .hero-illus { height: 300px; }
  .bubble-code  { left: 5px; top: 10px; width: 120px; height: 120px; }
  .bubble-design{ right: 5px; width: 155px; height: 155px; }
  .bubble-video { left: 30px; bottom: 10px; width: 125px; height: 125px; }
  .marquee-wrap { margin: 0 -20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
  .lightbox-nav.prev { left: 8px; }
  .lightbox-nav.next { right: 8px; }
}

@media (max-width: 480px) {
  .tech-icons-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .tech-icon-box { width: 52px; height: 52px; border-radius: 12px; }
  .tech-icon-box svg { width: 26px; height: 26px; }
  .skills-grid { grid-template-columns: 1fr; }
}

.carousel-nav-btn {
    position: absolute;
    top: 140px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    border: 2px solid var(--dark);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 2px 2px 0 var(--dark);
    opacity: 0;
}
.project-card:hover .carousel-nav-btn {
    opacity: 1;
}
.carousel-nav-btn:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}
.carousel-nav-btn.prev { left: 10px; }
.carousel-nav-btn.next { right: 10px; }

