.section {
    padding: 8rem 2rem;
    background: #000000;
    overflow: hidden;
    perspective: 1500px;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.textWrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    transform-style: preserve-3d;
}

.text {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--foreground);
    line-height: 0.9;
    opacity: 0.1;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    transform: translateZ(0);
    position: relative;
    cursor: pointer;
}

.text:hover {
    opacity: 0.7;
    color: #ffffff;
    transform: translateZ(50px) rotateX(5deg) scale(1.05);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.text:nth-child(1) {
    animation: float3D 6s ease-in-out infinite;
}

.text:nth-child(2) {
    animation: float3D 6s ease-in-out infinite 0.3s;
}

@keyframes float3D {
    0%, 100% {
        transform: translateZ(0) rotateX(0deg);
    }
    50% {
        transform: translateZ(20px) rotateX(2deg);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 1rem;
    }

    .textWrapper {
        gap: 0.5rem;
    }
}

