/* ===================================
   Super Save - Visual Enhancements
   =================================== */

/* --- Scroll Reveal Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for children */
.fade-in-up:nth-child(2) { transition-delay: 0.1s; }
.fade-in-up:nth-child(3) { transition-delay: 0.2s; }
.fade-in-up:nth-child(4) { transition-delay: 0.3s; }
.fade-in-up:nth-child(5) { transition-delay: 0.15s; }
.fade-in-up:nth-child(6) { transition-delay: 0.25s; }
.fade-in-up:nth-child(7) { transition-delay: 0.35s; }

/* --- Hero Section Enhancements --- */
.masthead .badge {
    font-weight: 600;
    letter-spacing: 0.5px;
}
.masthead h1 .text-gradient {
    font-weight: 700;
}

/* --- Stats Section --- */
.stat-item {
    padding: 1rem;
}
.stat-item .display-5 {
    font-family: "Kanit", sans-serif;
}

/* --- Feature Cards --- */
.feature-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(255, 128, 2, 0.12);
}
.feature-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 178, 63, 0.1), rgba(255, 128, 2, 0.1));
}
.feature-icon-wrapper .icon-feature {
    font-size: 2.5rem;
}

/* --- Supermarket Cards --- */
.supermarket-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.supermarket-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 128, 2, 0.12);
    border-color: rgba(255, 178, 63, 0.3);
}
.supermarket-card i {
    transition: transform 0.3s ease;
}
.supermarket-card:hover i {
    transform: scale(1.15);
}

/* --- Benefits Section --- */
.benefit-check-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    padding-top: 2px;
}
#beneficios li {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- How It Works Steps --- */
.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFB23F, #FF8002);
    color: white;
    font-family: "Kanit", sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 128, 2, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.step-number:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 128, 2, 0.4);
}

/* --- CTA Section --- */
section.cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    background-image: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    padding: 10rem 0 !important;
}
section.cta::before {
    display: none !important;
}
section.cta .cta-content {
    padding: 2rem 0;
}

/* --- App Badge Hover --- */
.app-badge-hover {
    transition: transform 0.3s ease;
    display: inline-block;
}
.app-badge-hover:hover {
    transform: translateY(-3px);
}
.app-badge {
    height: auto !important;
}

/* --- Testimonial Aside --- */
aside .bi-quote {
    line-height: 1;
}

/* --- Buttons Enhancement --- */
.btn-primary {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 178, 63, 0.4) !important;
}
.btn-outline-light {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-width: 2px;
}
.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2) !important;
}
.btn-outline-dark {
    transition: transform 0.2s ease;
}
.btn-outline-dark:hover {
    transform: translateY(-2px);
}

/* --- EU Support Section in Footer --- */
.eu-support-section img {
    transition: opacity 0.3s ease;
}
.eu-support-section img:hover {
    opacity: 1 !important;
}

/* --- Navbar Enhancement --- */
#mainNav {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
#mainNav.scrolled {
    background-color: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
}

/* --- Smooth scroll padding for fixed navbar --- */
html {
    scroll-padding-top: 5rem;
}

/* --- Section spacing refinement --- */
#features .feature-card {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Responsive tweaks --- */
@media (max-width: 767.98px) {
    .masthead h1 {
        font-size: 2.5rem !important;
    }
    .stat-item .display-5 {
        font-size: 2rem !important;
    }
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    .feature-card {
        min-height: auto !important;
    }
}

@media (max-width: 575.98px) {
    .supermarket-card {
        padding: 1rem !important;
    }
    .supermarket-card .h6 {
        font-size: 0.85rem;
    }
}
