/* ===== Advantages Section ===== */
.advantages {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    background-color: #f8f9fa;
}

/* Background with subtle pattern */
.advantages-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('background1.png');
    background-size: 400px;
    opacity: 0.05;
    z-index: 0;
}

.advantages-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,123,255,0.03) 0%, rgba(0,123,255,0.01) 100%);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-subtitle {
    display: inline-block;
    color: #007bff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    position: relative;
}

.section-subtitle::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #007bff;
    margin: 0.5rem auto 0;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.section-description {
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Advantages Grid */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.advantage-item {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.1);
}

.advantage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00c6ff);
    transition: height 0.3s ease;
}

.advantage-item:hover::before {
    height: 6px;
}

/* Icons */
.advantage-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon i {
    font-size: 2rem;
    color: #007bff;
    position: relative;
    z-index: 2;
}

.icon-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    animation: pulse 3s infinite;
    opacity: 0;
}

.advantage-item:hover .icon-pulse {
    animation: pulse 3s infinite;
    opacity: 1;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    70% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Content */
.advantage-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.advantage-item p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.advantage-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantage-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: #495057;
    transition: transform 0.3s ease;
}

.advantage-item:hover .advantage-features li {
    transform: translateX(5px);
}

.advantage-features li:nth-child(1) {
    transition-delay: 0.1s;
}
.advantage-features li:nth-child(2) {
    transition-delay: 0.2s;
}
.advantage-features li:nth-child(3) {
    transition-delay: 0.3s;
}

.advantage-features i {
    color: #007bff;
    font-size: 0.8rem;
    margin-right: 0.7rem;
    transition: transform 0.3s ease;
}

.advantage-item:hover .advantage-features i {
    transform: scale(1.2);
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .advantage-item {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
}