/* Services Page Specific Styles */

/* Page Banner - reusing from about.css */
.page-banner {
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 120px 0 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative Elements for Services Page */
.page-banner::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    width: 180px;
    height: 180px;
    background-color: rgba(255, 255, 255, 0.1);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    animation: float 15s ease-in-out infinite;
    z-index: 1;
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: 8%;
    width: 220px;
    height: 220px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background-color: rgba(255, 255, 255, 0.1);
    animation: morph 20s ease-in-out infinite alternate;
    z-index: 1;
}

.page-banner h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 2;
}

.page-banner p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Services Introduction */
.services-intro {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-background);
    position: relative;
    overflow: hidden;
}

.services-intro::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 5%;
    width: 100px;
    height: 100px;
    background-color: rgba(59, 130, 246, 0.04);
    border-radius: 50%;
    animation: pulse 12s ease-in-out infinite;
}

.services-intro::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 7%;
    width: 120px;
    height: 120px;
    background-color: rgba(59, 130, 246, 0.03);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: float-rotate 18s ease-in-out infinite;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.intro-content h2 {
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-sm);
}

.intro-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
}

.intro-content p {
    font-size: 1.125rem;
    color: var(--color-text-light);
}

/* Service Detail Sections */
.service-detail {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-background);
    position: relative;
    overflow: hidden;
}

.service-detail:nth-child(odd)::before {
    content: '';
    position: absolute;
    top: 15%;
    right: 5%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    animation: pulse 10s ease-in-out infinite;
}

.service-detail:nth-child(odd)::after {
    content: '';
    position: absolute;
    bottom: 8%;
    left: 3%;
    width: 80px;
    height: 80px;
    background-color: rgba(59, 130, 246, 0.03);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: spin 25s linear infinite;
}

.service-detail:nth-child(even)::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    background-color: rgba(59, 130, 246, 0.04);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: spin 30s linear infinite;
}

.service-detail:nth-child(even)::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 7%;
    width: 140px;
    height: 140px;
    border-radius: 63% 37% 54% 46% / 55% 52% 48% 45%;
    background-color: rgba(59, 130, 246, 0.03);
    animation: morph 15s ease-in-out infinite alternate;
}

.service-detail.alt-bg {
    background-color: var(--color-background-alt);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.service-grid.reversed {
    grid-template-areas: "image content";
}

.service-grid.reversed .service-content {
    grid-area: content;
}

.service-grid.reversed .service-image {
    grid-area: image;
}

.service-content h2 {
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-sm);
}

.service-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 3px;
}

.service-content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.service-content p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.service-content .btn {
    margin-top: var(--spacing-md);
}

.service-list {
    list-style-type: none;
    padding-left: 0;
}

.service-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 18px;
    background-color: var(--color-primary-lightest);
    border-radius: 50%;
}

.service-list li::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 13px;
    width: 5px;
    height: 8px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
}

.service-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-illustration {
    max-width: 100%;
    height: auto;
}

/* Process Section */
.process-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-primary-lightest);
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 50px;
    right: 8%;
    width: 120px;
    height: 120px;
    background-color: rgba(59, 130, 246, 0.1);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: spin 20s linear infinite;
}

.process-section::after {
    content: '';
    position: absolute;
    bottom: 60px;
    left: 5%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.1);
    animation: pulse 15s ease-in-out infinite;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.process-step {
    background-color: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: transform var(--transition-normal);
}

.process-step:hover {
    transform: translateY(-10px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--color-primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.process-step h3 {
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.process-step p {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Animation Keyframes */
@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    50% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-rotate {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(5deg);
    }
    66% {
        transform: translateY(10px) rotate(-5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Ensure all content remains above decorative elements */
.container {
    position: relative;
    z-index: 2;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .service-grid, 
    .service-grid.reversed {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "content"
            "image";
    }
    
    .service-content {
        grid-area: content;
    }
    
    .service-image {
        grid-area: image;
        margin-top: var(--spacing-lg);
    }
    
    .service-content {
        text-align: center;
    }
    
    .service-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .service-list li {
        text-align: left;
    }

    .service-illustration {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-banner {
        padding: 100px 0 50px;
    }
    
    .page-banner h1 {
        font-size: 2.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .intro-content h2,
    .service-content h2 {
        font-size: 1.75rem;
    }
    
    .service-illustration {
        max-width: 100%;
    }

    .page-banner::before,
    .page-banner::after {
        width: 120px;
        height: 120px;
    }
} 