/* Linear-style Products Section */
.products-section {
    background: var(--color-bg-primary);
    padding: var(--space-24) 0;
    position: relative;
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.products-header {
    text-align: left;
    margin-bottom: var(--space-16);
}

.products-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: rgba(94, 106, 210, 0.1);
    border: 1px solid rgba(94, 106, 210, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--color-accent);
    margin-bottom: var(--space-4);
}

.products-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-4);
}

.products-description {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    max-width: 600px;
}

/* Carousel Container */
.products-carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.products-carousel-wrapper {
    overflow: hidden;
    margin: 0;
    position: relative;
}

.products-carousel {
    display: flex;
    gap: var(--space-6);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--space-4) 0 var(--space-8);
    will-change: transform;
}

/* Fade edges for better visual */
.products-carousel-wrapper::before,
.products-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.products-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-primary) 0%, transparent 100%);
}

.products-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-primary) 0%, transparent 100%);
}

/* Product Cards */
.product-card-modern {
    flex: 0 0 400px;
    min-height: 500px;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-slow);
    /* cursor: pointer; - removed to allow link clicking */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    margin-right: 0; /* Remove any default margins */
}

.product-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(94, 106, 210, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.product-card-modern:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
}

.product-card-modern:hover::before {
    opacity: 1;
}

/* Card Visual Area */
.product-visual {
    height: 280px;
    background: #050505;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow);
}

.product-card-modern:hover .product-visual img {
    transform: scale(1.05);
}

/* Product Icons - Linear style abstract shapes */
.product-icon-visual {
    width: 180px;
    height: 180px;
    position: relative;
}

.product-letter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    opacity: 0.2;
    z-index: 1;
}

/* Geometric shapes for each product */
.product-shape {
    position: absolute;
    border-radius: var(--radius-lg);
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #5e6ad2 0%, #7c8adb 50%);
    top: 20%;
    left: 30%;
    transform: rotate(45deg);
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #9333ea 0%, #c084fc 50%);
    bottom: 20%;
    right: 20%;
    border-radius: 50%;
}

.shape-3 {
    width: 100px;
    height: 40px;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%);
    top: 60%;
    left: 10%;
    transform: skewY(-10deg);
}

/* Card Content */
.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.product-name {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-2);
}

.product-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
}

.product-description {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
    flex: 1;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-accent);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-top: var(--space-6);
    transition: all var(--transition-base);
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.product-link:hover {
    color: var(--color-accent);
    gap: var(--space-3);
}

/* Navigation Buttons */
.carousel-nav {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    margin-top: var(--space-8);
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.carousel-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}

/* Progress Indicators */
.carousel-progress {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    margin-top: var(--space-6);
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
    cursor: pointer;
}

.progress-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .products-section {
        position: relative;
    }
    
    .product-card-modern {
        flex: 0 0 320px;
        min-height: 450px;
    }
    
    .product-visual {
        height: 220px;
    }
    
    .products-carousel {
        gap: var(--space-4);
    }
    
    .carousel-nav {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        background: rgba(0, 0, 0, 0.8);
        padding: var(--space-2);
        border-radius: var(--radius-full);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .carousel-btn:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Smooth scroll for touch devices */
@media (pointer: coarse) {
    .products-carousel {
        -webkit-overflow-scrolling: touch;
    }
}

/* Animation for floating shapes */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(10px) rotate(180deg);
    }
    75% {
        transform: translateY(-10px) rotate(270deg);
    }
}