/*
===========================================
   FEATURES SECTION STYLES
===========================================
*/

.features-section {
    background-color: #f7f9fe;
    padding: var(--spacing-4xl) 0;
    border-radius: 3.75rem 3.75rem 0rem 0rem;
    margin: 1rem auto 0rem;
}

.features-header {
    text-align: center;
    margin-bottom: var(--spacing-4xl);
    max-width: 730px;
    margin-left: auto;
    margin-right: auto;
}

.features-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-lg);
}

.features-description {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

/*
===========================================
   FEATURES GRID
===========================================
*/

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 1340px;
    margin: 0 auto;
}

.feature-card {
    border-radius: 1.875rem;
    padding: var(--spacing-2xl) var(--spacing-2xl) 0;
    min-height: 36.25rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card-blue {
    background: #155BFF;
}

.feature-card-green {
    background: #5DDB87;
}

.feature-title {
    color: var(--color-white);
    font-size: 2.125rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    line-height: normal;
    letter-spacing: -0.02125rem;
    width: 500px;
    position: relative;
    z-index: 10;
}

.feature-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.feature-visual.crew-member {
    left: 3.75rem;
}

.feature-image {
    max-width: 100%;
    max-height: 466px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/*
===========================================
   PARALLAX EFFECTS SETUP
===========================================
*/

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.parallax-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow: visible;
}

.parallax-bg.plane {
    padding: 10px 50px 0;
}

.parallax-bg.test-score {
    /* width: 130%; */
    /* height: 130%; */
    left: -0%;
    top: -16%;
}

.parallax-bg.geometric-aws {
    width: 140%;
    height: 140%;
    left: -20%;
    top: -20%;
}

.parallax-fg {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/*
===========================================
   RESPONSIVE DESIGN
===========================================
*/

@media (max-width: 1024px) {
    .features-grid {
        gap: var(--spacing-md);
        padding: 0 var(--spacing-md);
    }

    .feature-card {
        padding: var(--spacing-xl);
        min-height: 350px;
    }

    .features-title {
        font-size: var(--font-size-3xl);
    }

    .feature-title {
        font-size: var(--font-size-lg);
        width: auto;
    }
}

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

    .features-header {
        margin-bottom: var(--spacing-2xl);
        padding: 0 var(--spacing-md);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        padding: 0 var(--spacing-md);
    }

    .feature-card {
        min-height: 300px;
        padding: var(--spacing-lg);
    }

    .features-title {
        font-size: var(--font-size-2xl);
    }

    .features-description {
        font-size: var(--font-size-base);
    }

    .feature-title {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-md);
        width: auto;
    }

    .feature-image {
        max-height: 200px;
    }

    /* Disable parallax on mobile for performance */
    .parallax-bg,
    .parallax-fg {
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .feature-card {
        padding: var(--spacing-md);
        min-height: 280px;
    }

    .features-title {
        font-size: var(--font-size-xl);
    }

    .feature-image {
        max-height: 180px;
    }
}