/* Modern Design System */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --accent: #f59e0b;
  --background: #ffffff;
  --surface: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
  --success: #22c55e;
  --error: #ef4444;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Modern Reset & Base Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.5;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Modern Typography */


/* Modern Button Styles */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
}

.btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Card Styles */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Modern Input Styles */
.input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--secondary);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  background: var(--surface);
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Animation Utilities */
.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.slide-up {
  animation: slideUp 0.5s ease forwards;
}

.scale-in {
  animation: scaleIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Glass Morphism Effects */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Modern Grid Layout */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

/* Decorative Elements */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-border {
  position: relative;
  border: double 2px transparent;
  border-radius: var(--radius-md);
  background-image: linear-gradient(white, white), 
                    linear-gradient(135deg, var(--primary), var(--accent));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Modern Loading States */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface) 0%,
    rgba(129, 140, 248, 0.1) 50%,
    var(--surface) 100%
  );
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
} 

/* Hero Section Animations */
.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--primary);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end),
             blink-caret .75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--primary) }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Trust Badge Animations */
.trust-badge {
  transition: transform 0.3s ease;
}

.trust-badge:hover {
  transform: translateY(-2px);
}

/* Enhanced Image Hover Effects */
.transform-gpu {
  will-change: transform;
  transform: translateZ(0);
}

/* Scroll Indicator Animation */
@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Play Button Hover Effect */
.play-button {
  transition: all 0.3s ease;
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Enhanced Button Styles */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn .group-hover\:translate-x-1 {
  transition: transform 0.3s ease;
}

/* Gradient Background Animation */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.bg-gradient-animate {
  background: linear-gradient(-45deg, var(--primary), var(--accent), var(--success));
  background-size: 200% 200%;
  animation: gradientFlow 15s ease infinite;
} 

/* --- Hero Carousel Enhancements --- */

/* Base slide styles */
.hero-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
}

/* Active slide styles */
.hero-carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Ken Burns effect for background images */
.ken-burns {
    animation: ken-burns 30s ease-in-out infinite alternate;
    animation-play-state: paused;
}

@keyframes ken-burns {
    0% {
        transform: scale(1.1) translate(-2%, 2%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

.hero-carousel-slide.active .ken-burns {
    animation-play-state: running;
}


/* Content animation (fade and slide up) */
.slide-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.hero-carousel-slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* --- Indicator Styles --- */
.hero-carousel-indicators button {
    width: 40px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.hero-carousel-indicators button.active .indicator-progress {
    width: 100%;
    height: 100%;
    background-color: white;
    transform-origin: left;
    animation-name: fill-indicator;
    animation-duration: 5s; /* Should match JS interval */
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes fill-indicator {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Reusable CTA button (WhatsApp style) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* 8px */
  padding: 0.625rem 1.25rem; /* 10px 20px */
  border-radius: 9999px; /* pill */
  background: #FFB74D; /* amber */
  color: #111827; /* gray-900 */
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn-cta:hover {
  background: #f59e0b; /* amber-500 */
  box-shadow: var(--shadow-md);
}

.btn-cta:active {
  transform: translateY(1px);
}

.btn-cta:focus-visible {
  outline: 3px solid rgba(17, 24, 39, 0.15);
  outline-offset: 2px;
}

.btn-cta__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn-cta__label {
  line-height: 1;
}

@media (min-width: 768px) {
  .btn-cta {
    gap: 0.625rem; /* 10px */
    padding: 0.75rem 1.5rem; /* 12px 24px */
  }
  .btn-cta__icon {
    width: 24px;
    height: 24px;
  }
}

/* Hero Carousel Specific Styles */
.hero-carousel {
    position: relative;
}

/* Smooth fade transitions */
.hero-slide {
    position: relative;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Navigation buttons hover effects */
.hero-prev:hover,
.hero-next:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Dots hover effects */
.hero-dot {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.hero-dot:hover {
    transform: scale(1.2);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 400px;
    }
    
    .hero-carousel {
        overflow: hidden;
    }
    
    /* Card text sizing for mobile */
    .rounded-lg h3.font-heading.font-semibold {
        font-size: 16px !important;
    }
    
    .rounded-lg p.text-gray-700 {
        font-size: 14px !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Reduce card height on mobile and ensure centering */
    .rounded-lg.h-\[240px\] {
        height: 180px !important;
        justify-content: center !important;
    }
}