/* ===========================
   Features Section
=========================== */
.features-section {
    padding: 8px 10px;
    text-align: center;
    background: var(--color-accent);
    border-radius: var(--border-radius);
}

/* Feature Section Title Enhancement */
.section-title {
    text-align: center;
    font-size: 52px;
    /* slightly bigger */
    font-weight: 900;
    position: relative;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;

    /* Gradient Text */
    background: linear-gradient(135deg, var(--color-highlight), var(--color-orangered));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Text Shadow for Depth */
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);

    /* Animated shine effect */
    overflow: hidden;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    margin: 15px auto 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--color-highlight), var(--color-orangered));
}

/* Shine animation */
@keyframes shine {
    0% {
        background-position: -500px;
    }

    100% {
        background-position: 500px;
    }
}

.section-title.shiny {
    background-size: 200% auto;
    animation: shine 2s linear infinite;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Card Styles (wrapped in <a>) */
.feature-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--color-white);
    padding: 40px 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.3s ease;
    animation: fadeInUp 1s ease forwards;
    position: relative;
    overflow: hidden;
}

/* Hover effect */
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: #f9f9f9;
}

/* Icon */
.feature-icon img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon img {
    transform: scale(1.15) rotate(8deg);
}

/* Title */
.feature-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-primary);
}

/* Description */
.feature-desc {
    font-size: 18px;
    color: var(--color-secondary);
    line-height: 1.6;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile / Responsive adjustments */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    /* Icon smaller and inline */
    .feature-icon img {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
        margin-right: 15px;
    }

    /* Title inline next to icon */
    .feature-title {
        font-size: 20px;
        margin-bottom: 0;
        color: var(--color-primary);
    }

    /* Hide description */
    .feature-desc {
        display: none;
    }
}

@media (max-width: 768px) {
    .features-grid {
        gap: 5px;
    }
    .feature-title {

        font-size: 12px;
    }
}
