/* BX Landing Page Styles */

:root {
    --bx-bg-color: #000000;
    /* Updated to true black */
    --bx-text-color: #ffffff;
    --bx-accent-color: #ff2020;
    /* Updated to Red */
    --bx-font-main: 'Fira Sans', sans-serif;
}

body.page-template-template-bx-landing {
    background-color: var(--bx-bg-color);
    color: var(--bx-text-color);
    font-family: var(--bx-font-main);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Hide default header/footer if desired, or style them to blend */
/* Taking a cue that this is a landing page, we might want minimal nav */

/* --- General Utilities --- */
.bx-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* Reduced padding */
    box-sizing: border-box;
    overflow: hidden;
}

/* Unified accent styles from root */
.bx-accent {
    color: var(--bx-accent-color) !important;
}

.bx-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* --- Hero Section --- */
.bx-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    perspective: 1000px;
    overflow: hidden;
}

.bx-hero-title {
    font-size: clamp(5rem, 15vw, 15rem);
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
    z-index: 100;
    position: relative;
    letter-spacing: -0.02em;
    width: 100%;
    margin: 0;
}

.bx-floating-card {
    position: absolute;
    width: 200px;
    height: 140px;
    /* Smaller base size */
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    z-index: 1;
    opacity: 0.6;
    filter: blur(3px);
    will-change: transform;
    backface-visibility: hidden;
}

/* Spread positions for full screen */
.card-tl {
    top: -10%;
    left: -5%;
    width: 250px;
    height: 180px;
}

.card-tr {
    top: 0%;
    right: -5%;
    width: 220px;
    height: 160px;
}

.card-bl {
    bottom: 0%;
    left: 0%;
    width: 220px;
    height: 160px;
    z-index: 5;
}

.card-br {
    bottom: -10%;
    right: -5%;
    width: 300px;
    height: 220px;
}

.card-c1 {
    top: 15%;
    left: 15%;
    width: 180px;
    height: 120px;
    opacity: 0.5;
    filter: blur(5px);
}

.card-c2 {
    bottom: 25%;
    right: 20%;
    width: 200px;
    height: 140px;
    opacity: 0.5;
    filter: blur(4px);
}

/* New Extra Cards - Evenly Distributed */
.card-extra1 {
    top: 10%;
    right: 40%;
    width: 150px;
    height: 100px;
    opacity: 0.5;
    filter: blur(6px);
    transform: rotate(5deg);
}

.card-extra2 {
    top: 40%;
    left: 8%;
    width: 140px;
    height: 90px;
    opacity: 0.5;
    filter: blur(5px);
}

.card-extra3 {
    bottom: 30%;
    right: 15%;
    width: 160px;
    height: 110px;
    opacity: 0.4;
    filter: blur(4px);
}

.card-extra4 {
    bottom: 10%;
    left: 35%;
    width: 150px;
    height: 100px;
    opacity: 0.5;
    transform: rotate(-5deg);
    filter: blur(3px);
}

/* Mobile Optimizations for Hero */
@media (max-width: 768px) {
    .bx-hero-title {
        font-size: clamp(3rem, 15vw, 5rem);
        padding: 0 10px;
    }

    .bx-floating-card {
        width: 35vw;
        /* Relative width for mobile */
        height: 25vw;
        filter: blur(2px);
        /* Less blur on small screens */
    }

    /* Reposition key cards for mobile portrait */
    .card-tl {
        top: 5%;
        left: 5%;
        width: 40vw;
        height: 30vw;
    }

    .card-tr {
        top: 8%;
        right: 5%;
        width: 35vw;
        height: 25vw;
    }

    .card-bl {
        bottom: 10%;
        left: 5%;
        width: 40vw;
        height: 30vw;
    }

    .card-br {
        bottom: 5%;
        right: 5%;
        width: 45vw;
        height: 35vw;
    }

    .card-c1 {
        top: 30%;
        left: -10%;
        width: 30vw;
        height: 20vw;
        opacity: 0.3;
    }

    /* Edge abstract */
    .card-c2 {
        bottom: 35%;
        right: -10%;
        width: 30vw;
        height: 20vw;
        opacity: 0.3;
    }

    /* Hide excessive density on mobile */
    .card-extra1,
    .card-extra2,
    .card-extra3,
    .card-extra4,
    .card-extra5,
    .card-extra6,
    .card-extra7,
    .card-extra8,
    .card-extra9,
    .card-extra10,
    .card-extra11,
    .card-extra12 {
        display: none;
    }

    /* Show just a couple of extras for texture */
    .card-extra1 {
        display: block;
        top: 45%;
        left: 50%;
        transform: translateX(-50%);
        width: 30vw;
        height: 20vw;
        opacity: 0.2;
    }
}

/* --- Portfolio Hero Section --- */
.bx-portfolio-hero {
    background-color: var(--bx-bg-color);
    position: relative;
    z-index: 10;
    min-height: 80vh;
}

.bx-portfolio-bg-image {
    position: absolute;
    top: -10%;
    /* Offset for parallax */
    left: 0;
    width: 100%;
    height: 120%;
    /* Larger than container for parallax */
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
}

.bx-portfolio-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0.8) 15%,
            rgba(0, 0, 0, 0.8) 85%,
            rgba(0, 0, 0, 1) 100%);
}

.bx-portfolio-title {
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
    letter-spacing: -0.02em;
}

.bx-cta-button {
    background-color: transparent;
    color: white;
    border: 2px solid #555;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    /* Pill shape from screenshot */
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 10;
}

.bx-dot {
    color: #ff2020 !important;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

.bx-cta-button:hover {
    background-color: white;
    color: black;
    border-color: white;
}

/* --- Clients Hero Section --- */
.bx-clients-hero {
    background-color: var(--bx-bg-color);
    position: relative;
    z-index: 10;
    min-height: 80vh;
    /* Decreased from 100vh */
}

.bx-clients-bg-image {
    position: absolute;
    top: -10%;
    /* Offset for parallax */
    left: 0;
    width: 100%;
    height: 120%;
    /* Larger than container for parallax */
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
}

.bx-clients-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.8;
    /* 80% opacity black overlay */
}

/* Mobile Adjustments for Portfolio/Clients */
@media (max-width: 768px) {

    .bx-portfolio-hero,
    .bx-clients-hero {
        min-height: 60vh;
        /* Decreased for mobile portrait */
    }
}

.bx-clients-title {
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
    letter-spacing: -0.02em;
}

.bx-clients-link:hover {
    border-color: white;
}

/* --- Video Modal / Lightbox --- */
.bx-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bx-modal.active {
    display: flex;
    opacity: 1;
}

.bx-modal-content {
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: black;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
}

.bx-modal-close {
    position: absolute;
    top: 40px;
    right: 50px;
    color: white;
    font-size: 60px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s;
    z-index: 10000;
}

.bx-modal-close:hover {
    transform: scale(1.1);
    color: var(--bx-accent-color);
}

#bx-video-container {
    width: 100%;
    height: 100%;
}

#bx-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}



/* --- About You Section --- */
.bx-about-black {
    background-color: #000;
    color: white;
    padding: 120px 0 80px;
    min-height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.bx-about-image-wrapper {
    position: relative;
    width: 100%;
    height: 50vh;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0;
}

.bx-about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bx-about-overlay-text {
    position: absolute;
    bottom: -0.11em;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(4rem, 13.5vw, 13.5rem);
    font-weight: 900;
    color: black;
    line-height: 0.8;
    margin: 0;
    text-transform: uppercase;
    z-index: 2;
    white-space: nowrap;
}

.bx-about-logo {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2;
    width: 120px;
}

.bx-about-logo img {
    width: 100%;
    height: auto;
}

.bx-about-main-title {
    font-size: clamp(4rem, 13vw, 13rem);
    font-weight: 900;
    line-height: 0.85;
    text-transform: uppercase;
    color: white;
    margin: 0;
    position: relative;
    z-index: 3;
    text-align: center;
}

/* About Grid Styles */
.bx-about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.bx-about-col {
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0;
    /* Changed for GSAP animation */
    transform: translateY(20px);
}

@media (max-width: 768px) {
    .bx-about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px;
        text-align: center;
    }
}



.bx-services-section {
    background-color: #000;
    color: white;
    padding: 140px 0 40px;
    min-height: auto !important;
}

.bx-services-container {
    max-width: 1240px !important;
    /* ~65% of large screen */
    width: 90%;
    margin: 0 auto;
}

.bx-services-heading {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 110px;
    line-height: 1.1;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-transform: none;
}

.bx-services-heading .bx-accent {
    color: var(--bx-accent-color) !important;
}

/* Match the pink dot from live site */

.bx-services-list {
    width: 100%;
}

.bx-service-row {
    display: grid;
    grid-template-columns: 0.8fr 0.9fr 1fr;
    /* Close to 30/32/38 split */
    gap: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 70px 0;
    align-items: flex-start;
}

.bx-service-row:last-child {
    border-bottom: none;
}

.bx-service-name {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.2;
}

.bx-service-desc {
    font-size: 1.1rem;
    line-height: 1.55;
    color: #ffffff;
    opacity: 0.9;
}

.bx-service-image-col {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16 / 9;
}

.bx-service-image-parallax {
    width: 100%;
    height: 120%;
    /* For parallax internally */
    position: absolute;
    top: -10%;
    left: 0;
}

.bx-service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    /* Animated with GSAP */
}

@media (max-width: 991px) {
    .bx-service-row {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .bx-service-image-col {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bx-services-section {
        padding: 80px 0 40px;
    }

    .bx-service-row {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }

    .bx-service-image-col {
        grid-column: span 1;
    }

    .bx-services-heading {
        font-size: 2.25rem;
        margin-bottom: 60px;
    }
}

/* Our Expertise Section */
.bx-expertise-section {
    background-color: #000;
    padding: 40px 0 0;
    overflow: hidden;
    min-height: auto;
}

.bx-expertise-title {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 80px;
    color: #fff;
    text-transform: none;
    letter-spacing: -0.01em;
}

.bx-marquee-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-bottom: 120px;
}

.bx-marquee {
    width: 100%;
    overflow: hidden;
    user-select: none;
    display: flex;
}

.bx-marquee-content {
    display: flex;
    gap: 30px;
    flex-shrink: 0;
    width: max-content;
}

.bx-marquee-content img {
    height: 220px;
    width: auto;
    object-fit: cover;
    border-radius: 24px;
    opacity: 0.9;
    transition: filter 0.3s ease;
    flex-shrink: 0;
}

.bx-marquee-content img:hover {
    filter: grayscale(1);
    /* No zoom, just B&W */
}

/* Animation Loops - Using 33.333% because items are tripled */
.bx-marquee-ltr .bx-marquee-content {
    animation: marquee-move-right 60s linear infinite;
}

.bx-marquee-rtl .bx-marquee-content {
    animation: marquee-move-left 60s linear infinite;
}

/* Ensure container has height */
.bx-marquee {
    min-height: 220px;
}

@media (max-width: 768px) {
    .bx-marquee {
        min-height: 120px;
    }
}

.bx-marquee-content {
    will-change: transform;
    backface-visibility: hidden;
}

@keyframes marquee-move-right {
    0% {
        transform: translateX(-33.3333%);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes marquee-move-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.3333%);
    }
}

/* --- CTA Form Section --- */
.bx-cta-form-section {
    background-color: #000;
    padding: 80px 0 150px;
    /* Reduced top padding, kept bottom */
    min-height: auto;
}

.bx-cta-container {
    max-width: 800px;
    /* Reduced width for focus */
    margin: 0 auto;
}

.bx-cta-main-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    color: #fff;
    text-transform: none;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.bx-form-wrapper {
    width: 100%;
}

.bx-contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bx-form-row {
    display: flex;
    gap: 30px;
}

.bx-row-halves .bx-field-group {
    width: 50%;
}

.bx-field-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.bx-field-group label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    font-weight: 500;
}

.bx-field-group .bx-required {
    color: var(--bx-accent-color);
    margin-left: 2px;
}

.bx-field-group input,
.bx-field-group select {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 10px 0;
    font-size: 1.1rem;
    font-family: var(--bx-font-main);
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}

.bx-field-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.bx-field-group input:focus,
.bx-field-group select:focus {
    border-bottom-color: #fff;
}

/* Custom Select Arrow */
.bx-select-wrapper {
    position: relative;
    width: 100%;
}

.bx-select-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.bx-field-group select option {
    background-color: #000;
    color: #fff;
    padding: 10px;
}

.bx-form-submit {
    margin-top: 20px;
    text-align: center;
    /* Center the button */
}

/* Update Button to match Page Style (Pill, Transparent/Border) */
.bx-submit-btn {
    background-color: transparent;
    color: white;
    border: 2px solid #555;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    /* Pill Shape */
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.bx-submit-btn:hover {
    background-color: white;
    color: black;
    border-color: white;
    transform: translateY(-2px);
}

.bx-form-feedback {
    margin-top: 20px;
    font-size: 0.9rem;
    min-height: 20px;
}

.bx-feedback-error {
    color: var(--bx-accent-color);
}

.bx-form-success {
    text-align: center;
    padding: 60px 0;
    animation: fadeIn 0.5s ease;
}

.bx-form-success h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.bx-form-success p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.7);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@media (max-width: 768px) {
    .bx-cta-form-section {
        padding: 100px 20px;
    }

    .bx-cta-main-title {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }

    .bx-form-row {
        flex-direction: column;
        gap: 20px;
    }

    .bx-row-halves .bx-field-group {
        width: 100%;
    }
}

@keyframes marquee-rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.3333%);
    }
}

@media (max-width: 991px) {
    .bx-marquee-content img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .bx-expertise-section {
        padding: 20px 0 0;
    }

    .bx-marquee-content {
        gap: 15px;
    }

    .bx-marquee-content img {
        height: 120px;
        border-radius: 16px;
    }

    .bx-expertise-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}