/**
 * Features Page Styles
 * Professional layout for features showcase
 */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(2, 132, 199, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.page-header__content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.page-header__content::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #0284c7);
    border-radius: 2px;
}

.page-header__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.3;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e293b 0%, #475569 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header__subtitle {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: #64748b;
    line-height: 1.6;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid Layout */
.features-detailed {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.features-detailed__grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Feature Layout */
.feature-detailed {
    position: relative;
    width: 100%;
    margin-bottom: 80px;
}

/* Header Section - Full Width Above Columns */
.feature-detailed__header-section {
    width: 100%;
    margin-bottom: 10px;
    text-align: left;
}

.feature-detailed__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    min-height: 320px;
}

/* Layout Variations */
.feature-detailed--layout-left .feature-detailed__row {
    grid-template-areas: "visual content";
}

.feature-detailed--layout-right .feature-detailed__row {
    grid-template-areas: "content visual";
}

.feature-detailed--layout-left .feature-detailed__visual-column {
    grid-area: visual;
}

.feature-detailed--layout-left .feature-detailed__content-column {
    grid-area: content;
}

.feature-detailed--layout-right .feature-detailed__visual-column {
    grid-area: visual;
}

.feature-detailed--layout-right .feature-detailed__content-column {
    grid-area: content;
}

/* Visual Column */
.feature-detailed__visual-column {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.feature-detailed__visual {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.feature-detailed__image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: white;
    transform: perspective(1000px) rotateY(5deg);
    transition: all 0.3s ease;
}

.feature-detailed--layout-right .feature-detailed__image-wrapper {
    transform: perspective(1000px) rotateY(-5deg);
}

.feature-detailed__image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2);
}

.feature-detailed__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    background: #f8fafc;
}

.feature-detailed__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(14, 165, 233, 0.1), rgba(2, 132, 199, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-detailed__image-wrapper:hover .feature-detailed__image-overlay {
    opacity: 1;
}

/* Content Column */
.feature-detailed__content-column {
    display: flex;
    align-items: center;
    padding: 0;
}

.feature-detailed__content {
    width: 100%;
    max-width: 500px;
}

/* Badge */
.feature-detailed__badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.feature-detailed__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.feature-detailed__badge-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Header */
.feature-detailed__header {
    margin-bottom: 0;
}

.feature-detailed__title {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1e293b, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-detailed__description {
    font-size: 18px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Benefits Section */
.feature-detailed__benefits-section {
    margin: 0;
}

.feature-detailed__benefits-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-detailed__benefits-title::before {
    content: "";
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-radius: 2px;
}

.feature-detailed__benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.feature-detailed__benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-detailed__benefit:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #0ea5e9;
}

.feature-detailed__benefit-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-detailed__benefit-text {
    font-size: 16px;
    line-height: 1.5;
    color: #374151;
    font-weight: 500;
}

/* Actions */
.feature-detailed__actions {
    display: flex;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn--feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn--primary.btn--feature {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    border: none;
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

.btn--primary.btn--feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(14, 165, 233, 0.4);
}

.btn--outline.btn--feature {
    background: white;
    color: #0ea5e9;
    border: 2px solid #0ea5e9;
}

.btn--outline.btn--feature:hover {
    background: #0ea5e9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .features-detailed__grid {
        gap: 10px;
    }
    
    .feature-detailed__row {
        gap: 60px;
        min-height: 320px;
    }
    
    .feature-detailed__image-wrapper {
        transform: none !important;
    }
    
    .feature-detailed__title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 50px 0 30px;
    }
    
    .page-header__content::before {
        width: 40px;
        height: 3px;
        top: -1.5rem;
    }
    
    .features-detailed {
        padding: 60px 0;
    }
    
    .features-detailed__grid {
        gap: 10px;
    }
    
    .feature-detailed__header-section {
        margin-bottom: 10px;
    }
    
    .feature-detailed__row {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "visual"
            "content" !important;
        gap: 40px;
        min-height: auto;
    }
    
    .feature-detailed__image-wrapper {
        transform: none !important;
    }
    
    .feature-detailed__content-column {
        padding: 0;
    }
    
    .feature-detailed__title {
        font-size: 28px;
    }
    
    .feature-detailed__actions {
        flex-direction: column;
    }
    
    .btn--feature {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 40px 0 20px;
    }
    
    .page-header__content::before {
        display: none;
    }
    
    .feature-detailed__content-column {
        padding: 0;
    }
    
    .feature-detailed__title {
        font-size: 24px;
    }
    
    .feature-detailed__description {
        font-size: 16px;
    }
    
    .feature-detailed__benefit {
        padding: 12px 16px;
    }
    
    .feature-detailed__benefit:hover {
        transform: none;
    }
}

/* Animation for scroll reveal */
.feature-detailed {
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.8s ease forwards;
}

.feature-detailed:nth-child(1) { animation-delay: 0.1s; }
.feature-detailed:nth-child(2) { animation-delay: 0.2s; }
.feature-detailed:nth-child(3) { animation-delay: 0.3s; }
.feature-detailed:nth-child(4) { animation-delay: 0.4s; }
.feature-detailed:nth-child(5) { animation-delay: 0.5s; }
.feature-detailed:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative Elements */
.feature-detailed::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.03) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.feature-detailed:nth-child(even)::before {
    background: radial-gradient(circle, rgba(2, 132, 199, 0.03) 0%, transparent 70%);
}

/* Company logos showcase section */
.testimonials__companies {
    margin-top: 0;
}
