.services-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 30px auto 50px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(25deg) translateY(50px);
    transition: all 0.5s ease;
}

.service-card:hover .service-icon::before {
    transform: rotate(25deg) translateY(-50px);
}

.service-icon i {
    font-size: 3rem;
    color: white;
    z-index: 1;
}

.service-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 15px;
}

.service-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-btn {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    align-self: flex-start;
}

.service-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(237, 110, 25, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: white;
    margin: 40px auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 800px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #e74c3c;
}

.modal-title {
    color: var(--primary);
    margin-bottom: 20px;
    padding-right: 30px;
}

.modal-text {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(120deg, rgba(237, 110, 25, 0.1), rgba(255, 107, 53, 0.1));
    padding: 20px;
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    margin: 20px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        gap: 20px;
    }

    .modal-content {
        padding: 20px;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .service-card {
        margin: 0 10px;
    }

    .service-content {
        padding: 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}