/**
 * BS Universe - Services Section Styles
 * Advanced service cards with hover effects and animations
 */

/* ============================================
   Services Grid
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
}

/* ============================================
   Service Card
   ============================================ */

.service-card {
    position: relative;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--color-primary) 45deg,
        transparent 90deg
    );
    opacity: 0;
    transition: opacity var(--transition-base);
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card-content {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.service-icon svg,
.service-icon i {
    color: white;
    stroke: white;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.service-name {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
    transition: color var(--transition-fast);
}

.service-card:hover .service-name {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-short {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.service-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.service-features {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.service-features li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-xl);
    position: relative;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: var(--text-lg);
}

.service-card:hover .service-features li {
    padding-left: calc(var(--space-xl) + 4px);
}

.service-tools {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    font-family: var(--font-mono);
    margin-top: var(--space-md);
}

.service-tools-icon,
.service-tools-icon svg {
    width: 24px !important;
    height: 24px !important;
    stroke: var(--color-primary);
    margin-right: 10px;
    flex-shrink: 0;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.service-link::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.service-card:hover .service-link::after {
    transform: translateX(4px);
}

[dir="rtl"] .service-link::after {
    content: '←';
}

[dir="rtl"] .service-card:hover .service-link::after {
    transform: translateX(-4px);
}

/* ============================================
   Service Detail Page
   ============================================ */

.service-details {
    padding: var(--space-4xl) 0;
}

.service-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.service-main-content h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
}

.service-main-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.service-main-content ul {
    list-style: none;
    padding: 0;
}

.service-main-content ul li {
    padding: var(--space-sm) 0 var(--space-sm) var(--space-xl);
    position: relative;
    color: var(--color-text-secondary);
}

.service-main-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.service-sidebar {
    position: sticky;
    top: calc(var(--space-4xl) + 60px);
    height: fit-content;
}

.service-cta-box {
    background: var(--gradient-primary);
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    text-align: center;
    color: white;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

.service-cta-box h3 {
    color: white;
    margin-bottom: var(--space-md);
}

.service-cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
}

.service-cta-box .btn {
    background: white;
    color: var(--color-primary);
    width: 100%;
}

.service-cta-box .btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.service-info-box {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
}

.service-info-box h4 {
    margin-bottom: var(--space-md);
    font-size: var(--text-lg);
}

.service-info-list {
    list-style: none;
}

.service-info-list li {
    padding: var(--space-sm) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.service-info-list li::before {
    content: '●';
    color: var(--color-primary);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .service-details-grid {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar {
        position: relative;
        top: 0;
    }
}

/* ============================================
   Responsive Design
   ============================================ */

/* Floating Controls - Hero padding at 993px and below */
@media (max-width: 993px) {
    .service-hero {
        padding: calc(var(--space-4xl) + 80px) 0 var(--space-3xl);
    }
}

/* Mobile Layout - Show at 768px and below */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-hero-icon {
        font-size: 4rem;
    }

    .service-hero-title {
        font-size: var(--text-3xl);
    }
}
