:root {
    --primary: #FF6F3C;
    --primary-accent: #20B486;
    --hero-bg: #FFF9F6;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

.hero-bg {
    background-color: var(--hero-bg);
}

.dark .hero-bg {
    background-color: #1f2937;
}

.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

.faq-toggle:hover {
    color: var(--primary);
}

.faq-toggle:hover .material-symbols-outlined {
    color: var(--primary) !important;
}

* {
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.carousel-slide {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-image {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

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

.dark ::-webkit-scrollbar-track {
    background: #374151;
}

.dark ::-webkit-scrollbar-thumb {
    background: #22c55e;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.2);
}

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

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

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dark .card-hover:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.pulse {
    animation: pulse 2s infinite;
}

.carousel-content {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    min-height: 250px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
    opacity: 0;
}

.carousel-slide.next {
    transform: translateX(100%);
    opacity: 0;
}

#hero-images {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.carousel-image.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.carousel-image.prev {
    transform: translateX(-100%);
    opacity: 0;
}

.carousel-image.next {
    transform: translateX(100%);
    opacity: 0;
}

.carousel-dot {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    border: none;
    outline: none;
}

.carousel-dot:hover {
    transform: scale(1.2);
}

.carousel-dot.active {
    background-color: var(--primary) !important;
    opacity: 1 !important;
    transform: scale(1.1);
}

.carousel-content,
.carousel-slide,
.carousel-image {
    backface-visibility: hidden;
    perspective: 1000px;
}

@media (prefers-reduced-motion: reduce) {
    .carousel-slide,
    .carousel-image {
        transition: opacity 0.3s ease-in-out;
        transform: none !important;
    }
    
    .carousel-slide.active,
    .carousel-image.active {
        opacity: 1;
    }
    
    .carousel-slide:not(.active),
    .carousel-image:not(.active) {
        opacity: 0;
    }
    
    .carousel-dot {
        transition: background-color 0.2s ease-in-out;
    }
    
    .float-animation {
        animation: none;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .carousel-content {
        min-height: 200px;
    }
    
    .carousel-slide {
        transition-duration: 0.5s;
    }
    
    .carousel-image {
        transition-duration: 0.5s;
    }
    
    /* Reduce spacing on mobile */
    .hero-bg {
        margin-top: 0.5rem;
    }
    
    /* Ensure no horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    /* Better mobile image sizing */
    .carousel-image img {
        max-width: 100%;
        height: auto;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .carousel-content {
        min-height: 180px;
    }
    
    /* Further reduce padding on small screens */
    .hero-bg {
        padding: 1rem 0.75rem;
    }
}

/* Counter Animation Styles */
.counter {
    transition: all 0.3s ease;
}

.counter::after {
    content: '+';
    margin-left: 2px;
}

/* Enhanced Stats Cards */
.group:hover .counter {
    transform: scale(1.05);
}

/* Smooth number transitions */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter.counting {
    animation: countUp 0.6s ease-out;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
