/* Service Page Styles */
.services-main {
    padding: 2rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.services-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    animation: fadeIn 1s ease-out;
}

.services-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #00b4db, #0083b0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.services-hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    border-radius: 2px;
}

.services-hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.service-card-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    perspective: 1000px;
}

.service-card {
    display: flex;
    max-width: 1000px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    margin: 0 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    transform-style: preserve-3d;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(106, 17, 203, 0.2);
}

.service-image-container {
    flex: 1;
    min-height: 300px;
    overflow: hidden;
    position: relative;
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

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

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

.service-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.2) 0%, rgba(37, 117, 252, 0.2) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.service-content {
    flex: 1;
    padding: 2.5rem;
    position: relative;
}

.service-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.service-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #00b4db, #0083b0);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.service-card:hover .service-content h2::after {
    width: 80px;
}

.service-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #555;
    font-size: 1.05rem;
}

.service-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #6a11cb, #2575fc);
    transition: height 0.5s ease-out;
}

.service-card:hover .service-content::before {
    height: 100%;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes subtlePulse {
    0% { box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); }
    50% { box-shadow: 0 20px 45px rgba(106, 17, 203, 0.15); }
    100% { box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); }
}

.service-card:hover {
    animation: subtlePulse 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .service-card {
        flex-direction: column;
    }
    
    .service-image-container {
        min-height: 200px;
        border-bottom-left-radius: 0;
        border-top-right-radius: 16px;
    }
    
    .services-hero h1 {
        font-size: 2.2rem;
    }
    
    .service-content {
        padding: 1.5rem;
    }
}
/* Navigation Active Link Styles */
.nav-links a.active {
    position: relative;
    color: #6a11cb; /* Or your preferred active color */
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    border-radius: 2px;
    animation: underlineGrow 0.3s ease-out;
}

@keyframes underlineGrow {
    from { width: 0; }
    to { width: 100%; }
}