/* Services Page Styles */
.services-page-wrapper {
    padding: 0;
    margin: 0;
    width: 100%;
}

.services-hero {
    background: linear-gradient(45deg, #ececec, #acd5ff), url('../images/section-bg.png') no-repeat center center/cover;
    color: #fff;
    padding: 50px 0 50px;
    text-align: center;
    position: relative;
    background-attachment: fixed;
}

.services-hero .page-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.services-hero .page-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.services-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

/* Scroll Animation for Service Cards */
.service-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Animation Delay */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }
.service-card:nth-child(6) { transition-delay: 0.6s; }

.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 32px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ececec, #acd5ff);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.9;
}

.service-card:hover .service-icon::before {
    animation: pulse 1.5s infinite;
}

.service-features .wpcf7-form  p{
    margin: 3px;
}
.service-features .wpcf7-form-control.wpcf7-text,.service-features .wpcf7-form-control.wpcf7-textarea {
    margin: 0;
    padding: 13px;
    height: 2rem;
}
.service-features .wpcf7-textarea {
    min-height: 100px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    70% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

.service-content {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
    min-height: 80px; /* Ensures consistent height for 2 lines of text */
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #2c3e50;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Service Specific Colors */
.service-web-dev .service-icon::before {
    background: linear-gradient(45deg, #3498db, #2c3e50);
}

.service-mobile .service-icon::before {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.service-marketing .service-icon::before {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

/* Single Service Page */
.service-single-hero {
    background: linear-gradient(45deg, #ececec, #acd5ff), url('../images/section-bg.png') no-repeat center center/cover;
    color: #fff;
    padding: 50px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-single-hero .container {
    position: relative;
    z-index: 2;
}

.service-single-header {
    max-width: 800px;
    margin: 0 auto;
}

.service-single-hero .service-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 40px;
    color: #fff;
    backdrop-filter: blur(5px);
}

.service-single-hero .service-title {
    font-size: 3rem;
    margin: 0 0 20px;
    font-weight: 700;
    line-height: 1.2;
}


.service-single-content {
    background: #f9f9f9;
    margin:0 0 20px 0;
}

.service-content-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 30px;
}

.service-main-content {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
    order: 1;
    max-width: calc(100% - 330px); /* 300px sidebar + 30px gap */
}

.service-sidebar {
    width: 300px;
    order: 2;
    flex-shrink: 0;
}

/* Ensure the main content takes full width when sidebar is not present */
.service-content-wrapper:not(:has(.service-sidebar)) .service-main-content {
    width: 100%;
}

.service-main-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.service-sidebar {
    position: sticky;
    top: 30px;
    align-self: flex-start;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-left: 30px;
    width: 400px;
    float: right;
}

.service-features h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    color: #555;
    line-height: 1.6;
}

.service-features li i {
    color: #3498db;
    margin-right: 10px;
    margin-top: 4px;
    flex-shrink: 0;
}



/* Responsive Styles */
@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .service-content-wrapper {
        flex-direction: column;
    }
    
    .service-main-content {
        max-width: 100%;
        width: 100%;
        order: 1;
    }
    
    .service-sidebar {
        width: 100%;
        margin: 40px 0 0 0;
        order: 2;
    }
}

@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-hero {
        padding: 60px 0 40px;
    }
    
    .services-section {
        padding: 50px 0;
    }
    
    .service-single-hero .service-title {
        font-size: 2.2rem;
        padding: 0 15px;
    }
    
    .service-main-content {
        padding: 25px;
    }
    
    .service-features {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .service-single-hero .service-title {
        font-size: 1.8rem;
    }
    
    .service-single-hero .service-icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .service-main-content,
    .service-features {
        padding: 20px 15px;
    }
}
