/* ============================================
   INDEX-SPECIFIC CSS - Styles uniquement pour Index.html
   ============================================ */

canvas.webgl {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  outline: none;
  pointer-events: none;
  touch-action: pan-y pinch-zoom;
  background: transparent !important;
}

section.hero {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
  padding: 0 20px;
  pointer-events: none;
  background: transparent;
  margin-top: -120px; /* Compenser le padding-top du main */
  padding-top: 120px; /* Réappliquer l'espace pour le header */
}

@media (max-width: 1023px) {
  section.hero {
    margin-top: -1rem;
    padding-top: 1rem;
  }
}

section.hero #hero-slogan-section {
  position: relative;
  z-index: 60;
}

section.hero #hero-slogan-section * {
  pointer-events: auto;
}

section.hero a,
section.hero button,
section.hero .btn-action,
section.hero .button-secondary-glass {
  pointer-events: auto !important;
  position: relative;
  z-index: 20;
}

@media (min-width: 1024px) {
  section.hero {
    height: 120vh;
  }
}

.hero-content {
  pointer-events: auto;
}

.stat-card-premium {
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem 2rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 100%;
  max-width: none;
}

.stat-card-premium:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent);
  background: white;
}

body.dark-mode .stat-card-premium:hover {
  background: rgba(255,255,255,0.05);
}

.icon-box {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .icon-box {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .icon-box {
    width: 36px;
    height: 36px;
  }
}

.scroll-spacer {
  height: 600vh;
  width: 100%;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.scroll-marker {
  position: absolute;
  top: calc(4418px - 100vh);
  left: 0;
  width: 1px;
  height: 1px;
}

.content-section {
  position: relative;
  z-index: 20;
  background-color: transparent !important;
  padding-top: 100px;
}

.content-bg-start {
  background: transparent !important;
}

main {
  background: transparent !important;
}

section {
  background: transparent !important;
}

.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.8;
  font-size: 0.8rem;
  color: #B48A3C;
  animation: bounce 2s infinite;
  z-index: 15;
  transition: opacity 0.3s;
  pointer-events: none;
}

@keyframes bounce {
  0% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -10px);
  }
  100% {
    transform: translate(-50%, 0);
  }
}

.value-card {
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
}

.value-card-glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(1.05);
  backdrop-filter: blur(40px) saturate(180%) brightness(1.05);
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.08),
    0 0 0 0.5px rgba(255, 255, 255, 0.15) inset;
}

.figure-card {
  opacity: 0;
  transform: translateX(200px);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  backdrop-filter: blur(25px) saturate(180%);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-highlight);
  border-left: 1px solid var(--glass-highlight);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 0 0 1px var(--glass-border);
  padding: 24px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.figure-card:hover {
  transform: translateY(-5px) translateX(0) !important;
  background: var(--glass-bg);
  border-color: var(--accent);
}

/* Key Figures - Responsive */
@media (max-width: 1023px) {
  #key-figures {
    position: relative !important;
    height: auto !important;
    padding: 4rem 1.5rem !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  #key-figures .max-w-xl {
    text-align: center !important;
    max-width: 100% !important;
  }
  
  #key-figures .text-right {
    text-align: center !important;
  }
  
  #key-figures .justify-end {
    justify-content: center !important;
  }
  
  .figure-card {
    transform: translateY(30px);
  }
}

@media (max-width: 768px) {
  .figure-card {
    padding: 16px;
    border-radius: 16px;
  }
  
  #key-figures .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  #key-figures .text-4xl {
    font-size: 2rem !important;
  }
  
  #key-figures .text-3xl {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  #key-figures {
    padding: 2rem 1rem !important;
  }
  
  .figure-card {
    padding: 12px;
    border-radius: 12px;
  }
}

.testimonial-section {
  background: transparent;
  color: var(--text-main);
  border-radius: 0 0 64px 64px;
  overflow: hidden;
  margin-bottom: 0;
}

body:not(.dark-mode) .testimonial-section .grid > div {
  background: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}

body.dark-mode .testimonial-section .grid > div {
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.testimonial-section .grid > div:hover {
  background: var(--accent) !important;
  color: white !important;
}

.testimonial-section .grid > div > * {
  position: relative;
  z-index: 2;
}

/* ============================================
   STYLES TEXTE - Cohérence avec about.html
   ============================================ */

/* Style texte doré pour les titres en italique */
strong.serif-font.italic {
  color: #B48A3C !important;
  display: inline;
  line-height: inherit;
}

/* Texte blanc en dark mode, bleu en light mode */
.dark-mode .text-white {
  color: #ffffff !important;
}

body:not(.dark-mode) .text-white {
  color: #091A30 !important;
}

/* ============================================
   HERO SECTION - PREMIUM REDESIGN
   ============================================ */

/* Hero Floating Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

@keyframes float-slow {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(180deg);
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce-gentle {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes scroll-dot {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.3;
  }
}

@keyframes underline-draw {
  from {
    stroke-dashoffset: 200;
  }
  to {
    stroke-dashoffset: 0;
  }
}

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

.animate-float-delayed {
  animation: float-delayed 5s ease-in-out infinite;
  animation-delay: 1s;
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

/* Floating animation variants - Different durations */
.float-6s { animation: float 6s ease-in-out infinite; }
.float-7s { animation: float 7s ease-in-out infinite; }
.float-8s { animation: float 8s ease-in-out infinite; }
.float-9s { animation: float 9s ease-in-out infinite; }
.float-10s { animation: float 10s ease-in-out infinite; }
.float-11s { animation: float 11s ease-in-out infinite; }

/* Floating animation with delays */
.delay-500 { animation-delay: 0.5s; }
.delay-1000 { animation-delay: 1s; }
.delay-1500 { animation-delay: 1.5s; }
.delay-2000 { animation-delay: 2s; }
.delay-3000 { animation-delay: 3s; }

/* Rotation transforms */
.rotate-12 { transform: rotate(12deg); }
.rotate-15 { transform: rotate(15deg); }
.rotate-20 { transform: rotate(20deg); }
.rotate-30 { transform: rotate(30deg); }
.rotate-45 { transform: rotate(45deg); }
.-rotate-10 { transform: rotate(-10deg); }
.-rotate-15 { transform: rotate(-15deg); }

/* CTA buttons z-index and pointer events */
.cta-interactive {
  pointer-events: auto;
  position: relative;
  z-index: 20;
}

.animate-spin-slow {
  animation: spin-slow 30s linear infinite;
}

.animate-bounce-gentle {
  animation: bounce-gentle 2s ease-in-out infinite;
}

.animate-scroll-dot {
  animation: scroll-dot 1.5s ease-in-out infinite;
}

.hero-underline {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: underline-draw 1s ease forwards;
  animation-delay: 0.8s;
}

/* Glass Stat Cards */
.glass-stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Hero Badge Animation */
.hero-badge {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.1s;
}

/* Hero title gradient text */
.hero-gradient-text {
  background: linear-gradient(135deg, #B48A3C 0%, #D4AF37 50%, #B48A3C 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Hero Title Animations */
.hero-title-line-1 {
  opacity: 0;
  transform: translateY(40px);
  animation: heroTitleReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title-line-1:nth-child(2) {
  animation-delay: 0.1s;
}

.hero-title-line-2 {
  opacity: 0;
  transform: translateY(40px);
  animation: heroTitleReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

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

.hero-description {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.5s;
}

.hero-buttons {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.7s;
}

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

/* Hero Button Primary */
.hero-btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #B48A3C 0%, #D4AF37 100%);
  box-shadow: 
    0 4px 15px rgba(180, 138, 60, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1.125rem;
  padding: 1.25rem 2.5rem;
}

@media (min-width: 640px) {
  .hero-btn-primary {
    font-size: 1.25rem;
    padding: 1.5rem 3rem;
  }
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(180, 138, 60, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s;
}

.hero-btn-primary:hover::after {
  left: 100%;
}

/* Hero Button Secondary */
.hero-btn-secondary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn-secondary:hover {
  transform: translateY(-2px);
}

/* ============================================
   SERVICE SECTIONS ENHANCEMENTS
   ============================================ */

.service-image-container {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-image-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(180, 138, 60, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.service-image-container:hover::before {
  opacity: 1;
}

.service-image-container:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 20px 60px rgba(180, 138, 60, 0.2),
    0 0 0 1px rgba(180, 138, 60, 0.3);
}

/* ============================================
   PORTFOLIO CARDS ENHANCEMENTS
   ============================================ */

.portfolio-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(180, 138, 60, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 1;
}

.portfolio-card:hover::after {
  opacity: 1;
}

.portfolio-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(180, 138, 60, 0.4),
    inset 0 0 60px rgba(180, 138, 60, 0.1);
}

.portfolio-card .absolute.inset-0:first-of-type {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .absolute.inset-0:first-of-type {
  transform: scale(1.1);
}

/* ============================================
   VALUE CARDS ENHANCEMENTS
   ============================================ */

.value-card {
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(180, 138, 60, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.value-card:hover::before {
  opacity: 1;
}

.value-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(180, 138, 60, 0.3);
}

.value-card i {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover i {
  transform: scale(1.1) rotate(5deg);
}

/* ============================================
   SERVICE CARDS (3 PILIERS) ENHANCEMENTS
   ============================================ */

.service-card {
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 2px;
  background: linear-gradient(135deg, rgba(180, 138, 60, 0.3), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(180, 138, 60, 0.4);
}

.service-card .absolute.top-0.right-0 {
  transition: transform 0.25s ease;
}

.service-card:hover .absolute.top-0.right-0 {
  transform: translate(-10px, -10px) scale(1.2);
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

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

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

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */

/* Uniquement pour les boutons dans le contenu principal, pas dans la navbar */
main .btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

main .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 30px rgba(180, 138, 60, 0.3),
    0 0 0 1px rgba(180, 138, 60, 0.2);
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .service-image-container,
  .portfolio-card {
    height: 300px !important;
  }
  
  .animate-pulse-slow {
    display: none;
  }
}

/* ============================================
   GLASSMORPHISM ENHANCEMENTS
   ============================================ */

/* Uniquement pour les boutons liquid-glass dans le hero, pas la navbar */
section.hero .button-secondary-glass.liquid-glass {
  position: relative;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

section.hero .button-secondary-glass.liquid-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

section.hero .button-secondary-glass.liquid-glass:hover::before {
  left: 100%;
}

section.hero .button-secondary-glass.liquid-glass:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(180, 138, 60, 0.2),
    0 0 40px rgba(180, 138, 60, 0.1);
}

/* ============================================
   SMOOTH SCROLL ENHANCEMENT
   ============================================ */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* ============================================
   LOADING STATES & SKELETON SCREENS
   ============================================ */

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-secondary) 0%,
    var(--bg-card) 50%,
    var(--bg-secondary) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* ============================================
   PREMIUM MICRO-INTERACTIONS
   ============================================ */

/* Magnetic Effect for Buttons */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.magnetic:hover {
  transform: translateY(-2px);
}

/* Ripple Effect */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
  width: 300px;
  height: 300px;
}

/* ============================================
   ENHANCED FOCUS STATES (Accessibility)
   ============================================ */

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   PARALLAX ENHANCEMENTS
   ============================================ */

.parallax-slow {
  transition: transform 0.1s ease-out;
}

.parallax-fast {
  transition: transform 0.05s ease-out;
}

/* ============================================
   PREMIUM GRADIENT ANIMATIONS
   ============================================ */

@keyframes gradient-xy {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.gradient-animated {
  background-size: 200% 200%;
  animation: gradient-xy 3s ease infinite;
}

/* ============================================
   PREMIUM HOVER EFFECTS
   ============================================ */

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(180, 138, 60, 0.4);
}

/* ============================================
   BENTO GRID CARDS
   ============================================ */

.bento-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block !important;
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(180, 138, 60, 0.1);
}

/* Bento card internal layout */
.bento-card > div {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

/* Marquee Animation for brands */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

/* Text Reveal Effect */
.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  animation: textReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes textReveal {
  to {
    transform: translateY(0);
  }
}

/* ============================================
   ORGANIC SHAPES & EDITORIAL STYLES
   ============================================ */

/* Font cursive - Great Vibes */
.font-cursive {
  font-family: 'Great Vibes', cursive;
}

/* ============================================
   LIGHT THEME OPTIMIZATIONS
   ============================================ */

/* Ensure cards have proper background in light mode */
body:not(.dark-mode) .bg-\[var\(--bg-card\)\] {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Better contrast for gold elements in light mode */
body:not(.dark-mode) .text-\[\#B48A3C\] {
  color: #9A7633;
}

/* Light theme for 3D cards */
body:not(.dark-mode) .bento-card {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(180, 138, 60, 0.15) !important;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(180, 138, 60, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body:not(.dark-mode) .bento-card:hover {
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(180, 138, 60, 0.3) !important;
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(180, 138, 60, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-8px) scale(1.01);
}

/* Light theme text contrast */
body:not(.dark-mode) .bento-card .text-\[var\(--text-main\)\] {
  color: #1a1a1a !important;
}

body:not(.dark-mode) .bento-card .text-muted {
  color: #666 !important;
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

/* Smooth horizontal scroll for testimonials on mobile */
@media (max-width: 639px) {
  .overflow-x-auto {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .overflow-x-auto > * {
    scroll-snap-align: start;
  }
  
  /* Hide scrollbar on mobile */
  .overflow-x-auto::-webkit-scrollbar {
    display: none;
  }
  
  .overflow-x-auto {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

/* Ensure touch targets are at least 44px */
@media (max-width: 639px) {
  .btn-action,
  details summary,
  a[href] {
    min-height: 44px;
  }
}

/* Better spacing on very small screens */
@media (max-width: 374px) {
  .text-3xl {
    font-size: 1.5rem;
  }
  
  .px-5 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Organic blob shapes */
.organic-blob-gold {
  background: radial-gradient(ellipse at center, #B48A3C 0%, transparent 70%);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.organic-blob-blue {
  background: radial-gradient(ellipse at center, #B48A3C 0%, transparent 70%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* Line-through effect */
.line-through {
  text-decoration: line-through;
  text-decoration-color: var(--text-main);
  text-decoration-thickness: 2px;
}

/* Staggered grid effect */
.stagger-grid > *:nth-child(2) {
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .stagger-grid > *:nth-child(2) {
    margin-top: 4rem;
  }
}

/* Editorial accent line */
.editorial-line::before {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1rem;
}

/* Hand-drawn underline animation */
@keyframes hand-draw {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.hand-drawn-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: hand-draw 1.5s ease forwards;
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */

#scroll-progress-indicator {
  --indicator-size: 56px;
  --indicator-color: #B48A3C;
  --indicator-bg: var(--bg-card);
  
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: var(--indicator-size);
  height: var(--indicator-size);
  border-radius: 50%;
  background: var(--indicator-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8) translateY(20px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

#scroll-progress-indicator.is-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

#scroll-progress-indicator:hover {
  border-color: var(--indicator-color);
  box-shadow: 0 12px 40px rgba(180, 138, 60, 0.25);
}

#scroll-progress-indicator svg:first-child {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

#scroll-progress-indicator .indicator-circle-bg {
  fill: none;
  stroke: var(--border-color);
  stroke-width: 3;
}

#scroll-progress-indicator .indicator-circle-progress {
  fill: none;
  stroke: var(--indicator-color);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s ease;
}

#scroll-progress-indicator .indicator-loop {
  position: absolute;
  width: 120%;
  height: 120%;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: indicator-spin 12s linear infinite;
  animation-play-state: paused;
}

#scroll-progress-indicator:hover .indicator-loop {
  opacity: 1;
  transform: scale(1);
  animation-play-state: running;
}

#scroll-progress-indicator .indicator-loop text {
  fill: var(--indicator-color);
  font-size: 5.8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@keyframes indicator-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#scroll-progress-indicator .indicator-icon {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

#scroll-progress-indicator:hover .indicator-icon {
  transform: translateY(-2px);
}

#scroll-progress-indicator .indicator-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--indicator-color);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #scroll-progress-indicator {
    --indicator-size: 48px;
    bottom: 24px;
    right: 24px;
  }
  
  #scroll-progress-indicator .indicator-icon {
    width: 16px;
    height: 16px;
  }
  
  #scroll-progress-indicator .indicator-loop {
    display: none;
  }
}

/* ============================================


