/* Services Specific Styles - Bootstrap Compatible */

/* Services Hero */
.services-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-hero::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.services-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.services-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Services Overview */
.services-overview {
    padding: 80px 0;
    background: var(--light-bg);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.overview-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.overview-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.overview-icon i {
    font-size: 2.5rem;
    color: white;
}

.overview-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.overview-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.overview-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.overview-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.overview-link i {
    transition: transform 0.3s ease;
}

.overview-link:hover i {
    transform: translateX(5px);
}

/* Service Detail */
.service-detail {
    padding: 80px 0;
    background: white;
}

.service-detail:nth-child(even) {
    background: var(--light-bg);
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.service-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.service-intro {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

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

.service-features ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    color: var(--text-color);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.service-features li i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Applications */
.applications h3,
.process-steps h3,
.capabilities h3 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.application-grid,
.steps-grid,
.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.application-item,
.step-item,
.capability-item {
    background: rgba(52, 152, 219, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    text-align: center;
    transition: var(--transition);
}

.application-item:hover,
.step-item:hover,
.capability-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
}

.application-item i,
.capability-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.application-item h4,
.step-item h4,
.capability-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.application-item p,
.step-item p,
.capability-item p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Service Image */
.service-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.machine-showcase {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow);
    border: 2px solid rgba(52, 152, 219, 0.3);
    transition: var(--transition);
}

.machine-showcase:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.machine-showcase.milling-bg {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.machine-showcase.sheet-metal-bg {
    background: linear-gradient(135deg, var(--success-color), var(--success-dark));
}

.machine-showcase.turning-bg {
    background: linear-gradient(135deg, var(--warning-color), var(--warning-dark));
}

.machine-showcase i {
    font-size: 4rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.machine-showcase h4 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Machine Park */
.machine-park {
    background: rgba(52, 152, 219, 0.1);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.machine-park h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.machine-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    text-align: center;
    transition: var(--transition);
}

.machine-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.5);
}

.machine-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.machine-item p {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-hero {
        padding: 100px 0 60px;
    }
    
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .services-overview {
        padding: 60px 0;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-detail {
        padding: 60px 0;
    }
    
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-text h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .application-grid,
    .steps-grid,
    .capability-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .machine-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .machine-showcase {
        height: 300px;
    }
    
    .machine-showcase i {
        font-size: 3rem;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .services-hero p {
        font-size: 1rem;
    }
    
    .overview-card {
        padding: 1.5rem;
    }
    
    .overview-icon {
        width: 70px;
        height: 70px;
    }
    
    .overview-icon i {
        font-size: 2rem;
    }
    
    .service-text h2 {
        font-size: 1.8rem;
    }
    
    .machine-showcase {
        height: 250px;
    }
    
    .machine-showcase i {
        font-size: 2.5rem;
    }
    
    .machine-showcase h4 {
        font-size: 1.2rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* Animation for service sections */
.service-detail {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for overview cards */
.overview-card:nth-child(1) { animation-delay: 0.1s; }
.overview-card:nth-child(2) { animation-delay: 0.2s; }
.overview-card:nth-child(3) { animation-delay: 0.3s; }