:root {
  --brand: #6366F1;
  --off-white: #F5F5F5;
  --dusty-rose: #D496A7;
  --dark: #0a0a0a;
}

html {
  scroll-behavior: initial;
}

html,
body {
  width: 100%;
  height: auto;
  background-color: var(--off-white);
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Navbar Transitions */
#navbar {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}



/* Retiré pour que le bouton reste violet tout le temps */
/* .nav-scrolled #nav-cta {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
} */

.nav-scrolled #nav-logo img {
  filter: none;
}

/* Hero Section Styles */
#home {
  background: radial-gradient(circle at 60% 40%, #ffffff 0%, #f9fafb 100%);
  position: relative;
}

#navbar {
  width: 94%;
  max-width: 1280px;
  left: 50%;
  transform: translateX(-50%);
  top: 24px;
  border-radius: 100px;
  padding: 14px 40px;
  background: rgba(212, 150, 167, 0.12);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(212, 150, 167, 0.25);
  box-shadow: 0 8px 32px 0 rgba(212, 150, 167, 0.2), inset 0 0 15px rgba(255, 255, 255, 0.1);
  z-index: 100;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

#navbar a {
  white-space: nowrap;
}

#navbar>div {
  flex-wrap: nowrap;
  /* Ensures logo, links, and button stay on one line */
}

.nav-scrolled {
  top: 15px;
  padding: 10px 40px;
  background: rgba(255, 255, 255, 0.7);
  /* Fond clair transparent par défaut */
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.1);
  color: var(--dark) !important;
}

/* Nouvelles classes pour adapter la couleur sur les sections sombres */
.nav-light-text {
  color: white !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.nav-light-text #nav-links a,
.nav-light-text #nav-logo span {
  color: white !important;
}

/* Mobile Menu Styles */
#mobile-menu {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%) !important;
  transition: all 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

#mobile-menu.active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateX(0) !important;
}

.mobile-link {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  #navbar {
    width: 90%;
    padding: 12px 24px;
  }
}

/* Small Laptop / Tablet Landscape (Current scaling preserved) */
@media (min-width: 1024px) and (max-width: 1536px) {
  html {
    font-size: 11px;
  }

  #navbar {
    top: 10px;
    width: 80%;
    max-width: 1100px;
    padding: 12px 30px;
  }

  /* Clear visible shrink effect for laptop users */
  #navbar.nav-scrolled {
    top: 5px;
    padding: 10px 30px;
  }

  /* Scale down headings to fit more content */
  h1 {
    font-size: 4rem !important;
  }

  h2 {
    font-size: 3rem !important;
  }

  /* Scale down elements for real estate */
  #nav-logo img {
    width: 28px;
    height: 28px;
  }

  .service-card svg {
    width: 20px;
    height: 20px;
  }

  .service-card .w-14 {
    width: 38px;
    height: 38px;
  }

  /* Restore padding for sections on laptop */
  #about,
  #services,
  #portfolio,
  #contact,
  #offers {
    padding-top: 10rem !important;
    padding-bottom: 10rem !important;
  }
}

/* Medium/Large Desktop (More zoomed in) */
@media (min-width: 1537px) and (max-width: 1920px) {
  html {
    font-size: 14px;
  }
}

/* Ultra-wide / Very Large Screens (Zoomed in even more) */
@media (min-width: 1921px) {
  html {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  #navbar {
    padding: 10px 20px;
  }

  /* Margins for sections on mobile */
  #about,
  #services,
  #portfolio,
  #contact,
  #offers {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
  }

  #navbar #nav-logo span {
    font-size: 1.1rem;
  }

  .glass-card {
    padding: 2rem !important;
    border-radius: 2.5rem !important;
  }

  h2 {
    font-size: 2.5rem !important;
  }

  h1 {
    font-size: 3.5rem;
    /* Cap la taille du titre hero sur mobile */
    line-height: 1.1 !important;
  }

  .py-32 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
}

@media (max-width: 640px) {
  #navbar {
    width: calc(100% - 32px);
  }

  .hero-image-container {
    margin-top: 2rem;
    transform: scale(0.9);
  }
}

.text-hero-outline {
  color: white;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.8);
  font-weight: 800;
  /* Ensure it's bold for the outline effect */
}

.hero-text-fill {
  /* Clipped via JS once on load/resize */
  clip-path: inset(0 0 0 100%);
}

.glass-card {
  background: rgba(212, 150, 167, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 150, 167, 0.35);
  box-shadow: 0 8px 32px 0 rgba(212, 150, 167, 0.15);
}


/* Base Image Reveal */
.image-reveal-wrapper {
  opacity: 0;
  transform: translateY(20px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--off-white);
}

::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

/* GSAP Animations Classes */
.reveal-left,
.reveal-right,
.reveal-up {
  opacity: 0;
  will-change: transform, opacity;
}

.reveal-up {
  transform: translateY(50px) scale(0.95);
}

.reveal-left {
  transform: translateX(-50px) scale(0.95);
}

.reveal-right {
  transform: translateX(50px) scale(0.95);
}

/* Image Clip-Path Reveal */
.img-reveal-container {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.img-reveal-container.active {
  clip-path: inset(0 0 0 0);
}

/* Magnetic Button Base */
.magnetic-btn {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Portfolio Hover Effects */
.portfolio-item img {
  transition: transform 0.6s ease;
}

/* Form Animations */
#form-success.active {
  display: flex !important;
  position: relative !important;
  /* Devient l'élément qui définit la hauteur */
  inset: auto !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 550px;
  /* Augmenté pour garantir que tout est visible */
  width: 100%;
  background: transparent !important;
  /* Garde l'effet glass de la card parente */
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  60% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Utilities */
.mix-blend-difference {
  mix-blend-mode: difference;
}

.bg-marquee-purple {
  background-color: #5410D1;
}

/* Marquee Animation */
.marquee-container {
  overflow: hidden;
  user-select: none;
  display: flex;
  gap: 0;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  min-width: 100%;
  gap: 48px;
  animation: scroll 35s linear infinite;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}