:root {
  --bg: #060606;
  --panel: #101010;
  --text: #ffffff;
  --accent: #b7ff2f;
  --accent-soft: rgba(183, 255, 47, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 120px 8vw 80px;
}

.video-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.video-bg iframe {
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.2);
  pointer-events: none;
}

.hero-video {
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.2);
  object-fit: cover;
  z-index: 2;
}

.hero-video-fallback {
  display: block;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.52) 5%, rgba(0, 0, 0, 0.82) 90%);
  z-index: -2;
}

.top-nav {
  position: fixed;
  right: 24px;
  top: 18px;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.top-nav a {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.25s ease;
}

.top-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.top-nav a:hover {
  color: var(--accent);
}

.top-nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--accent-soft);
  background: transparent;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero-content {
  max-width: 780px;
}

.brand-wrap {
  position: fixed;
  top: 20px;
  left: 24px;
  z-index: 40;
}

.brand-logo {
  width: clamp(120px, 16vw, 220px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(183, 255, 47, 0.2));
}

.brand-badge {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 14px;
  margin-bottom: 14px;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 14px;
}

h2,
h3 {
  font-weight: 400;
}

.hero p {
  max-width: 62ch;
  margin-bottom: 24px;
}

.cta {
  display: inline-block;
  border: 2px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  padding: 12px 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.cta:hover {
  background: var(--accent);
  color: #091000;
  transform: translateY(-2px);
}

section {
  padding: 88px 8vw;
}

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.services {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.section-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

.animated-bg-section > *:not(.section-canvas) {
  position: relative;
  z-index: 2;
}

.service-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(16, 16, 16, 0.78);
  backdrop-filter: blur(2px);
  padding: 20px 14px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.icon {
  width: 118px;
  height: 104px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  position: relative;
  background: #020202;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: inherit;
}

.icon::before {
  border: 3px solid #ffffff;
}

.icon::after {
  inset: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
}

.icon svg {
  width: 58px;
  height: 58px;
  z-index: 1;
  fill: var(--accent);
  stroke: none;
  filter: drop-shadow(0 0 6px rgba(183, 255, 47, 0.22));
}

.service-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.service-card p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.parallax {
  position: relative;
  min-height: 60vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  inset: -10%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: translateY(var(--parallax-offset, 0px)) scale(1.1);
  transition: transform 0.2s linear;
}

.parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.45));
  z-index: -1;
}

.parallax-a .parallax-layer {
  background-image:
    linear-gradient(rgba(183, 255, 47, 0.18), rgba(0, 0, 0, 0.6)),
    linear-gradient(rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.3)),
    url("https://images.unsplash.com/photo-1489599510820-9ae8bf51c5f9?auto=format&fit=crop&w=1800&q=80"),
    url("https://images.unsplash.com/photo-1478720568477-152d9b164e26?auto=format&fit=crop&w=1800&q=80");
  background-blend-mode: screen, overlay, multiply, normal;
  filter: grayscale(1) contrast(1.18);
}

.parallax-b .parallax-layer {
  background-image:
    linear-gradient(rgba(183, 255, 47, 0.12), rgba(0, 0, 0, 0.65)),
    url("https://images.unsplash.com/photo-1527689368864-3a821dbccc34?auto=format&fit=crop&w=1800&q=80");
}

.parallax-content {
  max-width: 700px;
}

.parallax-content h2 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.video-gallery {
  background: #0b0b0b;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  border: 1px solid rgba(183, 255, 47, 0.26);
  background: #000;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.contact p {
  max-width: 70ch;
  margin: 0 auto 20px;
}

.social-links {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social-picto {
  width: 78px;
  height: 68px;
  display: grid;
  place-items: center;
  position: relative;
  background: #020202;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.social-picto::before,
.social-picto::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: inherit;
}

.social-picto::before {
  border: 2px solid #ffffff;
}

.social-picto::after {
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.92);
}

.social-picto svg {
  width: 33px;
  height: 33px;
  z-index: 1;
  fill: var(--accent);
}

.social-picto:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 9px rgba(183, 255, 47, 0.35));
}

footer {
  text-align: center;
  padding: 24px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.7s ease, opacity 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .top-nav {
    right: 10px;
    top: 10px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 52px;
    right: -16px;
    min-width: 210px;
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border: none;
    background: transparent;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
    filter: drop-shadow(0 0 8px rgba(183, 255, 47, 0.2));
  }

  .top-nav.open .nav-links {
    display: flex;
  }

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

@media (max-width: 700px) {
  .brand-wrap {
    top: 20px;
    left: 12px;
  }

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

  section {
    padding: 70px 5vw;
  }
}
