: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: black !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;
    }
}


@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: relative;
        z-index: 2;
        display: flex;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .mobile-text-image {
        font-family: 'Raleway', sans-serif !important;
        font-size: 2rem;
        width: 100vw;
        height: auto;
        text-transform: uppercase;
        display: inline-flex;
        justify-content: center;
        position: relative;
        color: var(--text-color);
        transition: transform 1s ease, opacity 1s ease; /* for push effect */
    }

    .mobile-text-image span {
        display: inline-block;
        transform: translateY(100%);
        opacity: 0;
    }

    .mobile-text-image.image-fill {
        color: transparent;
        background-image: url('/static/images/work/work-previews/automotive/image-31.webp');
        background-size: cover;
        background-position: center;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .mobile-text-image.slide-out {
        animation: slideOut 1s forwards;
    }

    @keyframes slideOut {
        to {
            transform: translateY(-100%);
            opacity: 0;
        }
    }

    .mobile-carousel-container {
        position: absolute;
        top: 0;
        right: 0;
        width: 100vw;
        height: 99vh;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        opacity: 0;
        transition: transform 1s ease, opacity 1s ease;
        z-index: 0;
    }

    .mobile-carousel-container img {
        width: 100vw;
        height: auto;
        object-fit: cover;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity 1s ease;
    }

    .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;
    }
}

.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;
    }
}



