/**
 * Agent Showcase Visibility and Content Enhancement
 * Comprehensive fixes for Agent showcase cards and content visibility
 * Optimized for both light and dark themes
 */

/* Enhanced Agent Showcase Container */
.agent-showcase-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, 
        rgba(13, 17, 23, 0.95) 0%, 
        rgba(18, 26, 41, 0.95) 50%,
        rgba(10, 15, 28, 0.95) 100%);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.agent-showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, 
        rgba(0, 230, 118, 0.15) 0%, 
        transparent 60%),
        radial-gradient(circle at 70% 30%, 
        rgba(0, 230, 118, 0.08) 0%, 
        transparent 50%);
    z-index: -1;
}

/* Agent Showcase Grid Enhancement */
.agent-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Agent Showcase Card Enhancement */
.agent-showcase-card {
    background: linear-gradient(145deg, 
        rgba(22, 35, 58, 0.9) 0%,
        rgba(16, 23, 41, 0.85) 100%);
    border: 2px solid rgba(0, 230, 118, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 230, 118, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 3;
}

.agent-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 0%,
        rgba(0, 230, 118, 0.05) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.agent-showcase-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 230, 118, 0.6);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 230, 118, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.agent-showcase-card:hover::before {
    opacity: 1;
}

/* Agent Card Icon Enhancement */
.agent-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(0, 230, 118, 0.2) 0%,
        rgba(0, 200, 100, 0.1) 100%);
    border: 2px solid rgba(0, 230, 118, 0.4);
    position: relative;
    transition: all 0.3s ease;
}

.agent-card-icon::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, 
        rgba(0, 230, 118, 0.6),
        rgba(0, 230, 118, 0.2),
        rgba(0, 230, 118, 0.8),
        rgba(0, 230, 118, 0.2));
    opacity: 0;
    animation: agent-icon-rotate 3s linear infinite;
    z-index: -1;
}

.agent-showcase-card:hover .agent-card-icon::before {
    opacity: 1;
}

.agent-card-icon i {
    font-size: 2.5rem;
    color: #00e676;
    filter: drop-shadow(0 0 10px rgba(0, 230, 118, 0.5));
    transition: all 0.3s ease;
}

.agent-showcase-card:hover .agent-card-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(0, 230, 118, 0.8));
}

@keyframes agent-icon-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Agent Card Content Enhancement */
.agent-card-title {
    font-family: 'Audiowide', cursive;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.agent-card-description {
    color: #b8c5d6;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 400;
}

.agent-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agent-card-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(0, 230, 118, 0.05);
    border: 1px solid rgba(0, 230, 118, 0.1);
    transition: all 0.3s ease;
    color: #e1e6f9;
}

.agent-card-feature:hover {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.2);
    transform: translateX(5px);
}

.agent-card-feature i {
    color: #00e676;
    font-size: 1rem;
    min-width: 16px;
    filter: drop-shadow(0 0 5px rgba(0, 230, 118, 0.3));
}

/* Agent Capabilities Section Enhancement */
.agent-capabilities-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, 
        rgba(13, 17, 23, 0.95) 0%,
        rgba(18, 26, 41, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.agent-capabilities-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(0, 230, 118, 0.1) 0%, 
        transparent 70%);
    z-index: 1;
}

.agent-heading {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.agent-heading h2 {
    font-family: 'Audiowide', cursive;
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
    letter-spacing: 1px;
}

.agent-heading p {
    font-size: 1.2rem;
    color: #b8c5d6;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Agent Capabilities Grid */
.agent-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Agent Capability Card Enhancement */
.agent-capability-card {
    background: linear-gradient(145deg, 
        rgba(22, 35, 58, 0.9) 0%,
        rgba(16, 23, 41, 0.85) 100%);
    border: 2px solid rgba(0, 230, 118, 0.3);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.agent-capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 0%,
        rgba(0, 230, 118, 0.08) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.agent-capability-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 230, 118, 0.6);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 230, 118, 0.3);
}

.agent-capability-card:hover::before {
    opacity: 1;
}

/* Agent Capability Icon with Enhanced Animation */
.agent-capability-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(0, 230, 118, 0.2) 0%,
        rgba(0, 200, 100, 0.1) 100%);
    border: 3px solid rgba(0, 230, 118, 0.4);
    position: relative;
    transition: all 0.3s ease;
}

/* Enhanced rotating circles around capability icons */
.agent-capability-icon::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 2px solid rgba(0, 230, 118, 0.6);
    border-right: 2px solid rgba(0, 230, 118, 0.3);
    animation: rotate-circle 3s linear infinite;
    z-index: -1;
}

.agent-capability-icon::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-bottom: 1px solid rgba(0, 230, 118, 0.4);
    border-left: 1px solid rgba(0, 230, 118, 0.2);
    animation: rotate-circle-reverse 4s linear infinite;
    z-index: -1;
}

@keyframes rotate-circle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotate-circle-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

.agent-capability-icon i {
    font-size: 3rem;
    color: #00e676;
    filter: drop-shadow(0 0 15px rgba(0, 230, 118, 0.6));
    transition: all 0.3s ease;
}

.agent-capability-card:hover .agent-capability-icon i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 25px rgba(0, 230, 118, 0.8));
}

/* Agent Capability Content */
.agent-capability-title {
    font-family: 'Audiowide', cursive;
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
    font-weight: 600;
}

.agent-capability-description {
    color: #b8c5d6;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: center;
}

.agent-capability-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.agent-capability-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    transition: all 0.3s ease;
    color: #e1e6f9;
}

.agent-capability-feature:hover {
    background: rgba(0, 230, 118, 0.15);
    border-color: rgba(0, 230, 118, 0.3);
    transform: translateX(8px);
}

.agent-capability-feature i {
    color: #00e676;
    font-size: 1.1rem;
    min-width: 18px;
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.4));
}

/* Light Theme Compatibility */
.light-theme .agent-showcase-section,
.light-theme .agent-capabilities-section {
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.95) 0%, 
        rgba(241, 245, 249, 0.95) 100%);
}

.light-theme .agent-showcase-card,
.light-theme .agent-capability-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(248, 250, 252, 0.85) 100%);
    border-color: rgba(0, 230, 118, 0.4);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 230, 118, 0.2);
}

.light-theme .agent-card-title,
.light-theme .agent-capability-title {
    color: #1a202c;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.light-theme .agent-card-description,
.light-theme .agent-capability-description {
    color: #4a5568;
}

.light-theme .agent-card-feature,
.light-theme .agent-capability-feature {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.2);
    color: #2d3748;
}

.light-theme .agent-heading h2 {
    color: #1a202c;
}

.light-theme .agent-heading p {
    color: #4a5568;
}

/* Responsive Design Enhancements */
@media (max-width: 1200px) {
    .agent-showcase-grid,
    .agent-capabilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .agent-showcase-section,
    .agent-capabilities-section {
        padding: 3rem 1rem;
    }
    
    .agent-showcase-grid,
    .agent-capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .agent-showcase-card,
    .agent-capability-card {
        padding: 2rem 1.5rem;
    }
    
    .agent-heading h2 {
        font-size: 2.2rem;
    }
    
    .agent-heading p {
        font-size: 1rem;
    }
    
    .agent-card-icon,
    .agent-capability-icon {
        width: 70px;
        height: 70px;
    }
    
    .agent-card-icon i,
    .agent-capability-icon i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .agent-showcase-card,
    .agent-capability-card {
        padding: 1.5rem 1rem;
    }
    
    .agent-heading h2 {
        font-size: 1.8rem;
    }
    
    .agent-card-title,
    .agent-capability-title {
        font-size: 1.3rem;
    }
}
