/* Image-Illustrated Services Section */
#services {
    padding: 6rem 5%;
    background-color: #0c0c0c;
    position: relative;
    overflow: hidden;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.services-header h2 span {
    color: var(--primary-gold);
}

.services-header p {
    color: rgba(245, 245, 245, 0.6);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    position: relative;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
    transition: background 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    border-color: rgba(212, 175, 55, 0.4);
}

.service-card:hover::before {
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0.95) 100%);
}

.service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    transition: transform 0.4s ease;
}

.service-card:hover .service-content {
    transform: translateY(-10px);
}

.service-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.9);
    color: var(--charcoal);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.service-card p {
    color: rgba(245, 245, 245, 0.8);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.4s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card:hover p {
    opacity: 1;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.service-card:hover .service-link {
    gap: 1.2rem;
}

.btn-container {
    text-align: center;
    margin-top: 5rem;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        height: 450px;
    }

    .service-content {
        padding: 2rem;
    }
}