.services-section {
    padding: 100px 0 150px;
    background: linear-gradient(180deg, #19192C 0%, #1a1a2e 10%, #FEFEFE 100%);
    position: relative;
    margin-top: -2px; /* Remove any potential gap */
}


/* Add a subtle overlay to ensure text readability */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(25, 25, 44, 0.1) 0%,
        rgba(25, 25, 44, 0.05) 30%,
        rgba(255, 255, 255, 0.02) 100%
    );
    pointer-events: none;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

/* Adjust text colors for better contrast */
.services-section h2 {
    color: var(--accent-color);
    margin-bottom: 60px;
    font-family: 'Marcellus', serif;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(25, 25, 44, 0.05), rgba(25, 25, 44, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    position: relative;
    flex-shrink: 0;
}

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

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

.service-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(25, 25, 44, 0.8), transparent);
    pointer-events: none;
}

.service-card h3 {
    color: #19192C;
    font-family: 'Marcellus', serif;
    font-size: 1.5rem;
    margin: 0;
    padding: 25px 25px 15px;
    position: relative;
    flex-shrink: 0;
    width: 100%;
    text-align: center;
}

.service-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0 25px;
    padding-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
    flex: 1;
    width: 100%;
    text-align: center;
}

.service-link {
    color: #19192C;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    padding: 0 25px 25px;
    margin: 0;
    flex-shrink: 0;
    width: 100%;
    text-align: center;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: 23px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #19192C;
    transition: width 0.3s ease;
}

.service-link:hover::after {
    width: 100px; /* Fixed width for underline */
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Navigation arrows */
.services-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(25, 25, 44, 0.1);
    transition: all 0.3s ease;
    z-index: 1;
    color: #19192C;
}

.services-nav:hover {
    background: #19192C;
    color: #FEFEFE;
}

.services-nav.prev {
    left: -20px;
}

.services-nav.next {
    right: -20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-section {
        padding: 80px 0 120px;
    }

    .services-section h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .services-grid {
        gap: 20px;
        padding: 10px 0;
    }

    .service-card {
        margin-bottom: 30px;
    }

    .service-image {
        height: 180px;
    }

    .service-card h3 {
        font-size: 1.25rem;
        padding: 20px 20px 10px;
    }

    .service-card p {
        font-size: 0.9rem;
        padding: 0 20px;
        padding-bottom: 20px;
    }

    .service-link {
        padding: 0 20px 20px;
    }

    .service-link::after {
        bottom: 18px;
    }

    .services-nav {
        display: none;
    }
}

/* Section Divider */
.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.divider-line {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(25, 25, 44, 0.2) 25%,
        rgba(25, 25, 44, 0.2) 75%,
        transparent 100%
    );
}

.divider-icon {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #FEFEFE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(25, 25, 44, 0.1);
    color: #19192C;
    font-size: 1.2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.divider-icon:hover {
    background: #19192C;
    color: #FEFEFE;
    box-shadow: 0 6px 20px rgba(25, 25, 44, 0.2);
    transform: translateX(-50%) translateY(-2px);
}

.divider-icon:active {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 4px 15px rgba(25, 25, 44, 0.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive adjustments for the divider */
@media (max-width: 768px) {
    .divider-line {
        width: 150px;
    }
    
    .divider-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
} 