.services-section {
    width: 100%;
    padding: 0 20px;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    margin: -20px auto 30px;
}

.card {
    position: relative;
    width: 100%;
    height: 240px;
    perspective: 1000px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    background: transparent;
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    background: transparent;
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    padding: 1rem;
    background: rgba(18, 18, 18, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-front {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    transition: color 0.3s ease;
}

.card:hover .card-front {
    color: #b789d2;
}

.card-back {
    transform: rotateY(180deg);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.card-back h3 {
    color: #b789d2;
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 600;
}

.card-back p {
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -0.02em;
}

.card:hover .card-inner {
    transform: scale(1.05);
}

.card.flipped:hover .card-inner {
    transform: rotateY(180deg) scale(1.05);
}

.click-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10;
}

.cursor-3d {
    width: 30px;
    height: 30px;
    position: relative;
    transition: all 0.3s ease;
    animation: cursorBounce 2s infinite;
}

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

.cursor-3d::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(0, 0, 0, 0.1) 60%);
    clip-path: polygon(0 0, 0 100%, 30% 75%, 45% 90%, 55% 80%, 40% 65%, 100% 20%);
}

.card:hover .click-indicator {
    opacity: 1;
    transform: translateX(-50%) scale(1.3);
}

.card.flipped .click-indicator {
    opacity: 0;
    pointer-events: none;
}

.card-front span {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 25px;
    font-family: 'Helvetica', sans-serif;
    letter-spacing: -0.02em;
}

.card-back h3 {
    color: #b789d2;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    font-family: 'Helvetica', sans-serif;
    letter-spacing: -0.02em;
}

.card-back p {
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

/* Responsive Design */
@media (max-width: 900px) {
    .services-container {
        gap: 24px;
        margin: 30px auto;
        margin-bottom: -10px !important;
    }
    
    .card {
        height: 200px;
    }
    
    .cursor-3d {
        width: 32px;
        height: 32px;
    }
    
    .card-front span {
        font-size: 18px;
    }
    
    .card-back h3 {
        font-size: 20px;
    }
    
    .card-back p {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    .services-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px auto;
        padding: 0 1.5rem;
    }
    
    .card {
        height: 180px;
    }
    
    .cursor-3d {
        width: 28px;
        height: 28px;
    }
    
    .card-front span {
        font-size: 18px;
    }
    
    .card-back h3 {
        font-size: 18px;
    }
    
    .card-back p {
        font-size: 13px;
    }
} 