/* Ukrywamy elementy przed startem animacji */
[data-animate] {
    opacity: 0;
}

/* Przywracamy widoczność, gdy klasa animacji zostanie dodana */
.animate__animated {
    opacity: 1;
}

/* Główne ustawienia sekcji */
.features-section {
    padding: 5rem 0;
    width: 100%;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Nagłówek sekcji */
.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.title-underline {
    height: 3px;
    width: 60px;
    background-color: var(--text-secondary);
    margin: 0 auto;
}

/* Grid kart */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

/* Karta funkcjonalności */
.feature-card {
    flex: 1 1 300px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                background 0.3s ease, 
                box-shadow 0.3s ease;
    cursor: default;
}

/* Animacja na najechanie (Hover) */
.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Ikony */
.feature-icon-wrapper {
    margin-bottom: 1.5rem;
}

.feature-icon-wrapper i {
    font-size: 3.5rem;
    color: var(--text-primary);
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.feature-card:hover .feature-icon-wrapper i {
    transform: scale(1.1);
    color: var(--text-secondary);
}

/* Tekst w kartach */
.feature-name {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* WCAG - Focus State */
.feature-card:focus-within {
    outline: 3px solid var(--text-secondary);
    outline-offset: 4px;
}

/* Media Queries */
@media (max-width: 768px) {
    .features-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}