/* Why Choose Us Section Styles */
.why-choose-us-section {
    padding: 80px 0;
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

.why-choose-us-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.02) 0%, rgba(44, 82, 130, 0.02) 100%);
    z-index: 1;
}

.why-choose-us-section .container {
    position: relative;
    z-index: 2;
}

/* Gear Image Container */
.gear-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.gear-shape {
    width: 400px;
    height: 400px;
    position: relative;
    background: #1e3a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.3);
    animation: slowRotate 20s linear infinite;
    clip-path: polygon(
        50% 0%,
        55% 5%, 60% 0%, 65% 5%, 70% 0%, 75% 5%, 80% 0%, 85% 5%, 90% 0%, 95% 5%, 100% 10%,
        95% 15%, 100% 20%, 95% 25%, 100% 30%, 95% 35%, 100% 40%, 95% 45%, 100% 50%,
        95% 55%, 100% 60%, 95% 65%, 100% 70%, 95% 75%, 100% 80%, 95% 85%, 100% 90%,
        95% 95%, 90% 100%, 85% 95%, 80% 100%, 75% 95%, 70% 100%, 65% 95%, 60% 100%, 55% 95%, 50% 100%,
        45% 95%, 40% 100%, 35% 95%, 30% 100%, 25% 95%, 20% 100%, 15% 95%, 10% 100%, 5% 95%, 0% 90%,
        5% 85%, 0% 80%, 5% 75%, 0% 70%, 5% 65%, 0% 60%, 5% 55%, 0% 50%,
        5% 45%, 0% 40%, 5% 35%, 0% 30%, 5% 25%, 0% 20%, 5% 15%, 0% 10%,
        5% 5%, 10% 0%, 15% 5%, 20% 0%, 25% 5%, 30% 0%, 35% 5%, 40% 0%, 45% 5%
    );
}

/* Remove the pseudo-elements as we're using clip-path on the main element */
.gear-shape::before {
    display: none;
}

.gear-shape::after {
    display: none;
}

.gear-inner-image {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Content Styles */
.why-choose-content {
    padding: 40px 20px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: #1e3a5f;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.section-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 40px;
    font-family: 'Open Sans', sans-serif;
}

/* Features Grid */
.features-grid {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: space-between;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.feature-icon img {
    width: 80px;
    height: 80px;
    filter: invert(14%) sepia(45%) saturate(1234%) hue-rotate(201deg) brightness(95%) contrast(95%);
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.3;
}

.feature-content p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gear-shape {
        width: 350px;
        height: 350px;
    }

    .gear-inner-image {
        width: 280px;
        height: 280px;
    }

    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 992px) {
    .why-choose-us-section {
        padding: 60px 0;
    }

    .gear-image-container {
        margin-bottom: 40px;
    }

    .gear-shape {
        width: 300px;
        height: 300px;
    }

    .gear-inner-image {
        width: 240px;
        height: 240px;
    }

    .section-title {
        font-size: 26px;
        text-align: center;
    }

    .section-description {
        text-align: center;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .gear-shape {
        width: 250px;
        height: 250px;
    }

    .gear-inner-image {
        width: 200px;
        height: 200px;
    }

    .section-title {
        font-size: 22px;
    }

    .features-grid {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .feature-item {
        max-width: 300px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .why-choose-us-section {
        padding: 40px 0;
    }

    .gear-shape {
        width: 200px;
        height: 200px;
    }

    .gear-inner-image {
        width: 160px;
        height: 160px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-description {
        font-size: 10px;
    }

    .features-grid {
        gap: 25px;
        margin-top: 30px;
    }

    .feature-content h4 {
        font-size: 16px;
    }

    .feature-content p {
        font-size: 13px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .feature-icon img {
        width: 50px;
        height: 50px;
    }
}

/* Animation for feature items on scroll */
.feature-item {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.6s ease-out forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.2s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
