/* ===== HOME PAGE CSS (Babu FC) - public/css/home.css ===== */

/* ===== THEME (Babu FC - same as header) ===== */
:root {
    --bfc-red: #e60012;
    --bfc-red-dark: #b8000e;
    --bfc-pink: #ff2d55;
    --bfc-pink-soft: #ffe3e8;
    --bfc-cream: #fff5f7;
    --bfc-black: #111114;
    --bfc-black-soft: #1c1c22;
}

* { box-sizing: border-box; }
body { margin: 0; overflow-x: hidden; }

/* =====================================================
   HERO SLIDER  (fade + zoom, left aligned content)
   ===================================================== */
.bs-hero {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    background: var(--bfc-black);
    color: #fff;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    isolation: isolate;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.bs-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 1s ease, visibility 1s;
}
.bs-slide.active { opacity: 1; visibility: visible; z-index: 2; }

.bs-bg {
    position: absolute;
    inset: 0;
    background: var(--img) center / cover no-repeat, var(--bfc-black);
    transform: scale(1.14);
    transition: transform 8s linear;
}
.bs-slide.active .bs-bg { transform: scale(1); }

/* dark + red tinted overlay so text is readable */
.bs-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(17, 17, 20, .90) 0%, rgba(17, 17, 20, .62) 48%, rgba(17, 17, 20, .12) 100%),
        linear-gradient(0deg, rgba(230, 0, 18, .35) 0%, transparent 38%);
}

.bs-inner {
    position: relative;
    z-index: 3;
    width: min(1240px, 92%);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding-bottom: 36px;
}

.bs-content {
    max-width: 640px;
    padding-left: 24px;
    border-left: 4px solid var(--bfc-pink);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

.bs-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    margin-bottom: 14px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--bfc-pink), var(--bfc-red));
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: none;
    box-shadow: 0 6px 18px rgba(230, 0, 18, .45);
}

.bs-title {
    margin: 0 0 14px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(28px, 4.6vw, 40px);
    font-weight: 900;
    line-height: 1.12;
    text-transform: uppercase;
    letter-spacing: .5px;
    overflow-wrap: anywhere;
}
.bs-title em {
    display: block;
    font-style: normal;
    color: var(--bfc-pink);
    text-shadow: 0 0 28px rgba(255, 45, 85, .55);
}

.bs-sub {
    margin: 0 0 24px;
    max-width: 540px;
    font-size: clamp(13.5px, 1.5vw, 16.5px);
    line-height: 1.65;
    color: rgba(255, 255, 255, .9);
    font-weight: 500;
}

.bs-btns { display: flex; flex-wrap: wrap; gap: 12px; }

.bs-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 26px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: none;
    transition: transform .3s, box-shadow .3s, background .3s, color .3s;
}
.bs-btn.primary {
    background: linear-gradient(135deg, var(--bfc-pink), var(--bfc-red));
    color: #fff;
    box-shadow: 0 8px 22px rgba(230, 0, 18, .45);
}
.bs-btn.primary:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(230, 0, 18, .6); color: #fff; }
.bs-btn.ghost {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.bs-btn.ghost:hover { background: #fff; color: var(--bfc-red); transform: translateY(-3px); }
.bs-btn:active { transform: scale(.97); }
.bs-btn.primary::after {
    content: "";
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-20deg);
    animation: bsShine 3.2s ease-in-out infinite;
}
@keyframes bsShine { 0% { left: -80%; } 55%, 100% { left: 140%; } }

/* content animation (only on active slide) */
.bs-slide .bs-tag,
.bs-slide .bs-title,
.bs-slide .bs-sub,
.bs-slide .bs-btns { opacity: 0; }
.bs-slide.active .bs-tag   { animation: bsUp .8s .35s cubic-bezier(.2, .8, .2, 1) both; }
.bs-slide.active .bs-title { animation: bsUp .9s .5s  cubic-bezier(.2, .8, .2, 1) both; }
.bs-slide.active .bs-sub   { animation: bsUp .9s .7s  cubic-bezier(.2, .8, .2, 1) both; }
.bs-slide.active .bs-btns  { animation: bsUp .9s .9s  cubic-bezier(.2, .8, .2, 1) both; }
@keyframes bsUp {
    from { opacity: 0; transform: translateY(34px); }
    to   { opacity: 1; transform: none; }
}
.bs-slide.active .bs-content { animation: bsLine 1s .2s ease both; }
@keyframes bsLine {
    from { border-left-color: transparent; }
    to   { border-left-color: var(--bfc-pink); }
}

/* floating football watermark */
.bs-ball {
    position: absolute;
    right: 7%;
    top: 14%;
    z-index: 2;
    font-size: clamp(80px, 12vw, 170px);
    color: rgba(255, 255, 255, .08);
    pointer-events: none;
    animation: bsBall 9s ease-in-out infinite;
}
@keyframes bsBall {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-18px) rotate(180deg); }
}

/* ---- controls ---- */
.bs-controls {
    position: absolute;
    right: 4%;
    bottom: 26px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 14px;
}
.bs-counter {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 3px;
}
.bs-counter small { opacity: .6; font-size: 13px; }
.bs-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .75);
    background: rgba(17, 17, 20, .45);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background .3s, border-color .3s, transform .3s;
}
.bs-arrow:hover { background: var(--bfc-red); border-color: var(--bfc-red); transform: scale(1.1); }

.bs-dots {
    position: absolute;
    left: 4%;
    bottom: 34px;
    z-index: 10;
    display: flex;
    gap: 10px;
}
.bs-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 12px;
    border: 0;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: width .4s, background .4s;
}
.bs-dot.active { width: 38px; background: var(--bfc-pink); }

.bs-progress {
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 5px;
    z-index: 11;
    background: rgba(255, 255, 255, .15);
}
.bs-progress b {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--bfc-red), var(--bfc-pink), #fff);
}
.bs-progress b.run { animation: bsProg 5.5s linear forwards; }
@keyframes bsProg { to { width: 100%; } }

/* ---- hero responsive ---- */
@media (max-width: 768px) {
    .bs-hero { height: 500px; }
    .bs-slide::before {
        background:
            linear-gradient(180deg, rgba(17, 17, 20, .55) 0%, rgba(17, 17, 20, .82) 100%),
            linear-gradient(0deg, rgba(230, 0, 18, .35) 0%, transparent 38%);
    }
    .bs-inner { justify-content: center; padding-bottom: 60px; }
    .bs-content { padding-left: 0; border-left: 0; text-align: center; }
    .bs-sub { margin-left: auto; margin-right: auto; }
    .bs-btns { justify-content: center; }
    .bs-ball { right: 4%; top: 8%; }
    .bs-dots { left: 50%; transform: translateX(-50%); bottom: 18px; }
    .bs-controls { display: none; }
}
@media (max-width: 576px) {
    .bs-hero { height: 520px; }
    .bs-tag { font-size: 10.5px; letter-spacing: 2px; padding: 5px 13px; margin-bottom: 10px; }
    .bs-title { font-size: clamp(24px, 7.4vw, 32px); margin-bottom: 10px; }
    .bs-sub {
        font-size: 13px;
        line-height: 1.55;
        margin-bottom: 18px;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .bs-btn { min-height: 42px; padding: 0 20px; font-size: 12px; flex: 1 1 0; }
    .bs-btns { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .bs-hero *, .bs-hero *::before, .bs-hero *::after {
        animation-duration: .001s !important;
        animation-delay: 0s !important;
        transition-duration: .001s !important;
    }
}

/* =====================================================
   QUICK SERVICES  (compact cards - title only)
   ===================================================== */
.qs-section {
    position: relative;
    width: 100%;
    padding: 38px 0 42px;
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
    color: var(--bfc-black);
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 45, 85, .16) 0%, transparent 50%),
        radial-gradient(circle at 6% 90%, rgba(230, 0, 18, .10), transparent 45%),
        linear-gradient(180deg, #ffffff 0%, var(--bfc-cream) 100%);
}
.qs-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(17, 17, 20, .08) 1.3px, transparent 1.3px);
    background-size: 26px 26px;
    mask-image: radial-gradient(circle at 50% 45%, #000 15%, transparent 78%);
    -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 15%, transparent 78%);
}

.qs-wrap { width: min(1100px, 92%); margin: 0 auto; }

.qs-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 22px;
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s, transform .8s cubic-bezier(.2, .8, .2, 1);
}
.qs-section.in .qs-head { opacity: 1; transform: none; }

.qs-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(230, 0, 18, .45);
    background: rgba(230, 0, 18, .08);
    color: var(--bfc-red);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.qs-pill i { animation: qsBolt 1.6s ease-in-out infinite; }
@keyframes qsBolt { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3) rotate(-12deg); } }

.qs-title {
    margin: 10px 0 6px;
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(22px, 3vw, 29px);
    font-weight: 900;
    line-height: 1.2;
    color: var(--bfc-black);
}
.qs-title em {
    font-style: normal;
    background: linear-gradient(90deg, #e60012, #ff2d55, #b8000e, #e60012);
    background-size: 250% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: qsText 4s ease-in-out infinite alternate;
}
@keyframes qsText { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.qs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px auto 0;
    width: 200px;
}
.qs-divider .line { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--bfc-pink)); }
.qs-divider .line:last-child { background: linear-gradient(90deg, var(--bfc-pink), transparent); }
.qs-divider .ball { margin: 0 9px; color: var(--bfc-red); font-size: 13px; line-height: 1; }
.qs-divider .ball i { display: inline-block; animation: qsSpinBall 5s linear infinite; }
@keyframes qsSpinBall { to { transform: rotate(360deg); } }

/* ---- grid ---- */
.qs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    perspective: 1000px;
}

/* ---- compact card ---- */
.qs-card {
    --rx: 0deg;
    --ry: 0deg;
    --gx: 50%;
    --gy: 50%;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 14px 16px;
    min-height: 140px;
    border-radius: 18px;
    text-align: center;
    color: var(--bfc-black);
    text-decoration: none;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 20, .08);
    box-shadow: 0 10px 26px rgba(17, 17, 20, .08);
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(44px) rotateX(var(--rx)) rotateY(var(--ry));
    transition:
        opacity .7s cubic-bezier(.2, .8, .2, 1),
        transform .25s ease-out,
        box-shadow .35s,
        border-color .35s;
    -webkit-tap-highlight-color: transparent;
}
.qs-section.in .qs-card {
    opacity: 1;
    transform: translateY(0) rotateX(var(--rx)) rotateY(var(--ry));
    transition-delay: calc(var(--n) * 110ms), 0s, 0s, 0s;
}
.qs-section.in .qs-card.tilting { transition-delay: 0s; }

/* top accent bar */
.qs-card .qs-bar {
    position: absolute;
    left: 20px; right: 20px; top: 0;
    height: 4px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, var(--bfc-red), var(--bfc-pink));
    transform: scaleX(.25);
    transform-origin: center;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.qs-card:hover .qs-bar, .qs-card:focus-visible .qs-bar { transform: scaleX(1); }

/* mouse-follow glow */
.qs-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 18px;
    background: radial-gradient(circle 150px at var(--gx) var(--gy), rgba(255, 45, 85, .14), transparent 70%);
    opacity: 0;
    transition: opacity .3s;
}
.qs-card:hover, .qs-card:focus-visible {
    border-color: rgba(230, 0, 18, .45);
    box-shadow: 0 20px 40px rgba(17, 17, 20, .15), 0 0 0 4px rgba(230, 0, 18, .08);
    outline: none;
}
.qs-card:hover::after, .qs-card:focus-visible::after { opacity: 1; }

/* icon */
.qs-icon {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    color: #fff;
    background: linear-gradient(135deg, var(--bfc-pink) 0%, var(--bfc-red) 100%);
    box-shadow: 0 10px 22px rgba(230, 0, 18, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
    transform: translateZ(36px) rotate(-6deg);
    transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), border-radius .45s;
}
.qs-icon::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 19px;
    border: 2px dashed rgba(230, 0, 18, .4);
    animation: qsRot 14s linear infinite;
}
@keyframes qsRot { to { transform: rotate(360deg); } }
.qs-card:hover .qs-icon { transform: translateZ(50px) rotate(0) scale(1.1); border-radius: 50%; }
.qs-card:hover .qs-icon::after { border-radius: 50%; }

.qs-card-title {
    margin: 0;
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--bfc-black);
    transform: translateZ(22px);
}

/* small arrow (no text) */
.qs-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 11px;
    color: var(--bfc-red);
    background: rgba(230, 0, 18, .08);
    border: 1px solid rgba(230, 0, 18, .4);
    transform: translateZ(22px);
    transition: background .3s, color .3s, transform .3s;
}
.qs-card:hover .qs-go { background: var(--bfc-red); color: #fff; transform: translateZ(22px) translateX(4px); }

/* featured (donate) card */
.qs-card.qs-feat {
    background: linear-gradient(155deg, #2a2a33 -30%, var(--bfc-black) 55%, #000 100%);
    border-color: rgba(255, 45, 85, .55);
    box-shadow: 0 18px 38px rgba(17, 17, 20, .35);
}
.qs-card.qs-feat .qs-card-title { color: #fff; }
.qs-card.qs-feat .qs-go { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 45, 85, .8); }
.qs-card.qs-feat:hover .qs-go { background: var(--bfc-red); }
.qs-card.qs-feat .qs-icon i { animation: qsBeat 1.6s ease-in-out infinite; }
.qs-card.qs-feat::after { background: radial-gradient(circle 150px at var(--gx) var(--gy), rgba(255, 45, 85, .25), transparent 70%); }
@keyframes qsBeat {
    0%,100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
}
.qs-feat .qs-shine {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}
.qs-feat .qs-shine::after {
    content: "";
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .2), transparent);
    transform: skewX(-20deg);
    animation: qsShine 3.4s ease-in-out infinite;
}
@keyframes qsShine { 0% { left: -80%; } 55%, 100% { left: 140%; } }

.qs-badge {
    position: absolute;
    top: 8px;
    left: 10px;
    padding: 2px 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--bfc-pink), var(--bfc-red));
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    animation: qsPulse 1.8s ease-in-out infinite;
}
@keyframes qsPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, .6); }
    50%     { box-shadow: 0 0 0 9px rgba(255, 45, 85, 0); }
}

/* click ripple */
.qs-ripple {
    position: absolute;
    z-index: 0;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border-radius: 50%;
    background: rgba(230, 0, 18, .3);
    pointer-events: none;
    animation: qsRipple .7s ease-out forwards;
}
@keyframes qsRipple { to { transform: scale(16); opacity: 0; } }

/* ---- responsive ---- */
@media (max-width: 860px) {
    .qs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .qs-section { padding: 32px 0 36px; }
    .qs-grid { gap: 12px; }
    .qs-card { min-height: 124px; padding: 18px 10px 14px; border-radius: 16px; }
    .qs-icon { width: 44px; height: 44px; font-size: 18px; border-radius: 13px; }
    .qs-icon::after { inset: -4px; border-radius: 16px; }
    .qs-card-title { font-size: 14px; }
    .qs-badge { top: 6px; left: 8px; font-size: 9px; }
}
@media (hover: none) {
    .qs-card { transform: translateY(44px); }
    .qs-section.in .qs-card { transform: none; }
    .qs-card:active { transform: scale(.97); border-color: var(--bfc-red); }
}
@media (prefers-reduced-motion: reduce) {
    .qs-section *, .qs-section *::before, .qs-section *::after {
        animation: none !important;
        transition-duration: .001s !important;
        transition-delay: 0s !important;
    }
    .qs-card, .qs-head { opacity: 1; transform: none; }
}