/* ================================================================
   SERVICES SECTION - PUIUX Landing Page
   Premium Design with Awwwards-level Quality
   ================================================================ */

/* ===============================================
   Section Container
   =============================================== */
.services-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    overflow: hidden;
}

/* Background Pattern Overlay */
.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(37, 211, 102, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(18, 140, 126, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.services-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===============================================
   Section Header
   =============================================== */
.services-section__header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.services-section__subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #25D366;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.services-section__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-section__description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ===============================================
   Services Grid
   =============================================== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ===============================================
   Service Card
   =============================================== */
.service-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

/* Card Glow Effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(37, 211, 102, 0.08) 0%, 
                transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 24px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

/* Hover State */
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 211, 102, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(37, 211, 102, 0.15);
}

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

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

.service-card:hover .service-card__icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.service-card:hover .service-card__arrow {
    transform: translateX(5px);
    opacity: 1;
}

/* ===============================================
   Card Icon
   =============================================== */
.service-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card__icon svg {
    width: 32px;
    height: 32px;
    fill: #25D366;
    transition: all 0.3s ease;
}

/* ===============================================
   Card Content
   =============================================== */
.service-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-card__title {
    color: #25D366;
}

.service-card__description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

/* ===============================================
   Card Link
   =============================================== */
.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.938rem;
    font-weight: 600;
    color: #25D366;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.service-card__link:hover {
    gap: 0.75rem;
}

.service-card__arrow {
    font-size: 1.25rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

/* RTL Support */
[dir="rtl"] .service-card__link {
    flex-direction: row-reverse;
}

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

/* ===============================================
   Animations
   =============================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger Animation for Cards */
.service-card:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s backwards; }
.service-card:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s backwards; }
.service-card:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s backwards; }
.service-card:nth-child(4) { animation: fadeInUp 0.6s ease-out 0.4s backwards; }
.service-card:nth-child(5) { animation: fadeInUp 0.6s ease-out 0.5s backwards; }
.service-card:nth-child(6) { animation: fadeInUp 0.6s ease-out 0.6s backwards; }

/* ===============================================
   RESPONSIVE - TABLET (768px - 1023px)
   =============================================== */
@media screen and (min-width: 768px) {
    .services-section {
        padding: 5rem 0;
    }

    .services-section__header {
        margin-bottom: 4.5rem;
    }

    .services-section__title {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .service-card {
        padding: 3rem 2.5rem;
    }

    .service-card__icon {
        width: 72px;
        height: 72px;
    }

    .service-card__icon svg {
        width: 36px;
        height: 36px;
    }
}

/* ===============================================
   RESPONSIVE - DESKTOP (1024px+)
   =============================================== */
@media screen and (min-width: 1024px) {
    .services-section {
        padding: 6rem 0;
    }

    .services-section__header {
        margin-bottom: 5rem;
    }

    .services-section__title {
        font-size: 3.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .service-card {
        padding: 3rem 2.5rem;
    }

    .service-card__icon {
        width: 80px;
        height: 80px;
    }

    .service-card__icon svg {
        width: 40px;
        height: 40px;
    }

    .service-card__title {
        font-size: 1.625rem;
    }
}

/* ===============================================
   Accessibility
   =============================================== */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-card__icon,
    .service-card__arrow,
    .services-section__header,
    .services-grid,
    .service-card:nth-child(n) {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus Styles for Keyboard Navigation */
.service-card:focus {
    outline: 2px solid #25D366;
    outline-offset: 4px;
}

.service-card__link:focus {
    outline: 2px solid #25D366;
    outline-offset: 2px;
    border-radius: 4px;
}
