/* Enhanced Features Styles */

.features {
    padding: 7rem 2rem;
    position: relative;
    background-color: var(--dark-bg);
}

/* Background effect for features section */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:svgjs='http://svgjs.com/svgjs' width='1920' height='1080' preserveAspectRatio='none' viewBox='0 0 1920 1080'%3e%3cg mask='url(%26quot%3b%23SvgjsMask1000%26quot%3b)' fill='none'%3e%3crect width='1920' height='1080' x='0' y='0' fill='rgba(23, 23, 23, 1)'%3e%3c/rect%3e%3cpath d='M0 0L454.07 0L0 1028.01z' fill='rgba(255, 255, 255, 0.03)'%3e%3c/path%3e%3cpath d='M0 1028.01L454.07 0L1127.64 0L0 1050.82z' fill='rgba(255, 255, 255, 0.015)'%3e%3c/path%3e%3cpath d='M0 1050.82L1127.64 0L1262.08 0L0 1066.51z' fill='rgba(255, 255, 255, 0.015)'%3e%3c/path%3e%3cpath d='M0 1066.51L1262.08 0L1308.44 0L0 740.76z' fill='rgba(255, 255, 255, 0.015)'%3e%3c/path%3e%3cpath d='M0 740.76L1308.44 0L1381.69 0L0 592.88z' fill='rgba(255, 255, 255, 0.015)'%3e%3c/path%3e%3cpath d='M0 592.88L1381.69 0L1538.68 0L0 571.84z' fill='rgba(255, 255, 255, 0.015)'%3e%3c/path%3e%3cpath d='M0 571.84L1538.68 0L1772.12 0L0 386.61z' fill='rgba(255, 255, 255, 0.015)'%3e%3c/path%3e%3cpath d='M0 386.61L1772.12 0L1816.87 0L0 283.54z' fill='rgba(255, 255, 255, 0.015)'%3e%3c/path%3e%3cpath d='M0 283.54L1816.87 0L1911.8 0L0 139.57z' fill='rgba(255, 255, 255, 0.015)'%3e%3c/path%3e%3cpath d='M0 139.57L1911.8 0L1920 0L0 107.3z' fill='rgba(255, 255, 255, 0.015)'%3e%3c/path%3e%3cpath d='M1920 1080L1568.5 1080L1920 692.21z' fill='rgba(255, 255, 255, 0.03)'%3e%3c/path%3e%3cpath d='M1920 692.21L1568.5 1080L1144.45 1080L1920 520.84z' fill='rgba(255, 255, 255, 0.015)'%3e%3c/path%3e%3cpath d='M1920 520.84L1144.45 1080L1013.99 1080L1920 495.58z' fill='rgba(255, 255, 255, 0.015)'%3e%3c/path%3e%3cpath d='M1920 495.58L1013.99 1080L845.57 1080L1920 376.07z' fill='rgba(255, 255, 255, 0.015)'%3e%3c/path%3e%3cpath d='M1920 376.07L845.57 1080L645.28 1080L1920 151.22z' fill='rgba(255, 255, 255, 0.015)'%3e%3c/path%3e%3cpath d='M1920 151.22L645.28 1080L426.19 1080L1920 31.76z' fill='rgba(255, 255, 255, 0.015)'%3e%3c/path%3e%3cpath d='M1920 31.76L426.19 1080L386.04 1080L1920 10.63z' fill='rgba(255, 255, 255, 0.015)'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cmask id='SvgjsMask1000'%3e%3crect width='1920' height='1080' fill='white'%3e%3c/rect%3e%3c/mask%3e%3c/defs%3e%3c/svg%3e");
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

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

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.section-title p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text-color);
    max-width: 800px;
    margin: 1.5rem auto 0;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    margin: 0 auto;
    max-width: 1200px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(50, 50, 50, 0.9), rgba(35, 35, 35, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(255, 184, 0, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 184, 0, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(28, 28, 28, 0.9), rgba(20, 20, 20, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 184, 0, 0.3), rgba(255, 184, 0, 0.1));
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
    z-index: -1;
}

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

.feature-card:hover .feature-icon::after {
    opacity: 1;
    transform: scale(1.2);
}

.feature-card h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light);
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .features {
        padding: 5rem 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
    
    .feature-card {
        max-width: 100%;
    }
}

/* Animation for staggered card appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.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; }

/* Make sure all text in hero section is centered */
.hero p, 
.hero h1, 
.hero .hero-content, 
.hero .hero-subtitle {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    display: block;
}
