/* Homepage specific styling fixes */

/* ===== CATEGORY SECTION ENHANCEMENTS ===== */
.categories {
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 255, 255, 0.03) 50%, transparent 100%);
    position: relative;
}

.categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10 0v5M0 10h5M10 15v5M15 10h5M10 10m-2 0a2 2 0 1 1 4 0a2 2 0 1 1 -4 0" stroke="rgba(0,255,255,0.05)" stroke-width="0.5" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>') repeat;
    opacity: 0.3;
    z-index: -1;
}

/* Enhanced Category Cards to match robot cards exactly */
.category-card {
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 280px;
    justify-content: center;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: all 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    border-color: var(--primary-color);
    text-decoration: none;
}

/* Category Icon Enhancement */
.category-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2), rgba(0, 255, 136, 0.2));
    border-radius: 50%;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.category-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
    border-color: var(--primary-color);
}

.category-card:hover .category-icon i {
    color: var(--secondary-color);
    text-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
}

/* Category Title Enhancement */
.category-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.category-card:hover .category-title {
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

/* Category Description Enhancement */
.category-description {
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover .category-description {
    opacity: 1;
    color: rgba(224, 224, 255, 0.95);
}

/* Category Grid Enhancement */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

/* ===== FEATURED ROBOTS SECTION ENHANCEMENTS ===== */
.featured-robots {
    background: var(--bg-secondary);
    position: relative;
}

.featured-robots::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 235, 235, 0.02), rgba(32, 227, 178, 0.02));
    z-index: 0;
}

.featured-robots .container {
    position: relative;
    z-index: 1;
}

/* Featured CTA Enhancement */
.featured-cta {
    text-align: center;
    margin-top: 50px;
}

.featured-cta .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

/* ===== FOOTER ENHANCEMENTS ===== */
footer {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    border-top: 2px solid rgba(0, 255, 255, 0.2);
    position: relative;
    padding: 60px 0 30px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrid" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><path d="M12.5 0v5M0 12.5h5M12.5 20v5M20 12.5h5M12.5 12.5m-2 0a2 2 0 1 1 4 0a2 2 0 1 1 -4 0" stroke="rgba(0,255,255,0.05)" stroke-width="0.5" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrid)"/></svg>') repeat;
    opacity: 0.5;
    z-index: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-section {
    position: relative;
}

.footer-section h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

/* Enhanced Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
    position: relative;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    display: inline-block;
    border-radius: 5px;
    padding-left: 15px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.footer-links a:hover::before {
    width: 8px;
}

.footer-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
    transform: translateX(8px);
    padding-left: 20px;
}

/* Enhanced Copyright */
.copyright {
    text-align: center;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    padding-top: 30px;
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 255, 0.05), 
        transparent
    );
    border-radius: 20px;
    padding: 20px;
    margin-top: 20px;
}

/* ===== AI ASSISTANT BUTTON ENHANCEMENTS ===== */
.ai-assistant {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.ai-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
    animation: ai-pulse 2s infinite;
    border: 2px solid rgba(0, 255, 255, 0.4);
}

.ai-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 255, 255, 0.5);
    animation: none;
}

.ai-button .ai-icon {
    font-size: 1.5rem;
    color: var(--bg-color);
}

@keyframes ai-pulse {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 0 4px 30px rgba(0, 255, 255, 0.5);
        transform: scale(1.02);
    }
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-card {
        min-height: 250px;
        padding: 25px 20px;
    }
    
    .category-icon {
        width: 70px;
        height: 70px;
    }
    
    .category-icon i {
        font-size: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .ai-button {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .ai-button .ai-icon {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .category-card {
        min-height: 220px;
        padding: 20px 15px;
    }
    
    .category-title {
        font-size: 1.2rem;
    }
    
    .category-description {
        font-size: 0.9rem;
    }
    
    footer {
        padding: 40px 0 20px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
}