#services {
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6% 8%;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(106, 226, 255, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(164, 133, 255, 0.03) 0%, transparent 25%);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-header h2 {
    font-family: 'Clash Display', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink), var(--accent-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
}

.services-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    border-radius: 3px;
}

.services-subheading {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(20, 20, 30, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(20, 20, 30, 0.35);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(106, 226, 255, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.service-card .gradient-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(106, 226, 255, 0.05) 0%,
        rgba(164, 133, 255, 0.05) 50%,
        rgba(255, 102, 196, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

/* Add light reflection for glassmorphism effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transform: skewX(-25deg);
    transition: all 0.75s ease;
    z-index: 1;
    pointer-events: none;
}

.service-card:hover::before {
    left: 150%;
}

.service-card:hover .gradient-overlay {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 0.4;
    transform: scale(1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(106, 226, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.service-card:hover .service-icon::after {
    opacity: 1;
    width: 60px;
    height: 60px;
}

.service-title {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    position: relative;
    display: inline-block;
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
    transition: width 0.3s ease;
}

.service-card:hover .service-title::after {
    width: 100%;
}

.service-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

.services-cta {
    text-align: center;
    margin-top: 4rem;
}

/* WordPress card styling */
.wordpress-card {
    border-color: rgba(255, 102, 196, 0.3);
}

.wordpress-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 102, 196, 0.2);
    border-color: rgba(255, 102, 196, 0.5);
}

/* Hosting card styling */
.hosting-card {
    border-color: rgba(106, 226, 255, 0.3);
}

.hosting-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(106, 226, 255, 0.2);
    border-color: rgba(106, 226, 255, 0.5);
}

/* Web Design card styling */
.webdesign-card {
    border-color: rgba(164, 133, 255, 0.3);
}

.webdesign-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(164, 133, 255, 0.2);
    border-color: rgba(164, 133, 255, 0.5);
}

/* SEO card styling */
.seo-card {
    border-color: rgba(255, 102, 196, 0.3);
}

.seo-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 102, 196, 0.2);
    border-color: rgba(255, 102, 196, 0.5);
}

/* Performance card styling */
.performance-card {
    border-color: rgba(106, 226, 255, 0.3);
}

.performance-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(106, 226, 255, 0.2);
    border-color: rgba(106, 226, 255, 0.5);
}

/* Service card animations are now in styles.css */

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-header h2 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 2rem;
    }
}
