/* Modern Landing Page Section Transitions */

/* Section spacing and transitions */
section {
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Create visual separation between sections */
.problems-section {
    margin-bottom: 0;
}

.features-section {
    margin-top: 0;
    margin-bottom: 0;
}

.solutions-section {
    margin-top: 0;
    margin-bottom: 0;
}

.use-cases-section {
    margin-top: 0;
    margin-bottom: 0;
}

.main-features-section {
    margin-top: 0;
    margin-bottom: 0;
}

/* Smooth scroll reveal animations */
@keyframes sectionReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply reveal animation to section content */
.section-header,
.features-header,
.solutions-header,
.use-cases-header,
.main-features-header {
    animation: sectionReveal 0.8s ease-out 0.2s both;
}

/* Staggered content animations */
.feature-item,
.solution-option,
.use-case-item,
.problem-card {
    animation: sectionReveal 0.6s ease-out both;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }
.feature-item:nth-child(5) { animation-delay: 0.5s; }
.feature-item:nth-child(6) { animation-delay: 0.6s; }

/* Background pattern for section dividers */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(71, 164, 160, 0.3) 50%, transparent 100%);
    margin: 0 auto;
    width: 100%;
    max-width: 200px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for performance */
    @media (prefers-reduced-motion: no-preference) {
        .feature-item,
        .solution-option,
        .use-case-item,
        .problem-card {
            animation-duration: 0.4s;
        }
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .section-divider {
        background: linear-gradient(90deg, transparent 0%, #000000 50%, transparent 100%);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body::before {
        background: 
            radial-gradient(ellipse at top left, rgba(71, 164, 160, 0.05) 0%, transparent 50%),
            radial-gradient(ellipse at bottom right, rgba(255, 107, 53, 0.05) 50%, transparent 100%);
    }
}
