* {
    box-sizing: border-box;
}

.service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-hero {
    text-align: center;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #ff5e14, #F2C078);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 30px;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.service-hero h1 {
    font-size: 3.5rem;
    margin: 0 0 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    color: white;
}

.service-hero p {
    font-size: 1.3rem;
    margin: 0;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    color: white;
}

.services-section {
    padding: 100px 0;
    position: relative;
}

.service-card {
    position: relative;
    margin-bottom: 120px;
    perspective: 1000px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
}

.service-content {
    margin-top: -68px;
    padding-top: 15px !important;
    padding-left: 20px  !important;
    margin-bottom: 15px !important;
    padding-bottom: 0px !important;
    position: relative;
    /* top: 50%;
    left: 50px;
    right: 50px;
    transform: translateY(-50%); */
    padding: 40px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* .service-card:nth-child(odd) .service-content {
    left: 50px;
    right: 40%;
}

.service-card:nth-child(even) .service-content {
    left: 40%;
    right: 50px;
} */

.service-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,94,20,0.1), transparent);
    transition: left 0.6s;
}

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

.service-content:hover {
    /* transform: translateY(-10px) rotateX(5deg) rotateY(-5deg) scale(1.02); */
    box-shadow: 0 30px 60px rgba(255,94,20,0.3);
}

.service-image {
    position: relative;
    width: 100%;
    height: 650px;
    z-index: 1;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border-radius: 20px;
}

.service-image:hover {
    transform: scale(1.05) rotateX(-2deg) rotateY(2deg);
}

.service-image:hover .image-slider {
    animation-play-state: paused;
}

.image-slider {
    display: flex;
    width: 300%;
    height: 100%;
    animation: slideImages 18s infinite ease-in-out;
}

.image-slide {
    width: 33.333%;
    height: 100%;
    flex-shrink: 0;
}

.image-slide {
    position: relative;
    overflow: hidden;
}

.image-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,94,20,0.05), rgba(242,192,120,0.05));
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.service-image:hover .image-slide::before {
    opacity: 1;
}

.image-slide svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: brightness(1) contrast(1.1);
}

.service-image:hover .image-slide svg {
    filter: brightness(1.15) contrast(1.2);
    transform: scale(1.02);
}

@keyframes slideImages {
    0% { transform: translateX(0); }
    25% { transform: translateX(0); }
    33.333% { transform: translateX(-33.333%); }
    58.333% { transform: translateX(-33.333%); }
    66.666% { transform: translateX(-66.666%); }
    91.666% { transform: translateX(-66.666%); }
    100% { transform: translateX(0); }
}

.service-title {
    margin-bottom: 11px !important;
    font-size: 2.5rem;
    color: #ff5e14;
    margin: 0 0 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.service-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

.service-btn {
    background: linear-gradient(135deg, #ff5e14, #F2C078);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255,94,20,0.3);
    transform: translateZ(0);
}

.service-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255,94,20,0.4);
}

.service-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-hero h1 {
        font-size: 2.5rem;
    }

    .service-hero p {
        font-size: 1.1rem;
    }

    .service-card {
        height: 400px;
        margin-bottom: 80px;
    }

    .service-content {
        padding: 30px;
        left: 20px;
        right: 20px;
    }

    .service-title {
        font-size: 2rem;
    }



    .services-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .service-hero {
        padding: 60px 0 40px;
    }

    .service-hero h1 {
        font-size: 2rem;
    }

    .service-card {
        height: 350px;
    }

    .service-content {
        padding: 25px;
        left: 15px;
        right: 15px;
    }

    .service-title {
        font-size: 1.8rem;
    }

    .service-description {
        font-size: 1rem;
    }


}

/* Background decorations */
.bg-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,94,20,0.1), rgba(242,192,120,0.1));
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.bg-decoration:nth-child(1) {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.bg-decoration:nth-child(2) {
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.bg-decoration:nth-child(3) {
    top: 50%;
    right: 5%;
    animation-delay: 4s;
}

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