/* ============================================
   SERVICES PAGE STYLES
   ============================================ */

/* Note: These styles only apply on service detail pages where services.css is loaded */
/* They will NOT affect the home page services section */

/* Services Section - Card Layout (ONLY for service pages) */
/* Since services.css is only loaded on service pages, these styles are automatically scoped */
.services-section {
    padding-block: min(20vh, 2rem);
    width: 100%;
    color: #111;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.services-section h2 {
    text-transform: capitalize;
    letter-spacing: -0.02em;
    font-size: clamp(2.5rem, 2rem + 1.5vw, 3.75rem);
    line-height: 1.1;
}

/* Services Section Header Responsive */
@media (max-width: 768px) {
    .services-section .flex.items-center.justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .services-section h2 {
        font-size: clamp(2rem, 1.5rem + 2vw, 2.5rem);
    }
    
    .services-section p {
        font-size: 1rem;
    }
}

.services-scroll-container {
    position: relative;
    width: 100%;
}

.services-scroll-wrapper {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    cursor: grab;
    padding-bottom: 1rem;
}

.services-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.services-scroll-wrapper:active {
    cursor: grabbing;
}

.services-grid {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding-right: 2rem;
}

.service-card {
    flex: 0 0 auto;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.service-card ul li {
    text-transform: uppercase;
    background: var(--clr-tag);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.375rem 0.625rem;
    border-radius: 0.188rem;
}

.service-card .content {
    padding: 1.25rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.service-card .content h3 {
    text-transform: capitalize;
    font-size: 1.5rem;
    color: #0f172a;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    min-height: 2.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card .content p {
    margin: 0 0 1rem 0;
    color: #565656;
    line-height: 1.6;
    font-size: 0.9375rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5rem;
}

.service-card .card-inner {
    position: relative;
    width: 100%;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    background: var(--clr);
    border-radius: 1.25rem;
    border-bottom-right-radius: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.service-card .card-inner .box {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
}

.service-card .card-inner .box .imgBox {
    position: absolute;
    inset: 0;
}

.service-card .card-inner .box .imgBox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .card-inner .box .imgBox img {
    transform: scale(1.05);
}

.service-card .card-inner .box .icon {
    position: absolute;
    bottom: -0.375rem;
    right: -0.375rem;
    width: 6rem;
    height: 6rem;
    background: var(--clr);
    border-top-left-radius: 50%;
}

.service-card .card-inner .box .icon:hover .iconBox {
    transform: scale(1.1);
}

.service-card .card-inner .box .icon::before {
    position: absolute;
    content: "";
    bottom: 0.375rem;
    left: -1.25rem;
    background: transparent;
    width: 1.25rem;
    height: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    box-shadow: 0.313rem 0.313rem 0 0.313rem #fff;
}

.service-card .card-inner .box .icon::after {
    position: absolute;
    content: "";
    top: -1.25rem;
    right: 0.375rem;
    background: transparent;
    width: 1.25rem;
    height: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    box-shadow: 0.313rem 0.313rem 0 0.313rem var(--clr);
}

.service-card .card-inner .box .icon .iconBox {
    position: absolute;
    inset: 0.625rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: #2C3A92;
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s ease, 
                transform 0.3s ease;
    box-shadow: 0 6px 15px rgba(44, 58, 146, 0.25);
}

.service-card .card-inner .box .icon .iconBox:hover {
    background: #F48426 !important;
    box-shadow: 0 10px 25px rgba(244, 132, 38, 0.35);
    transform: translateY(-2px) scale(1.05);
}

.service-card:nth-child(1) .card-inner .box .icon .iconBox,
.service-card:nth-child(2) .card-inner .box .icon .iconBox,
.service-card:nth-child(3) .card-inner .box .icon .iconBox,
.service-card:nth-child(4) .card-inner .box .icon .iconBox,
.service-card:nth-child(5) .card-inner .box .icon .iconBox,
.service-card:nth-child(6) .card-inner .box .icon .iconBox,
.service-card:nth-child(7) .card-inner .box .icon .iconBox,
.service-card:nth-child(8) .card-inner .box .icon .iconBox,
.service-card:nth-child(9) .card-inner .box .icon .iconBox {
    background: #2C3A92;
}

.service-card:nth-child(1) .card-inner .box .icon .iconBox:hover,
.service-card:nth-child(2) .card-inner .box .icon .iconBox:hover,
.service-card:nth-child(3) .card-inner .box .icon .iconBox:hover,
.service-card:nth-child(4) .card-inner .box .icon .iconBox:hover,
.service-card:nth-child(5) .card-inner .box .icon .iconBox:hover,
.service-card:nth-child(6) .card-inner .box .icon .iconBox:hover,
.service-card:nth-child(7) .card-inner .box .icon .iconBox:hover,
.service-card:nth-child(8) .card-inner .box .icon .iconBox:hover,
.service-card:nth-child(9) .card-inner .box .icon .iconBox:hover {
    background: #F48426 !important;
}

.service-card .card-inner .box .icon .iconBox span {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.service-card .card-inner .box .icon .iconBox:hover span {
    color: #fff;
}

/* Services Navigation Buttons */
.services-nav-buttons {
    z-index: 10;
}

.services-scroll-btn {
    transition: all 0.3s ease;
}

.services-scroll-btn:hover {
    transform: scale(1.1);
}

.services-scroll-btn:active {
    transform: scale(0.95);
}

/* Scroll Indicator Dots */
.services-scroll-indicator {
    margin-top: 2rem;
}

.scroll-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot.active {
    width: 30px;
    border-radius: 5px;
    background: #2C3A92;
}

.scroll-dot:hover {
    background: #F48426;
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        width: 280px;
        min-width: 280px;
        max-width: 280px;
    }
    
    .service-card .card-inner {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
    }
    
    .service-card .content {
        padding: 1rem 0.875rem;
        min-height: 160px;
    }
    
    .service-card .content h3 {
        font-size: 1.375rem;
        min-height: 2.4rem;
    }
    
    .service-card .content p {
        font-size: 0.875rem;
        min-height: 4rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .services-nav-buttons {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .service-card {
        width: 260px;
        min-width: 260px;
        max-width: 260px;
    }
    
    .service-card .card-inner {
        height: 160px;
        min-height: 160px;
        max-height: 160px;
    }
    
    .service-card .content {
        padding: 0.875rem 0.75rem;
        min-height: 150px;
    }
    
    .service-card .content h3 {
        font-size: 1.25rem;
        min-height: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card .content p {
        font-size: 0.8125rem;
        min-height: 3.5rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        margin-bottom: 0.75rem;
    }
    
    .service-card ul li {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ============================================
   SERVICE NAVIGATION SECTION
   ============================================ */

.service-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #e2e8f0;
    backdrop-filter: blur(10px);
}

.service-nav-item:hover {
    background: rgba(244, 132, 38, 0.15);
    border-color: #F48426;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(244, 132, 38, 0.2);
    color: #ffffff;
}

.service-nav-icon {
    width: 48px;
    height: 48px;
    background: rgba(244, 132, 38, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.service-nav-icon i {
    font-size: 1.5rem;
    color: #F48426;
    transition: all 0.3s ease;
}

.service-nav-item:hover .service-nav-icon {
    background: #F48426;
    transform: scale(1.1);
}

.service-nav-item:hover .service-nav-icon i {
    color: #ffffff;
    transform: scale(1.1);
}

.service-nav-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.service-nav-item:hover .service-nav-text {
    color: #F48426;
}

@media (max-width: 1024px) {
    .service-nav-item {
        padding: 0.875rem 0.5rem;
    }
    
    .service-nav-icon {
        width: 40px;
        height: 40px;
    }
    
    .service-nav-icon i {
        font-size: 1.25rem;
    }
    
    .service-nav-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 640px) {
    .service-nav-item {
        padding: 0.75rem 0.5rem;
    }
    
    .service-nav-icon {
        width: 36px;
        height: 36px;
    }
    
    .service-nav-icon i {
        font-size: 1.125rem;
    }
    
    .service-nav-text {
        font-size: 0.65rem;
    }
}

