/* ========================================
   Services Section
   ======================================== */
.services-section {
    position: relative;
    padding: var(--space-4xl) 0;
}

.services-section.alt-bg {
    background: var(--bg-secondary);
}

.services-section.alt-bg::before,
.services-section.alt-bg::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.2;
}

.services-section.alt-bg::before {
    top: 0;
}

.services-section.alt-bg::after {
    bottom: 0;
}

/* ========================================
   Services Grid
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.services-grid.cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* ========================================
   Service Card
   ======================================== */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 240, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-blue);
    box-shadow: var(--glow-blue), var(--shadow-card);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    left: 100%;
}

/* Service Icon */
.service-icon {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    transition: all var(--transition-base);
}

.service-icon i {
    font-size: 28px;
    color: var(--neon-blue);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--neon-blue);
    box-shadow: var(--glow-blue);
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-icon i {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

/* Service Title */
.service-card h3 {
    position: relative;
    z-index: 1;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    line-height: 1.5;
    transition: color var(--transition-base);
}

.service-card:hover h3 {
    color: var(--neon-blue);
}

/* ========================================
   Service Card Color Variations
   ======================================== */
.service-card:nth-child(even) .service-icon {
    background: rgba(255, 0, 255, 0.1);
}

.service-card:nth-child(even) .service-icon i {
    color: var(--neon-pink);
}

.service-card:nth-child(even):hover {
    border-color: var(--neon-pink);
    box-shadow: var(--glow-pink), var(--shadow-card);
}

.service-card:nth-child(even):hover .service-icon {
    background: rgba(255, 0, 255, 0.2);
    border-color: var(--neon-pink);
    box-shadow: var(--glow-pink);
}

.service-card:nth-child(even):hover .service-icon i {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.service-card:nth-child(even):hover h3 {
    color: var(--neon-pink);
}

.service-card:nth-child(3n) .service-icon {
    background: rgba(180, 0, 255, 0.1);
}

.service-card:nth-child(3n) .service-icon i {
    color: var(--neon-purple);
}

.service-card:nth-child(3n):hover {
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple), var(--shadow-card);
}

.service-card:nth-child(3n):hover .service-icon {
    background: rgba(180, 0, 255, 0.2);
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

.service-card:nth-child(3n):hover .service-icon i {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

.service-card:nth-child(3n):hover h3 {
    color: var(--neon-purple);
}

/* ========================================
   Banner Section
   ======================================== */
.banner-section {
    padding: var(--space-3xl) 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
}

/* Banner Card */
.banner-card {
    position: relative;
    display: block;
    height: 280px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
    filter: brightness(0.4) saturate(0.8);
}

.banner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all var(--transition-base);
}

.banner-card.education::before {
    background: linear-gradient(
        135deg,
        rgba(0, 240, 255, 0.8) 0%,
        rgba(0, 240, 255, 0.2) 100%
    );
}

.banner-card.legal::before {
    background: linear-gradient(
        135deg,
        rgba(255, 0, 255, 0.8) 0%,
        rgba(255, 0, 255, 0.2) 100%
    );
}

.banner-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: var(--radius-2xl);
    z-index: 3;
    transition: all var(--transition-base);
}

.banner-card:hover {
    transform: translateY(-10px);
}

.banner-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.3) saturate(1);
}

.banner-card.education:hover::after {
    border-color: var(--neon-blue);
    box-shadow: var(--glow-blue);
}

.banner-card.legal:hover::after {
    border-color: var(--neon-pink);
    box-shadow: var(--glow-pink);
}

/* Banner Content */
.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl);
    z-index: 2;
}

.banner-content h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Services Responsive
   ======================================== */
@media (max-width: 1200px) {
    .services-grid.cols-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid.cols-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: var(--space-3xl) 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .services-grid.cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card {
        padding: var(--space-lg) var(--space-sm);
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 24px;
    }
    
    .service-card h3 {
        font-size: var(--text-xs);
    }
    
    /* Banner */
    .banner-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .banner-card {
        height: 220px;
    }
    
    .banner-content h3 {
        font-size: var(--text-xl);
    }
    
    .banner-content p {
        font-size: var(--text-sm);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }
    
    .service-card {
        padding: var(--space-md) var(--space-xs);
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        margin-bottom: var(--space-sm);
    }
    
    .service-icon i {
        font-size: 20px;
    }
    
    .service-card h3 {
        font-size: 11px;
    }
    
    .banner-card {
        height: 180px;
    }
    
    .banner-content {
        padding: var(--space-md);
    }
    
    .banner-content h3 {
        font-size: var(--text-lg);
    }
    
    .banner-content p {
        font-size: var(--text-xs);
    }
}