/* ============================================
   AI Features Section - Zencia.AI Theme
   ============================================ */

/* ===== AI FEATURES SECTION ===== */
.ai-features-section {
    background: linear-gradient(135deg, #0f1419 0%, #082928 50%, #1a1a1a 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Background image layer */
.ai-features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/application-bvg.svg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

/* Gradient overlays */
.ai-features-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 217, 213, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 139, 139, 0.05) 0%, transparent 50%),
        rgba(15, 20, 25, 0.2);
    z-index: 2;
    pointer-events: none;
}

.ai-features-section .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
}

/* ===== SECTION HEADER ===== */
.features-header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.features-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 213, 0.1);
    border: 1px solid rgba(0, 217, 213, 0.3);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #00D9D5;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.features-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.features-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #00D9D5 0%, #40E0D0 100%);
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 217, 213, 0.3);
    text-decoration: none;
}

.features-cta-btn:hover {
    background: linear-gradient(135deg, #40E0D0 0%, #00D9D5 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 213, 0.4);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
    margin-bottom: 80px;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 217, 213, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.8s ease-out;
    backdrop-filter: blur(10px);
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 217, 213, 0.2);
    border-color: rgba(0, 217, 213, 0.4);
    background: rgba(0, 217, 213, 0.08);
}

/* ===== FEATURE IMAGE ===== */
.feature-image {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, rgba(0, 217, 213, 0.1) 0%, rgba(0, 139, 139, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 217, 213, 0.1);
}

.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    filter: brightness(0.9);
}

.feature-card:hover .feature-img {
    transform: scale(1.05);
    filter: brightness(1);
}

/* Placeholder for missing images */
.feature-image:not(:has(img[src])) {
    background: linear-gradient(135deg, rgba(0, 217, 213, 0.1) 0%, rgba(0, 139, 139, 0.05) 100%);
}

.feature-image:not(:has(img[src]))::after {
    content: 'Feature Screenshot';
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* ===== FEATURE CONTENT ===== */
.feature-content {
    padding: 2rem;
}

.feature-category {
    font-size: 0.875rem;
    font-weight: 600;
    color: #00D9D5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: clamp(1.25rem, 1.5vw, 1.5rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.feature-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* ===== TESTIMONIAL SECTION ===== */
.testimonial-section {
    animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.testimonial-card {
    background: linear-gradient(135deg, #0f1419 0%, #082928 100%);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 217, 213, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 217, 213, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 139, 139, 0.03) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.testimonial-quote {
    font-size: clamp(1.125rem, 1.3vw, 1.25rem);
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    font-style: italic;
}

.testimonial-quote::before {
    content: '"';
    font-size: 3rem;
    color: rgba(0, 217, 213, 0.3);
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.author-title {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .ai-features-section .container {
        max-width: 1000px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .ai-features-section {
        padding: 100px 0;
    }
    
    .ai-features-section .container {
        padding: 0 1.5rem;
    }
    
    .features-header {
        margin-bottom: 60px;
    }
    
    .features-grid {
        gap: 2rem;
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    .ai-features-section {
        padding: 80px 0;
    }
    
    .ai-features-section .container {
        padding: 0 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-image {
        height: 220px;
    }
    
    .feature-content {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .features-cta-btn {
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .ai-features-section .container {
        padding: 0 0.5rem;
    }
    
    .feature-image {
        height: 180px;
    }
    
    .feature-content {
        padding: 1.25rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-quote {
        margin-bottom: 1.5rem;
    }
    
    .features-cta-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .features-header,
    .feature-card,
    .testimonial-section {
        animation: none !important;
    }
    
    .feature-card:hover,
    .feature-card:hover .feature-img,
    .features-cta-btn:hover {
        transform: none;
    }
}

/* Focus states for accessibility */
.features-cta-btn:focus-visible {
    outline: 2px solid #00D9D5;
    outline-offset: 4px;
}

.feature-card:focus-within {
    outline: 2px solid #00D9D5;
    outline-offset: 4px;
    border-radius: 16px;
}

/* ===== HIGH CONTRAST SUPPORT ===== */
@media (prefers-contrast: high) {
    .feature-card {
        border-width: 2px;
        border-color: #00D9D5;
    }
    
    .features-badge {
        border-width: 2px;
        border-color: #00D9D5;
    }
    
    .features-cta-btn {
        border: 2px solid #00D9D5;
    }
    
    .testimonial-card {
        border-width: 2px;
        border-color: #00D9D5;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .ai-features-section {
        background: #0f1419 !important;
        padding: 2rem 0;
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .ai-features-section::before,
    .ai-features-section::after {
        display: none !important;
    }
    
    .feature-card {
        background: #1e293b !important;
        border: 1px solid #00D9D5 !important;
        break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none !important;
    }
    
    .testimonial-card {
        background: #0f1419 !important;
        border: 1px solid #00D9D5 !important;
    }
    
    .features-title,
    .feature-title,
    .author-name {
        color: #ffffff !important;
    }
    
    .features-subtitle,
    .feature-description,
    .testimonial-quote,
    .author-title {
        color: rgba(255, 255, 255, 0.8) !important;
    }
    
    .features-badge,
    .feature-category {
        color: #00D9D5 !important;
    }
    
    .features-cta-btn {
        background: #00D9D5 !important;
        color: white !important;
        box-shadow: none !important;
    }
}