:root {
    --bg-color: #0f0f0f;
    --bg-hero: #0f0f0f;
    --bg-section: #181818;
    --bg-card: #222222;
    --text-color: #ffffff;
    --text-muted: #3a3a3a;
    --text-accent: #bbbbbb;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-weight: 200;
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 10px;
}

.mobile-hero-container {
    display: none;
}

body.index-page .navbar {
    background-color: var(--bg-color) !important;
}

body.index-page .navbar .brand-name {
    color: white !important;
}

body.index-page .navbar .nav-link {
    color: white !important;
}

.hero {
    background-color: var(--bg-hero);
    color: var(--text-color);
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transform-origin: center top;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

#animated-hero-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.left-text,
.right-text {
    display: inline-block;
    white-space: nowrap;
}

.hero-text {
    /* font-family: 'Bebas Neue', sans-serif; */
    /* font-family: Arial, Helvetica, sans-serif; */
    font-family: 'Raleway', sans-serif !important;
    font-weight: 100 !important;
    margin-top: 50px;
    padding-left: 150px;
    letter-spacing: 3px;
    line-height: 0.9;
}

.hero-text span {
    /* opacity: 0.7; */
    letter-spacing: 3px;
    font-size: 6rem !important;
}

.desktop-hero-container {
    padding-left: 30px;
}

.hero-image-container {
    position: relative;
    margin-top: 10px;
    width: 0;
    overflow: hidden;
    display: flex;
    justify-content: center !important;
    margin-inline: 2px !important;
}

.hero-image {
    width: 8.4rem;
    /* height: 6.5rem !important; */
    margin-bottom: 12px;
    display: block;
    transition: transform 2s cubic-bezier(0.85,0,0.15,1);
    /* object-fit:cover; */
    object-position:center !important;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--text-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-accent);
    cursor: pointer;
    transition: transform 0.2s ease, opacity 2s ease;
    z-index: 4;
    pointer-events: auto;
    opacity: 0;
}

.left-arrow {
    left: 40px;
}

.right-arrow {
    right: 40px;
}

/* .hero-arrow:hover {
    cursor: none;
} */

/* #final-hero-image {
    width: 6.5rem;
} */

@keyframes slideInRightToLeft {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-preview {
    opacity: 0;
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.preview-img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.preview-img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.loop-img{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:cover;
    transform:translate3d(0,0,0) scaleX(1);
    opacity:1;
    will-change:transform,opacity;
    transition:
    transform 1s cubic-bezier(0.7,0,0.2,1),
    opacity 0.6s ease;
}

.loop-img.next{
    transform:translate3d(100%,0,0) scaleX(1.15);
    opacity:0;
    z-index:3;
}

.loop-img.enter{
    transform:translate3d(0,0,0) scaleX(1);
    opacity:1;
}

.loop-img.exit{
    transform:translate3d(-45%,0,0) scaleX(0.85);
    opacity:0.5;
    z-index:2;
}

.loop-slide-img{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:fill;
    transform:translateX(100%);
    opacity:0;
    will-change:transform,opacity;
}

.loop-slide-img.active{
    transform:translateX(0%);
    opacity:1;
    transition:
        transform 0.8s cubic-bezier(0.85,0,0.15,1),
        opacity 0.8s ease;
    z-index:2;
}

.loop-slide-img.exit{
    transform:translateX(-100%);
    transition: transform 0.8s cubic-bezier(0.85,0,0.15,1);
    z-index:1;
}

body::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .desktop-hero-container {
        display: none;
    }
}

.client-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: fit-content;
    margin: 0 auto;
    text-align: center;
    padding-top: 30px;
    padding-bottom: 200px;
}

.client-section h1 {
    text-transform: uppercase;
    font-family: Arial, sans-serif;
    letter-spacing: 2px;
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    line-height: 3.5rem;
    color: var(--text-color);
    position: relative;
}

.client-section h1::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 1px;
    background-color: #888;
}

.clients-logo-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin-top: 100px;
}

.clients-logo-section img {
    height: 80px;
}

#bay-street-group img {
    height: 20px !important;
}

.dark-logo {
    filter: invert(1);
}

.client-section h1,
.clients-logo-section img {
    opacity: 0;
    transform: translateY(20px);
}

.client-section.fade-in h1,
.client-section.fade-in .clients-logo-section img {
    animation: fadeIn 0.5s ease-out forwards;
}
.client-section.fade-in .clients-logo-section img:nth-child(1) {
    animation-delay: 0.5s;
}
.client-section.fade-in .clients-logo-section img:nth-child(2) {
    animation-delay: 0.55s;
}
.client-section.fade-in .clients-logo-section img:nth-child(3) {
    animation-delay: 0.6s;
}
.client-section.fade-in .clients-logo-section img:nth-child(4) {
    animation-delay: 0.65s;
}
.client-section.fade-in .clients-logo-section img:nth-child(5) {
    animation-delay: 0.7s;
}
.client-section.fade-in .clients-logo-section img:nth-child(6) {
    animation-delay: 0.75s;
}

.client-section.fade-in .clients-logo-section img:nth-child(7) {
    animation-delay: 0.8s;
}

.client-section.fade-in .clients-logo-section img:nth-child(8) {
    animation-delay: 0.85s;
}

.client-section.fade-in .clients-logo-section img:nth-child(9) {
    animation-delay: 0.9s;
}

.client-section.fade-in .clients-logo-section img:nth-child(10) {
    animation-delay: 0.95s;
}

.client-section.fade-in .clients-logo-section img:nth-child(11) {
    animation-delay: 1.05s;
    width: 280px;
    height: auto;
}

.clients-logo-section img:nth-child(9) {
    height: 100px !important;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 768px) {
    .mobile-hero-container {
        position: relative;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--bg-color);
    }

    .mobile-text-wrapper {
        position: absolute;
        inset: 0;
        z-index: 3;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        height: 100%;
        overflow: hidden;
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.7s ease;
    }

    .mobile-text-image {
        font-family: 'Raleway', sans-serif !important;
        font-size: 2rem;
        width: 100%;
        height: 100%;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        color: var(--text-color);
        margin: 0;
        opacity: 1;
        transition: opacity 0.7s ease;
    }

    .mobile-intro-track {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100vw;
        height: 100%;
        overflow: hidden;
    }

    .mobile-name-text {
        display: inline-flex;
        white-space: nowrap;
        letter-spacing: 0.08em;
        transform: translateX(0);
        transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
        will-change: transform;
    }

    .mobile-name-pair-shell {
        display: inline-flex;
        overflow: hidden;
    }

    .mobile-name-pair {
        display: inline-block;
        opacity: 0;
        transform: translateY(1em);
    }

    .mobile-text-image.is-shifted .mobile-name-text {
        transform: translateX(var(--mobile-name-exit, -120vw));
    }

    .mobile-text-image.is-clearing {
        opacity: 0;
    }

    @keyframes mobileTextShutter {
        0% {
            transform: translateX(-130%);
        }
        100% {
            transform: translateX(130%);
        }
    }

    .mobile-carousel-container {
        position: absolute;
        top: 0;
        right: 0;
        width: 100vw;
        height: 99vh;
        transform: translateX(100vw);
        opacity: 0;
        transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
        z-index: 0;
        overflow: hidden;
    }

    .mobile-carousel-container.is-entering {
        transform: translateX(0);
        opacity: 1;
    }

    .mobile-carousel-track {
        display: flex;
        width: 100%;
        height: 100%;
        transform: translateX(0);
        transition: transform 0.5s ease;
    }

    .mobile-carousel-slide {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-carousel-image {
        width: 100vw;
        height: auto;
        display: block;
    }

    .mobile-carousel-image.is-opening {
        animation: mobileFirstImageReveal 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    @keyframes mobileFirstImageReveal {
        0% {
            opacity: 0;
            transform: translateX(18vw) scale(0.96);
        }
        100% {
            opacity: 1;
            transform: translateX(0) scale(1);
        }
    }

    .mobile-carousel-container.variant-zoom .mobile-carousel-image {
        transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
    }

    .mobile-carousel-container.variant-zoom .mobile-carousel-image.is-active {
        transform: translate3d(0, -50%, 0) scale(1.01);
        opacity: 1;
        z-index: 2;
    }

    .mobile-carousel-container.variant-zoom .mobile-carousel-image.is-next {
        transform: translate3d(0, -50%, 0) scale(1.08);
        opacity: 0;
        z-index: 3;
    }

    .mobile-carousel-container.variant-zoom .mobile-carousel-image.is-prev {
        transform: translate3d(0, -50%, 0) scale(0.96);
        opacity: 0;
        z-index: 1;
    }

    .mobile-carousel-container.variant-stack .mobile-carousel-image {
        width: calc(100vw - 28px);
        left: 14px;
        border-radius: 22px;
        overflow: hidden;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
        transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
    }

    .mobile-carousel-container.variant-stack .mobile-carousel-image.is-active {
        transform: translate3d(0, -50%, 0) scale(1) rotate(0deg);
        opacity: 1;
        z-index: 3;
    }

    .mobile-carousel-container.variant-stack .mobile-carousel-image.is-next {
        transform: translate3d(0, calc(-50% + 20px), 0) scale(0.92) rotate(-3deg);
        opacity: 0.55;
        z-index: 2;
    }

    .mobile-carousel-container.variant-stack .mobile-carousel-image.is-prev {
        transform: translate3d(0, calc(-50% - 24px), 0) scale(1.04) rotate(4deg);
        opacity: 0;
        z-index: 1;
    }

    .mobile-carousel-container.variant-reel .mobile-carousel-image {
        transition: transform 0.9s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.9s ease;
    }

    .mobile-carousel-container.variant-reel .mobile-carousel-image.is-active {
        transform: translate3d(0, -50%, 0) scale(1);
        opacity: 1;
        z-index: 2;
    }

    .mobile-carousel-container.variant-reel .mobile-carousel-image.is-next {
        transform: translate3d(0, calc(-50% + 100%), 0) scale(1.02);
        opacity: 0;
        z-index: 3;
    }

    .mobile-carousel-container.variant-reel .mobile-carousel-image.is-prev {
        transform: translate3d(0, calc(-50% - 100%), 0) scale(0.98);
        opacity: 0;
        z-index: 1;
    }

    .mobile-carousel-container.variant-parallax .mobile-carousel-image {
        transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.95s ease;
    }

    .mobile-carousel-container.variant-parallax .mobile-carousel-image.is-active {
        transform: translate3d(0, -50%, 0) scale(1.01);
        opacity: 1;
        z-index: 2;
    }

    .mobile-carousel-container.variant-parallax .mobile-carousel-image.is-next {
        transform: translate3d(12%, -50%, 0) scale(1.05);
        opacity: 0;
        z-index: 3;
    }

    .mobile-carousel-container.variant-parallax .mobile-carousel-image.is-prev {
        transform: translate3d(-7%, -50%, 0) scale(0.98);
        opacity: 0;
        z-index: 1;
    }

    .hero-arrow {
        top: 47%;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid var(--text-color);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: var(--text-color);
        cursor: pointer;
        transition: transform 0.2s ease, opacity 1s ease;
        z-index: 4;
        pointer-events: auto;
        position: absolute;
    }

    .left-arrow {
        left: 15px;
    }

    .right-arrow {
        right: 15px;
    }

    .client-section {
        height: auto;
        padding: 0;
        margin-bottom: 150px;
    }
    
    .client-section h1 {
        font-size: 1.3rem;
        letter-spacing: 1px;
        text-align: center;
        overflow-wrap: break-word;
    }

    .clients-logo-section {
        padding-inline: 20px;
        margin-top: 30px;
        gap: 20px;
        justify-content: center;
    }
    
    .clients-logo-section img {
        height: 40px;
        width: auto;
    }

    .clients-logo-section img:nth-child(9) {
        height: 50px !important;
    }
    .clients-logo-section img:nth-child(11) {
        width: 150px !important;
    }
}

.index-page .footer {
    background-color: var(--bg-section);
}

.carousel-wrapper {
    width: 100%;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-card {
    position: absolute;
    width: 420px;
    height: auto;
    /* border-radius: 14px; */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.2rem;
    padding: 12px;
    margin-top: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    transition: transform 1.4s cubic-bezier(.65,0,.35,1), opacity 1.2s ease;
    aspect-ratio: auto;
    min-height: 230px;
}

.card-title {
    font-weight: 100;
    position: relative;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    z-index: 3;
}

.carousel-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    /* border-radius: 14px; */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-card:hover::after {
    opacity: 1;
}

.carousel-card:hover {
    color: var(--text-color);
    cursor: pointer;
}

.control-buttons {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.btn {
    font-size: 1rem;
    padding: 8px 16px;
}

@media (max-width: 768px) {
    .control-buttons {
        display: none;
    }

    .carousel-wrapper {
        height: 100vh;
    }

    .carousel-card {
        width: 90vw;
        /* height: 160px; */
        font-size: 0.9rem;
        padding: 8px;
        border-radius: 10px;
    }

    .card-title {
        font-weight: 500;
        font-size: 0.7rem;
    }

}

.carousel-card.initial {
    opacity: 0;
    transform: translateX(-900px) scale(0.9);
}

.carousel-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-wrapper.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes headingFade {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 0.9;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    .carousel-card {
        /* max-width: 320px; */
        height: 160px;
        font-size: 0.9rem;
        aspect-ratio: 9/16 !important;
        padding: 8px;
        border-radius: 10px;
        margin-top: 20px;
    }
    
    .carousel-wrapper {
        height: 100vh;
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .gallery-card.active {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }

    .gallery-card {
        transition: none !important;
    }

    .gallery-img {
        transition: none !important;
    }
}
