/* ==========================================================================
   Homepage Refresh Styles
   ========================================================================= */

.hero-home {
    position: relative;
    background: linear-gradient(115deg, #111827 0%, #1f2937 55%, rgba(17, 24, 39, 0.88) 100%);
    color: #ffffff;
    overflow: hidden;
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.hero-home__background {
    position: absolute;
    inset: 0;
    opacity: 0.25;
}

.hero-home__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-home__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.92) 0%, rgba(31, 41, 55, 0.85) 50%, rgba(17, 24, 39, 0.90) 100%);
}

.hero-home__layout {
    position: relative;
    display: grid;
    gap: clamp(2.5rem, 4vw, 4rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
}

.hero-home__text {
    max-width: 560px;
}

.hero-home__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
}

.hero-home h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #d71920;
}

.hero-home p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-home__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-home__trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}

.trust-item i {
    color: #f6b23c;
    font-size: 1.1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-outline-white {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hero-home__stats {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.stat__icon {
    font-size: 1.5rem;
    color: #f6b23c;
    margin-bottom: 0.25rem;
}

.stat__value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #ffffff;
}

.stat__label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.3;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header.centered {
    text-align: center;
    align-items: center;
}

.section-header p {
    max-width: 640px;
    color: var(--color-neutral-600, #4b5563);
}

.home-actions__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.home-actions__card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    border-radius: 20px;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-actions__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(215, 25, 32, 0.2);
}

.home-actions__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(215, 25, 32, 0.12);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.home-actions__link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Programs Showcase - Redesigned */
.programs-showcase {
    display: grid;
    gap: 2rem;
}

.programs-showcase__featured {
    margin-bottom: 1rem;
}

.featured-program {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 40px rgba(17, 24, 39, 0.06);
}

.featured-program__image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
}

.featured-program__badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(215, 25, 32, 0.1);
    color: var(--color-primary);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.featured-program__content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-neutral-900);
}

.featured-program__content > p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-neutral-600);
    margin-bottom: 1.5rem;
}

.featured-program__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    gap: 0.75rem;
}

.featured-program__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--color-neutral-700);
}

.featured-program__benefits li:before {
    content: "✓";
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.programs-showcase__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.program-highlight {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.program-highlight:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.15);
    border-color: rgba(215, 25, 32, 0.3);
}

.program-highlight__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.program-highlight__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.program-highlight:hover .program-highlight__image img {
    transform: scale(1.05);
}

.program-highlight__content {
    padding: 1.75rem;
}

.program-highlight__content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-neutral-900);
}

.program-highlight__content p {
    color: var(--color-neutral-600);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.link-arrow {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s ease;
}

.link-arrow:after {
    content: "→";
    font-size: 1.1rem;
}

.link-arrow:hover {
    gap: 0.75rem;
}

.home-updates__grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.update-card {
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid var(--color-border);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.update-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(215, 25, 32, 0.08);
    color: var(--color-primary);
}

.update-card__link {
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
}

/* Testimonials Carousel with Auto-Scroll */
.home-testimonials {
    overflow: hidden;
    position: relative;
}

.testimonials-carousel {
    overflow: hidden;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    animation: scroll-testimonials 40s linear infinite;
    width: fit-content;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    flex: 0 0 380px;
    min-width: 380px;
    padding: 2rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    box-shadow: 0 4px 20px rgba(17, 24, 39, 0.08);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(17, 24, 39, 0.15);
    border-color: rgba(215, 25, 32, 0.2);
}

.testimonial-card__quote-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(215, 25, 32, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--color-neutral-700);
    line-height: 1.7;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card__author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(215, 25, 32, 0.15);
    object-fit: cover;
}

.testimonial-card__author h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.testimonial-card__author span {
    font-size: 0.85rem;
    color: var(--color-neutral-500);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.testimonial-card__author span i {
    font-size: 0.8rem;
    color: var(--color-primary);
}

/* Members Carousel */
.home-members {
    background: #f9fafb;
}

.members-carousel {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.members-carousel:hover .members-track {
    animation-play-state: paused;
}

.members-track {
    display: flex;
    gap: 2rem;
    animation: scroll-members 35s linear infinite;
    width: max-content;
}

@keyframes scroll-members {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.member-logo {
    flex: 0 0 220px;
    min-width: 220px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.member-logo:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.12);
    border-color: rgba(215, 25, 32, 0.3);
}

.member-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Partners Carousel */
.home-partners {
    background: #ffffff;
}

.partners-carousel {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-carousel:hover .partners-track {
    animation-play-state: paused;
}

.partners-track {
    display: flex;
    gap: 2rem;
    animation: scroll-partners 30s linear infinite;
    width: max-content;
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    flex: 0 0 200px;
    min-width: 200px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.1);
    border-color: rgba(215, 25, 32, 0.25);
}

.partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.home-cta {
    background: linear-gradient(135deg, #d71920 0%, #b31218 45%, #111827 100%);
    color: #ffffff;
    padding: clamp(4rem, 8vw, 6rem) 0;
    text-align: center;
}

.home-cta__content {
    display: grid;
    gap: 1.5rem;
    justify-items: center;
    max-width: 720px;
}

.home-cta__content p {
    color: rgba(255, 255, 255, 0.86);
    margin: 0;
}

.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.home-cta__note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
}

.home-cta .btn-outline-white {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-home__layout {
        grid-template-columns: 1fr;
    }

    .hero-home__stats {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        padding: 1.5rem;
    }

    .featured-program {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .featured-program__image img {
        height: 300px;
    }

    .programs-showcase__grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-home {
        padding: clamp(4rem, 8vw, 6rem) 0;
        overflow-x: hidden;
    }

    .hero-home__layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100vw;
    }

    .hero-home__text {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .hero-home__buttons {
        flex-direction: column;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .hero-home__trust-indicators {
        flex-direction: column;
        gap: 1rem;
    }

    .home-actions__card {
        padding: 1.6rem;
    }

    .home-cta__actions {
        flex-direction: column;
    }

    /* Mobile Carousel Optimizations */
    .testimonials-carousel,
    .members-carousel,
    .partners-carousel {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .testimonials-carousel::-webkit-scrollbar,
    .members-carousel::-webkit-scrollbar,
    .partners-carousel::-webkit-scrollbar {
        display: none;
    }

    .testimonial-card {
        flex: 0 0 300px;
        min-width: 300px;
    }

    .testimonials-track {
        gap: 1rem;
    }

    .testimonials-track:hover {
        animation-play-state: running;
    }

    .members-track {
        gap: 1rem;
    }

    .member-logo {
        flex: 0 0 180px;
        min-width: 180px;
        height: 120px;
        padding: 1rem;
    }

    .partners-track {
        gap: 1rem;
    }

    .partner-logo {
        flex: 0 0 160px;
        min-width: 160px;
        height: 100px;
    }
}

/* ==========================================================================
   Mobile Overflow Prevention
   ========================================================================= */

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        max-width: 100vw;
        overflow-x: hidden;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    img, video, iframe {
        max-width: 100%;
        height: auto;
    }

    /* Slow continuous marquee speeds for better readability on mobile */
    .testimonials-track { animation-duration: 70s !important; }
    .members-track { animation-duration: 60s !important; }
    .partners-track { animation-duration: 55s !important; }
}

/* ==========================================================================
   Reduced Motion Support
   ========================================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .testimonials-track,
    .members-track,
    .partners-track {
        animation: none !important;
    }
}

/* ==========================================================================
   Scroll-Triggered Animations
   ========================================================================= */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Different animation delays for staggered effect */
[data-animate]:nth-child(1) {
    transition-delay: 0s;
}

[data-animate]:nth-child(2) {
    transition-delay: 0.1s;
}

[data-animate]:nth-child(3) {
    transition-delay: 0.2s;
}

/* ==========================================================================
   Enhanced Animations & Interactions
   ========================================================================= */

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Hero entrance animations */
.hero-home__eyebrow {
    animation: fadeInScale 0.8s ease-out 0.2s both;
}

.hero-home h1 {
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.hero-home p {
    animation: slideInLeft 0.8s ease-out 0.6s both;
}

.hero-home__buttons {
    animation: slideInLeft 0.8s ease-out 0.8s both;
}

.hero-home__trust-indicators {
    animation: slideInLeft 0.8s ease-out 1s both;
}

.hero-home__stats {
    animation: slideInRight 0.8s ease-out 0.6s both;
}

.stat {
    animation: fadeInScale 0.6s ease-out both;
}

.stat:nth-child(1) { animation-delay: 0.8s; }
.stat:nth-child(2) { animation-delay: 0.9s; }
.stat:nth-child(3) { animation-delay: 1s; }
.stat:nth-child(4) { animation-delay: 1.1s; }

/* Action cards staggered animation */
.home-actions__card {
    animation: fadeInScale 0.6s ease-out both;
}

.home-actions__card:nth-child(1) { animation-delay: 0.1s; }
.home-actions__card:nth-child(2) { animation-delay: 0.2s; }
.home-actions__card:nth-child(3) { animation-delay: 0.3s; }
.home-actions__card:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced hover effects */
.home-actions__card {
    position: relative;
    overflow: hidden;
}

.home-actions__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(215, 25, 32, 0.05), transparent);
    transition: left 0.5s ease;
}

.home-actions__card:hover::before {
    left: 100%;
}

.home-actions__icon {
    transition: all 0.3s ease;
}

.home-actions__card:hover .home-actions__icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(215, 25, 32, 0.18);
}

/* Button animations */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    box-shadow: 0 4px 15px rgba(215, 25, 32, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(215, 25, 32, 0.4);
    transform: translateY(-2px);
}

/* Program cards enhanced animations */
.program-highlight {
    animation: fadeInScale 0.6s ease-out both;
}

.program-highlight:nth-child(1) { animation-delay: 0.1s; }
.program-highlight:nth-child(2) { animation-delay: 0.2s; }
.program-highlight:nth-child(3) { animation-delay: 0.3s; }

.program-highlight__image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(215, 25, 32, 0.8), rgba(246, 178, 60, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-highlight:hover .program-highlight__image::after {
    opacity: 0.1;
}

/* Testimonial cards with 3D effect */
.testimonial-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.testimonial-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.2);
}

.testimonial-card__quote-icon {
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-card__quote-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(215, 25, 32, 0.15);
}

/* Member and partner logos with pulse effect */
.member-logo, .partner-logo {
    position: relative;
}

.member-logo::after, .partner-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #d71920;
    border-radius: inherit;
    opacity: 0;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.member-logo:hover::after, .partner-logo:hover::after {
    opacity: 0.3;
    transform: scale(1);
}

/* Stats counter animation */
.stat__value {
    display: inline-block;
}

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

.stat.counting .stat__value {
    animation: countUp 0.6s ease-out;
}

/* Section headers fade in */
.section-header {
    animation: fadeInScale 0.8s ease-out both;
}

/* Featured program with parallax effect */
.featured-program {
    animation: fadeInScale 0.8s ease-out both;
}

.featured-program__image {
    transition: transform 0.3s ease;
}

.featured-program:hover .featured-program__image {
    transform: scale(1.02);
}

/* Update cards with icon bounce */
.update-card__tag {
    transition: all 0.3s ease;
}

.update-card:hover .update-card__tag {
    animation: bounceIn 0.5s ease;
}

/* CTA section pulse effect */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(246, 178, 60, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(246, 178, 60, 0.6);
    }
}

.home-cta .btn-white {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Link arrows with smooth slide */
.link-arrow i {
    transition: transform 0.3s ease;
}

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

/* Trust indicators icon pulse */
@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.trust-item:hover i {
    animation: icon-pulse 0.6s ease;
}

/* Responsive animation adjustments */
@media (max-width: 768px) {
    .hero-home__eyebrow,
    .hero-home h1,
    .hero-home p,
    .hero-home__buttons,
    .hero-home__trust-indicators,
    .hero-home__stats {
        animation: fadeInScale 0.6s ease-out both;
    }
    
    .home-actions__card,
    .program-highlight {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
