/* ===========================
   Services Section Component CSS
   FinPluss Design System
   =========================== */

/* Services Section Variables */
.services-section {
    --services-primary-orange: #F36D21;
    --services-primary-blue: #243E93;
    --services-accent-black: #000000;
    --services-white: #FFFFFF;
    --services-ivory: #fef9f6;
    --services-medium-gray: #e0e0e0;
    --services-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --services-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --services-transition: all 0.3s ease;
}

/* Services Section Base */
.services-section {
    padding: 80px 0;
    background: var(--services-white);
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Services Container */
.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Services Section Header */
.services-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    line-height: 44px;
    font-weight: 700;
    color: var(--services-primary-blue);
    margin: 0 0 15px 0;
}

.services-subtitle {
    font-size: 18px;
    color: var(--services-accent-black);
    margin: 0;
    font-weight: 400;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

/* Services Card */
.services-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    transition: var(--services-transition);
    border: 2px solid var(--services-medium-gray);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

/* Card Animation */
.services-card.services-visible {
    animation: servicesCardFadeIn 0.5s forwards;
}

@keyframes servicesCardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Animation Delays */
.services-card:nth-child(1) { animation-delay: 0.1s; }
.services-card:nth-child(2) { animation-delay: 0.15s; }
.services-card:nth-child(3) { animation-delay: 0.2s; }
.services-card:nth-child(4) { animation-delay: 0.25s; }
.services-card:nth-child(5) { animation-delay: 0.3s; }
.services-card:nth-child(6) { animation-delay: 0.35s; }

/* Card Top Border Animation */
.services-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--services-primary-orange) 0%, #ff8c47 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

/* Card Hover Effects */
.services-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--services-shadow-md);
    border-color: var(--services-primary-orange);
}

/* Services Icon */
.services-icon {
    width: 70px;
    height: 70px;
    background: var(--services-ivory);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    transition: var(--services-transition);
}

.services-card:hover .services-icon {
    transform: rotateY(360deg);
    background: linear-gradient(135deg, rgba(243, 109, 33, 0.1), rgba(243, 109, 33, 0.05));
}

/* Card Content */
.services-card-title {
    font-size: 20px;
    margin: 0 0 15px 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--services-primary-blue);
    font-weight: 600;
}

.services-card-description {
    color: var(--services-accent-black);
    margin: 0 0 20px 0;
    line-height: 1.5;
    font-size: 14px;
}

/* Tool Link */
.services-tool-link {
    color: var(--services-primary-orange);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.services-tool-link:hover {
    gap: 10px;
}

/* Pulse Animation for Click Effect */
@keyframes servicesPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.services-card.services-pulse {
    animation: servicesPulse 0.3s ease;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Large Tablets */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .services-card {
        padding: 30px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }
    
    .services-container {
        padding: 0 15px;
    }
    
    .services-section-header {
        margin-bottom: 40px;
    }
    
    .services-title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .services-subtitle {
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .services-card {
        padding: 25px;
    }
    
    .services-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .services-card-title {
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .services-section {
        padding: 50px 0;
    }
    
    .services-container {
        padding: 0 12px;
    }
    
    .services-title {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 12px;
    }
    
    .services-subtitle {
        font-size: 15px;
        line-height: 1.4;
    }
    
    .services-section-header {
        margin-bottom: 35px;
    }
    
    .services-grid {
        gap: 18px;
        margin-top: 35px;
    }
    
    .services-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .services-icon {
        width: 55px;
        height: 55px;
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .services-card-title {
        font-size: 17px;
        margin-bottom: 12px;
    }
    
    .services-card-description {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .services-tool-link {
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .services-section {
        padding: 40px 0;
    }
    
    .services-container {
        padding: 0 10px;
    }
    
    .services-title {
        font-size: 22px;
        line-height: 28px;
    }
    
    .services-subtitle {
        font-size: 14px;
    }
    
    .services-grid {
        gap: 15px;
        margin-top: 30px;
    }
    
    .services-card {
        padding: 18px;
    }
    
    .services-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .services-card-title {
        font-size: 16px;
    }
    
    .services-card-description {
        font-size: 12px;
        line-height: 1.4;
    }
}