/* Common Section Styles */
section {
    padding: var(--spacing-4xl) 0;
    overflow: hidden;
}

section:nth-child(even) {
    background-color: var(--color-gray-50);
}

/* Section Animations */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation for Grid Items */
.animate-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-stagger.visible > *:nth-child(1) { transition-delay: 0.1s; }
.animate-stagger.visible > *:nth-child(2) { transition-delay: 0.2s; }
.animate-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.animate-stagger.visible > *:nth-child(4) { transition-delay: 0.4s; }
.animate-stagger.visible > *:nth-child(5) { transition-delay: 0.5s; }
.animate-stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }

.animate-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: var(--font-size-h2);
    color: var(--color-primary-main);
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-xl);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-main), var(--color-secondary-main));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--color-text-secondary);
    font-size: var(--font-size-h5);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Responsive Sections */
@media (max-width: 1024px) {
    section {
        padding: var(--spacing-3xl) 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--spacing-2xl) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-2xl);
    }

    .section-title {
        font-size: var(--font-size-h3);
    }

    .section-subtitle {
        font-size: var(--font-size-body);
    }
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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