/* Features: Continuous Border Animation, Soft 3D Hover, Responsive Layout */

.services-section {
    padding: 80px 20px;
    background-color: #0d0d0d;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}
.services-header h2 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}
.services-header p {
    color: #aaaaaa;
    margin-bottom: 50px;
    font-size: 1.1rem;
}
.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.services-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 30px 10px;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
.services-track::-webkit-scrollbar {
    display: none;
}
.service-card {
    position: relative;
    min-width: 320px;
    height: 400px;
    flex: 0 0 auto;
    scroll-snap-align: center;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    transition: transform 0.6s ease-out, box-shadow 0.6s ease-out;
    background-color: #111;
}
.service-card::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: conic-gradient(transparent, transparent, transparent, #007bff, #00d4ff, transparent);
    animation: rotateCardBorder 7s linear infinite;
    opacity: 0.3;
    transition: opacity 0.6s ease;
}
.card-inner {
    position: absolute;
    inset: 2px; 
    background: #141414; 
    border-radius: 14px;
    padding: 35px 25px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: background 0.6s ease;
}
.service-card:hover {
    transform: translateY(-10px) scale(1.02); 
    box-shadow: 0 15px 35px rgba(0, 123, 255, 0.15);
}
.service-card:hover::before {
    opacity: 0.8;
    animation: rotateCardBorder 5s linear infinite; 
}
.service-card:hover .card-inner {
    background: linear-gradient(145deg, #141414, #1a1a2e); 
}
@keyframes rotateCardBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.icon-box {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #222, #111);
    border: 1px solid #333;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 25px;
    transition: all 0.6s ease-out;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.service-card:hover .icon-box {
    background: linear-gradient(135deg, #007bff, #00d4ff);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-5px) rotateY(10deg); 
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}
.card-inner h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
    transition: color 0.4s ease;
}
.card-inner p {
    color: #999;
    line-height: 1.6;
    font-size: 0.95rem;
}
.spacer {
    flex-grow: 1; 
}
.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    transition: all 0.4s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.service-card:hover .read-more {
    color: #00d4ff;
    gap: 12px; 
}
.slider-arrow {
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.slider-arrow:hover {
    background-color: #007bff;
    border-color: #007bff;
    transform: scale(1.05);
}
.left-arrow { left: -25px; }
.right-arrow { right: -25px; }
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.dot {
    width: 10px;
    height: 10px;
    background-color: #333;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
}
.dot.active {
    background-color: #007bff;
    width: 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}
@media (max-width: 768px) {
    .slider-arrow { display: none; }
    .service-card { 
        min-width: 280px; 
        height: 380px; 
        scroll-snap-align: center; 
    }
    .services-track {
        padding: 20px 5px;
        gap: 20px;
    }
}