/* Home Page Specific Styles */

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: #0000FF;
    color: #fff;
    font-family: 'Geologica', sans-serif;
    scroll-snap-type: y mandatory;
}

h1, h2, h3 {
    color: #fff;
}

.nowrap {
    white-space: nowrap;
    display: inline-block;
}

/* Top section container with rocket */
#container {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto;
    height: 100dvh;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
}

#container.top-section {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
}
/* Speed lines animation */
.speed-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.speed-line {
    position: absolute;
    width: 2px;
    height: 30%;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.4) 10%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.2) 90%, transparent 100%);
    animation: speedLineMove 0.6s linear infinite;
}

/* Disable speed lines animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .speed-lines {
        display: none;
    }
    
    .speed-line {
        animation: none;
    }
}

.speed-line:nth-child(1) { left: 10%; animation-delay: 0s; }
.speed-line:nth-child(2) { left: 20%; animation-delay: 0.1s; }
.speed-line:nth-child(3) { left: 30%; animation-delay: 0.2s; }
.speed-line:nth-child(4) { left: 40%; animation-delay: 0.3s; }
.speed-line:nth-child(5) { left: 50%; animation-delay: 0.4s; }
.speed-line:nth-child(6) { left: 60%; animation-delay: 0.5s; }
.speed-line:nth-child(7) { left: 70%; animation-delay: 0.1s; }
.speed-line:nth-child(8) { left: 80%; animation-delay: 0.2s; }
.speed-line:nth-child(9) { left: 90%; animation-delay: 0.3s; }

@keyframes speedLineMove {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}


/* Three.js canvas and overlays */
#three-canvas {
    position: absolute;
    z-index: 1;
    filter: contrast(2);
    /* Prevent stretching - maintain exact pixel size */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    max-width: 100vw;
    max-height: 100vh;
    aspect-ratio: 1 / 1;
    transition: transform 1s ease-out;
}

/* Slide up animation when scene starts */
#three-canvas.scene-started {
    transform: translateX(-50%) translateY(0);
}

/* Three.js scene loader spinner */
.three-loader {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
    z-index: 20; /* Above all other layers */
    opacity: 1;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

.three-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.three-loader-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#html-content {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.three-overlay-fade {
    aspect-ratio: 1.1 / 1;
    bottom: 0;
    left: 50%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    z-index: 4; /* Above canvas (z-index: 1) */
    transform: translateX(-50%);
    position: absolute;
    background: linear-gradient(to top, #0000ffe1, #0000ff72 40%), linear-gradient(to right, #0000ff, #0000ff62, #0000ff);
}

/* Slogan section */
.slogan {
    position: absolute;
    z-index: 5;
    text-align: center;
    width: 70vw;
    box-sizing: border-box;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Fade-in animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slogan text container */
.slogan-text {
    margin-bottom: 1rem;
}

/* Main slogan line - "WHATEVER YOUR BUSINESS DOES," */
.slogan-main {
    font-size: clamp(2rem, 8vw, 6.5rem);
    font-weight: 900;
    line-height: 1em;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 0.2rem;
    font-family: 'Geologica', sans-serif;
    width: 100%;
    max-width: 100%;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    opacity: 0;
    /* Animation will be triggered when scene starts */
}

/* Start slogan animations after scene has started */
body.scene-started .slogan-main {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

/* Sub slogan line - "do it faster with BT*." */
.slogan-sub {
    font-size: clamp(2rem, 6.5vw, 6rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    letter-spacing: -0.1em;
    color: #fff;
    font-family: 'Geologica', sans-serif;
    width: 100%;
    max-width: 100%;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    opacity: 0;
    /* Animation will be triggered when scene starts */
}

/* Start slogan animations after scene has started */
body.scene-started .slogan-sub {
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

/* Yellow underline for "faster" - hand-drawn style */
.underline-yellow {
    position: relative;
    display: inline-block;
    padding-right: .25em;
}

.underline-svg {
    position: absolute;
    bottom: -0.15em;
    left: -0.1em;
    width: calc(100% + 0.2em);
    height: auto;
    max-height: 0.35em;
    transform: translateY(0);
    pointer-events: none;
    display: block;
}

/* Yellow asterisk */
.asterisk-yellow {
    color: #FFB700;
    font-weight: 700;
    margin-left: 0.15em;
    font-size: .5em;
    vertical-align: baseline;
    position: absolute;
    top: .1em;
    right: -.15em;
}

/* Keywords - "ECOMMERCE • DATA • WEB" */
.slogan-keywords {
    background: #0800af;
    font-size: clamp(0.95rem, 2vw, 1.5rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #FFB700;
    margin-bottom: 0.5rem;
    font-family: 'Geologica', sans-serif;
    width: 100%;
    max-width: 100%;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    opacity: 0;
    max-width: 75%;
    margin: 1.5rem auto;
    padding: .5rem 1rem;
    /* Animation will be triggered when scene starts */
}

/* Start slogan animations after scene has started */
body.scene-started .slogan-keywords {
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

/* Handwritten style - "*NO SERIOUSLY, TRY US" */
.slogan-handwritten {
    font-size: clamp(0.95rem, 2.2vw, 1.5rem);
    font-family: 'Rock Salt', cursive;
    color: #FFB700;
    margin-bottom: 2rem;
    font-weight: 400;
    width: 100%;
    max-width: 100%;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    opacity: 0;
    /* Animation will be triggered when scene starts */
}

/* Start slogan animations after scene has started */
body.scene-started .slogan-handwritten {
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

/* Button styling */
.slogan .btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    font-family: 'Geologica', sans-serif;
    opacity: 0;
    /* Animation will be triggered when scene starts */
}

/* Start slogan animations after scene has started */
body.scene-started .slogan .btn {
    animation: fadeInUp 0.8s ease-out 1.5s forwards;
}

.slogan .btn:hover {
    background: #fff;
    color: #000;
}

/* Mobile responsive adjustments */
@media (max-width: 720px) {
    .slogan {
        width: 80%;
        top: 100px;
        transform: translateX(-50%);
    }
    
    .slogan-main {
        white-space: normal;
        line-height: 1.15;
    }
    
    .slogan-sub {
        white-space: normal;
        line-height: 1.25;
    }
    
    .slogan-keywords {
        white-space: normal;
        line-height: 1.3;
        max-width: 100%;
    }
    
    .slogan-handwritten {
        white-space: normal;
    }
    .three-overlay-fade {
        aspect-ratio: 1.1 / 1;
        bottom: 0;
        left: 50%;
        height: 100%;
        max-width: 100vw;
        max-height: 100vh;
        z-index: 4; /* Above canvas (z-index: 1) */
        transform: translateX(-50%);
        position: absolute;
        background: linear-gradient(to top, #0000ffe1, #0000ff00 40%), linear-gradient(to right, #0000ff, #0000ff00, #0000ff);
    }
}


.logo-container {
    position: absolute;
    top: 50px;
    left: 50px;
    z-index: 5;
}

/* Full-screen sections */
.full-section {
    width: 100vw;
    min-height: 100dvh;
    padding: 200px 40px 100px 40px;
    background: linear-gradient(to top, #0000FF 80%, #0000e0);
    scroll-snap-align: start;
}

.section-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

#who-is-bt {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 100px 40px;
}

/* Style the flex container inside who-is-bt section */
#who-is-bt .section-content > .flex {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

/* Mobile padding and column layout for Who is BT section */
@media (max-width: 768px) {
    #who-is-bt {
        padding: 100px 20px 40px 20px;
    }
    #who-is-bt .section-content {
        padding: 0 20px;
    }
    
    /* Stack vertically on mobile */
    #who-is-bt .section-content > .flex {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Center image on mobile */
    #who-is-bt .section-content > .flex > .flex-1.justify-center {
        display: flex;
        justify-content: center;
    }
}

/* How To Work With BT section - wider container */
#how-we-work .section-content,
#bt-reviews .section-content {
    max-width: 1200px;
    width: 100%;
}

#how-we-work {

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Allow section-content to grow on wider screens */
@media (min-width: 1400px) {
    #how-we-work .section-content,
    #bt-reviews .section-content {
        max-width: 1400px;
    }
}

@media (min-width: 1600px) {
    #how-we-work .section-content,
    #bt-reviews .section-content {
        max-width: 1600px;
    }
}

#how-we-work .carousel-text {
    text-align: left;
}

.section-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 700;
    font-family: 'Bungee', sans-serif;
}

section h2 {
    font-size: clamp(1.6rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    letter-spacing: -.05em;
    font-weight: 900;
    text-transform: uppercase;
}

.section-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-content p {
    font-size: 1.2rem;
    line-height: 1.6rem;
}

/* Sticky navigation above affiliations */
.home-subnav {
    position: sticky;
    bottom: 0px;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    background: linear-gradient(to top, var(--color-primary), transparent);
}

.home-subnav-container {
    background: #0000007b;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 30px;
    padding: 4px;
}

.home-subnav-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: .8rem 1.5rem;
}

.home-subnav-link:hover {
    color: #B8C4FF;
    opacity: 0.7;
}

.home-subnav-link.active {
    background: var(--color-primary);
    border-radius: 80px;
    color: white;
    opacity: 1;
}

.home-subnav-rocket {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}


/* Mobile responsive for home page */
@media (max-width: 720px) {
    
    .speed-line {
        animation-duration: 0.8s; /* Slower on mobile for better performance */
    }
    
    .home-subnav-container {
        display: none;
    }
    
    .home-subnav {
        padding: 15px 20px;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .home-subnav-link {
        font-size: 0.9rem;
    }
    
    .section-content h2 {
        font-size: 2rem;
    }
    
    .section-content p {
        font-size: 1rem;
    }
    
    .team-card {
        width: 250px;
    }
    
    .team-card-flip {
        width: 250px;
        height: 333px;
    }
    
    .team-card-photo {
        width: 250px;
        height: 333px;
    }
    
    .team-scroll-track {
        gap: 2rem;
    }
}

/* Team Section with Infinite Scroll */
.team-section {
    margin-top: 2rem;
    padding-top: 10px;
    width: 1200px;
    max-width: 90vw;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Allow team section to grow on wider screens */
@media (min-width: 1400px) {
    .team-section {
        width: 1400px;
        max-width: 90vw;
    }
}

@media (min-width: 1600px) {
    .team-section {
        width: 1600px;
        max-width: 90vw;
    }
}

.team-title {
    font-family: 'Rock Salt', cursive;
    color: #FFB700;
    text-align: center;
    font-size: 2rem;
}

.team-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

/* Team slider navigation arrows */
.team-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--color-primary);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 15; /* Above fade gradients (z-index: 2) */
    border: none;
    padding: 0;
}

.team-nav-btn:hover {
    background: var(--color-yellow-500);
}

.team-nav-btn-prev {
    left: 0;
}

.team-nav-btn-next {
    right: 0;
}

.team-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* Fade-out effects on left and right */
.team-scroll-container::before,
.team-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.team-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, #0000FF, transparent);
}

.team-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, #0000FF, transparent);
}

.team-scroll-track {
    display: flex;
    gap: 3rem;
    width: fit-content;
    padding-bottom: 50px;
    will-change: transform;
    transform: translateZ(0); /* Force GPU acceleration */
    backface-visibility: hidden;
    perspective: 1000px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth animation */
}

.team-card {
    flex-shrink: 0;
    width: 200px;
    text-align: left;
    position: relative;
    transform: translateZ(0); /* Force GPU acceleration for each card */
    backface-visibility: hidden;
}

.team-card-offset {
    top: 50px;
}

/* 3D Flip Card Container */
.team-card-flip {
    width: 200px;
    height: 275px;
    position: relative;
    margin-bottom: .5rem;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* When flipped, rotate 180 degrees on Y axis */
.team-card-flip.flipped {
    transform: rotateY(180deg);
}

/* Both faces of the card */
.team-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 35px;
    overflow: hidden;
}

/* Front face (work photo) */
.team-card-front {
    transform: rotateY(0deg);
}

/* Back face (non-work photo) - rotated 180 degrees initially */
.team-card-back {
    transform: rotateY(180deg);
}

.team-card-photo {
    width: 200px;
    height: 275px;
    border-radius: 35px;
    object-fit: cover;
    display: block;
}

/* Info section below the card */
.team-card-info {
    width: 100%;
}

.team-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.team-card-title {
    font-size: .8rem;
    color: #B8C4FF;
}

.team-card-interest {
    font-family: 'Rock Salt', cursive;
    color: #FFB700;
    font-size: 0.7rem;
}

/* Communication icons section */
.com-icons {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-width: 500px;
    margin: 0 auto;
}

.com-icon {
    position: absolute;
    aspect-ratio: 1 /1;
    object-fit: contain;
    will-change: transform;
}


@media (max-width: 720px) {
    .team-title {
        font-size: 1rem;
    }
    .team-section {
        max-width: 100%;
    }
    .team-scroll-container::before,
    .team-scroll-container::after {
        width: 50px;
    }
    .team-card {
        width: 150px;
    }
    .team-card-photo, .team-card-flip {
        width: 150px;
        height: 200px;
    }
    .full-section {
        min-height: 0;
        padding: 100px 20px 40px 20px;
    }
}

/* Icon positioning - ordered smallest to largest for z-index stacking */

/* SMS - smallest icon, top right area */
.com-icon-sms {
    width: 26%;
    top: 5%;
    right: 5%;
    animation: float1 6.2s ease-in-out infinite;
}

/* Google Chat - small, right side middle */
.com-icon-google-chat {
    width: 18%;
    top: 45%;
    left: 60%;
    animation: float2 5s ease-in-out infinite;
}

/* Asana - small, bottom right blurred */
.com-icon-asana {
    width: 10%;
    bottom: 10%;
    right: 8%;
    animation: float3 7.5s ease-in-out infinite;
    opacity: 0.6;
}

/* Discord - medium, center behind Slack */
.com-icon-discord {
    width: 14%;
    top: 30%;
    left: 55%;
    animation: float4 6.5s ease-in-out infinite;
    opacity: 0.7;
}

/* Teams - medium, left side */
.com-icon-teams {
    width: 20%;
    top: 40%;
    left: 5%;
    animation: float5 5.5s ease-in-out infinite;
}

/* Zoom - large, center-bottom */
.com-icon-zoom {
    width: 25%;
    bottom: 0%;
    left: 30%;
    animation: float6 7s ease-in-out infinite;
}

/* Slack - largest, center-top, most prominent */
.com-icon-slack {
    width: 40%;
    top: 5%;
    left: 15%;
    animation: float7 6s ease-in-out infinite;
}

/* Floating jitter animations - reduced translate, no rotation */
@keyframes float1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-3px, -4px); }
    50% { transform: translate(2px, -3px); }
    75% { transform: translate(-2px, 4px); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(4px, 3px); }
    50% { transform: translate(-3px, 4px); }
    75% { transform: translate(3px, -2px); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2px, 4px); }
    50% { transform: translate(3px, -3px); }
    75% { transform: translate(-3px, -3px); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(3px, -4px); }
    50% { transform: translate(-4px, 3px); }
    75% { transform: translate(2px, 4px); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-4px, 3px); }
    50% { transform: translate(3px, -4px); }
    75% { transform: translate(-3px, 3px); }
}

@keyframes float6 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(3px, -3px); }
    50% { transform: translate(-4px, 4px); }
    75% { transform: translate(4px, -3px); }
}

@keyframes float7 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-1px, 2px); }
    50% { transform: translate(1px, -2px); }
    75% { transform: translate(-2px, 1px); }
}

/* Desk workers section */
.desk-workers {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 500px;
    margin: 0 auto;
}

.desk-worker {
    position: absolute;
    width: 50%;
    height: auto;
    object-fit: contain;
}

/* Position desk workers in a 2x2 grid pattern with depth */
.desk-worker-1 {
    top: 5%;
    left: 38%;    
    animation: deskRise 5s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    animation-delay: .8s;
    transform: translateY(5%) scale(.9);
    opacity: .2;
}

.desk-worker-2 {
    top: 25%;
    left: 0%;
    animation: deskRise 5s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    animation-delay: 0.4s;
    transform: translateY(5%) scale(.9);
    opacity: .2;
}

.desk-worker-3 {
    bottom: 29%;
    left: 61%;
    animation: deskRise 5s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    animation-delay: 1.2s;
    transform: translateY(5%) scale(.9);
    opacity: .2;
}

.desk-worker-4 {
    bottom: 10%;
    left: 25%;

}

/* Desk rise animation with bump at the top */
@keyframes deskRise {
    /* Start: down and invisible */
    0% {
        transform: translateY(5%) scale(.9);
        opacity: .2;
    }
    
    /* Rise up to visible */
    10% {
        transform: translateY(0) scale(1);
        opacity: 2;
    }
    
    /* Hold at top */
    40% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    
    /* Start going down */
    50% {
        transform: translateY(5%) scale(.9);
        opacity: .2;
    }
    
    /* Stay down for the rest of the cycle while others animate */
    100% {
        transform: translateY(5%) scale(.9);
        opacity: .2;
    }
}

/* ===========================
   Work Desktop Columns Layout
   =========================== */
.work-columns-desktop {
    display: none; /* Hidden by default, shown on desktop */
    width: 1200px;
    max-width: 90vw;
    margin: 3rem auto 0;
    gap: 4rem;
}

.work-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
}

.work-column-visual {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px; /* Fixed height for all columns on desktop */
    margin-bottom: 2rem;
}

/* Desktop layout - ensure all visuals are same height */
@media (min-width: 1024px) {
    .work-column-visual {
        height: 300px;
    }
    
    .work-column-visual .com-icons {
        height: 100%;
        max-height: 300px;
    }
}

.work-column-visual img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.work-column-visual img[src*="dollar"] {
    max-width: 200px;
    width: 100%;
}

/* Task Checklist Animation */
.task-checklist {
    width: 100%;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto;
}

.task-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.task-checkbox {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    background: #0800af;
    border: 3px solid #fff;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
}

/* Animations only trigger when .animate class is added */
.task-checklist.animate .task-row-1 .task-checkbox {
    animation: taskCheck 0.5s ease-out 0.5s forwards;
}

.task-checklist.animate .task-row-2 .task-checkbox {
    animation: taskCheck 0.5s ease-out 1.5s forwards;
}

.task-checklist.animate .task-row-3 .task-checkbox {
    animation: taskCheck 0.5s ease-out 2.5s forwards;
}

/* Checkmark using pseudo-element */
.task-checkbox::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 18px;
    height: 26px;
    border: solid #fff;
    border-width: 0 4px 4px 0;
    transform: translate(-50%, -55%) rotate(45deg) scale(0);
    opacity: 0;
}

.task-checklist.animate .task-row-1 .task-checkbox::after {
    animation: checkmarkAppear 0.3s ease-out 0.8s forwards;
}

.task-checklist.animate .task-row-2 .task-checkbox::after {
    animation: checkmarkAppear 0.3s ease-out 1.8s forwards;
}

.task-checklist.animate .task-row-3 .task-checkbox::after {
    animation: checkmarkAppear 0.3s ease-out 2.8s forwards;
}

.task-title {
    flex: 1;
    height: 32px;
    background: #0800af;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

/* Task animations */
@keyframes taskCheck {
    0% {
        background: #0800af;
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        background: #00D26A;
        border-color: #00D26A;
        transform: scale(1);
    }
}

@keyframes checkmarkAppear {
    0% {
        transform: translate(-50%, -55%) rotate(45deg) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -55%) rotate(45deg) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -55%) rotate(45deg) scale(1);
        opacity: 1;
    }
}

/* Responsive sizing for mobile */
@media (max-width: 768px) {
    .task-checklist {
        max-width: 200px;
        gap: 1.2rem;
    }
    
    .task-checkbox {
        width: 38px;
        height: 38px;
    }
    
    .task-checkbox::after {
        width: 14px;
        height: 22px;
        border-width: 0 3px 3px 0;
    }
    
    .task-title {
        height: 18px;
    }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .task-checkbox {
        background: #00D26A;
        border-color: #00D26A;
        animation: none;
    }
    
    .task-checkbox::after {
        transform: translate(-50%, -55%) rotate(45deg) scale(1);
        opacity: 1;
        animation: none;
    }
}

.work-column-visual .com-icons {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Keep desk-workers square to maintain isometric grid positioning */
.work-column-visual .desk-workers {
    width: 300px;
    height: 300px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    position: relative;
}

.work-column-text {
    width: 100%;
}

.work-column-text .highlight {
    display: inline-block;
}

.work-column-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.work-column-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Desktop layout - show columns, hide carousel */
@media (min-width: 1024px) {
    .work-columns-desktop {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .work-carousel {
        display: none;
    }
}

/* Wider screens - allow columns to grow */
@media (min-width: 1400px) {
    .work-columns-desktop {
        width: 1400px;
        max-width: 90vw;
    }
}

@media (min-width: 1600px) {
    .work-columns-desktop {
        width: 1600px;
        max-width: 90vw;
    }
}

/* ===========================
   Work Carousel Styles (Mobile)
   =========================== */
.work-carousel {
    position: relative;
    width: 1200px;
    max-width: 100%;
    margin: 3rem auto 0;
    padding: 0 60px;
}

.work-carousel .carousel-container {
    overflow: hidden;
    border-radius: 16px;
}

.work-carousel .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.work-carousel .carousel-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.work-carousel .carousel-slide.active {
    opacity: 1;
}

.work-carousel .carousel-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.work-carousel .carousel-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
    overflow: visible;
}

.work-carousel .carousel-visual .com-icons,
.work-carousel .carousel-visual .desk-workers {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.work-carousel .carousel-text {
    flex: 1;
    text-align: center;
}

.work-carousel .carousel-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.work-carousel .carousel-text p {
    font-size: 1.125rem;
    line-height: 1.6;
}

.quotesymbol {
    position: absolute;
    opacity: 0.15;
    width: 150px;
    height: auto;
    max-width: 100%;
}

.quotesymbol:first-child {
    left: 10%;
    top: 10%;
}

.quotesymbol:nth-child(2) {
    right: 10%;
    bottom: 10%;
}

/* Smaller size on mobile */
@media (max-width: 768px) {
    .quotesymbol {
        width: 100px;
        opacity: 0.1;
    }
}
/* Carousel Navigation Buttons - scoped to work carousel */
.work-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--color-primary);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.work-carousel .carousel-btn:hover {
    background: var(--color-yellow-500);
}

.work-carousel .carousel-btn-prev {
    left: 0;
}

.work-carousel .carousel-btn-next {
    right: 0;
}

/* Carousel Dots - scoped to work carousel */
.work-carousel .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.work-carousel .carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff; 
    opacity: 0.5;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.work-carousel .carousel-dot:hover {
    opacity: .6;
}

.work-carousel .carousel-dot.active {
    width: 32px;
    border-radius: 6px;
    opacity: 1;
}

/* Mobile - show carousel, hide desktop columns */
@media (max-width: 1023px) {
    .work-columns-desktop {
        display: none;
    }
    
    .work-carousel {
        display: block;
    }
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .work-carousel {
        padding: 0 40px;
    }
    
    .work-carousel .carousel-content {
        flex-direction: column;
        gap: 2rem;
    }
    .work-carousel .carousel-btn {
        width: 40px;
        height: 40px;
        top: 100%;
        transform: translateY(-75%);
        background: none;
        color: #fff;
    }
    .work-carousel .carousel-btn:hover {
        color: #000;
    }
    .work-carousel .carousel-visual {
        min-height: 300px;
        width: 100%;
        overflow: visible;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .work-carousel .carousel-visual .com-icons,
    .work-carousel .carousel-visual .desk-workers {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block;
        visibility: visible;
        opacity: 1;
    }
    
    .work-carousel .carousel-text {
        text-align: center;
    }
    
    .work-carousel .carousel-text h3 {
        font-size: 1.5rem;
    }
    
    .work-carousel .carousel-text p {
        font-size: 1rem;
    }
}

/* ===========================
   Reviews Desktop Columns Layout
   =========================== */
.reviews-columns-desktop {
    display: none; /* Hidden by default, shown on desktop */
    width: 1200px;
    max-width: 90vw;
    margin: 3rem auto 0;
    gap: 2rem;
}

.review-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.review-column-text {
    width: 100%;
}

.review-stars {
    font-size: 1.5rem;
    color: #FFB700;
    margin-bottom: 1rem;
    line-height: 1;
}

.review-column-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-column-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.review-column-text .review-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.review-column-text .review-content p {
    margin-bottom: 1rem;
}

.review-column-text .review-content p:last-child {
    margin-bottom: 0;
}

.review-column-text .review-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0;
}

.review-column-text .review-author-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Desktop layout - show columns, hide carousel */
@media (min-width: 1024px) {
    .reviews-columns-desktop {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .reviews-carousel {
        display: none;
    }
}

/* Wider screens - allow columns to grow */
@media (min-width: 1400px) {
    .reviews-columns-desktop {
        width: 1400px;
        max-width: 90vw;
    }
}

@media (min-width: 1600px) {
    .reviews-columns-desktop {
        width: 1600px;
        max-width: 90vw;
    }
}

/* ===========================
   Reviews Carousel Styles (Mobile)
   =========================== */

#bt-reviews {  
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-carousel {
    position: relative;
    width: 1200px;
    max-width: 100%;
    margin: 3rem auto 0;
    padding: 0 60px;
}

.reviews-carousel .carousel-container {
    overflow: hidden;
    border-radius: 16px;
}

.reviews-carousel .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.reviews-carousel .carousel-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.reviews-carousel .carousel-slide.active {
    opacity: 1;
}

.reviews-carousel .carousel-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.reviews-carousel .carousel-text {
    flex: 1;
}

.reviews-carousel .carousel-text .review-stars {
    font-size: 2rem;
    color: #FFB700;
    margin-bottom: 1rem;
    line-height: 1;
    text-align: center;
}

.reviews-carousel .carousel-text h3 {
    font-size: 2rem;
    margin: 0 auto 1rem auto;
    font-weight: 700;
}

.review-content {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: left;
}

.review-content p {
    margin-bottom: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.review-author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.review-author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
}

.review-author-name {
    font-size: 1.125rem;
    font-weight: 600;
}

.review-author-title {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Reviews Carousel Navigation Buttons */
.reviews-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--color-primary);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.reviews-carousel .carousel-btn:hover {
    background: var(--color-yellow-500);
}

.reviews-carousel .carousel-btn-prev {
    left: 0;
}

.reviews-carousel .carousel-btn-next {
    right: 0;
}

/* Reviews Carousel Dots */
.reviews-carousel .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}

.reviews-carousel .carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff; 
    opacity: 0.5;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.reviews-carousel .carousel-dot:hover {
    opacity: .6;
}

.reviews-carousel .carousel-dot.active {
    width: 32px;
    border-radius: 6px;
    opacity: 1;
}

/* Mobile - show carousel, hide desktop columns */
@media (max-width: 1023px) {
    .reviews-columns-desktop {
        display: none;
    }
    
    .reviews-carousel {
        display: block;
    }
}

/* Responsive Reviews Carousel */
@media (max-width: 768px) {
    .reviews-carousel {
        padding: 0 40px;
    }
    
    .reviews-carousel .carousel-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .reviews-carousel .carousel-text {
        text-align: center;
    }
    
    .reviews-carousel .carousel-text h3 {
        font-size: 1.5rem;
    }
    
    .review-content {
        font-size: 1rem;
        text-align: left;
    }

    .reviews-carousel .carousel-btn {
        top: 100%;
        transform: translateY(-75%);
        background: none;
        color: #fff;
    }
    .reviews-carousel .carousel-btn:hover {
        color: #000;
    }
    
    .review-author {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }
    
    .review-author-image {
        width: 60px;
        height: 60px;
    }
    
    .reviews-carousel .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

/* What We Do Section with Arrows */
.what-we-do-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#arrow-line-left,
#arrow-line-right {
    position: absolute;
    top: -20px;
    left: -200px;
    width: 500px;
    height: 18px;
    background: linear-gradient(to right, #FFB700, #FFB70000);
    opacity: .8;
    transform: rotate(-45deg);
    transform-origin: top right;
}

#arrow-line-right {
    left: auto;
    right: -200px;
    bottom: -20px;
    top: auto;
    transform: rotate(-45deg);
    transform-origin: bottom left;
    background: linear-gradient(to left, #FFB700, #FFB70000);
}

.what-we-do-content {
    text-align: center;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.what-we-do-content h2 {
    margin-bottom: 1rem;
}

.what-we-do-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.what-we-do-content p {
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Arrow Banners */
.arrow-banner-left,
.arrow-banner-right {
    position: absolute;
    top: 50%;
    height: 180px;
    display: flex;
    align-items: center;
}

.arrow-banner-left {
    left: 0;
    right: 80%;
    justify-content: flex-end;
    opacity: 0;
    transform: translateX(-100%);
}

.arrow-banner-left.animate {
    animation: slideInFromLeft 1s ease-out forwards;
}

.arrow-banner-right {
    right: 0;
    left: 80%;
    justify-content: flex-start;
    opacity: 0;
    transform: translateX(100%);
}

.arrow-banner-right.animate {
    animation: slideInFromRight 1s ease-out forwards;
}

.arrow-img {
    height: 100%;
    width: auto;
    position: relative;
    z-index: 10;
}

/* Right arrow's centerline extending to the left */
.arrow-banner-right::before,
.arrow-banner-left::after {
    content: '';
    position: absolute;
    right: 0;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    background-color: #FFB700;
    z-index: -1;
    border-radius: 20px 0 0 20px;
}
.arrow-banner-left::after {
    border-radius: 0 20px 20px 0;
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    min-height: 200px; /* Prevent layout shift while loading */
    justify-content: center; /* Center rows: Key for centering final row */
}

/* Center orphaned last item in a 3-column grid */
.services-grid .service-card:last-child:nth-child(3n+1) {
    grid-column: 2;
}

/* For 4 items specifically (4th item should be centered) */
.services-grid .service-card:nth-child(4):last-child {
    grid-column: 2;
}

@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        justify-content: center; /* Also center at these breakpoints */
    }
    
    /* Reset grid-column for responsive layouts */
    .services-grid .service-card:last-child:nth-child(3n+1),
    .services-grid .service-card:nth-child(4):last-child {
        grid-column: auto;
    }
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: white;
    transition: 0.3s ease;
    border: 3px solid #00000022;
    border-radius: 10px;
}

.service-card:hover {
    color: #fff;
    transform: translateY(-5px);
    border: 3px solid #fff;
}

.service-card .service-icon-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .service-icon-container svg {
    width: 70px;
    height: 70px;
}

.service-card .service-title {
    font-size: .8rem;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.bt-venn {
    display: none;
}

/* Mobile Responsive for What We Do Section */
@media (max-width: 960px) {
    .bt-venn {
        display: block;
        margin: 0 auto 2rem auto;
        width: 320px;
        max-width: 100%;
    }
    #what-we-do {
        position: relative;
    }
    .arrow-banner-left,
    .arrow-banner-right,
    #arrow-line-left, 
    #arrow-line-right {
        display: none;
    }
}

/* Mobile Responsive for What We Do Section */
@media (max-width: 768px) {
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    /* Reset grid-column for single column layout */
    .services-grid .service-card:last-child:nth-child(3n+1),
    .services-grid .service-card:nth-child(4):last-child {
        grid-column: auto;
    }

    .what-we-do-content {
        text-align: left;
    }
    
    .what-we-do-content p {
        margin-bottom: 5rem;
    }

}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .speed-line {
        animation: none;
        opacity: 0.3;
    }
    
    .team-scroll-track {
        animation: none;
    }
    
    .com-icon {
        animation: none;
    }
    
    .desk-worker {
        animation: none;
        transform: translateY(0);
        opacity: 1;
    }
    
    .arrow-svg {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .arrow-banner-left,
    .arrow-banner-right {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .arrow-banner-left::after,
    .arrow-banner-right::before {
        animation: none;
    }
    
    /* Disable fade-in animations for slogan */
    .slogan-main,
    .slogan-sub,
    .slogan-keywords,
    .slogan-handwritten,
    .slogan .btn {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
