/* ============================================================
   KloudSync Pty Ltd — Services Page
   ============================================================ */

.services {
    padding: 100px 0;
    background: var(--dark-bg);
}

.services-intro {
    text-align: center;
    margin-bottom: 4rem;
}

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

.service-card {
    background: var(--darker-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.1), transparent);
    transition: left 0.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-blue);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* SERV-02: Card image layout — remove card-level padding, move to body */
.service-card {
    padding: 0;
}

.service-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, transparent 60%);
    pointer-events: none;
}

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

/* SERV-04: How We Work process section */
.how-we-work {
    padding: 100px 0;
    background: var(--darker-bg);
}

.how-we-work-header {
    text-align: center;
    margin-bottom: 4rem;
}

.how-we-work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.how-we-work-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--dark-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s, transform 0.3s;
}

.how-we-work-step:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
}

.how-we-work-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
}

.how-we-work-step h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.75rem;
}

.how-we-work-step p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.service-use-cases {
    font-size: 0.88rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(14, 165, 233, 0.06);
    border-left: 2px solid var(--primary-blue);
    border-radius: 0 6px 6px 0;
}

@media (max-width: 1024px) {
    .how-we-work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .how-we-work-grid {
        grid-template-columns: 1fr;
    }
}
