/**
 * BrightAster Website
 *
 * @file services-section.css
 * @description Styles for the services section with enhanced card designs.
 * @version 3.4 (Section-wise Animations)
 */

.services-section {
    padding: 100px 20px;
    text-align: center;
}
.services-container {
    max-width: 1100px;
    margin: 0 auto;
}
.services-header {
    margin-bottom: 60px;
}
.services-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border: 1px solid var(--dark-divider-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 30px;
    background: rgba(10, 10, 10, 0.5);
}
.services-badge .badge-icon {
    width: 16px;
    height: 16px;
}
.services-heading {
    font-size: 44px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.3;
}
.services-heading .gradient-text {
    background: linear-gradient(to right, var(--accent-color) 0%, var(--accent-secondary-color) 50%, var(--accent-color) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.5s ease-in-out;
}
.services-heading:hover .gradient-text {
    background-position: 100% 0%;
}

/* --- Core Services --- */
.core-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}
.service-card-link {
    text-decoration: none;
    position: relative;
}
.service-card {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--divider-color);
    text-align: left;
    height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}
.service-card::before, .service-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.service-card::before {
    top: -50px;
    left: -50px;
    background: var(--accent-color);
}
.service-card::after {
    bottom: -50px;
    right: -50px;
    background: var(--accent-secondary-color);
}
.service-card-link:hover .service-card {
    transform: scale(1.03);
}
.service-card-link:hover .service-card::before, 
.service-card-link:hover .service-card::after {
    opacity: 0.5;
    transform: scale(1.2);
}
.service-card h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0 0 15px 0;
    position: relative;
    z-index: 2;
}
.service-card p {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0 0 30px 0;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}
.card-illustration {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto 0 auto;
    position: relative;
    z-index: 2;
}

.service-card-link::after {
    content: '→';
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 3;
}
.service-card-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* --- Other Services --- */
.other-services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}
.other-service-badge {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--divider-color);
    background: transparent;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease;
    text-decoration: none;
}
.other-service-badge span {
    position: relative;
    z-index: 2;
}
.other-service-badge::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, var(--accent-color), var(--accent-secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 1;
}
.other-service-badge:hover {
    color: var(--primary-color);
}
.other-service-badge:hover::before {
    transform: scaleX(1);
}

/* --- Scroll Animation Styles --- */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggering animation delays for each section */
.services-header.is-visible { transition-delay: 0.1s; }
.core-services-grid.is-visible { transition-delay: 0.3s; }
.other-services-grid.is-visible { transition-delay: 0.5s; }


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .core-services-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .services-heading {
        font-size: 32px;
    }
    .other-services-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .other-service-badge {
        padding: 8px 12px;
        font-size: 12px;
    }
}
