/* =============================================
   Services Page Specific Styles
   ============================================= */

/* Services Hero Section */
.services-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.services-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.services-hero .hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    text-align: left;
}

.services-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(139, 198, 63, 0.1);
    border: 1px solid rgba(139, 198, 63, 0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.services-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.services-hero .title-line {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

.services-hero .title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.services-hero .title-line:nth-child(3) {
    animation-delay: 0.4s;
}

.services-hero .hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.services-hero .hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: left;
    align-items: center;
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

/* Services Overview Section */
.services-overview {
    padding: 6rem 0;
    background: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(139, 198, 63, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 198, 63, 0.15);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(139, 198, 63, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Detailed Services Section */
.detailed-services {
    padding: 6rem 0;
}

.service-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
}

.service-nav-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(139, 198, 63, 0.2);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.service-nav-btn:hover,
.service-nav-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 198, 63, 0.25);
}

.service-details-wrapper {
    position: relative;
    margin-top: 3rem;
}

.service-detail {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.service-detail.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.detail-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(139, 198, 63, 0.15);
}

.detail-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}


.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1) contrast(1.1) saturate(1.1);
}

.detail-content:hover .detail-image img {
    transform: scale(1.08);
}

.detail-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.detail-content:hover .detail-image::after {
    opacity: 1;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(139, 198, 63, 0.85) 0%, 
        rgba(106, 151, 48, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 3;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.detail-content:hover .image-overlay {
    opacity: 1;
}

.service-details-wrapper {
    min-height: 400px;
}

.service-detail:not(.active) .detail-content {
    transform: translateY(-10px);
}

.overlay-icon {
    color: white;
    transform: scale(0.7) rotate(-10deg);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.detail-content:hover .overlay-icon {
    transform: scale(1) rotate(0deg);
}

.detail-image:hover {
    box-shadow: 0 20px 50px rgba(139, 198, 63, 0.25);
    transform: translateY(-5px);
}

.detail-info {
    padding: 3rem;
}

.detail-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.detail-info > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.key-features h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.key-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.key-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.key-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Service Process Section */
.service-process {
    padding: 6rem 0;
    background: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 2rem 1rem;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(139, 198, 63, 0.3);
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-arrow {
    position: absolute;
    top: 50%;
    right: -1rem;
    transform: translateY(-50%);
    color: var(--primary);
    opacity: 0.6;
    z-index: 1;
}

.process-step:last-child .step-arrow {
    display: none;
}

/* Services CTA Section */
.services-cta {
    padding: 6rem 0;
    color: white;
    text-align: center;
}

.services-cta .cta-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.services-cta .cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.services-cta .cta-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.services-cta .cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .services-hero .hero-container {
        margin-top: 5rem;
        padding: 0 2rem;
    }
    
    .services-hero .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .services-hero .hero-actions .btn-modern {
        width: 100%;
        max-width: 300px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        overflow-x: auto;
        padding: 1rem 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .service-nav::-webkit-scrollbar {
        display: none;
    }
    
    .service-nav-btn {
        flex-shrink: 0;
        min-width: auto;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        text-align: center;
        white-space: nowrap;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .detail-image {
        height: 250px;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 5px 15px rgba(139, 198, 63, 0.15);
    }
    
    .detail-image img {
        border-radius: 20px 20px 0 0;
    }
    
    .detail-image::after {
        height: 40px;
    }
    
    .detail-info {
        padding: 2rem;
    }
    
    .detail-info h3 {
        font-size: 1.5rem;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .detail-actions .btn-modern {
        width: 100%;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .step-arrow {
        display: none;
    }
    
    .services-cta .cta-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .services-overview,
    .detailed-services,
    .service-process,
    .services-cta {
        padding: 4rem 0;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon svg {
        width: 36px;
        height: 36px;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .detail-info {
        padding: 1.5rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

/* Scroll animations for service cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* Process step animations */
.process-step {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.process-step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }
.process-step:nth-child(4) { animation-delay: 0.4s; }

/* Smooth scrolling for service links */
html {
    scroll-behavior: smooth;
}