/* Service Page Styles */
.service-hero {
    padding: 180px 0 100px;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    margin-top: 80px;
}

.service-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: white;
}

.service-hero p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 60px 0;
}

.service-description h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 32px;
}

.service-features {
    margin: 30px 0;
}

.service-features ul {
    list-style: none;
    margin-top: 15px;
}

.service-features li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
}

.service-features li i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-color);
}

.service-types {
    margin: 40px 0;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.type-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.type-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.type-card h4 {
    padding: 15px 15px 5px;
    color: var(--secondary-color);
}

.type-card p {
    padding: 0 15px 15px;
    font-size: 14px;
}

/* Image Gallery */
.image-gallery {
    margin-bottom: 40px;
}

.image-gallery h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    height: 120px;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Video Section */
.service-video {
    margin-bottom: 40px;
}

.service-video h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
}

/* Parts Section */
.service-parts {
    background: var(--gray-color);
    padding: 60px 0;
    margin: 60px 0;
}

.service-parts h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.part-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.part-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.part-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.part-card h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* CTA Section */
.service-cta {
    text-align: center;
    padding: 60px 0;
}

.service-cta h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.service-cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 18px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    padding: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}


/* Hero Slider Styles */
.service-hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 80px;
}

.hero-slides {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide .container {
    width: 100%;
    color: white;
}

.hero-slide h1 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 1s both;
}

.hero-slide p {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s both 0.3s;
}

.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: none;
    gap: 20px;
}

.slide-prev, .slide-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-prev:hover, .slide-next:hover {
    background-color: var(--primary-color);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.servicehtag
{
    color: #ffffff !important;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cta-buttons .btn {
    margin: 5px 0;
}

/* Video Caption */
.video-caption {
    text-align: center;
    margin-top: 15px;
    color: var(--text-color);
    font-style: italic;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .service-content {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 150px 0 80px;
    }
    
    .service-hero h1 {
        font-size: 36px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .types-grid, .parts-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .types-grid, .parts-grid {
        grid-template-columns: 1fr;
    }
    
    .service-hero h1 {
        font-size: 32px;
    }
    
    .service-hero p {
        font-size: 18px;
    }
}