/* ===== SERVICES PAGE STYLES ===== */

/* Services Hero */
.services-hero {
    position: relative;
    height: 60vh;
    width: 100%;
    background: linear-gradient(135deg, rgba(26, 11, 46, 0.527), rgba(78, 0, 112, 0.555)), url('../images/back4.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
}

.services-hero h1 {
    font-family: 'Michroma', sans-serif;
    font-size: 3.5rem;
    color: #ffcf56;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    animation: fadeUp 1s ease-out;
}

.services-hero p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #e0e0e0;
    animation: fadeUp 1.2s ease-out;
}

/* Services Main Layout */
.services-main {
    padding: 80px 0;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Michroma', sans-serif;
    color: #800000;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.service-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 28px auto 14px;
    max-width: 720px;
}

.service-metrics div {
    background: linear-gradient(145deg, rgba(128, 0, 0, 0.08), rgba(78, 0, 112, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.metric-number {
    display: block;
    font-family: 'Michroma', sans-serif;
    font-size: 1.4rem;
    color: #800000;
}

.metric-label {
    font-size: 0.9rem;
    color: #555;
}

.service-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.filter-chip {
    border: 1px solid rgba(128, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.8);
    color: #4e0070;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.filter-chip:hover,
.filter-chip.active {
    background: linear-gradient(135deg, #ffcf56, #cf5c36);
    color: #240000;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Services Grid */
.services-grid-layout {
    display: none;
}

/* Tech Card Design */
.service-tech-card {
    background: linear-gradient(150deg, #ffffff 0%, #f8f3ff 50%, #ffffff 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.06);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(78, 0, 112, 0.08);
}

.service-tech-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(128, 0, 0, 0.18);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #800000 0%, #4e0070 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: transform 0.4s ease;
}

.service-tech-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.icon-wrapper i {
    font-size: 30px;
    color: #fff;
}

.service-tech-card h3 {
    font-family: 'Michroma', sans-serif;
    color: #222;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.service-tech-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #574160;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.service-meta .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cf5c36;
    display: inline-block;
}

.service-tech-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.service-tech-card ul li {
    padding-left: 20px;
    position: relative;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.service-tech-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4e0070;
    font-weight: bold;
}

.tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tag-chip {
    background: rgba(128, 0, 0, 0.08);
    color: #4e0070;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.service-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #240000;
    color: #ffcf56;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.card-link {
    display: inline-block;
    color: #800000;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: padding-left 0.2s ease, color 0.2s ease;
}

.card-link:hover {
    padding-left: 10px;
    color: #ffcf56;
}

.card-link.primary {
    color: #240000;
    background: linear-gradient(135deg, #ffcf56, #cf5c36);
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.card-link.primary:hover {
    color: #240000;
    padding-left: 16px;
}

/* Slider layout */
.services-slider {
    position: relative;
    margin-top: 10px;
}

.services-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 340px);
    gap: 22px;
    overflow-x: auto;
    padding: 6px 6px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.services-track::-webkit-scrollbar {
    display: none;
}

.services-track .service-tech-card {
    scroll-snap-align: start;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(5, 5, 23, 0.8);
    color: #ffcf56;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

.slider-btn:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(128, 0, 0, 0.9);
}

.slider-btn.prev {
    left: -10px;
}

.slider-btn.next {
    right: -10px;
}

@media (min-width: 900px) {
    .services-track {
        grid-auto-columns: minmax(320px, 380px);
        padding: 6px 28px 22px;
    }

    .slider-btn.prev {
        left: 8px;
    }

    .slider-btn.next {
        right: 8px;
    }
}

@media (min-width: 1200px) {
    .services-track {
        grid-auto-columns: minmax(360px, 420px);
    }
}

@media (max-width: 640px) {
    .slider-btn {
        display: none;
    }
}

/* Process Section */
.process-section {
    background: #0f0518;
    /* Very dark bg for contrast */
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.process-section h2 {
    font-family: 'Michroma', sans-serif;
    margin-bottom: 60px;
    color: #ffcf56;
    font-size: 2.2rem;
}

.process-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    font-family: 'Michroma', sans-serif;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.step h3 {
    font-family: 'Michroma', sans-serif;
    color: #fff;
    margin-top: 20px;
    position: relative;
    z-index: 2;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.step p {
    color: #aaa;
    position: relative;
    z-index: 2;
}

/* CTA Section */
.services-cta {
    background: linear-gradient(to right, #800000, #b33939);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.services-cta h2 {
    font-family: 'Michroma', sans-serif;
    margin-bottom: 20px;
}

.services-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ffd8a8;
}

.cta-btn {
    background: #fff;
    color: #800000;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.3s ease;
}

.cta-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 2.2rem;
    }
}