:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --light: #f8fafc;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    padding-top: 76px;
    background: var(--light);
}


/* Base Styles */
.services-page {
    background: var(--light);
}

/* Hero Section */
.services-hero {
    height: 100vh;
    background: url('../images/services-hero.jpg') no-repeat center/cover;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: -76px;
}

.hero-filter {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
}

.hero-pattern {
    position: absolute;
    inset: 0;
    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");
    animation: patternMove 20s linear infinite;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding-top: 76px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
}

.hero-scroll-indicator span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollIndicator 2s infinite;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-text-fill-color: transparent;
}

.services-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.service-nav-btn {
    padding: 1rem 2rem;
    border: none;
    background: white;
    border-radius: 12px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.service-nav-btn.active,
.service-nav-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* Services Container */
.services-container {
    padding: 80px 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* Service Sections */
.service-section {
    display: block;
    /* Changed from none to block since we don't need tab switching */
    opacity: 1;
    /* Changed from 0 since we don't need animations */
    transform: none;
    /* Removed transform since we don't need animations */
}

/* Custom scroll buttons for navigation */
.nav-scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.nav-scroll-button:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.nav-scroll-button.left {
    left: 0.5rem;
}

.nav-scroll-button.right {
    right: 0.5rem;
}

@media (max-width: 768px) {
    .services-tabs {
        padding: 1rem;
        margin: -1rem 0 2rem;
    }

    .service-tab {
        padding: 0.75rem 1.25rem;
        min-width: 140px;
    }

    .service-tab i {
        font-size: 1rem;
    }

    .service-tab span {
        font-size: 0.875rem;
    }

    .nav-scroller {
        padding: 0.5rem;
    }
}

/* Add unique icons for each service category */
.service-tab[data-target="engine"]::after {
    font-family: "Font Awesome 6 Free";
    content: '\f5e4';
    /* Engine icon */
}

.service-tab[data-target="panel"]::after {
    font-family: "Font Awesome 6 Free";
    content: '\f6c4';
    /* Car crash icon */
}

.service-tab[data-target="paint"]::after {
    font-family: "Font Awesome 6 Free";
    content: '\f5aa';
    /* Paint brush icon */
}

.service-tab[data-target="specialized"]::after {
    font-family: "Font Awesome 6 Free";
    content: '\f085';
    /* Cog icon */
}

@media (max-width: 768px) {
    .services-tabs {
        padding: 1rem;
        margin: -1rem 0 2rem;
    }

    .service-tab {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .nav-scroller {
        padding: 0.25rem;
    }
}

/* Service Sections */
.service-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.service-section.active {
    display: block;
}

.service-section.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-category {
    margin-bottom: 100px;
    position: relative;
    padding: 0 1rem;
}

.service-category:last-child {
    margin-bottom: 0;
}

/* Category Headers */
.category-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.category-header i {
    font-size: 3.5rem;
    color: #3b82f6;
    margin-bottom: 1.5rem;
    display: block;
}

.category-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    position: relative;
    display: inline-block;
}

.category-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 2px;
}

/* Service Cards */
.service-card {
    position: relative;
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card>* {
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    color: white;
}

.service-card:hover p,
.service-card:hover h3 {
    color: white;
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.1);
}

.service-card:hover .service-icon i {
    color: white;
}

.service-card:hover .btn-primary {
    background: white;
    color: #3b82f6;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    opacity: 0.1;
    z-index: 0;
}

.service-icon i {
    font-size: 2.5rem;
    color: #3b82f6;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.service-card p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.15);
}

/* Why Choose Us Section */
.why-choose-us {
    background: #f8fafc;
    padding: 100px 0;
    margin-top: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.image-collage {
    position: relative;
    height: 500px;
}

.collage-img {
    position: absolute;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.collage-img:nth-child(1) {
    width: 60%;
    top: 0;
    left: 0;
    z-index: 3;
}

.collage-img:nth-child(2) {
    width: 50%;
    top: 20%;
    right: 0;
    z-index: 2;
}

.collage-img:nth-child(3) {
    width: 40%;
    bottom: 0;
    left: 20%;
    z-index: 1;
}

/* Process Section */
.service-process {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.service-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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='%233b82f6' 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.5;
}

.process-bg-pattern {
    position: absolute;
    inset: 0;
    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='%233b82f6' 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.5;
}

.process-timeline {
    max-width: 1200px;
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    padding: 1rem;
}

.process-step {
    position: relative;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.step-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 2rem;
    position: relative;
    text-align: center;
    color: white;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.step-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.step-content {
    padding: 2rem;
    text-align: center;
}

.step-content h3 {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.step-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.step-features span {
    background: rgba(59, 130, 246, 0.08);
    color: var(--primary);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.step-features span:hover {
    background: rgba(59, 130, 246, 0.12);
    transform: translateX(5px);
}

.btn-process {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    transition: all 0.3s ease;
}

.btn-process:hover {
    background: var(--primary);
    color: white;
    gap: 1rem;
}

@media (max-width: 1200px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-timeline {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .process-step {
        margin-bottom: 1rem;
    }
}

.process-step:hover .step-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(360deg);
}

.process-step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .step-connector {
        left: 50%;
        transform: translateX(-50%);
    }

    .step-features {
        justify-content: center;
    }

    .step-content {
        width: 100%;
    }
}

/* Animations */
@keyframes scrollIndicator {

    0%,
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, 10px);
        opacity: 0.5;
    }
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--primary);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.feature-list i {
    color: var(--primary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 80px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .service-category {
        margin-bottom: 60px;
    }

    .category-header h2 {
        font-size: 2rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-icon i {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .image-collage {
        height: 300px;
        margin-top: 3rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (min-width: 768px) {
    .row.g-4 {
        margin: 0 -20px;
    }

    .col-md-3,
    .col-md-4 {
        padding: 0 20px;
    }
}

/* Enhanced Navigation Styles */
.sticky-nav {
    position: sticky;
    top: 76px;
    background: white;
    z-index: 100;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Improved Service Cards */
.service-card {
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    border-color: var(--primary);
}

/* Enhanced Button Styles */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* Quick Action Buttons */
.quick-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: none;
}

.action-btn:hover {
    transform: scale(1.1);
    background: var(--primary);
    color: white;
}

/* Service Navigation Improvements */
.services-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem;
}

.services-nav::-webkit-scrollbar {
    display: none;
}

.service-nav-btn {
    white-space: nowrap;
    margin: 0 0.5rem;
    position: relative;
}

.service-nav-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.service-nav-btn:hover::after,
.service-nav-btn.active::after {
    width: 100%;
}

/* Progress Indicator */
.service-progress {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border);
    z-index: 1000;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0;
    transition: width 0.3s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}