@tailwind base;
@tailwind components;
@tailwind utilities;

/* ============================================
   CUSTOM BASE STYLES
   Enhanced typography, accessibility, and foundations
   ============================================ */
@layer base {
  *, *::before, *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  body {
    background-color: #FAF8F5;
    color: #4A4233;
    font-family: 'Lexend', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
  }

 

  /* Improved Typography Hierarchy - Unified with Lexend */
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Lexend', system-ui, sans-serif;
    color: #2C2721;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  @media (min-width: 768px) {
    h1 {
      font-size: 3rem;
      line-height: 1;
    }
  }

  @media (min-width: 1024px) {
    h1 {
      font-size: 3.75rem;
      line-height: 1;
    }
  }

  h2 {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  @media (min-width: 768px) {
    h2 {
      font-size: 2.25rem;
      line-height: 2.5rem;
    }
  }

  @media (min-width: 1024px) {
    h2 {
      font-size: 3rem;
      line-height: 1;
    }
  }

  h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  @media (min-width: 768px) {
    h3 {
      font-size: 1.5rem;
      line-height: 2rem;
    }
  }

  /* Images - Responsive and constrained */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  /* Accessibility - Enhanced Focus Visible */
  *:focus-visible {
    outline: 2px solid #7BA3A8;
    outline-offset: 2px;
    outline-width: 3px;
  }

  /* Skip link for accessibility - Hidden by default, visible on focus */
  .skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }

  .skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    width: auto;
    height: auto;
    padding: 0.75rem 1.25rem;
    background: #7BA3A8;
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    clip: auto;
  }

  /* Selection styling */
  ::selection {
    background-color: rgba(123, 163, 168, 0.3);
    color: #2C2721;
  }

  /* Smooth anchor scrolling */
  html.scroll-smooth {
    scroll-behavior: smooth;
  }
}

/* ============================================
   OVERRIDE TAILWIND RESET - Margins for block elements
   These styles override Tailwind's preflight reset
   ============================================ */

/* Paragraphs with proper spacing */
p {
  line-height: 1.7;
  max-width: 65ch;
  margin-top: 0;
  justify-self: anchor-center;
}

p:last-child {
  margin-bottom: 0 !important;
}

/* Headings with proper margins */
h1, h2, h3, h4, h5, h6 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
}

h1:first-child, h2:first-child, h3:first-child,
h4:first-child, h5:first-child, h6:first-child {
  margin-top: 0;
}

/* Blockquotes */
blockquote {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding-left: 1.5em;
  border-left: 4px solid #7BA3A8;
  font-style: italic;
  color: #9B7BB8;
}

/* Lists */
ul, ol {
  margin-top: 1em;
  margin-bottom: 1em;
  padding-left: 2em;
}

li {
  margin-bottom: 0.5em;
}

/* Horizontal rule */
hr {
  margin-top: 2em;
  margin-bottom: 2em;
  border: none;
  border-top: 1px solid #E8E0D5;
}

/* Figures and captions */
figure {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
}

figcaption {
  margin-top: 0.5em;
  font-size: 0.875rem;
  color: #9B7BB8;
  text-align: center;
}

/* Address and other block elements */
address {
  margin-bottom: 1em;
  font-style: normal;
}

/* Definition lists */
dl {
  margin-top: 1em;
  margin-bottom: 1em;
}

dt {
  margin-top: 0.75em;
  font-weight: 600;
}

dd {
  margin-left: 1.5em;
  margin-bottom: 0.75em;
}

/* Preformatted text and code */
pre {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  padding: 1rem;
  background-color: #F5EFE6;
  border-radius: 0.5rem;
  overflow-x: auto;
}

code {
  font-family: 'Lexend', system-ui, sans-serif;
  font-size: 0.9em;
}

pre code {
  padding: 0;
  background: none;
}

/* ============================================
   CUSTOM COMPONENTS
   Enhanced buttons, cards, and UI elements
   ============================================ */
@layer components {
  /* ==========================================
     BUTTONS - Enhanced with better states and feedback
     ========================================== */

  /* Primary button - Enhanced */
  .btn-primary {
    background-color: #A89BC8;
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(168, 155, 200, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
  }

  .btn-primary:hover {
    background-color: #9B7BB8;
    box-shadow: 0 12px 24px rgba(168, 155, 200, 0.4);
    transform: translateY(-2px) scale(1.02);
  }

  .btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 8px rgba(168, 155, 200, 0.3);
  }

  .btn-primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(168, 155, 200, 0.3);
  }

  .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
  }

  .btn-primary:active::before {
    width: 300px;
    height: 300px;
  }

  /* Secondary button - Enhanced */
  .btn-secondary {
    background-color: transparent;
    border: 2px solid #C2B49A;
    color: #4A4233;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
  }

  .btn-secondary:hover {
    border-color: #A89BC8;
    background-color: rgba(168, 155, 200, 0.05);
    color: #2C2721;
    box-shadow: 0 8px 16px rgba(168, 155, 200, 0.15);
    transform: translateY(-2px);
  }

  .btn-secondary:active {
    transform: translateY(0) scale(0.98);
  }

  .btn-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(168, 155, 200, 0.2);
  }

  /* WhatsApp button - Enhanced */
  .btn-whatsapp {
    background-color: #10b981;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
  }

  .btn-whatsapp:hover {
    background-color: #059669;
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
  }

  .btn-whatsapp:active {
    transform: translateY(0) scale(0.98);
  }

  .btn-whatsapp:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
  }

  /* Large CTA button variant */
  .btn-cta {
    background-color: #A89BC8;
    color: #ffffff;
    padding: 1.25rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(168, 155, 200, 0.35);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
  }

  .btn-cta:hover {
    background-color: #9B7BB8;
    box-shadow: 0 12px 32px rgba(168, 155, 200, 0.45);
    transform: translateY(-2px) scale(1.02);
  }

  /* ==========================================
     LAYOUT COMPONENTS
     ========================================== */

  /* Section container - Enhanced padding */
  .section-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
  }

  @media (min-width: 640px) {
    .section-container {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
  }

  @media (min-width: 1024px) {
    .section-container {
      padding-left: 2rem;
      padding-right: 2rem;
    }
  }

  /* Section header - Enhanced hierarchy */
  .section-header {
    text-align: center;
    margin-bottom: 4rem;
  }

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

  .section-header h2 {
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: 1.875rem;
    line-height: 2.25rem;
    color: #2C2721;
    margin-bottom: 1.25rem;
  }

  @media (min-width: 768px) {
    .section-header h2 {
      font-size: 2.25rem;
      line-height: 2.5rem;
    }
  }

  @media (min-width: 1024px) {
    .section-header h2 {
      font-size: 3rem;
      line-height: 1;
    }
  }

  .section-header .subtitle {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: #000000;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
  }

  @media (min-width: 768px) {
    .section-header .subtitle {
      font-size: 1.25rem;
      line-height: 1.75rem;
    }
  }

  .section-header .divider {
    width: 5rem;
    height: 0.375rem;
    background: linear-gradient(to right, #7BA3A8, #9AB37A, #A89BC8);
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  /* ==========================================
     CARDS - Enhanced depth and interactions
     ========================================== */

  /* Card base - Enhanced shadows and depth */
  .card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(199, 180, 154, 0.15);
    border: 1px solid rgba(228, 220, 208, 0.6);
  }

  .card:hover {
    box-shadow: 0 12px 40px rgba(199, 180, 154, 0.25);
    transform: translateY(-4px);
  }

  /* Service card - Enhanced */
  .service-card {
    background-color: transparent;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

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

  .service-card .service-icon {
    transition: all 0.5s ease;
  }

  .service-card:hover .service-icon {
    transform: scale(1.1) rotate(3deg);
  }

  /* Blog card - Enhanced image hover */
  .blog-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 0;
    transition: all 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(199, 180, 154, 0.15);
    border: 1px solid rgba(228, 220, 208, 0.6);
    text-decoration: none;
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .blog-card img {
    transition: transform 0.7s ease;
  }

  .blog-card:hover {
    box-shadow: 0 12px 40px rgba(199, 180, 154, 0.25);
    transform: translateY(-4px);
  }

  .blog-card:hover img {
    transform: scale(1.08);
  }

  /* ==========================================
     SPECIALTY CARDS
     ========================================== */

  /* Feature card with icon */
  .feature-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 2px 8px rgba(199, 180, 154, 0.15);
    border: 1px solid rgba(228, 220, 208, 0.6);
  }

  .feature-card:hover {
    box-shadow: 0 12px 40px rgba(199, 180, 154, 0.25);
    transform: translateY(-4px);
  }

  .feature-card .icon-wrapper {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: all 0.5s ease;
  }

  .feature-card:hover .icon-wrapper {
    transform: scale(1.1);
  }

  /* Testimonial card - Enhanced */
  .testimonial-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(199, 180, 154, 0.15);
    border: 1px solid rgba(228, 220, 208, 0.6);
    background: linear-gradient(135deg, #ffffff 0%, #faf8f5 100%);
  }

  /* ==========================================
     INPUT ELEMENTS
     ========================================== */

  /* Form input - Enhanced */
  .form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 2px solid #E8E0D5;
    background-color: #ffffff;
    color: #4A4233;
    transition: all 0.3s ease;
  }

  .form-input::placeholder {
    color: #C2B49A;
  }

  .form-input:hover {
    border-color: #D4C8B8;
  }

  .form-input:focus {
    outline: none;
    border-color: #7BA3A8;
    box-shadow: 0 0 0 4px rgba(123, 163, 168, 0.1);
  }

  /* ==========================================
     BADGES AND TAGS
     ========================================== */

  .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
  }

  .badge-teal {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: rgba(123, 163, 168, 0.15);
    color: #7BA3A8;
    border: 1px solid rgba(123, 163, 168, 0.2);
  }

  .badge-sage {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: rgba(154, 179, 122, 0.15);
    color: #9AB37A;
    border: 1px solid rgba(154, 179, 122, 0.2);
  }

  .badge-lavender {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: rgba(168, 155, 200, 0.15);
    color: #A89BC8;
    border: 1px solid rgba(168, 155, 200, 0.2);
  }
}

/* ============================================
   CUSTOM UTILITIES
   Enhanced animations, effects, and helpers
   ============================================ */
@layer utilities {
  /* ==========================================
     TEXT EFFECTS
     ========================================== */

  /* Enhanced text shadow for readability */
  .text-shadow-sm {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  }

  .text-shadow {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .text-shadow-lg {
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }

  /* Gradient text */
  .text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(135deg, #A89BC8 0%, #7BA3A8 50%, #9AB37A 100%);
  }

  /* ==========================================
     SHADOW UTILITIES - Enhanced depth
     ========================================== */

  .shadow-cream {
    box-shadow: 0 4px 20px rgba(168, 155, 200, 0.15);
  }

  .shadow-cream-lg {
    box-shadow: 0 8px 40px rgba(168, 155, 200, 0.2);
  }

  .shadow-teal {
    box-shadow: 0 4px 20px rgba(123, 163, 168, 0.2);
  }

  /* ==========================================
     BACKGROUND EFFECTS
     ========================================== */

  /* Gradient backgrounds */
  .bg-gradient-soft {
    background: linear-gradient(135deg, rgba(123, 163, 168, 0.08) 0%, rgba(154, 179, 122, 0.08) 50%, rgba(168, 155, 200, 0.08) 100%);
  }

  .bg-gradient-warm {
    background: linear-gradient(135deg, rgba(168, 155, 200, 0.08) 0%, rgba(212, 200, 184, 0.08) 100%);
  }

  /* Glass morphism effect */
  .glass {
    background: rgba(250, 248, 245, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
  }

  /* ==========================================
     ANIMATION UTILITIES
     ========================================== */

  /* Animation delay utilities */
  .delay-100 { animation-delay: 100ms; }
  .delay-150 { animation-delay: 150ms; }
  .delay-200 { animation-delay: 200ms; }
  .delay-250 { animation-delay: 250ms; }
  .delay-300 { animation-delay: 300ms; }
  .delay-400 { animation-delay: 400ms; }
  .delay-500 { animation-delay: 500ms; }

  /* Stagger children animation */
  .stagger-children > * {
    opacity: 0;
    animation: fadeUp 0.5s ease-out forwards;
  }

  .stagger-children > *:nth-child(1) { animation-delay: 0ms; }
  .stagger-children > *:nth-child(2) { animation-delay: 75ms; }
  .stagger-children > *:nth-child(3) { animation-delay: 150ms; }
  .stagger-children > *:nth-child(4) { animation-delay: 225ms; }
  .stagger-children > *:nth-child(5) { animation-delay: 300ms; }
  .stagger-children > *:nth-child(6) { animation-delay: 375ms; }

  /* ==========================================
     SCROLL REVEAL ANIMATIONS - Enhanced
     ========================================== */

  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  .reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .reveal-left.active {
    opacity: 1;
    transform: translateX(0);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .reveal-right.active {
    opacity: 1;
    transform: translateX(0);
  }

  .reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .reveal-scale.active {
    opacity: 1;
    transform: scale(1);
  }

  .reveal-fade {
    opacity: 0;
    transition: opacity 1s ease-out;
  }

  .reveal-fade.active {
    opacity: 1;
  }

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

  /* Hover lift effect */
  .hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  }

  /* Icon rotation on hover */
  .icon-rotate {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .group:hover .icon-rotate {
    transform: rotate(45deg);
  }

  /* Arrow slide on hover */
  .arrow-slide {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
  }

  .arrow-slide:hover {
    gap: 1rem;
  }

  /* Pulse ring animation */
  @keyframes pulse-ring {
    0% {
      transform: scale(0.8);
      opacity: 0.8;
    }
    100% {
      transform: scale(1.4);
      opacity: 0;
    }
  }

  .pulse-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  /* ==========================================
     SPACING UTILITIES
     ========================================== */

  /* Consistent section spacing */
  .section-spacer {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  @media (min-width: 768px) {
    .section-spacer {
      padding-top: 5rem;
      padding-bottom: 5rem;
    }
  }

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

  .section-spacer-sm {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  @media (min-width: 768px) {
    .section-spacer-sm {
      padding-top: 4rem;
      padding-bottom: 4rem;
    }
  }

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

  .section-spacer-lg {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  @media (min-width: 768px) {
    .section-spacer-lg {
      padding-top: 7rem;
      padding-bottom: 7rem;
    }
  }

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

/* ============================================
   REDUCED MOTION FOR ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   CUSTOM ANIMATIONS
   Additional keyframe animations
   ============================================ */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

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

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Scroll indicator animation - professional smooth scroll effect */
@keyframes scroll-indicator {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(12px);
    opacity: 0.4;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-scroll-indicator {
  animation: scroll-indicator 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* ============================================
   GEOMETRIC FIGURES ANIMATIONS
   Decorative floating shapes with calming motion
   ============================================ */

/* Floating animation - gentle up/down movement */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Gentle rotation - very slow, calming */
@keyframes gentle-rotate {
  0%, 100% {
    transform: rotate(0deg);
  }
   50% {
    transform: rotate(180deg);
  }
}

/* Soft pulse - breathing effect */
@keyframes pulse-soft {
  0%, 100% {
    opacity: 0.25;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.05);
  }
}

/* Drift - slow horizontal movement */
@keyframes drift {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(15px);
  }
}

/* Morph - subtle shape transformation */
@keyframes morph {
  0%, 100% {
    border-radius: 40%;
  }
  50% {
    border-radius: 50%;
  }
}

/* Animation classes */
.animate-float {
  animation: float 4s ease-in-out infinite;
}

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

.animate-rotate-gentle {
  animation: gentle-rotate 20s linear infinite;
}

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

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

.animate-morph {
  animation: morph 6s ease-in-out infinite;
}

/* Delay variations */
.animate-float-delay-1 { animation-delay: 0s; }
.animate-float-delay-2 { animation-delay: 1s; }
.animate-float-delay-3 { animation-delay: 2s; }
.animate-float-delay-4 { animation-delay: 3s; }

/* Geometric figure base class */
.geo-figure {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* Specific shape classes */
.geo-circle {
  border-radius: 50%;
}

.geo-square {
  border-radius: 16px;
}

.geo-square-lg {
  border-radius: 24px;
}

.geo-diamond {
  transform: rotate(45deg);
  border-radius: 8px;
}

/* Triangle using borders */
.geo-triangle {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 50px solid currentColor;
}

/* Hexagon */
.geo-hexagon {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Triangle with clip-path */
.geo-triangle-shape {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

/* Diamond shape */
.geo-diamond-shape {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* Star shape */
.geo-star-shape {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Color variants for geometric figures */
.geo-figure-teal { background-color: rgba(123, 163, 168, 0.5); }
.geo-figure-sage { background-color: rgba(154, 179, 122, 0.5); }
.geo-figure-lavender { background-color: rgba(168, 155, 200, 0.5); }

.geo-figure-teal-light { background-color: rgba(123, 163, 168, 0.4); }
.geo-figure-sage-light { background-color: rgba(154, 179, 122, 0.4); }
.geo-figure-lavender-light { background-color: rgba(168, 155, 200, 0.4); }

/* Color variants with accent colors */
.geo-teal { background-color: #7BA3A8; }
.geo-sage { background-color: #9AB37A; }
.geo-lavender { background-color: #A89BC8; }

/* With transparency (opacity) */
.geo-teal-light { background-color: rgba(123, 163, 168, 0.3); }
.geo-sage-light { background-color: rgba(154, 179, 122, 0.3); }
.geo-lavender-light { background-color: rgba(168, 155, 200, 0.3); }

/* Custom utilities */
@layer utilities {
  /* Text shadow for readability */
  .text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Animation delay utilities */
  .delay-100 { animation-delay: 100ms; }
  .delay-200 { animation-delay: 200ms; }
  .delay-300 { animation-delay: 300ms; }
  .delay-400 { animation-delay: 400ms; }
  .delay-500 { animation-delay: 500ms; }

  /* Scroll reveal classes */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

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

  .reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .reveal-left.active {
    opacity: 1;
    transform: translateX(0);
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .reveal-right.active {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   FOOTER LOGO INVERT
   Inverts logo colors for visibility on dark footer
   ============================================ */

/* Footer background color - morado oscuro */
.bg-footer-dark {
  background-color: #2C2B30;
}

/* ============================================
   Footer Specific Styles - Override global styles
   These styles ensure footer elements are independent
   ============================================ */

/* Estilos específicos para párrafos del footer - independientes del sitio */
.bg-footer-dark p {
  color: #FFFFFF !important;
  justify-self: auto !important;
  margin-bottom: 0 !important;
}

/* Color blanco para todos los textos y enlaces del footer */
.bg-footer-dark a,
.bg-footer-dark .text-white {
  color: #FFFFFF !important;
}

/* Iconos de redes sociales - usar color acorde a la paleta */
.bg-footer-dark .bg-cream-800 {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.bg-footer-dark .bg-cream-800:hover {
  background-color: #7BA3A8 !important; /* accent-teal */
}

/* Separador del footer - usar color blanco con baja opacidad */
.bg-footer-dark .border-cream-800\/50 {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
