/* =========================
   FONT IMPORTS
========================= */

/* Borel Regular (Google Font) */
@import url("https://fonts.googleapis.com/css2?family=Borel&display=swap");

/* =========================
   GLOBAL RESET
========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =========================
   GLOBAL FONT
========================= */

html,
body {
    font-family: "Gill Sans MT", "Gill Sans", Calibri, Arial, sans-serif;
    color: #000;
    background-color: #fff;
}

.label {
    font-family: "Gill Sans MT", "Gill Sans", Calibri, Arial, sans-serif;
}

.Borel {
    font-family: "Borel", cursive;
}

.active {
    color: #d53f52;
}

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.typing-text {
    position: relative;
    display: inline-block;
    white-space: nowrap;

    /* reveal */
    animation: reveal 1.6s ease-out forwards;

    /* subtle cursor */
    padding-right: 10px;
}

.typing-text::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 2px;
    background: currentColor;
    animation: blink 1s ease-in-out infinite;
}

/* smooth reveal */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* cursor blink */
@keyframes blink {
    50% {
        opacity: 0;
    }
}



.gradient-text {
    background: linear-gradient(120deg,
            #000000,
            #D53F52,
            #960417,
            #6C0496,
            #000000);
    background-size: 400% 400%;

    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;

    animation: gradientFlow 7s ease-in-out infinite;
}

/* Smooth loop */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}




/* =========================
   SPAN FONT
========================= */

.span {
    font-family: "Borel", cursive;
}

/* =========================
   LINKS
========================= */

a {
    text-decoration: none;
    color: inherit;
    font-family: "Gill Sans MT", "Gill Sans", Calibri, Arial, sans-serif;
}

html,
body {
    overflow-x: hidden;
}

/* =========================
   SMOOTH SCROLL
========================= */

html {
    scroll-behavior: smooth;
}

h1,
h2 {
    font-family: "Gill Sans MT", "Gill Sans", Calibri, Arial, sans-serif;
}



/* Paragraph font */
p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1.6;
}



/* Apple segmented spinner */
.apple-spinner {
    position: relative;
    width: 40px;
    height: 40px;
}

.apple-spinner div {
    transform-origin: 20px 20px;
    animation: appleFade 1.2s linear infinite;
}

.apple-spinner div::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 18px;
    width: 4px;
    height: 10px;
    border-radius: 4px;
    background: #000;
}

.apple-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}

.apple-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}

.apple-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
}

.apple-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
}

.apple-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
}

.apple-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
}

.apple-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
}

.apple-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
}

.apple-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
}

.apple-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
}

.apple-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
}

.apple-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}

@keyframes appleFade {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.15;
    }
}




/* MOBILE AUTO SLIDER ONLY */
.stats-mobile-wrapper {
    overflow: hidden;
}

/* Mobile only */
@media (max-width: 639px) {
    .stats-mobile-track {
        display: flex;
        gap: 24px;
        width: max-content;
        animation: mobileAutoSlide 12s linear infinite;
    }
}

/* Disable animation on tablet & desktop */
@media (min-width: 640px) {
    .stats-mobile-track {
        animation: none;
        width: auto;
    }
}

@keyframes mobileAutoSlide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}




/* Grid base rows */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    /* base unit */
    gap: 16px;
}

/* Card wrapper */
.gallery-box {
    overflow: hidden;
    position: relative;
}

/* Image */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Sizes via row-span */
.gallery-sm {
    grid-row: span 1;
}

.gallery-lg {
    grid-row: span 2;
}

/* Hover */
.gallery-box:hover .gallery-img {
    transform: scale(1.07);
}

/* Responsive */
@media (max-width: 1023px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }
}

@media (max-width: 639px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
    }
}




.card-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Subtle black overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    /* subtle darkness */
    z-index: 1;
    transition: background 0.4s ease;
}

/* Hover effect */
.group:hover .card-img {
    transform: scale(1.08);
}

.group:hover .card-overlay {
    background: rgba(0, 0, 0, 0.38);
    /* slightly darker on hover */
}

/* Label */
.label {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: white;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    z-index: 2;
    /* above overlay */
}


.black {
    background: rgba(0, 0, 0, 0.2);
}

@keyframes arrowBounce {
    0% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0.4;
    }

    50% {
        transform: rotate(45deg) translate(6px, 6px);
        opacity: 1;
    }

    100% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0.4;
    }
}







/* ================= STATS SECTION ================= */

.stats-single-image {
    background: #ffffff;
    overflow: hidden;
}

/* MAIN WRAPPER */
.stats-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 160px 1fr 160px;
    /* 🔑 desktop stability */
    align-items: center;
    gap: clamp(20px, 4vw, 50px);
}

/* ================= COUNTS ================= */

.stats-count {
    font-family: 'Poppins', sans-serif;
    color: #d53f52;
    width: 160px;
    /* 🔑 prevents image shift */
    flex-shrink: 0;
}

.stats-count h3 {
    font-size: clamp(30px, 4.8vw, 56px);
    font-weight: 600;
    margin: 0;
    line-height: 1;

    /* 🔑 layout stability */
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.stats-count p {
    margin-top: 6px;
    font-size: clamp(14px, 2vw, 20px);
}

.stats-count.left {
    text-align: right;
}

.stats-count.right {
    text-align: left;
}

/* ================= IMAGE ================= */

.stats-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats-image img {
    width: clamp(340px, 62vw, 860px);
    /* 🔥 large & responsive */
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================= MOBILE FIX ================= */
@media (max-width: 640px) {

    .stats-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        row-gap: 18px;
    }

    .stats-count {
        width: auto;
        /* 🔥 remove fixed width on mobile */
    }

    .stats-count.left,
    .stats-count.right {
        text-align: center;
    }

    .stats-image {
        order: 2;
        margin: 20px 0;
    }

    .stats-count.left {
        order: 1;
    }

    .stats-count.right {
        order: 3;
    }
}




/* MOBILE STATS AUTO SLIDER */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* apply only on mobile */
@media (max-width: 1023px) {
    .animate-marquee {
        display: flex;
        width: max-content;
        animation: marquee 18s linear infinite;
    }
}

@keyframes arrowDown {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(10px);
        opacity: 0.8;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.arrow-animate {
    animation: arrowDown 1.5s ease-in-out infinite;
}