/* Services Page Specific Styles */

/* Services Hero */
.services-hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.services-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.services-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.services-hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 600px;
}

/* Zig-Zag Service Deep Dives */
.service-details {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.service-zigzag {
    display: flex;
    align-items: center;
    gap: 64px;
}

.service-zigzag.reverse {
    flex-direction: row-reverse;
}

.sz-text {
    flex: 1;
}

.sz-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 24px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.sz-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 32px;
}

.sz-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sz-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
}

.sz-features li i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.sz-visual {
    flex: 1;
}

.sz-visual .mockup-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sz-visual .mockup-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.12);
}

/* Process Section */
.process-section {
    padding: 120px 40px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 40px;
    margin: 80px 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.process-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.process-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.process-header p {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 2;
}

.process-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background: transparent;
    border-radius: 24px;
    transition: all 0.4s ease;
}

.process-step:hover {
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-8px);
}

.process-step::after {
    content: '';
    position: absolute;
    top: 56px;
    left: 100px;
    width: calc(100% - 40px);
    height: 2px;
    background: linear-gradient(90deg, #e2e8f0 50%, transparent 50%);
    background-size: 12px 2px;
    border-radius: 2px;
}

.process-step:last-child::after {
    display: none;
}

.step-icon {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.1);
    border: 1px solid #eff6ff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-icon i {
    width: 28px;
    height: 28px;
    color: #3b82f6;
    transition: color 0.3s ease;
}

.process-step:hover .step-icon {
    background: #3b82f6;
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.3);
}

.process-step:hover .step-icon i {
    color: #ffffff;
}

.process-step h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.process-step p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* New Services Grid Layout */
.ambient-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    animation: pulse-glow 8s infinite alternate ease-in-out;
}
@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.1); opacity: 0.6; }
}
.ambient-glow.g1 {
    top: -200px;
    left: -150px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5), transparent 70%);
}
.ambient-glow.g2 {
    top: 50px;
    right: -250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4), transparent 70%);
}

.services-hero-modern {
    padding: 120px 0 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    z-index: 1;
    position: relative;
}

.services-header-modern {
    text-align: center;
    max-width: 800px;
}

.badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.badge-modern i {
    width: 16px;
    height: 16px;
}

.services-header-modern h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-dark);
}



.services-header-modern p {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 600px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.service-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    gap: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(255,255,255,0) 50%, rgba(168,85,247,0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.5s ease;
    pointer-events: none;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 48px rgba(59, 130, 246, 0.12);
}

.service-card:hover::before {
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    opacity: 1;
}

.sc-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sc-icon i {
    width: 28px;
    height: 28px;
}

.sc-content {
    display: flex;
    flex-direction: column;
}

.sc-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.sc-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.sc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

.sc-link i {
    width: 16px;
    height: 16px;
}

.sc-link:hover {
    color: #2563eb;
}

/* Custom Project Banner - Dark Mode Glass */
.custom-project-banner {
    background: #0f172a;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 32px;
    margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.custom-project-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.cpb-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4f34a; /* Vibrant primary accent */
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    box-shadow: 0 12px 32px rgba(196, 243, 74, 0.1);
}

.cpb-icon i {
    width: 40px;
    height: 40px;
}

.cpb-content {
    flex: 1;
}

.cpb-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.cpb-content p {
    font-size: 1.05rem;
    color: #94a3b8;
    margin: 0;
    max-width: 500px;
}

.cpb-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.bg-light-orange { background: #fff7ed !important; }
.text-orange { color: #f97316 !important; }
.bg-light-pink { background: #fdf2f8 !important; }
.text-pink { color: #ec4899 !important; }
.bg-light-teal { background: #f0fdfa !important; }
.text-teal { color: #14b8a6 !important; }


/* Responsive Overrides for Services Page */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .custom-project-banner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .cpb-content p {
        margin: 0 auto;
    }
    .service-zigzag {
        gap: 40px;
    }
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 64px 32px;
    }
    .process-step:nth-child(2)::after {
        display: none; /* Hide connector between row 1 and 2 */
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .services-header-modern h1 {
        font-size: 2.5rem;
    }
    .cpb-actions {
        flex-direction: column;
        width: 100%;
    }
    .cpb-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .services-hero {
        padding: 120px 24px 60px;
    }
    
    .services-hero h1 {
        font-size: 2.25rem;
    }
    
    .service-details {
        gap: 80px;
        padding: 40px 24px;
    }
    
    .service-zigzag, 
    .service-zigzag.reverse {
        flex-direction: column;
        gap: 40px;
    }
    
    .sz-text h2 {
        font-size: 2rem;
    }
    
    .process-section {
        padding: 60px 24px;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 48px;
    }
    
    .process-step::after {
        display: none; /* Hide all connectors on mobile */
    }
    
    .process-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
