/**
 * Modern Features Section Styles
 * Card-based layout with hover effects and animations
 * Created: December 2024
 */

/* ============================================
   Features Section Base
   ============================================ */
.features-modern-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    overflow: hidden;
}

/* Section Title */
.features-modern-section .section-title {
    margin-bottom: 60px;
}

.features-modern-section .section-subtitle {
    display: inline-block;
    color: #f77112;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.features-modern-section .title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

.features-modern-section .section-description {
    font-size: 1.1rem;
    color: #718096;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
    margin-bottom: 60px;
}

.features-grid .row {
    margin: 0 -15px;
}

.features-grid [class*="col-"] {
    padding: 0 15px;
    margin-bottom: 30px;
}

/* ============================================
   Feature Card
   ============================================ */
.feature-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Feature Icon */
.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Feature Content */
.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    line-height: 1.3;
}

.feature-description {
    font-size: 1rem;
    color: #718096;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Feature Benefits */
.feature-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.feature-benefits li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #4a5568;
}

.feature-benefits li:last-child {
    margin-bottom: 0;
}

.feature-benefits li i {
    color: #0c8b51;
    margin-right: 10px;
    margin-top: 3px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.feature-benefits li span {
    flex: 1;
}

/* Feature Link */
.feature-link {
    display: inline-flex;
    align-items: center;
    color: #f77112;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    margin-top: auto;
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: #d65d0a;
    transform: translateX(5px);
}

.feature-link i {
    margin-left: 8px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.feature-link:hover i {
    transform: translateX(5px);
}

/* Hover Effect */
.feature-hover-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    opacity: 0;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-hover-effect {
    opacity: 1;
    height: 6px;
}

/* ============================================
   Features CTA
   ============================================ */
.features-cta {
    background: linear-gradient(135deg, #f77112 0%, #d65d0a 100%);
    border-radius: 25px;
    padding: 60px 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.features-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.cta-content {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn-primary {
    background: #ffffff;
    color: #f77112;
}

.cta-btn-primary:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* CTA Stats */
.cta-stats {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.cta-stat-item i {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* ============================================
   Background Decoration
   ============================================ */
.features-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.decoration-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.decoration-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f77112 0%, #d65d0a 100%);
    top: -200px;
    left: -200px;
}

.decoration-shape.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #0c8b51 0%, #0a7043 100%);
    bottom: -150px;
    right: -150px;
}

.decoration-shape.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #07294d 0%, #051d35 100%);
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
}

/* ============================================
   Animations
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.feature-card[data-delay="0"] {
    transition-delay: 0s;
}

.feature-card[data-delay="100"] {
    transition-delay: 0.1s;
}

.feature-card[data-delay="200"] {
    transition-delay: 0.2s;
}

.feature-card[data-delay="300"] {
    transition-delay: 0.3s;
}

.feature-card[data-delay="400"] {
    transition-delay: 0.4s;
}

.feature-card[data-delay="500"] {
    transition-delay: 0.5s;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .features-modern-section {
        padding: 80px 0;
    }
    
    .features-modern-section .title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 35px 25px;
    }
    
    .features-cta {
        padding: 50px 30px;
    }
    
    .cta-content h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .features-modern-section {
        padding: 60px 0;
    }
    
    .features-modern-section .section-title {
        margin-bottom: 40px;
    }
    
    .features-modern-section .title {
        font-size: 1.75rem;
    }
    
    .features-modern-section .section-description {
        font-size: 1rem;
    }
    
    .features-grid {
        margin-bottom: 40px;
    }
    
    .features-grid [class*="col-"] {
        margin-bottom: 20px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
    
    .feature-description {
        font-size: 0.95rem;
    }
    
    .feature-benefits li {
        font-size: 0.9rem;
    }
    
    .features-cta {
        padding: 40px 25px;
        border-radius: 20px;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-btn {
        justify-content: center;
        padding: 12px 25px;
    }
    
    .cta-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .cta-stat-item {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .features-modern-section {
        padding: 50px 0;
    }
    
    .features-modern-section .title {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon {
        font-size: 1.75rem;
    }
    
    .feature-title {
        font-size: 1.15rem;
    }
    
    .features-cta {
        padding: 30px 20px;
    }
    
    .cta-content h3 {
        font-size: 1.25rem;
    }
    
    .cta-content p {
        font-size: 0.95rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .features-decoration,
    .feature-hover-effect,
    .cta-buttons {
        display: none;
    }
    
    .feature-card {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        page-break-inside: avoid;
    }
}
