/* Bisani Brothers — Global Site Styles */

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Navigation */
.nav-link {
    position: relative;
    color: #1f2937;
    font-weight: 700;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #173978;
}

.dropdown-menu {
    transform-origin: top;
    animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: scaleY(0.95); }
    to { opacity: 1; transform: scaleY(1); }
}

#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Top announcement marquee */
#top-bar {
    background-color: #173978;
    height: 40px;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    background-color: #173978;
    height: 40px;
    align-items: center;
    position: relative;
}

.top-bar-social {
    flex: 0 0 2in;
    width: 2in;
    max-width: 2in;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 40px;
    background-color: #173978;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    z-index: 2;
}

.top-bar-social-link {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 9999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.top-bar-social-link:hover {
    color: #2fcaf0;
    background-color: rgba(255, 255, 255, 0.1);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    white-space: nowrap;
    will-change: transform;
    animation: seamlessScroll 20s linear infinite;
}

@keyframes seamlessScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.025em;
    flex-shrink: 0;
}

/* Popup shine animation */
@keyframes shine {
    0% { transform: translateX(-150%) skewX(-12deg); }
    50%, 100% { transform: translateX(200%) skewX(-12deg); }
}

.animate-shine {
    animation: shine 3s infinite;
}

.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Homepage industries marquee — seamless infinite loop */
.industries-marquee::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(40px, 6%);
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to right, #173978 20%, transparent);
}

.industries-marquee-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    padding: 2rem 0;
    will-change: transform;
    animation: industriesMarqueeScroll linear infinite;
    animation-duration: 32s;
}

.industries-marquee-set {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2.5rem;
    flex-shrink: 0;
}

.industries-marquee-set > .group {
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .industries-marquee-set {
        gap: 4rem;
    }

    .industries-marquee-track {
        padding: 2.5rem 0;
    }
}

.industries-marquee:hover .industries-marquee-track {
    animation-play-state: paused;
}

@keyframes industriesMarqueeScroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(var(--marquee-end, -1000px), 0, 0); }
}

/* Homepage service marquee (legacy) */
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee-infinite {
    animation: marqueeScroll 20s linear infinite;
    width: max-content;
}

.animate-marquee-infinite:hover {
    animation-play-state: paused;
}

.blob-shape {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.group:hover .blob-shape {
    border-radius: 58% 42% 30% 70% / 55% 55% 45% 45%;
    transform: scale(1.15) rotate(10deg);
    background-color: #2fcaf0;
    box-shadow: 0 10px 25px rgba(47, 202, 240, 0.4);
}

.mask-fade {
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Client logo marquee */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-wrapper:hover .animate-marquee {
    animation-play-state: paused;
}

/* About page */
@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.animate-float-fast {
    animation: float-fast 3s ease-in-out infinite;
}

/* Growth partner page */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.animate-float-infinite {
    animation: floating 4s ease-in-out infinite;
}
