/* ========================================
   Services Page Styles
   ======================================== */

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-header h1 {
    margin: var(--spacing-sm) 0;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Services Detailed Section */
.services-detailed {
    padding: var(--spacing-xl) 0;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-detail-alt {
    direction: rtl;
}

.service-detail-alt > * {
    direction: ltr;
}

.service-detail-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.service-detail-content h2 {
    margin-bottom: var(--spacing-sm);
    font-size: 2rem;
}

.service-detail-content > p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.service-detail-content .feature-list {
    margin-top: var(--spacing-md);
}

.service-detail-content .feature-list li {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* Service Graphics */
.service-detail-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.service-graphic {
    position: relative;
    width: 250px;
    height: 250px;
}

/* Design Graphic */
.design-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphic-element {
    position: absolute;
    border: 3px solid var(--accent-primary);
    border-radius: 15px;
    background: rgba(0, 212, 255, 0.1);
}

.el-1 {
    width: 150px;
    height: 150px;
    animation: float 4s ease-in-out infinite;
}

.el-2 {
    width: 100px;
    height: 100px;
    transform: translate(30px, 30px);
    animation: float 4s ease-in-out infinite 0.5s;
}

.el-3 {
    width: 60px;
    height: 60px;
    transform: translate(60px, 60px);
    animation: float 4s ease-in-out infinite 1s;
}

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

/* Integration Graphic */
.integration-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
}

.node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.node-1 { animation: orbit1 8s linear infinite; }
.node-2 { animation: orbit2 8s linear infinite 2.66s; }
.node-3 { animation: orbit3 8s linear infinite 5.33s; }

@keyframes orbit1 {
    0% { transform: rotate(0deg) translateX(80px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}

@keyframes orbit2 {
    0% { transform: rotate(120deg) translateX(80px) rotate(-120deg); }
    100% { transform: rotate(480deg) translateX(80px) rotate(-480deg); }
}

@keyframes orbit3 {
    0% { transform: rotate(240deg) translateX(80px) rotate(-240deg); }
    100% { transform: rotate(600deg) translateX(80px) rotate(-600deg); }
}

/* Consulting Graphic */
.consulting-graphic {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
    padding-bottom: 30px;
}

.chart-bar {
    width: 40px;
    background: var(--gradient-primary);
    border-radius: 5px 5px 0 0;
    animation: growBar 2s ease-out forwards;
}

.bar-1 { height: 60px; animation-delay: 0s; }
.bar-2 { height: 100px; animation-delay: 0.2s; }
.bar-3 { height: 140px; animation-delay: 0.4s; }
.bar-4 { height: 180px; animation-delay: 0.6s; }

@keyframes growBar {
    from { transform: scaleY(0); transform-origin: bottom; }
    to { transform: scaleY(1); transform-origin: bottom; }
}

/* Security Graphic */
.security-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield {
    width: 150px;
    height: 170px;
    background: var(--gradient-primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulseShield 2s ease-in-out infinite;
}

.shield-inner {
    width: 100px;
    height: 110px;
    background: var(--bg-card);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.lock {
    position: absolute;
    font-size: 3rem;
    animation: bounceLock 2s ease-in-out infinite;
}

@keyframes pulseShield {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 0 60px rgba(0, 212, 255, 0.6); }
}

@keyframes bounceLock {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Cloud Graphic */
.cloud-graphic {
    position: relative;
}

.cloud {
    position: absolute;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    border: 2px solid var(--accent-primary);
}

.cloud-1 {
    width: 120px;
    height: 60px;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    animation: drift1 6s ease-in-out infinite;
}

.cloud-2 {
    width: 80px;
    height: 40px;
    top: 100px;
    left: 30%;
    animation: drift2 8s ease-in-out infinite;
}

.cloud-3 {
    width: 60px;
    height: 30px;
    top: 150px;
    left: 60%;
    animation: drift3 7s ease-in-out infinite;
}

@keyframes drift1 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-15px); }
}

@keyframes drift2 {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(10px) translateY(-10px); }
}

@keyframes drift3 {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-10px) translateY(-5px); }
}

/* Data Graphic */
.data-graphic {
    position: relative;
}

.data-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

.dp-1 { top: 80px; left: 0; }
.dp-2 { top: 60px; left: 50px; }
.dp-3 { top: 40px; left: 100px; }
.dp-4 { top: 20px; left: 150px; }
.dp-5 { top: 0; left: 200px; }

.data-line {
    position: absolute;
    top: 50px;
    left: 0;
    width: 200px;
    height: 100px;
}

/* Process Section */
.process {
    background: var(--bg-secondary);
    padding: var(--spacing-xl) 0;
    position: relative;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.process-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: var(--transition-base);
}

.process-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.process-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-sm);
}

.process-card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.process-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta {
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.05;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    margin-bottom: var(--spacing-sm);
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .service-detail,
    .service-detail-alt {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    
    .service-detail > * {
        direction: ltr;
    }
    
    .service-detail-visual {
        order: -1;
        min-height: 200px;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px;
    }
    
    .service-detail {
        padding: var(--spacing-md);
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .service-graphic {
        transform: scale(0.8);
    }
}
