/**
 * company-services.css
 * Comprehensive styling for services page
 * Sandrian Ceylon
 */

/* Force main content visible */
main#main-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100vh;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

#loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #2c3892;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#loading-overlay .loading-text {
    margin-top: 1.5rem;
    color: #2c3892;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Service Cards */
.service-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c3892, #f68712);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border-color: #2c3892;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Service Icon */
.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #2c3892, #3d4ba3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(44, 56, 146, 0.2);
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, #f68712, #2c3892);
    box-shadow: 0 10px 30px rgba(44, 56, 146, 0.4);
}

.service-card:hover .service-icon::after {
    border-color: #f68712;
    inset: -8px;
}

.service-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

/* Service Content */
.service-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #212121;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.service-description {
    color: #424242;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Service Features List */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    color: #212121;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li:hover {
    padding-left: 0.5rem;
    background: rgba(44, 56, 146, 0.02);
}

.service-features li i {
    color: #2c3892;
    font-size: 1.1rem;
    min-width: 20px;
}

/* Advantage Cards */
.advantage-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    height: 100%;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-top-color: #2c3892;
}

/* Advantage Icon */
.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(44, 56, 146, 0.1), rgba(246, 135, 18, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
    background: linear-gradient(135deg, #2c3892, #f68712);
    transform: scale(1.1) rotate(5deg);
}

.advantage-icon i {
    font-size: 2.2rem;
    color: #2c3892;
    transition: color 0.3s ease;
}

.advantage-card:hover .advantage-icon i {
    color: #ffffff;
}

.advantage-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #212121;
    margin-bottom: 1rem;
}

.advantage-card p {
    color: #616161;
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* Service Quality Commitment Section */
.bg-primary {
    background: linear-gradient(135deg, #2c3892, #3d4ba3) !important;
}

.bg-primary h2 {
    color: #ffffff !important;
}

.bg-primary .lead,
.bg-primary p {
    color: rgba(255, 255, 255, 0.95) !important;
}

.commitment-stats .stat-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.commitment-stats .stat-item h3 {
    margin: 0;
    color: #ffffff;
}

.commitment-stats .stat-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, rgba(44, 56, 146, 0.05), rgba(246, 135, 18, 0.05));
    padding: 5rem 0;
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #212121;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.3rem;
    color: #424242;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #2c3892, #3d4ba3);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(44, 56, 146, 0.3);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 56, 146, 0.4);
    color: #ffffff;
    background: linear-gradient(135deg, #3d4ba3, #2c3892);
}

.btn-cta-outline {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    color: #2c3892;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #2c3892;
}

.btn-cta-outline:hover {
    background: #2c3892;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 56, 146, 0.3);
}

/* Section Headers */
section h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    color: #212121;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #2c3892, #f68712);
    border-radius: 2px;
}

/* Animations */
.animate-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Badges */
.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.hero-badges .badge {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Background Light */
.bg-light {
    background: linear-gradient(180deg, #ffffff, #f8f9fa) !important;
}

/* Responsive Design */
@media (max-width: 991px) {
    .service-card {
        padding: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
    }
    
    .service-icon i {
        font-size: 2.2rem;
    }
    
    .advantage-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 767px) {
    .service-card {
        padding: 2rem;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .advantage-icon {
        width: 70px;
        height: 70px;
    }
    
    .advantage-icon i {
        font-size: 2rem;
    }
    
    .advantage-card h4 {
        font-size: 1.2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta,
    .btn-cta-outline {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 575px) {
    .service-card {
        padding: 1.5rem;
    }
    
    .service-features li {
        font-size: 0.95rem;
        padding: 0.6rem 0;
    }
    
    .hero-badges .badge {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}