/* ========================
   Services Section Styles
   ======================== */

.services-section {
    padding: 80px 0;
    background-color: var(--light-gray);
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Background pattern */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23333333' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
    z-index: 0;
}

.services-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.services-subtitle {
    font-size: 1.2rem;
    color: var(--neutral-500);
    max-width: 700px;
    margin: 30px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
    width: 100%;
}

.service-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    height: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.service-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    color: white;
    transition: all 0.3s ease;
}

.service-card:hover .service-content {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0.2) 100%);
    padding-bottom: 30px;
}

.service-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: white;
}

.service-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover .service-description {
    opacity: 1;
    max-height: 80px;
    margin-bottom: 15px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 4px;
}

.read-more-btn:hover {
    transform: translateX(5px);
}

.read-more-btn::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F7941D'%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.read-more-btn:hover::after {
    transform: translateX(3px);
}

/* Responsive styles */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-title {
        font-size: 2.5rem;
    }
    
    .service-card {
        height: 260px;
    }
}

@media (max-width: 992px) {
    .services-section {
        padding: 70px 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .services-title {
        font-size: 2.2rem;
    }
    
    .service-card {
        height: 240px;
    }
    
    .service-content h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }
    
    .services-container {
        padding: 0 20px;
    }
    
    .services-header {
        margin-bottom: 40px;
    }
    
    .services-title {
        font-size: 2rem;
    }
    
    .services-title::after {
        width: 60px;
        height: 3px;
        bottom: -10px;
    }
    
    .services-subtitle {
        font-size: 1.1rem;
        margin-top: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-card {
        height: 220px;
    }
}

@media (max-width: 576px) {
    .services-section {
        padding: 50px 0;
    }
    
    .services-container {
        padding: 0 15px;
    }
    
    .services-header {
        margin-bottom: 30px;
    }
    
    .services-title {
        font-size: 1.8rem;
    }
    
    .services-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        height: 200px;
    }
    
    .service-content h3 {
        font-size: 1rem;
    }
    
    .service-description {
        font-size: 0.85rem;
    }
    
    .read-more-btn {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
}
