/* Global CSS Reset & Base Styles */

/* Reset margins and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

/* Prevent horizontal scroll */
html,
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip !important;
}

html {
  scroll-behavior: auto;
}

body {
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Ensure sections don't cause horizontal scroll */
section {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Allow overflow for specific sections that need it */
section.overflow-x-visible {
  overflow-x: visible;
}

/* Prevent images from causing overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent video from causing overflow */
video {
  max-width: 100%;
  height: auto;
}

/* Ensure fixed elements don't cause overflow */
nav,
.fixed {
  max-width: 100vw;
}


/* Remove default list styles */
ul,
ol {
  list-style: none;
}

/* Remove default link styles */
a {
  text-decoration: none;
  color: inherit;
}

/* Remove default button styles */
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Remove default input styles */
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Ensure SVG doesn't cause overflow */
svg {
  max-width: 100%;
  height: auto;
}

/* Purista Web Font */
.font-purista {
  font-family: 'purista-web', sans-serif;
}


@keyframes rotateinfinite {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#poster-video-fallback{
  user-select: none;
  pointer-events: none;
}
.rotateinfinite {
  animation: rotateinfinite 2s linear infinite;
  transform-origin: 475.2px 578.6px;
}

/* Transform origin spécifique pour le SVG mobile */
#atlantic-svgs-container-mobile .rotateinfinite {
  transform-origin: 110px 524px;
}

/* Background footprints pattern avec alternance droite/gauche */
main {
  position: relative;
}

/* Custom CSS for additional styling */

/* Lenis smooth scroll - disable default smooth scroll */

/* Ensure body has proper height for Lenis */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Additional utility classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

/* Ensure cards have proper initial state for GSAP */
.card {
  will-change: transform;
}

/* Optimize performance for animations */
#circle1,
#circle2,
#circle3 {
  will-change: transform;
}

/* Custom scrollbar (optional) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* SVG animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Dashed lines - iOS compatible using background gradient */
.dashed-line-v {
    opacity: 0.5;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5) 0px,
    rgba(255, 255, 255, 0.5) 4px,
    transparent 4px,
    transparent 8px
  );
}

.dashed-line-h {
  opacity: 0.5;
  background: repeating-linear-gradient(
    to right,
    rgba(255, 255, 255, 0.5) 0px,
    rgba(255, 255, 255, 0.5) 4px,
    transparent 4px,
    transparent 8px
  );
}

/* SVG element animation classes */
.svg-element {
  opacity: 0;
}

.svg-element.animate {
  animation-fill-mode: both;
}

.svg-fade-up {
  animation: fadeInUp 0.8s ease-out;
}

.svg-fade-left {
  animation: fadeInLeft 0.8s ease-out;
}

.svg-fade-right {
  animation: fadeInRight 0.8s ease-out;
}

.svg-scale {
  animation: scaleIn 0.6s ease-out;
}

.svg-slide-bottom {
  animation: slideInFromBottom 0.8s ease-out;
}
