/**
 * ============================================
 * ESPRIT CRÉATIF - UNIFIED DESIGN SYSTEM
 * Signature Style: "Liquid Glass Morphism"
 * ============================================
 *
 * Design Philosophy:
 * - Fluid, organic shapes
 * - Glass morphism with depth
 * - Subtle gradients everywhere
 * - Micro-interactions on everything
 * - Consistent rhythm and spacing
 */

/* ============================================
   SIGNATURE COMPONENT: Liquid Card
   ============================================ */

.liquid-card {
  position: relative;
  padding: 2rem;
  border-radius: 2rem;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(242, 236, 212, 0.3) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(242, 236, 212, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.dark .liquid-card {
  background: linear-gradient(135deg,
    rgba(28, 25, 23, 0.9) 0%,
    rgba(12, 10, 9, 0.8) 100%
  );
  border-color: rgba(242, 236, 212, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(242, 236, 212, 0.1);
}

.liquid-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(242, 236, 212, 0.5),
    transparent
  );
}

.liquid-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 20px 60px rgba(242, 236, 212, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: rgba(242, 236, 212, 0.6);
}

.dark .liquid-card:hover {
  box-shadow:
    0 20px 60px rgba(242, 236, 212, 0.2),
    inset 0 1px 0 rgba(242, 236, 212, 0.2);
}

/* ============================================
   SIGNATURE COMPONENT: Fluid Button
   ============================================ */

.fluid-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  isolation: isolate;
}

.fluid-btn-primary {
  background: linear-gradient(135deg, #f2ecd4 0%, #d4a574 100%);
  color: #181714;
  box-shadow:
    0 4px 16px rgba(242, 236, 212, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.fluid-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #d4a574 0%, #f2ecd4 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.fluid-btn-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 12px 32px rgba(242, 236, 212, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.fluid-btn-primary:hover::before {
  opacity: 1;
}

.fluid-btn-secondary {
  background: rgba(24, 23, 20, 0.05);
  backdrop-filter: blur(10px);
  color: #181714;
  border: 2px solid rgba(24, 23, 20, 0.1);
}

.dark .fluid-btn-secondary {
  background: rgba(242, 236, 212, 0.1);
  color: #f2ecd4;
  border-color: rgba(242, 236, 212, 0.2);
}

.fluid-btn-secondary:hover {
  background: rgba(242, 236, 212, 0.2);
  border-color: rgba(242, 236, 212, 0.4);
  transform: translateY(-2px) scale(1.05);
}

/* Icon Animation */
.fluid-btn i {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fluid-btn:hover i {
  transform: translateX(4px);
}

/* ============================================
   SIGNATURE COMPONENT: Section Header
   ============================================ */

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg,
    rgba(242, 236, 212, 0.2) 0%,
    rgba(212, 165, 116, 0.2) 100%
  );
  backdrop-filter: blur(10px);
  border: 1px solid rgba(242, 236, 212, 0.3);
  font-size: 0.875rem;
  font-weight: 600;
  color: #181714;
}

.dark .section-badge {
  background: linear-gradient(135deg,
    rgba(242, 236, 212, 0.15) 0%,
    rgba(212, 165, 116, 0.15) 100%
  );
  color: #f2ecd4;
  border-color: rgba(242, 236, 212, 0.2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #181714;
  margin-bottom: 1.5rem;
}

.dark .section-title {
  color: #ffffff;
}

.section-title .gradient-text {
  background: linear-gradient(135deg, #f2ecd4 0%, #d4a574 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #57534e;
}

.dark .section-description {
  color: #a8a29e;
}

/* ============================================
   SIGNATURE COMPONENT: Feature Card
   ============================================ */

.feature-card {
  position: relative;
  padding: 2.5rem;
  border-radius: 2rem;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(250, 250, 249, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  border: 1px solid rgba(242, 236, 212, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.dark .feature-card {
  background: linear-gradient(135deg,
    rgba(28, 25, 23, 0.8) 0%,
    rgba(12, 10, 9, 0.9) 100%
  );
  border-color: rgba(242, 236, 212, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at top right,
    rgba(242, 236, 212, 0.1) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow:
    0 24px 64px rgba(242, 236, 212, 0.25),
    0 0 0 1px rgba(242, 236, 212, 0.3);
  border-color: rgba(242, 236, 212, 0.4);
}

.dark .feature-card:hover {
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(242, 236, 212, 0.3);
}

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

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #f2ecd4 0%, #d4a574 100%);
  box-shadow:
    0 8px 24px rgba(242, 236, 212, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow:
    0 12px 32px rgba(242, 236, 212, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feature-icon i {
  font-size: 1.5rem;
  color: #181714;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #181714;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.dark .feature-title {
  color: #ffffff;
}

.feature-card:hover .feature-title {
  color: #d4a574;
}

.dark .feature-card:hover .feature-title {
  color: #f2ecd4;
}

.feature-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #57534e;
  margin-bottom: 1.5rem;
}

.dark .feature-description {
  color: #a8a29e;
}

/* ============================================
   SIGNATURE PATTERN: Ambient Orbs
   ============================================ */

.ambient-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #f2ecd4 0%, #d4a574 100%);
  top: -200px;
  left: -200px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #d4a574 0%, #f2ecd4 100%);
  bottom: -250px;
  right: -250px;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #f2ecd4 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.dark .orb {
  opacity: 0.3;
}

/* ============================================
   SIGNATURE PATTERN: Dotted Grid
   ============================================ */

.dotted-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(242, 236, 212, 0.15) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  opacity: 0.5;
  pointer-events: none;
}

.dark .dotted-grid {
  background-image: radial-gradient(
    circle,
    rgba(242, 236, 212, 0.05) 1px,
    transparent 1px
  );
}

/* ============================================
   UNIFIED SPACING RHYTHM
   ============================================ */

.section-padding {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

@media (min-width: 1024px) {
  .section-padding {
    padding-top: 10rem;
    padding-bottom: 10rem;
  }
}

.section-spacing {
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .section-spacing {
    margin-bottom: 6rem;
  }
}

/* ============================================
   UNIFIED ANIMATIONS
   ============================================ */

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

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

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

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.animate-in-delay-1 {
  animation-delay: 0.1s;
}

.animate-in-delay-2 {
  animation-delay: 0.2s;
}

.animate-in-delay-3 {
  animation-delay: 0.3s;
}

.animate-in-delay-4 {
  animation-delay: 0.4s;
}

.animate-in-delay-5 {
  animation-delay: 0.5s;
}

/* ============================================
   UNIFIED HOVER STATES
   ============================================ */

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-glow {
  position: relative;
  transition: all 0.3s ease;
}

.hover-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #f2ecd4 0%, #d4a574 100%);
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.hover-glow:hover::after {
  opacity: 0.5;
}

/* ============================================
   UNIFIED TRANSITIONS
   ============================================ */

* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth all color transitions */
.smooth-color {
  transition: color 0.3s ease,
              background-color 0.3s ease,
              border-color 0.3s ease;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

@media (max-width: 768px) {
  .liquid-card {
    padding: 1.5rem;
    border-radius: 1.5rem;
  }

  .feature-card {
    padding: 2rem;
  }

  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}
