/* Services Section Styles */
.services {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.02) 0%, rgba(var(--color-secondary-rgb), 0.05) 100%);
}

.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54 22c0-12-18-4-18 4s12 10 18 2v-2zm-6 4c-6 0-12-4-18-4s-12 4-18 4S4 22 4 22s0-4 6-4 12 4 18 4 12-4 18-4 6 4 6 4-6 4-12 4zm-30 0c-6 0-12-4-18-4v2c6 8 18 0 18-4s-18-16-18-4c0 2 6 6 18 6z' fill='currentColor' opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.services-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.services-title {
    margin-bottom: var(--spacing-sm);
}

.services-subtitle {
    max-width: 60rem;
    margin: 0 auto;
    color: var(--color-text);
    opacity: 0.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    isolation: isolate;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(255, 255, 255, 0.1) 40%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::after {
    transform: translateX(100%);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.85);
}

@media (min-width: 769px) {
    .service-card:hover {
        transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
    }
    
    .service-card:hover .service-icon {
        transform: scale(1.1) rotate(10deg) translateZ(20px);
        box-shadow: 
            0 10px 20px -5px rgba(var(--color-primary-rgb), 0.3),
            0 0 0 2px rgba(255, 255, 255, 0.4);
    }
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    color: white;
    font-size: 2.8rem;
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 15px -5px rgba(var(--color-primary-rgb), 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(10deg);
}

.service-title {
    font-size: 2.4rem;
    margin-bottom: 1.6rem;
    position: relative;
    z-index: 1;
}

.service-description {
    color: var(--color-text);
    opacity: 0.8;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    color: var(--color-text);
    opacity: 0.9;
}

.service-feature i {
    color: var(--color-primary);
    font-size: 1.6rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.service-link i {
    transition: transform var(--transition-normal);
}

.service-link:hover {
    color: var(--color-secondary);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Pricing Section Specific Styles */
.pricing .service-card {
    text-align: center;
}

.pricing .service-icon {
    margin: 0 auto 2rem;
}

.pricing-amount {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.pricing .service-features {
    margin: 3rem 0;
    text-align: left;
}

.pricing .service-link {
    width: 100%;
    justify-content: center;
    padding: 1.2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
}

.pricing .service-link:hover {
    color: white;
    opacity: 0.9;
}

.service-card.featured {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) 1;
    transform: scale(1.05);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6),
        0 0 0 4px rgba(var(--color-primary-rgb), 0.1);
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 
        0 25px 30px -5px rgba(0, 0, 0, 0.1),
        0 15px 15px -5px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.7),
        0 0 0 4px rgba(var(--color-primary-rgb), 0.15);
}

@media (min-width: 769px) {
    .service-card.featured:hover {
        transform: scale(1.05) translateY(-10px) rotateX(2deg) rotateY(-2deg);
    }
}

@media (max-width: 900px) {
    .service-card.featured {
        transform: scale(1);
    }
    
    .service-card.featured:hover {
        transform: translateY(-10px);
    }
}

/* Tech Stack Section */
.tech-stack {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(var(--color-primary-rgb), 0.1);
}

.tech-stack-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 4rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    transition: all var(--transition-normal);
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.tech-item i {
    font-size: 3.2rem;
    color: var(--color-primary);
    transition: all 0.3s ease;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(var(--color-primary-rgb), 0.2));
}

.tech-item span {
    font-size: 1.4rem;
    color: var(--color-text);
    opacity: 0.9;
    font-weight: 500;
}

.tech-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.8);
}

.tech-item:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 4px 8px rgba(var(--color-primary-rgb), 0.3));
}

/* Animation classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 900px) {
    .services-grid {
        gap: 3rem;
    }

    .service-card {
        padding: 3rem 2.5rem;
    }
}

@media (max-width: 768px) {
    .tech-stack-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 2rem;
        padding: 1rem;
    }

    .tech-item {
        padding: 1.5rem;
    }

    .tech-item i {
        font-size: 2.8rem;
    }

    .tech-item span {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .service-card {
        padding: 2.5rem 2rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 2.4rem;
    }

    .service-title {
        font-size: 2.2rem;
    }
}
