/* Products Page Specific Styles */

/* Products Section */
.products,
.features {
    position: relative;
    padding: 120px 0;
    z-index: 5;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
}

.products::before,
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 49%, rgba(0, 0, 0, 0.01) 50%, transparent 51%);
    pointer-events: none;
}

.home-page .products .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.products-grid::before,
.features-grid::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.product-card,
.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-xl);
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Color-specific gradient backgrounds */
.product-card[data-color="yellow"] {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 165, 0, 0.08) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.product-card[data-color="blue"] {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(9, 9, 185, 0.08) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.product-card[data-color="saffron"] {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.15) 0%, rgba(255, 102, 0, 0.08) 100%);
    border: 1px solid rgba(255, 153, 51, 0.3);
}

.product-card[data-color="green"] {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 204, 102, 0.08) 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* Feature cards use unified dark gray theme */
.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* Color-specific shimmer effects */
.product-card[data-color="yellow"]::before {
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
}

.product-card[data-color="blue"]::before {
    background: linear-gradient(90deg, #00D4FF, #4392e7, #00D4FF);
}

.product-card[data-color="saffron"]::before {
    background: linear-gradient(90deg, #FF9933, #FF6600, #FF9933);
}

.product-card[data-color="green"]::before {
    background: linear-gradient(90deg, #00FF88, #00CC66, #00FF88);
}

/* Feature cards use unified shimmer */
.feature-card::before {
    background: linear-gradient(90deg, #404040, #606060, #404040);
}

.product-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--text-light);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.15);
}

.product-card:hover::after {
    opacity: 1;
}

/* Color-specific hover effects */
.product-card[data-color="yellow"]:hover {
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.8);
}

.product-card[data-color="blue"]:hover {
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.25);
    border-color: rgba(0, 212, 255, 0.8);
}

.product-card[data-color="saffron"]:hover {
    box-shadow: 0 20px 60px rgba(255, 153, 51, 0.25);
    border-color: rgba(255, 153, 51, 0.8);
}

.product-card[data-color="green"]:hover {
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.25);
    border-color: rgba(0, 255, 136, 0.8);
}

/* Feature cards use unified hover effects */
.feature-card:hover {
    box-shadow: 0 20px 60px rgba(100, 100, 100, 0.2);
    border-color: rgba(150, 150, 150, 0.4);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.product-icon,
.feature-icon {
    width: 100px;
    height: 100px;
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 2rem;
    font-size: 2.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Color-specific icon backgrounds */
.product-card[data-color="yellow"] .product-icon {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.product-card[data-color="blue"] .product-icon {
    background: linear-gradient(135deg, #00D4FF 0%, #4392e7 100%);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.product-card[data-color="saffron"] .product-icon {
    background: linear-gradient(135deg, #FF9933 0%, #FF6600 100%);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.3);
}

.product-card[data-color="green"] .product-icon {
    background: linear-gradient(135deg, #00FF88 0%, #00CC66 100%);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

/* Feature cards use unified icon styling */
.feature-card[data-color="blue"]:hover {
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.4);
}
.feature-card .feature-icon {
    background: linear-gradient(135deg, #00D4FF 0%, #0909B9 100%);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.product-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00D4FF, #4392e7, #00D4FF);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Color-specific icon glow effects */
.product-card[data-color="yellow"] .product-icon::before {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
}

.product-card[data-color="blue"] .product-icon::before {
    background: linear-gradient(135deg, #00D4FF, #4392e7, #00D4FF);
}

.product-card[data-color="saffron"] .product-icon::before {
    background: linear-gradient(135deg, #FF9933, #FF6600, #FF9933);
}

.product-card[data-color="green"] .product-icon::before {
    background: linear-gradient(135deg, #00FF88, #00CC66, #00FF88);
}

/* Feature cards use unified icon glow */
.feature-card .feature-icon::before {
    background: linear-gradient(135deg, #404040, #606060, #404040);
}

.product-card:hover .product-icon,
.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.4);
}

/* Feature cards use unified icon hover */
.feature-card:hover .feature-icon {
    box-shadow: 0 12px 35px rgba(100, 100, 100, 0.4);
}

.product-card:hover .product-icon::before,
.feature-card:hover .feature-icon::before {
    opacity: 1;
}

/* Color-specific icon hover effects */
.product-card[data-color="yellow"]:hover .product-icon,
.feature-card[data-color="yellow"]:hover .feature-icon {
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.4);
    transform: scale(1.08) rotate(3deg);
}

.product-card[data-color="blue"]:hover .product-icon,
.feature-card[data-color="blue"]:hover .feature-icon {
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.4);
    transform: scale(1.08) rotate(3deg);
}

.product-card[data-color="saffron"]:hover .product-icon,
.feature-card[data-color="saffron"]:hover .feature-icon {
    box-shadow: 0 12px 35px rgba(255, 153, 51, 0.4);
    transform: scale(1.08) rotate(3deg);
}

.product-card[data-color="green"]:hover .product-icon,
.feature-card[data-color="green"]:hover .feature-icon {
    box-shadow: 0 12px 35px rgba(0, 255, 136, 0.4);
    transform: scale(1.08) rotate(3deg);
}

.product-card h3,
.feature-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-light);
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #ffffff 0%, #00D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Color-specific title gradients */
.product-card[data-color="yellow"] h3 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card[data-color="blue"] h3 {
    background: linear-gradient(135deg, #00D4FF 0%, #4392e7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card[data-color="saffron"] h3 {
    background: linear-gradient(135deg, #FF9933 0%, #FF6600 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card[data-color="green"] h3 {
    background: linear-gradient(135deg, #00FF88 0%, #00CC66 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature cards use unified title styling */
.feature-card h3 {
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-card p,
.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* Product Features Tags */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.feature-tag {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* Know More Button */
.btn-know-more {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    padding: 18px 32px;
    /* border-radius: 25px; */
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    cursor: pointer;
    width: 100%;
    /* max-width: 140px; */
    margin: 0 auto;
}

/* Color-specific button styling */
.product-card[data-color="yellow"] .btn-know-more {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #FFD700;
}

.product-card[data-color="blue"] .btn-know-more {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(9, 9, 185, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #00D4FF;
}

.product-card[data-color="saffron"] .btn-know-more {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.2) 0%, rgba(255, 102, 0, 0.1) 100%);
    border: 1px solid rgba(255, 153, 51, 0.4);
    color: #FF9933;
}

.product-card[data-color="green"] .btn-know-more {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 204, 102, 0.1) 100%);
    border: 1px solid rgba(0, 255, 136, 0.4);
    color: #00FF88;
}

.btn-know-more:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Color-specific button hover effects */
.product-card[data-color="yellow"] .btn-know-more:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 165, 0, 0.2) 100%);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.product-card[data-color="blue"] .btn-know-more:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(9, 9, 185, 0.2) 100%);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.product-card[data-color="saffron"] .btn-know-more:hover {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.3) 0%, rgba(255, 102, 0, 0.2) 100%);
    border-color: rgba(255, 153, 51, 0.6);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.2);
}

.product-card[data-color="green"] .btn-know-more:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3) 0%, rgba(0, 204, 102, 0.2) 100%);
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
}

/* Smooth transitions for products */
.products,
.features {
    will-change: auto;
}

/* Responsive Styles for Products Page */
@media (max-width: 1200px) {
    .home-page .products .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .home-page .products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products,
    .features {
        padding: 80px 0;
    }
    
    .home-page .products .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card,
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .product-icon,
    .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .product-card h3,
    .feature-card h3 {
        font-size: 1.4rem;
    }
    
    .product-card p,
    .feature-card p {
        font-size: 0.9rem;
    }
    
    .btn-know-more {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .products,
    .features {
        padding: 60px 0;
    }
    
    .product-card,
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .product-icon,
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .product-card h3,
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .product-card p,
    .feature-card p {
        font-size: 0.8rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .btn-know-more {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}
