/* Services Hero Section */
.services-hero {
    position: relative;
    min-height: 80vh;
    background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.services-hero .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.services-hero .hero-text {
    max-width: 600px;
}

.services-hero .hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.services-hero .hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Services Grid Section */
.services-grid-section {
    padding: 8rem 0;
    position: relative;
    background: var(--background);
}

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), transparent);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Process Section */
.process-section {
    padding: 8rem 0;
    position: relative;
    background: var(--background);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--accent-color) 10%,
        var(--accent-color) 90%,
        transparent 100%
    );
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

/* Theme-specific styles */
:root[data-theme="dark"] .services-hero {
    color: var(--secondary-color);
}

:root[data-theme="light"] .services-hero {
    color: var(--primary-color);
}

@media (max-width: 992px) {
    .services-hero .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .services-hero .hero-text {
        margin: 0 auto;
    }

    .services-hero .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-hero .hero-title {
        font-size: 2.5rem;
    }

    .services-hero .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* SVG Animations */
.tech-elements {
    transform-origin: center;
    animation: float 6s ease-in-out infinite;
}

/* Pulse Ring Animations */
.pulse-ring {
    transform-origin: center;
    animation: pulse 3s ease-in-out infinite;
}
.pulse-ring:nth-child(2) {
    animation-delay: 1s;
}

/* Connection Line Animations */
.connection-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw 3s ease-in-out infinite;
}

/* Cloud Animation */
.tech-elements path:nth-child(5) {
    animation: cloudFloat 4s ease-in-out infinite;
}

/* Shield Glow */
.tech-elements path:nth-child(8) {
    animation: glow 2s ease-in-out infinite;
}

/* Code Brackets Animation */
.tech-elements path:nth-child(6),
.tech-elements path:nth-child(7) {
    animation: codeMove 2s ease-in-out infinite;
}

/* Database Animation */
.tech-elements path:nth-child(3),
.tech-elements path:nth-child(4) {
    animation: databasePulse 2s ease-in-out infinite;
}

/* Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { 
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.3;
    }
    100% { 
        transform: scale(0.95);
        opacity: 0.5;
    }
}

@keyframes draw {
    0% { stroke-dashoffset: 200; }
    50% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -200; }
}

@keyframes cloudFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5px, -5px); }
}

@keyframes glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; filter: brightness(1.2); }
}

@keyframes codeMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

@keyframes databasePulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.1); }
}

/* Optional: Add hover effects */
.tech-elements:hover {
    animation-play-state: paused;
}

/* Make sure SVG is responsive */
.contact-illustration svg {
    width: 100%;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* For desktop specifically */
@media (min-width: 1024px) {
    .services-wrapper {
        grid-template-columns: repeat(3, 1fr); /* Force 3 columns on desktop */
        gap: 2.5rem;
    }
}
