@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Bebas+Neue&display=swap');

:root {
  --black: #0d0d0d;
  --dark: #171717;
  --white: #ffffff;
  --gray: #a0a0a0;
  --gray-light: #d1d1d1;
  --accent: #e8452c;
  --accent-dark: #b8331f;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

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

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

h1, h2, h3, h4 {
  font-family: 'Bebas Neue', 'Oswald', sans-serif;
  letter-spacing: 0.03em;
  font-weight: 400;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--black);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
  gap: 20px;
}

.header-nav-group {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.header-social {
  display: flex;
  gap: 14px;
}

.header-social a {
  color: var(--white);
  transition: color 0.2s;
}

.header-social a:hover {
  color: var(--accent);
}

.header-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.logo img {
  height: 56px;
  width: auto;
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 200;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  color: var(--white);
  padding: 10px 16px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s, background 0.2s;
  border-radius: 2px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  background: rgba(232, 69, 44, 0.1);
}

/* ---------- Hero ---------- */
.site-header.transparent {
  background: rgba(13,13,13,0.5);
  backdrop-filter: blur(3px);
  border-bottom-color: rgba(232,69,44,0.7);
}

.site-header.transparent ~ .hero.has-bg {
  margin-top: -97px;
  padding-top: 187px;
}

.hero {
  background: var(--black);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: left;
  position: relative;
}

.hero.has-bg {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 170px 0 90px;
  text-align: left;
}

.hero.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.55) 45%, rgba(13,13,13,0.15) 100%);
}

.hero.has-bg .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4.5rem;
  color: var(--white);
  line-height: 1;
}

.hero .subtitle {
  color: var(--accent);
  font-size: 1.3rem;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero .tagline {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--gray-light);
  font-size: 1.1rem;
}

.hero .cta {
  display: inline-block;
  margin-top: 28px;
  border: 2px solid var(--accent);
  color: var(--white);
  padding: 12px 32px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.social-row {
  display: flex;
  justify-content: flex-start;
  gap: 18px;
  margin-top: 26px;
}

.site-header .social-row {
  margin-top: 0;
}

.social-row a {
  color: var(--white);
  transition: color 0.2s;
}

.social-row a:hover {
  color: var(--accent);
}

.social-row svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ---------- Page header (for inner pages) ---------- */
.page-header {
  background: var(--black);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
  position: relative;
}

.page-header.has-bg {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 90px 0;
}

.page-header.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,0.6);
}

.page-header.has-bg .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  color: var(--white);
  font-size: 3rem;
}

/* ---------- Sections ---------- */
section {
  padding: 60px 0;
}

section.alt {
  background: #f7f7f7;
}

section.dark {
  background: var(--black);
  color: var(--white);
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
}

section.dark h2 {
  color: var(--white);
}

/* ---------- Twitch / Bienvenue split layout ---------- */
.welcome-layout {
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.welcome-layout .text {
  flex: 1 1 340px;
}

.welcome-layout .text h2 {
  text-align: left;
}

.welcome-layout .text p {
  margin-bottom: 14px;
}

.welcome-layout .social-row {
  justify-content: flex-start;
  margin-top: 20px;
}

.welcome-layout .social-row a {
  color: var(--black);
}

.welcome-layout .social-row a:hover {
  color: var(--accent);
}

.twitch-embed-wrap {
  flex: 1 1 420px;
  max-width: 480px;
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid #eee;
}

.twitch-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 800px) {
  .twitch-embed-wrap {
    max-width: 100%;
    width: 100%;
  }
}

/* ---------- Project cards (Accueil) ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.project-card {
  text-align: center;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  background: #f0f0f0;
  margin-bottom: 16px;
  border: 1px solid #eee;
}

.project-card h3 {
  margin-bottom: 8px;
}

.project-card p {
  color: #555;
  font-size: 0.95rem;
}

/* ---------- Galerie preview block ---------- */
.gallery-preview {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.gallery-preview .text {
  flex: 1 1 320px;
}

.gallery-preview .text h2 {
  text-align: left;
}

.photo-stack {
  flex: 0 0 260px;
  width: 260px;
  height: 260px;
  position: relative;
}

.photo-stack img {
  position: absolute;
  width: 190px;
  height: 190px;
  object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-stack img:nth-child(1) {
  top: 0;
  left: 0;
  transform: rotate(-7deg);
  z-index: 1;
}

.photo-stack img:nth-child(2) {
  top: 10px;
  left: 60px;
  transform: rotate(5deg);
  z-index: 2;
}

.photo-stack img:nth-child(3) {
  top: 60px;
  left: 20px;
  transform: rotate(-3deg);
  z-index: 3;
}

.photo-stack img:nth-child(4) {
  top: 68px;
  left: 78px;
  transform: rotate(8deg);
  z-index: 4;
}

.photo-stack:hover img {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

@media (max-width: 700px) {
  .photo-stack {
    width: 220px;
    height: 220px;
    margin: 0 auto;
  }
  .photo-stack img {
    width: 150px;
    height: 150px;
  }
  .photo-stack img:nth-child(2) { left: 55px; }
  .photo-stack img:nth-child(3) { top: 50px; left: 15px; }
  .photo-stack img:nth-child(4) { top: 56px; left: 65px; }
}

.btn {
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--white);
  padding: 10px 28px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  margin-top: 16px;
  transition: color 0.3s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-dark);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}

.btn:hover::before {
  transform: scaleX(1);
}

/* ---------- Quote block ---------- */
.quote-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.quote-block h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.7;
}

.quote-block .source {
  display: block;
  margin-top: 18px;
  color: var(--accent);
  font-style: normal;
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 40px 0 30px;
  text-align: center;
}

.site-footer .logo img {
  height: 48px;
  margin: 0 auto 16px;
}

.site-footer .social-row {
  margin-top: 4px;
  margin-bottom: 20px;
}

.site-footer p {
  color: var(--gray-light);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  color: var(--accent);
}

/* ---------- About page ---------- */
.bio-layout {
  display: flex;
  gap: 44px;
  align-items: flex-start;
}

.bio-photos {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 90px;
}

.bio-photos img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.bio-text {
  flex: 1;
  min-width: 0;
}

.bio-text h2 {
  text-align: left;
  margin-bottom: 20px;
}

.bio-text p {
  margin-bottom: 28px;
  line-height: 1.8;
}

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

.bio {
  max-width: 800px;
  margin: 0 auto;
}

.bio p {
  margin-bottom: 28px;
}

@media (max-width: 800px) {
  .bio-layout {
    flex-direction: column;
  }
  .bio-photos {
    flex-direction: column;
    position: static;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .bio-photos img {
    aspect-ratio: 16/10;
  }
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  text-align: center;
}

.stats-strip .stat {
  flex: 1 1 200px;
  padding: 0 24px;
  border-left: 1px solid #eee;
}

.stats-strip .stat:first-child {
  border-left: none;
}

.stats-strip .stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  color: var(--accent);
  line-height: 1;
}

.stats-strip .stat-label {
  color: #555;
  font-size: 0.9rem;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 700px) {
  .stats-strip .stat {
    border-left: none;
    border-top: 1px solid #eee;
    padding: 20px 12px 0;
  }
  .stats-strip .stat:first-child {
    border-top: none;
  }
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.service-card {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid #eee;
}

.service-card .service-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.service-card .service-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-card p {
  color: #555;
  font-size: 0.92rem;
}

/* ---------- Bio CTA ---------- */
.bio-cta {
  text-align: center;
}

.bio-cta .btn-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.bio-cta .btn-row .btn {
  margin-top: 0;
}

.btn-outline {
  display: inline-block;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 2px solid var(--black);
  color: var(--black);
  padding: 10px 28px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}

.btn-outline:hover::before {
  transform: scaleX(1);
}

.btn-outline:hover {
  color: var(--white);
}

/* ---------- CV section (About page) ---------- */
.cv-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #555;
}

.cv-download-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 24px 0 50px;
  flex-wrap: wrap;
}

.cv-download-row .btn,
.cv-download-row .btn-outline {
  margin-top: 0;
}

.cv-block {
  max-width: 800px;
  margin: 0 auto 50px;
}

.cv-block h3 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.cv-entry {
  margin-bottom: 26px;
  padding-left: 20px;
  border-left: 3px solid #eee;
  position: relative;
}

.cv-entry::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
}

.cv-entry:last-child {
  margin-bottom: 0;
}

.cv-entry-title {
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--black);
  margin-bottom: 2px;
}

.cv-entry-org {
  font-style: italic;
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.cv-entry-dates {
  color: var(--accent);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-bottom: 8px;
}

.cv-entry-desc {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cv-entry-bullets {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #444;
  font-size: 0.92rem;
  line-height: 1.7;
}

.cv-skills-langs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.cv-tag-group h4 {
  font-size: 0.95rem;
  color: var(--black);
  margin-bottom: 12px;
}

.cv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-tag {
  background: #f2f2f2;
  color: #333;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
}

@media (max-width: 700px) {
  .cv-skills-langs {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Projects page (timeline) ---------- */
.timeline {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.timeline-item .years {
  flex: 0 0 130px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  color: var(--accent);
}

.timeline-item .timeline-thumb {
  flex: 0 0 220px;
  width: 220px;
  height: 140px;
  object-fit: cover;
  background: #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.timeline-item .timeline-text {
  flex: 1;
}

.current-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.current-project-card {
  border: 1px solid #eee;
  padding: 24px;
}

.current-project-card h3 {
  margin-bottom: 12px;
}

.current-project-card p {
  color: #555;
  margin-bottom: 16px;
}

.games-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.games-list h4 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.games-list ul {
  list-style: none;
}

.games-list li {
  padding: 4px 0;
  color: #444;
}

/* ---------- Gallery grid ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.photo-grid figure {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #eee;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo-grid figure:hover img {
  transform: scale(1.06);
}

.photo-grid figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: var(--white);
  font-size: 0.8rem;
  padding: 24px 10px 8px;
  opacity: 0;
  transition: opacity 0.3s;
}

.photo-grid figure:hover figcaption {
  opacity: 1;
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox .caption {
  color: var(--white);
  margin-top: 16px;
  text-align: center;
  font-size: 1rem;
  max-width: 700px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  font-size: 3rem;
  cursor: pointer;
  padding: 10px 20px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* ---------- Portfolio sections ---------- */
.portfolio-section {
  margin-bottom: 70px;
}

.portfolio-section h2 {
  text-align: left;
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 6px;
}

.portfolio-section .kit-label {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 24px;
  padding-left: 20px;
}

.portfolio-subsection {
  margin-bottom: 32px;
}

.portfolio-subsection h3 {
  margin-bottom: 14px;
  color: var(--accent-dark);
}

/* ---------- Portfolio kit cards ---------- */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.kit-card {
  cursor: pointer;
  border: 1px solid #eee;
  background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}

.kit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.kit-card .kit-cover {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #f0f0f0;
}

.kit-card .kit-info {
  padding: 16px 18px 20px;
}

.kit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.kit-card .kit-years {
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kit-card .kit-count {
  color: var(--gray);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* Detail view */
.kit-grid,
.kit-detail {
  transition: opacity 0.35s ease;
}

.kit-detail {
  display: none;
  opacity: 0;
}

.kit-detail.open {
  display: block;
  opacity: 0;
}

.kit-detail.open.visible {
  opacity: 1;
}

.kit-grid.hidden {
  display: none;
}

.kit-grid.fading {
  opacity: 0;
}

.kit-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.kit-detail-back:hover {
  color: var(--accent-dark);
}

.kit-detail-header {
  margin-bottom: 30px;
}

.kit-detail-header h2 {
  text-align: left;
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 4px;
}

.kit-detail-header .kit-years {
  color: var(--gray);
  padding-left: 20px;
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-email {
  display: inline-block;
  font-size: 1.6rem;
  margin-top: 20px;
  padding: 16px 36px;
  border: 2px solid var(--accent);
  transition: background 0.2s, color 0.2s;
}

.contact-email:hover {
  background: var(--accent);
  color: var(--white);
}

.contact-subjects {
  margin-top: 40px;
  color: #666;
  font-size: 0.95rem;
}

.contact-subjects ul {
  list-style: none;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.contact-subjects li {
  border: 1px solid #ddd;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.contact-socials {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

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

.contact-socials-row {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.contact-socials-row a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--black);
  transition: color 0.2s, transform 0.2s;
}

.contact-socials-row a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.contact-socials-row svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.contact-socials-row span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.firehype {
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--accent);
  padding: 30px 0 0;
}

/* ---------- Animations ---------- */

/* Scroll-triggered fade-in for sections */
.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero cascade entrance */
.hero-cascade {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.7s ease-out forwards;
}

.hero-cascade.delay-1 { animation-delay: 0.05s; }
.hero-cascade.delay-2 { animation-delay: 0.15s; }
.hero-cascade.delay-3 { animation-delay: 0.25s; }
.hero-cascade.delay-4 { animation-delay: 0.35s; }

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-section,
  .hero-cascade {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Project card hover lift */
.project-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 4px;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

/* Social icon hover scale */
.header-social a,
.social-row a {
  display: inline-flex;
  transition: color 0.2s, transform 0.2s;
}

.header-social a:hover,
.social-row a:hover {
  transform: scale(1.15);
}

/* CTA button fill sweep */
.hero .cta {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
}

.hero .cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: -1;
}

.hero .cta:hover::before {
  transform: scaleX(1);
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .hero h1 { font-size: 2.6rem; }
  h2 { font-size: 1.7rem; }
  .main-nav ul { justify-content: center; }
  .timeline-item { flex-direction: column; align-items: flex-start; gap: 14px; }
  .timeline-item .years { flex: none; }
  .timeline-item .timeline-thumb { width: 100%; flex: none; height: 200px; }

  /* Smaller logo on mobile */
  .logo img {
    height: 38px;
  }

  /* Hamburger button visible on mobile */
  .hamburger-btn {
    display: flex;
  }

  /* Collapse nav + social into a dropdown, hidden by default */
  .header-nav-group {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 0 20px;
    border-bottom: 3px solid var(--accent);
  }

  .header-nav-group.open {
    display: flex;
  }

  .site-header .container {
    position: relative;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .main-nav a {
    padding: 14px 24px;
    font-size: 1rem;
  }

  .header-social {
    justify-content: center;
    padding: 16px 0 4px;
    gap: 24px;
  }

  /* Fix hero background gap and sizing on mobile */
  .site-header.transparent {
    position: relative;
  }

  .site-header.transparent ~ .hero.has-bg {
    margin-top: 0;
    padding-top: 60px;
    background-color: var(--black);
  }

  .hero.has-bg {
    background-color: var(--black);
    padding-top: 50px;
    padding-bottom: 50px;
  }
}
