/* =====================================================================
   Fantel marketing enhancements
   - Cinematic homepage hero slider (Ken Burns + slice reveal)
   - About page (story + stats, foundation, why-choose)
   - Navigation scroll + hover motion
   Brand palette: #0D2C6B (blue) / #0D2C6B (dark) / #00AEEF (cyan)
   ===================================================================== */

/* ============================ HERO SLIDER ============================ */
.fh-hero {
    position: relative;
    min-height: 88vh;
    overflow: hidden;
    background: #0D2C6B;
    isolation: isolate;
}

.fh-hero__backgrounds {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.fh-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.fh-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.fh-hero__slide.is-leaving {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.fh-hero__slide.is-entering {
    opacity: 1;
    visibility: visible;
    z-index: 3;
}

.fh-hero__kenburns {
    position: absolute;
    inset: -8%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transform: scale(1.05);
}

.fh-hero__slide.is-active .fh-hero__kenburns {
    animation: fhKenBurns1 22s ease-in-out infinite alternate;
}

.fh-hero__kenburns--1 { animation-name: fhKenBurns1 !important; }
.fh-hero__kenburns--2 { animation-name: fhKenBurns2 !important; }
.fh-hero__kenburns--3 { animation-name: fhKenBurns3 !important; }
.fh-hero__kenburns--4 { animation-name: fhKenBurns4 !important; }

@keyframes fhKenBurns1 {
    0% { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.18) translate(-2.5%, -1.5%); }
}
@keyframes fhKenBurns2 {
    0% { transform: scale(1.08) translate(-1%, 0); }
    100% { transform: scale(1.2) translate(2%, -2%); }
}
@keyframes fhKenBurns3 {
    0% { transform: scale(1.06) translate(1%, 1%); }
    100% { transform: scale(1.17) translate(-1.5%, 2%); }
}
@keyframes fhKenBurns4 {
    0% { transform: scale(1.04) translate(0, -1%); }
    100% { transform: scale(1.16) translate(2.5%, 1%); }
}

/* Slice strips for transition reveal */
.fh-hero__slices {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
    opacity: 0;
    z-index: 2;
}

.fh-hero__slide.is-entering .fh-hero__slices { opacity: 1; }
.fh-hero__slide.is-entering .fh-hero__kenburns { opacity: 0; }
.fh-hero__slide.is-active:not(.is-entering) .fh-hero__slices { display: none; }

.fh-hero__slice {
    flex: 1 1 0;
    height: 100%;
    background-size: calc(var(--slice-total) * 100%) 100%;
    background-position: calc(var(--slice-index) * 100% / max(var(--slice-total) - 1, 1)) center;
    background-repeat: no-repeat;
    transform: translateY(105%);
    opacity: 0;
}

.fh-hero__slide.is-entering .fh-hero__slice {
    animation: fhSliceIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--slice-index) * 0.055s);
}

.fh-hero__slide.is-leaving .fh-hero__slice { display: none; }

.fh-hero__slide.is-leaving .fh-hero__kenburns {
    animation: none;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@keyframes fhSliceIn {
    0% { transform: translateY(105%) scaleY(1.1); opacity: 0; filter: brightness(1.3); }
    60% { opacity: 1; filter: brightness(1.05); }
    100% { transform: translateY(0) scaleY(1); opacity: 1; filter: brightness(1); }
}

/* Overlay + glow */
.fh-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(105deg, rgba(31, 36, 120, 0.62) 0%, rgba(46, 49, 146, 0.34) 42%, rgba(46, 49, 146, 0.1) 68%, rgba(0, 0, 0, 0.06) 100%),
        linear-gradient(180deg, rgba(31, 36, 120, 0.12) 0%, transparent 35%, rgba(31, 36, 120, 0.4) 100%);
}

.fh-hero__glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.fh-hero__glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: fhGlowDrift 8s ease-in-out infinite alternate;
}

.fh-hero__glow-orb--cyan {
    top: 18%;
    left: 12%;
    width: 18rem;
    height: 18rem;
    background: rgba(0, 174, 239, 0.14);
}

.fh-hero__glow-orb--white {
    bottom: 20%;
    right: 15%;
    width: 16rem;
    height: 16rem;
    background: rgba(255, 255, 255, 0.08);
    animation-delay: 2s;
}

@keyframes fhGlowDrift {
    0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    100% { transform: translate(20px, -15px) scale(1.08); opacity: 1; }
}

.fh-hero__inner {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
    width: 100%;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.fh-hero__panels {
    position: relative;
    display: grid;
    grid-template: 1fr / 1fr;
    min-height: 20rem;
    width: 100%;
    max-width: 46rem;
}

@media (min-width: 1024px) {
    .fh-hero__panels { min-height: 22rem; }
}

.fh-hero__panel {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
    pointer-events: none;
}

.fh-hero__panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.fh-hero__panel.is-exiting {
    opacity: 0;
    transform: translateY(-18px);
}

.fh-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #5BCFF5;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.fh-hero__eyebrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.fh-hero__title {
    font-weight: 800;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.08;
    color: #fff;
    margin-bottom: 1.4rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.fh-hero__desc {
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
    margin-bottom: 2.25rem;
    max-width: 38rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.fh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.fh-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.fh-hero__btn svg { transition: transform 0.35s ease; }
.fh-hero__btn:hover svg { transform: translateX(3px); }

.fh-hero__btn--primary {
    background: #00AEEF;
    color: #06263a;
    border: 2px solid transparent;
    box-shadow: 0 10px 32px rgba(0, 174, 239, 0.4);
}

.fh-hero__btn--primary:hover {
    background: #37c3f6;
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 174, 239, 0.55);
}

.fh-hero__btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.fh-hero__btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.18);
}

.fh-breathe { animation: fhBreathe 3.2s ease-in-out infinite; }
.fh-breathe--delay { animation-delay: 0.8s; }
.fh-icon-breathe { animation: fhIconBreathe 2.8s ease-in-out infinite; display: inline-flex; }

@keyframes fhBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
@keyframes fhIconBreathe {
    0%, 100% { transform: scale(1) translateX(0); opacity: 1; }
    50% { transform: scale(1.12) translateX(2px); opacity: 0.92; }
}

/* Controls */
.fh-hero__controls {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fh-hero__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    animation: fhIconBreathe 3.5s ease-in-out infinite;
}

.fh-hero__arrow:hover {
    background: rgba(0, 174, 239, 0.38);
    transform: scale(1.08);
}

.fh-hero__dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fh-hero__dot {
    width: 2.25rem;
    height: 0.3rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: width 0.35s ease, background 0.35s ease;
}

.fh-hero__dot.is-active { width: 2.75rem; background: #00AEEF; }
.fh-hero__dot:hover { background: rgba(0, 174, 239, 0.7); }

.fh-hero__progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.12);
}

.fh-hero__progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00AEEF, #5BCFF5);
    transition: width 0.1s linear;
}

/* —— Hero stats counter (straddles the bottom edge of the slider) —— */
.fh-hero-stats-wrap {
    position: relative;
    z-index: 20;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -3.5rem; /* pulls the card up so ~half overlaps the slider */
    margin-bottom: 2.5rem;
    padding: 0 1.5rem;
}

.fh-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    padding: 1.4rem 1rem;
    background: #ffffff;
    border: 1px solid rgba(46, 49, 146, 0.08);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 18, 60, 0.28);
}

.fh-hero__stat {
    position: relative;
    text-align: center;
    padding: 0.25rem 1rem;
}

.fh-hero__stat + .fh-hero__stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 2.75rem;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(46, 49, 146, 0.18), transparent);
}

.fh-hero__stat-value {
    display: block;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #0D2C6B;
    font-variant-numeric: tabular-nums;
}

.fh-hero__stat-label {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #5b6472;
}

@media (max-width: 640px) {
    .fh-hero-stats-wrap {
        margin-top: -2.5rem;
        padding: 0 1rem;
    }

    .fh-hero__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 0;
        padding: 1.1rem 0.75rem;
    }

    .fh-hero__stat { padding: 0.5rem 0.5rem; }

    /* Only keep the divider before the 2nd column on each row */
    .fh-hero__stat + .fh-hero__stat::before { display: none; }
    .fh-hero__stat:nth-child(2)::before,
    .fh-hero__stat:nth-child(4)::before { display: block; height: 2.25rem; }
}

/* ============================ PAGE HERO (About) ============================ */
.fh-page-hero {
    position: relative;
    padding: 6rem 1.5rem 5rem;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    isolation: isolate;
}

.fh-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, rgba(31, 36, 120, 0.92) 0%, rgba(46, 49, 146, 0.82) 45%, rgba(0, 174, 239, 0.55) 100%);
}

.fh-page-hero__inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.fh-page-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 1rem;
}

.fh-page-hero__breadcrumb a { color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: color 0.2s ease; }
.fh-page-hero__breadcrumb a:hover { color: #fff; }
.fh-page-hero__breadcrumb span[aria-current] { color: #5BCFF5; }

.fh-page-hero__title {
    font-weight: 800;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2);
}

.fh-page-hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 42rem;
    margin: 0 auto;
}

/* ============================ ABOUT STORY ============================ */
.about-story { padding: 5rem 1.5rem; background: #fff; }
.about-story__wrap { max-width: 1280px; margin: 0 auto; }

.about-story__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .about-story__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 4rem;
    }
}

.about-story__eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #00AEEF;
    margin-bottom: 0.75rem;
}

.about-story__title {
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: #0D2C6B;
    margin-bottom: 0.75rem;
}

.about-story__tagline {
    font-weight: 700;
    font-size: clamp(1.125rem, 2.5vw, 1.35rem);
    color: #0D2C6B;
    margin-bottom: 1.75rem;
    line-height: 1.45;
}

.about-story__body { color: #4b5563; font-size: 1rem; line-height: 1.85; }
.about-story__body p { margin-bottom: 1.15rem; }

.about-story__facts {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-story__fact dt { font-weight: 700; color: #1f2937; font-size: 0.9375rem; margin-bottom: 0.35rem; }
.about-story__fact dd { color: #6b7280; font-size: 0.9375rem; line-height: 1.7; margin: 0; }

.about-story__stats-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 16px 48px rgba(46, 49, 146, 0.1);
    border: 1px solid rgba(46, 49, 146, 0.08);
}

.about-story__stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.about-story__stat {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    border: 1px solid rgba(46, 49, 146, 0.06);
    box-shadow: 0 4px 20px rgba(46, 49, 146, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-story__stat:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(46, 49, 146, 0.1); }

.about-story__stat-value {
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: #0D2C6B;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    min-height: 2.5rem;
}

.about-story__counter { display: inline-block; transition: transform 0.3s ease, color 0.3s ease; }
.about-story__counter.is-counting { animation: fhStatPop 0.35s ease; }

.about-story__stats-card.is-animated .about-story__stat {
    animation: fhStatReveal 0.6s ease both;
    animation-delay: var(--stat-delay, 0s);
}

@keyframes fhStatReveal {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fhStatPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.08); color: #00AEEF; }
    100% { transform: scale(1); }
}

.about-story__stat-label { font-size: 0.8125rem; color: #6b7280; line-height: 1.45; }

/* ============================ FOUNDATION (Mission/Vision/Values) ============================ */
.fh-foundation { padding: 5rem 1.5rem; background: #f6f8fc; }
.fh-foundation__wrap { max-width: 1280px; margin: 0 auto; }

.fh-section-head { text-align: center; margin-bottom: 3.5rem; }
.fh-section-head__title {
    font-weight: 800;
    font-size: clamp(1.85rem, 4vw, 2.5rem);
    color: #0D2C6B;
    margin-bottom: 1rem;
}
.fh-underline {
    width: 5rem;
    height: 0.3rem;
    border-radius: 9999px;
    background: linear-gradient(90deg, #0D2C6B 0%, #00AEEF 55%, #f97316 100%);
    margin: 0 auto;
}
.fh-section-head__subtitle {
    max-width: 42rem;
    margin: 1.25rem auto 0;
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.75;
}

.fh-foundation__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .fh-foundation__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.fh-idcard {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.75rem 2.25rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(46, 49, 146, 0.08);
    border: 1px solid rgba(46, 49, 146, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: 100%;
}
.fh-idcard:hover { transform: translateY(-6px); box-shadow: 0 18px 48px rgba(46, 49, 146, 0.12); }
.fh-idcard--mission, .fh-idcard--vision { border-top: 4px solid #0D2C6B; }
.fh-idcard--values { border-top: 4px solid #00AEEF; }

.fh-idcard__icon-wrap {
    position: relative;
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0D2C6B;
    animation: fhRingBreathe 4.8s ease-in-out infinite;
}
.fh-idcard__icon-wrap--cyan {
    background: radial-gradient(circle, rgba(0, 174, 239, 0.35) 0%, rgba(0, 174, 239, 0.08) 70%);
    box-shadow: 0 0 0 8px rgba(0, 174, 239, 0.15);
}
.fh-idcard__icon-wrap--purple {
    color: #0D2C6B;
    background: radial-gradient(circle, rgba(46, 49, 146, 0.28) 0%, rgba(46, 49, 146, 0.06) 70%);
    box-shadow: 0 0 0 8px rgba(46, 49, 146, 0.12);
    animation-name: fhRingBreathePurple;
}

@keyframes fhRingBreathe {
    0%, 100% { box-shadow: 0 0 0 8px rgba(0, 174, 239, 0.15); }
    50% { box-shadow: 0 0 0 14px rgba(0, 174, 239, 0.22); }
}
@keyframes fhRingBreathePurple {
    0%, 100% { box-shadow: 0 0 0 8px rgba(46, 49, 146, 0.15); }
    50% { box-shadow: 0 0 0 14px rgba(46, 49, 146, 0.25); }
}

.fh-idcard__icon { animation: fhIconFloat 3.6s ease-in-out infinite; }
@keyframes fhIconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(-2deg); }
}

.fh-idcard__title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #0D2C6B;
    margin-bottom: 1rem;
}
.fh-idcard__text { color: #4b5563; font-size: 0.9375rem; line-height: 1.75; }

.fh-idcard__values {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 16rem;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}
.fh-idcard__values li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 500;
}
.fh-idcard__values svg { flex-shrink: 0; color: #00AEEF; margin-top: 0.15rem; }

.fh-idcard__media { margin-bottom: 0.25rem; }
.fh-idcard__photo {
    width: 5.5rem;
    height: 5.5rem;
    object-fit: cover;
    border-radius: 9999px;
    margin: 0 auto 1.5rem;
    display: block;
    border: 3px solid rgba(46, 49, 146, 0.12);
    box-shadow: 0 0 0 8px rgba(46, 49, 146, 0.08);
}
.fh-idcard__value-photo {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* ============================ LEADERSHIP TEAM (Silverstone) ============================ */
.text-gradient {
    background: linear-gradient(90deg, #0D2C6B 0%, #00AEEF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.team-pulse-slow {
    animation: teamPulseSlow 4s ease-in-out infinite;
}

.team-fade-in-up {
    animation: teamFadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.team-delay-100 { animation-delay: 0.1s; }
.team-delay-200 { animation-delay: 0.2s; }

.team-management-card {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s ease;
}

.team-management-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.team-management-card:hover {
    z-index: 10;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 20px 48px rgba(46, 49, 146, 0.15);
}

.team-card-border {
    border-color: transparent;
    transition: border-color 0.4s ease;
}

.team-management-card:hover .team-card-border {
    border-color: var(--card-accent);
}

.team-member-name {
    transition: color 0.3s ease;
}

.team-management-card:hover .team-member-name {
    color: var(--card-accent-dark);
}

.team-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: color-mix(in srgb, var(--card-accent) 20%, white);
    color: var(--card-accent-dark);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.team-social-link:hover {
    background: var(--card-accent-dark);
    color: #fff;
    transform: scale(1.1) rotate(8deg);
}

.team-management-card[data-index="0"] { transition-delay: 0s; }
.team-management-card[data-index="1"] { transition-delay: 0.08s; }
.team-management-card[data-index="2"] { transition-delay: 0.16s; }
.team-management-card[data-index="3"] { transition-delay: 0.24s; }
.team-management-card[data-index="4"] { transition-delay: 0.32s; }
.team-management-card[data-index="5"] { transition-delay: 0.4s; }

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

@keyframes teamPulseSlow {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.28; transform: scale(1.06); }
}

/* ============================ WHY CHOOSE ============================ */
.fh-why { position: relative; padding: 5rem 1.5rem; background: #fff; overflow: hidden; }
.fh-why__glow {
    position: absolute;
    width: 22rem;
    height: 22rem;
    border-radius: 9999px;
    filter: blur(80px);
    pointer-events: none;
    opacity: 0.45;
}
.fh-why__glow--left { top: -4rem; left: -6rem; background: rgba(46, 49, 146, 0.12); }
.fh-why__glow--right { bottom: -6rem; right: -4rem; background: rgba(0, 174, 239, 0.15); }

.fh-why__wrap { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }

.fh-why__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .fh-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .fh-why__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.fh-why__card {
    background: #fff;
    border-radius: 1.15rem;
    padding: 1.75rem 1.5rem;
    border: 1px solid rgba(46, 49, 146, 0.08);
    box-shadow: 0 8px 32px rgba(46, 49, 146, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.fh-why__card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 174, 239, 0.45);
    box-shadow: 0 16px 40px rgba(46, 49, 146, 0.1);
}

.fh-why__icon {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.35) 0%, rgba(46, 49, 146, 0.12) 100%);
    color: #0D2C6B;
    margin-bottom: 1.15rem;
}
.fh-why__card-title { font-weight: 700; font-size: 1.05rem; color: #1f2937; margin-bottom: 0.65rem; }
.fh-why__card-text { color: #6b7280; font-size: 0.9rem; line-height: 1.7; }

/* Scroll reveal helper */
.fh-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fh-reveal.is-visible { opacity: 1; transform: none; }

/* ============================ NAV MOTION ============================ */
.rt-nav-link {
    position: relative;
    transition: color 0.25s ease, transform 0.25s ease;
}
.rt-nav-link::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #0D2C6B, #00AEEF);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.rt-nav-link:hover { transform: translateY(-1px); }
.rt-nav-link:hover::before { transform: scaleX(1); }
/* active state keeps the existing ::after underline; hide hover underline to avoid doubling */
.rt-nav-link.is-active::before { display: none; }

/* footer logo rounded corners */
.rt-brand-logo--footer .rt-brand-logo__img {
    border-radius: 1rem;
    overflow: hidden;
}

/* mega menu smooth transition */
.rt-mega {
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
    .fh-hero__kenburns,
    .fh-hero__slice,
    .fh-breathe,
    .fh-icon-breathe,
    .fh-hero__arrow,
    .fh-hero__glow-orb,
    .fh-idcard__icon-wrap,
    .fh-idcard__icon {
        animation: none !important;
    }
    .fh-hero__slide.is-entering .fh-hero__slice { transform: none; opacity: 1; }
    .fh-reveal { opacity: 1; transform: none; }
}
