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

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

.products-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    animation: fadeInDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(191, 6, 212, 0.08);
  border: 1px solid rgba(188, 6, 212, 0.15);
  border-radius: 50px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.products-badge:hover {
  background: rgba(212, 6, 188, 0.12);
  border-color: rgba(188, 6, 212, 0.25);
  transform: scale(1.05);
}
        
.products-badge span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #760b8e;
  font-weight: 600;
}

.products-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.products-title-gradient {
  background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 50%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.products-title-gradient::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(10px);
    opacity: 0.5;
}

.products-subtitle {
  font-size: 20px;
  color: #9ca3af;
  line-height: 1.6;
  opacity: 0.9;
}

/* Responsive Design */
    @media (max-width: 768px) {
        .products-title {
            font-size: 36px;
        }
    }

/* Carousel Container */
.products-carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

.products-carousel-wrapper {
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    max-width: 1272px; /* (400px card width + 24px gap) * 3 cards - last gap = 1272px */
}

.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: 20; 
    pointer-events: none; 
} */



/* Product Cards */
.product-card-modern {
    min-width: 400px;
    width: 400px;
    height: 540px; /* Fixed height for all cards - increased to ensure buttons fit */
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    position: relative; /* Added for hover effects to work properly */
    z-index: 1; /* Ensure card is above other elements */
}

.product-card-modern:hover {
    background: var(--color-bg-tertiary);
    border-color: #3b82f6;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
    transition: all 0.6s ease;
}

/* Card Visual Area */
.product-visual {
    height: 200px;
    min-height: 200px;
    position: relative;
    flex-shrink: 0; /* Prevent visual from shrinking */
}

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



/* 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 {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0; /* Allow content to properly flex */
}

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

.product-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    transition: color var(--transition-base);
    min-height: 64px; /* Ensure consistent title height across cards */
    display: flex;
    align-items: center;
}

.product-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    flex: 1; /* Takes up remaining space to push button down */
    overflow: hidden; /* Prevent text overflow */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit to 4 lines max */
    -webkit-box-orient: vertical;
}

.product-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-base);
    margin-top: auto; /* Pushes link to bottom of card */
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    position: relative;
    z-index: 5; /* Ensure link is clickable */
}

.product-link:hover {
    gap: var(--space-3);
    transform: translateX(4px);
}

/* 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;
    }

    .products-carousel-container {
        padding: 0 20px;
    }

    .products-carousel-wrapper {
        max-width: 100%;
        overflow: hidden;
    }

    .product-card-modern {
        min-width: calc(100vw - 40px);
        width: calc(100vw - 40px);
        max-width: 400px;
        min-height: 520px;
        height: auto;
    }

    .product-visual {
        height: 180px;
    }

    .products-carousel {
        gap: 20px;
    }

    .product-description {
        -webkit-line-clamp: unset;
        overflow: visible;
        margin-bottom: var(--space-6);
    }

    .product-content {
        padding: var(--space-6);
    }

    .product-title {
        min-height: auto;
        font-size: var(--font-size-lg);
    }

    .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: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(10, 10, 10, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all var(--transition-base);
    }

    .carousel-btn:hover:not(:disabled) {
        background: rgba(59, 130, 246, 0.3);
        border-color: #3b82f6;
        transform: scale(1.05);
    }
}

/* 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);
    }
}