/* components/products/products.css */
.products {
    padding: 120px 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.products__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.products__section {
    margin-bottom: 140px;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.products__section::after {
    content: '';
    position: absolute;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
    opacity: 0.6;
}

.products__section:last-child::after {
    display: none;
}

.products__section.animate {
    opacity: 1;
    transform: translateY(0);
}

.products__section:last-child {
    margin-bottom: 0;
}

.products__header {
    text-align: center;
    margin-bottom: 60px;
}

.products__title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(12, 13, 20, 0.8);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.products__section.animate .products__title {
    opacity: 1;
    transform: translateY(0);
}

.products__title-accent {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products__description {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.7;
    color: var(--color-gray-200);
    max-width: 1100px;
    margin: 0 auto;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.products__section.animate .products__description {
    opacity: 1;
    transform: translateY(0);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.products__card {
    background: var(--gradient-glass);
    backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    transition: var(--transition-spring);
    position: relative;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 1 / 1;
    max-width: 350px;
    margin: 0 auto;
}

.products__section.animate .products__card:nth-child(1) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.6s;
}

.products__section.animate .products__card:nth-child(2) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 0.8s;
}

.products__section.animate .products__card:nth-child(3) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 1s;
}

.products__section.animate .products__card:nth-child(4) {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 1.2s;
}

.products__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.products__card:hover {
    transform: translateY(-8px) scale(1.02);
    border: var(--glass-border-hover);
    box-shadow: var(--shadow-glow);
}

.products__card:hover::before {
    opacity: 0.05;
}

.products__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.products__card:hover .products__card-image {
    transform: scale(1.05);
}

@media (max-width: 1400px) {
    .products__container {
        max-width: 1200px;
    }
    
    .products__card {
        max-width: 320px;
    }
}

@media (max-width: 1200px) {
    .products__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .products__card {
        max-width: 350px;
    }
}

@media (max-width: 1024px) {
    .products {
        padding: 80px 0;
    }

    .products__section {
        margin-bottom: 120px;
    }

    .products__section::after {
        bottom: -60px;
        width: 150px;
    }

    .products__header {
        margin-bottom: 50px;
    }

    .products__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .products__card {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .products {
        padding: 60px 0;
    }

    .products__container {
        padding: 0 16px;
    }

    .products__section {
        margin-bottom: 100px;
    }

    .products__section::after {
        bottom: -50px;
        width: 120px;
    }

    .products__header {
        margin-bottom: 40px;
        text-align: left;
    }

    .products__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .products__card {
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .products {
        padding: 50px 0;
    }

    .products__container {
        padding: 0 12px;
    }

    .products__section {
        margin-bottom: 80px;
    }

    .products__section::after {
        bottom: -40px;
        width: 100px;
        height: 1px;
    }
    
    .products__card {
        max-width: 100%;
    }
}