/* Custom Glassmorphism & Animations */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #047857;
    /* Emerald 700 */
    --primary-light: #10b981;
    /* Emerald 500 */
    --primary-dark: #064e3b;
    /* Emerald 900 */
    --dark: #0f172a;
    /* Slate 900 */
    --light: #f8fafc;
    /* Slate 50 */
    --accent: #d97706;
    /* Amber 600 */
    --text-main: #334155;
    /* Slate 700 */
    --text-light: #64748b;
    /* Slate 500 */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #fcfcfc;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.text-gradient-emerald {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Backgrounds & Sections */
.bg-subtle-pattern {
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
}

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

/* Glassmorphism - Premium */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.1);
}

.glass-dropdown {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(226, 232, 240, 1);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

/* Feature Cards & Hovers */
.feature-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    background: white;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--primary-light);
    box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.2);
}

/* Product Cards */
.product-card {
    transition: all 0.4s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(4, 120, 87, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(4, 120, 87, 0.4);
    filter: brightness(1.1);
}

/* FAQ Accordion */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.4s ease;
    opacity: 0;
}

.faq-item.active .faq-content {
    max-height: 500px;
    /* arbitrary large value */
    opacity: 1;
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease 0.1s;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Logo Slider */
.logo-slider {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-slide {
    display: inline-flex;
    gap: 4rem;
    animation: slide 40s linear infinite;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

    /* Logic changed for better loop if content doubled properly */
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    h1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .container,
    .max-w-7xl {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .py-24 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .gap-12 {
        gap: 2.5rem !important;
    }

    .gap-16 {
        gap: 3rem !important;
    }

    /* Hero Adjustments */
    main.min-h-\[90vh\] {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }

    /* Mobile Menu */
    .mobile-menu-open {
        overflow: hidden;
    }
}

/* Footer Enhancements */
.footer-link {
    position: relative;
    transition: color 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-light);
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}