/* Home Page Features Styles - Extracted from home.blade.php */
/* ============================================= */

/* Modern Features Section */
.modern-features {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.features-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg, 
        rgba(1, 17, 102, 0.35) 0%, 
        rgba(11, 111, 137, 0.30) 50%, 
        rgba(32, 177, 219, 0.25) 100%
    );
    z-index: 1;
}

.modern-features .container {
    position: relative;
    z-index: 2;
}

/* Features Header */
.features-header {
    margin-bottom: 4rem !important;
}

.features-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.features-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.features-badge i {
    color: #ffd700;
    font-size: 1rem;
}

.features-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.features-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Features Grid */
.features-grid {
    margin-top: 3rem;
}

.feature-card {
    height: 100%;
    perspective: 1000px;
}

.feature-card-inner {
    background: 
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.15) 0%, 
            rgba(255, 255, 255, 0.10) 50%, 
            rgba(255, 255, 255, 0.18) 100%
        ),
        linear-gradient(180deg, 
            rgba(0, 0, 0, 0.25) 0%, 
            rgba(0, 0, 0, 0.40) 100%
        );
    backdrop-filter: blur(25px) saturate(150%) brightness(0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.25),
        0 4px 16px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.20);
}

.feature-card-inner:hover {
    transform: translateY(-8px) scale(1.02);
    background: 
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.20) 0%, 
            rgba(255, 255, 255, 0.15) 50%, 
            rgba(255, 255, 255, 0.25) 100%
        ),
        linear-gradient(180deg, 
            rgba(0, 0, 0, 0.35) 0%, 
            rgba(0, 0, 0, 0.50) 100%
        );
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 8px 25px rgba(32, 177, 219, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

/* Feature Icon */
.feature-icon-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fd540f 0%, #f97316 50%, #20b1db 100%);
    border-radius: 50%;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.feature-card-inner:hover .feature-icon-bg {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.feature-icon {
    position: relative;
    z-index: 2;
    font-size: 2.25rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.feature-card-inner:hover .feature-icon {
    transform: scale(1.1);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Feature Content */
.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 1.5rem 1rem 0;
    border-radius: 15px;
    background: 
        linear-gradient(145deg, 
            rgba(0, 0, 0, 0.20) 0%, 
            rgba(0, 0, 0, 0.30) 50%, 
            rgba(0, 0, 0, 0.15) 100%
        );
    backdrop-filter: blur(15px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.6),
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
}

.feature-description {
    color: #ffffff !important;
    line-height: 1.7;
    font-size: 1.125rem;
    font-weight: 500;
    flex: 1;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 15px rgba(0, 0, 0, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.3px;
}

/* Clean, specific styling for all text within feature descriptions */
.feature-description,
.feature-description * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Ultra-specific override to ensure visibility */
.modern-features .features-grid .feature-card .feature-card-inner .feature-content .feature-description {
    font-size: 1.125rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.8) !important,
        0 4px 15px rgba(0, 0, 0, 0.6) !important,
        0 1px 3px rgba(0, 0, 0, 0.9) !important;
    letter-spacing: 0.3px !important;
    line-height: 1.7 !important;
}

/* Card Shine Effect */
.feature-card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.feature-card-inner:hover .feature-card-shine {
    animation: shimmer 0.8s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Animation entrance */
.feature-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.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:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-features {
        background-attachment: scroll;
        padding: 3rem 0;
    }
    
    .features-overlay {
        background: linear-gradient(
            135deg, 
            rgba(1, 17, 102, 0.45) 0%, 
            rgba(11, 111, 137, 0.40) 50%, 
            rgba(32, 177, 219, 0.35) 100%
        );
    }

    .features-title {
        font-size: 2.25rem;
    }

    .features-subtitle {
        font-size: 1.125rem;
    }

    .feature-card-inner {
        padding: 2rem 1.5rem;
    }

    .feature-icon-wrapper {
        width: 75px;
        height: 75px;
    }

    .feature-icon {
        font-size: 1.875rem;
    }

    .feature-title {
        font-size: 1.25rem;
    }

    .feature-description {
        font-size: 0.9375rem;
    }
}

@media (max-width: 576px) {
    .features-header {
        margin-bottom: 2.5rem !important;
    }

    .features-title {
        font-size: 1.875rem;
    }

    .feature-card-inner {
        padding: 1.75rem 1.25rem;
    }
}
