/* ================================================
   MECHANIC SERVICE PAGE - CUSTOM CSS
   ================================================ */

/* Base Styles */
.mechanic-hero-section,
.mechanic-services-section,
.mechanic-features-section,
.mechanic-workshop-section,
.mechanic-process-section,
.mechanic-cta-section {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* ================================================
   HERO SECTION
   ================================================ */
.mechanic-hero-section {
    background: linear-gradient(135deg, #1ceaff, #3581ff);
    padding: 80px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.mechanic-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="gear" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="8" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23gear)"/></svg>');
    animation: mechanic-rotate 20s linear infinite;
}

@keyframes mechanic-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mechanic-hero-content {
    position: relative;
    z-index: 2;
}

.mechanic-hero-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.mechanic-hero-text {
    flex: 1;
}

.mechanic-hero-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.mechanic-hero-text p {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.mechanic-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.mechanic-stat-item {
    text-align: center;
}

.mechanic-stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    display: block;
}

.mechanic-stat-label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mechanic-hero-image {
    flex: 1;
    position: relative;
}

.mechanic-hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* ================================================
   SERVICES SECTION
   ================================================ */
.mechanic-services-section {
    padding: 100px 0;
    background: #fff;
}

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

.mechanic-section-header .mechanic-subtitle {
    color: #4FC3F7;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 10px;
}

.mechanic-section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}

.mechanic-section-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.mechanic-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.mechanic-service-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    border: 2px solid #f0f0f0;
    overflow: hidden;
}

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

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

.mechanic-service-card:hover {
    transform: translateY(-10px);
    border-color: #4FC3F7;
    box-shadow: 0 20px 40px rgba(79, 195, 247, 0.1);
}

.mechanic-service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1ceaff, #3581ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: #fff;
    position: relative;
    z-index: 2;
}

.mechanic-service-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.mechanic-service-card p {
    color: #666;
    line-height: 1.7;
    font-size: 16px;
}

/* ================================================
   FEATURES SECTION
   ================================================ */
.mechanic-features-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.mechanic-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.mechanic-feature-item {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.mechanic-feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.mechanic-feature-icon {
    width: 60px;
    height: 60px;
    background: #4FC3F7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: #fff;
}

.mechanic-feature-item h5 {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.mechanic-feature-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* ================================================
   WORKSHOP SECTION
   ================================================ */
.mechanic-workshop-section {
    padding: 100px 0;
    background: #000;
    color: #fff;
    position: relative;
}

.mechanic-workshop-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="tools" patternUnits="userSpaceOnUse" width="50" height="50"><path d="M10,10 L40,40 M40,10 L10,40" stroke="rgba(79,195,247,0.1)" stroke-width="2" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23tools)"/></svg>');
    opacity: 0.3;
}

.mechanic-workshop-content {
    position: relative;
    z-index: 2;
}

.mechanic-workshop-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.mechanic-workshop-text {
    flex: 1;
}

.mechanic-workshop-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #fff;
}

.mechanic-workshop-text p {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.9;
}

.mechanic-workshop-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mechanic-workshop-feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mechanic-workshop-feature i {
    color: #4FC3F7;
    font-size: 20px;
}

.mechanic-workshop-feature span {
    font-weight: 500;
}

.mechanic-workshop-image {
    flex: 1;
}

.mechanic-workshop-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(79, 195, 247, 0.2);
}

/* ================================================
   PROCESS SECTION
   ================================================ */
.mechanic-process-section {
    padding: 100px 0;
    background: #fff;
}

.mechanic-process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.mechanic-process-step {
    text-align: center;
    position: relative;
}

.mechanic-process-step::before {
    content: '';
    position: absolute;
    top: 40px;
    right: -20px;
    width: 40px;
    height: 2px;
    background: #4FC3F7;
    z-index: 1;
}

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

.mechanic-step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1ceaff, #3581ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 2;
}

.mechanic-process-step h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.mechanic-process-step p {
    color: #666;
    line-height: 1.6;
}

/* ================================================
   CTA SECTION
   ================================================ */
.mechanic-cta-section {
    background: linear-gradient(135deg, #1ceaff, #3581ff);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mechanic-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: mechanic-float 20s ease-in-out infinite;
}

@keyframes mechanic-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.mechanic-cta-content {
    position: relative;
    z-index: 2;
}

.mechanic-cta-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.mechanic-cta-section p {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 40px;
    opacity: 0.9;
}

.mechanic-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mechanic-btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mechanic-btn-primary {
    background: #fff;
    color: #4FC3F7;
    border-color: #fff;
}

.mechanic-btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

.mechanic-btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.mechanic-btn-secondary:hover {
    background: #fff;
    color: #4FC3F7;
    transform: translateY(-2px);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 768px) {
    .mechanic-hero-row,
    .mechanic-workshop-row {
        flex-direction: column;
        text-align: center;
    }

    .mechanic-hero-stats {
        justify-content: center;
    }

    .mechanic-hero-text h2 {
        font-size: 28px;
    }

    .mechanic-section-header h2 {
        font-size: 32px;
    }

    .mechanic-services-grid,
    .mechanic-features-grid,
    .mechanic-process-steps {
        grid-template-columns: 1fr;
    }

    .mechanic-process-step::before {
        display: none;
    }

    .mechanic-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .mechanic-workshop-features {
        grid-template-columns: 1fr;
    }

    .mechanic-hero-stats {
        gap: 20px;
    }

    .mechanic-stat-item {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .mechanic-hero-text h2 {
        font-size: 24px;
    }

    .mechanic-section-header h2 {
        font-size: 28px;
    }

    .mechanic-hero-text p,
    .mechanic-section-header p {
        font-size: 16px;
    }

    .mechanic-service-card {
        padding: 30px 20px;
    }

    .mechanic-service-card h4 {
        font-size: 20px;
    }

    .mechanic-service-card p {
        font-size: 14px;
    }

    .mechanic-feature-item {
        padding: 25px 20px;
    }

    .mechanic-workshop-text h2,
    .mechanic-cta-section h2 {
        font-size: 28px;
    }

    .mechanic-workshop-text p,
    .mechanic-cta-section p {
        font-size: 16px;
    }

    .mechanic-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* ================================================
   ADDITIONAL ANIMATIONS & EFFECTS
   ================================================ */

/* Service card hover effects */
.mechanic-service-card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mechanic-service-card:hover {
    box-shadow: 
        0 14px 28px rgba(79, 195, 247, 0.15),
        0 10px 10px rgba(79, 195, 247, 0.1);
}

/* Feature item pulse effect */
.mechanic-feature-icon {
    transition: all 0.3s ease;
}

.mechanic-feature-item:hover .mechanic-feature-icon {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.4);
}

/* Process step animations */
.mechanic-step-number {
    transition: all 0.3s ease;
}

.mechanic-process-step:hover .mechanic-step-number {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(79, 195, 247, 0.3);
}

/* Button animations */
.mechanic-btn {
    position: relative;
    overflow: hidden;
}

.mechanic-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
}

.mechanic-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Scroll animations enhancement */
.mechanic-service-card,
.mechanic-feature-item,
.mechanic-process-step {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.mechanic-service-card.animate,
.mechanic-feature-item.animate,
.mechanic-process-step.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Loading animation for stats */
.mechanic-stat-number {
    transition: all 0.3s ease;
}

.mechanic-stat-item:hover .mechanic-stat-number {
    color: #4FC3F7;
    transform: scale(1.1);
}

/* Workshop image overlay effect */
.mechanic-workshop-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.mechanic-workshop-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(79, 195, 247, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 2;
}

.mechanic-workshop-image:hover::before {
    transform: translateX(100%);
}

/* Enhanced gradient backgrounds */
.mechanic-hero-section {
    background: linear-gradient(135deg, #4FC3F7 0%, #2196F3 50%, #000 100%);
}

.mechanic-cta-section {
    background: linear-gradient(135deg, #4FC3F7 0%, #2196F3 50%, #000 100%);
}

/* Improved text shadows for better readability */
.mechanic-hero-section h2,
.mechanic-cta-section h2 {
    color: #ffffff;
}

/* Custom scrollbar for webkit browsers */
.mechanic-services-section::-webkit-scrollbar,
.mechanic-features-section::-webkit-scrollbar {
    width: 8px;
}

.mechanic-services-section::-webkit-scrollbar-track,
.mechanic-features-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.mechanic-services-section::-webkit-scrollbar-thumb,
.mechanic-features-section::-webkit-scrollbar-thumb {
    background: #4FC3F7;
    border-radius: 10px;
}

.mechanic-services-section::-webkit-scrollbar-thumb:hover,
.mechanic-features-section::-webkit-scrollbar-thumb:hover {
    background: #2196F3;
}

/* Focus states for accessibility */
.mechanic-btn:focus,
.mechanic-service-card:focus,
.mechanic-feature-item:focus {
    outline: 2px solid #4FC3F7;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .mechanic-hero-section::before,
    .mechanic-workshop-section::before,
    .mechanic-cta-section::before {
        display: none;
    }
    
    .mechanic-service-card,
    .mechanic-feature-item {
        break-inside: avoid;
        margin-bottom: 20px;
    }
}