:root {
    --brand-blue: #2563eb;
    --brand-charcoal: #121212;
    --brand-cream: #f8f9fa;
}

html {
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--brand-cream);
    color: var(--brand-charcoal);
    overflow-x: hidden;
}

/* --- Custom CoLabs Style Navbar --- */
.nav-wrapper {
    position: sticky;
    top: 1.5rem;
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 200;
    display: flex;
    align-items: center;
}

.logo-section {
    background: #fff;
    padding: 1rem 2rem;
    border-radius: 100px 0 0 100px;
    border: 2px solid var(--brand-charcoal);
    border-right: none;
    display: flex;
    align-items: center;
    height: 64px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
}

.menu-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0 2.5rem;
    border-radius: 0 100px 100px 0;
    border: 2px solid var(--brand-charcoal);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 64px;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-left: 2.5rem;
    color: var(--brand-charcoal);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--brand-blue);
}

.nav-link.is-active {
    color: var(--brand-blue);
}

.nav-page-indicator {
    margin-left: 1.25rem;
    padding-left: 1.25rem;
    border-left: 2px solid rgba(18, 18, 18, 0.15);
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-blue);
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    width: 64px;
    height: 64px;
    border: 2px solid var(--brand-charcoal);
    border-left: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 100px 100px 0;
    align-items: center;
    justify-content: center;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brand-charcoal);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
}

.nav-toggle-icon {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-label {
    display: block;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--brand-charcoal);
    transition: transform 0.25s ease, opacity 0.25s ease;
    border-radius: 99px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mobile-menu-panel {
    display: none;
    width: 100%;
    max-width: 100vw;
}

/* --- Right-Angled Content Components --- */
.sharp-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s ease;
    border: 2px solid var(--brand-charcoal);
    background: var(--brand-charcoal);
    color: #fff;
}

.sharp-btn:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
}

/* Rotating fill hover effect for hero CTAs */
.spin-fill-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.spin-fill-btn::before {
    content: "";
    position: absolute;
    inset: -140% -40%;
    background: var(--brand-blue);
    transform: rotate(-30deg) scale(0);
    transform-origin: center;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.spin-fill-btn:hover::before {
    transform: rotate(0deg) scale(1);
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 80px;
    line-height: 0.8;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.hero-subheadline {
    font-size: 20px;
    line-height: 1.1;
}

.hero-cta {
    font-size: 16px;
}

.hero-cta--primary {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.hero-cta--secondary {
    background: transparent;
    color: var(--brand-charcoal);
}

.hero-badge {
    font-size: 12px;
}

/* --- Work List (Snellenberg Style) --- */
.work-list-container {
    border-top: 2px solid var(--brand-charcoal);
}

.work-item {
    position: relative;
    padding: 4rem 0;
    border-bottom: 2px solid var(--brand-charcoal);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    transition: padding 0.4s ease;
}

.work-item:hover {
    padding-left: 2rem;
    padding-right: 2rem;
    color: var(--brand-blue);
}

.work-item h4 {
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    line-height: 1;
    transition: transform 0.4s ease;
}

.work-category {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.work-section-label {
    font-family: 'Inter', sans-serif;
}

.work-mobile-preview {
    display: none;
}

.work-mobile-body {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.work-mobile-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.work-mobile-year {
    display: none;
}

/* Floating Image Preview */
#hover-preview {
    position: fixed;
    width: 400px;
    height: 250px;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
    display: none;
    border: 4px solid var(--brand-charcoal);
    background: var(--brand-charcoal);
}

#hover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card {
    background: #ffffff;
    border: 2px solid var(--brand-charcoal);
    padding: 3rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.solution-card-featured {
    background: var(--brand-charcoal);
    color: #fff;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
    border-color: var(--brand-blue);
}

/* Services CTA buttons: clearer hierarchy and accessible interaction states */
.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    border: 2px solid var(--brand-charcoal);
    background: #fff;
    color: var(--brand-charcoal);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.service-btn:hover {
    transform: translateY(-2px);
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.service-btn:focus-visible {
    outline: 3px solid rgba(59, 66, 255, 0.35);
    outline-offset: 2px;
}

.service-btn--featured {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.9);
    color: #fff;
}

.service-btn--featured:hover {
    background: #fff;
    border-color: #fff;
    color: var(--brand-charcoal);
}

/* --- Why Us Section Styles --- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    border-top: 2px solid var(--brand-charcoal);
    border-left: 2px solid var(--brand-charcoal);
}

@media (min-width: 768px) {
    .why-us-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.why-us-item {
    border-right: 2px solid var(--brand-charcoal);
    border-bottom: 2px solid var(--brand-charcoal);
    padding: 4rem 3rem;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    background: #fff;
    position: relative;
    overflow: hidden;
}

.why-us-item:hover {
    background: var(--brand-blue);
    color: #fff;
}

.why-us-item:hover .item-num {
    color: rgba(255, 255, 255, 0.2);
}

.item-num {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 5rem;
    line-height: 1;
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: 2rem;
    right: 2rem;
    transition: color 0.4s ease;
}

.marquee {
    white-space: nowrap;
    overflow: hidden;
    background: var(--brand-charcoal);
    color: #fff;
    padding: 1.5rem 0;
    border-top: 2px solid var(--brand-blue);
    border-bottom: 2px solid var(--brand-blue);
}

.marquee-content {
    display: inline-flex;
    width: max-content;
    animation: marquee 30s linear infinite;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.7rem;
}

.marquee-segment {
    flex-shrink: 0;
    padding-right: 3rem;
}

.footer-meta-line {
    max-width: min(100%, 28rem);
    text-wrap: balance;
}

.footer-email {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 0.95;
}

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

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

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(37, 99, 235, 0.2);
    animation: scan 4s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0% {
        top: 0%;
    }

    100% {
        top: 100%;
    }
}

/* --- Testimonial Scroll Animation --- */
.testimonial-marquee {
    overflow: hidden;
    padding: 4rem 0;
    white-space: nowrap;
    position: relative;
}

.testimonial-track {
    display: inline-flex;
    width: max-content;
    animation: scroll-left 40s linear infinite;
    gap: 2rem;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

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

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

.testimonial-card-v2 {
    flex-shrink: 0;
    width: 450px;
    background: #fff;
    border: 2px solid var(--brand-charcoal);
    padding: 2.5rem;
    white-space: normal;
    transition: box-shadow 0.3s ease;
}

.testimonial-card-v2:hover {
    box-shadow: 10px 10px 0px var(--brand-blue);
}

@media (max-width: 767px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    #hero {
        padding-top: 9.5rem;
        padding-bottom: 3rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #hero .max-w-7xl {
        max-width: 375px;
    }

    #hero .hero-title {
        font-size: 42px;
        line-height: 0.9;
        margin-bottom: 1rem;
    }

    #hero .hero-subheadline {
        max-width: 32ch;
        text-transform: none;
        letter-spacing: -0.01em;
        line-height: 1.35;
        font-size: 1rem;
    }

    #hero .hero-badge {
        letter-spacing: 0.22em;
        margin-bottom: 1rem;
    }

    .hero-actions {
        width: 100%;
        gap: 0.75rem;
    }

    .hero-actions .hero-cta {
        width: 100%;
        min-height: 48px;
        font-size: 0.82rem;
        padding: 0.95rem 1rem !important;
    }

    #work,
    #solutions,
    #why-us,
    #testimonials,
    #faq,
    footer#contact {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #work,
    #solutions,
    #why-us,
    #testimonials,
    #faq {
        padding-top: 4.5rem;
        padding-bottom: 4.5rem;
    }

    footer#contact {
        padding-top: 4.5rem;
        padding-bottom: 2.5rem;
    }

    footer#contact .border-t > div {
        align-items: flex-start;
    }

    footer#contact .grid > div {
        min-width: 0;
    }

    footer#contact .footer-meta-line,
    footer#contact .text-right {
        text-align: left;
    }

    footer#contact .footer-meta-line {
        letter-spacing: 0.18em;
        max-width: 24rem;
        line-height: 1.5;
    }

    footer#contact .text-right {
        max-width: 100%;
    }

    .footer-email {
        font-size: clamp(1.5rem, 7vw, 2.75rem);
    }

    #testimonials .px-8 {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 1.5rem;
    }

    #testimonials .testimonial-card-v2 {
        width: min(88vw, 360px);
        padding: 1.5rem;
    }

    .marquee {
        margin-bottom: 2.5rem !important;
    }

    .marquee-content {
        letter-spacing: 0.22em;
        font-size: 0.62rem;
    }

    .nav-wrapper {
        position: sticky;
        top: 0.75rem;
        left: 0;
        transform: none;
        width: calc(100% - 1rem);
        margin: 0 auto;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .logo-section {
        flex: 1;
        border-radius: 999px 0 0 999px;
        min-width: 0;
        padding: 0.9rem 1.25rem;
    }

    .logo-section span:first-child {
        font-size: 0.78rem;
        letter-spacing: 0.08em;
    }

    .nav-toggle {
        display: inline-flex;
        border-radius: 0 999px 999px 0;
        width: 64px;
    }

    .menu-section {
        display: none;
        pointer-events: none;
    }

    .mobile-menu-panel {
        position: fixed;
        inset: 0;
        z-index: 180;
        display: block;
        background: rgba(248, 249, 250, 0.98);
        backdrop-filter: blur(8px);
        padding: 6.75rem 1rem 1.5rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .mobile-menu-shell {
        width: min(100%, 375px);
        height: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 2rem;
    }

    .mobile-menu-links {
        display: grid;
        gap: 0.8rem;
    }

    .mobile-menu-link {
        display: block;
        font-family: 'Inter', sans-serif;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: -0.02em;
        font-size: clamp(1.7rem, 8vw, 2.4rem);
        padding: 0.9rem 1rem;
        border: 2px solid var(--brand-charcoal);
        background: #fff;
        color: var(--brand-charcoal);
    }

    .mobile-menu-link.is-active {
        background: var(--brand-blue);
        color: #fff;
        border-color: var(--brand-blue);
    }

    .mobile-menu-link:active {
        background: var(--brand-blue);
        color: #fff;
        border-color: var(--brand-blue);
    }

    .mobile-menu-contact {
        border: 2px solid var(--brand-charcoal);
        background: #fff;
        padding: 1rem;
        display: grid;
        gap: 1rem;
    }

    .mobile-menu-email {
        font-size: 0.84rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .mobile-socials {
        display: grid;
        gap: 0.65rem;
    }

    .mobile-social-link {
        display: inline-flex;
        align-items: center;
        gap: 0;
        font-size: 0.75rem;
        font-weight: 800;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .mobile-social-link svg {
        display: none;
    }

    .nav-wrapper.is-open .mobile-menu-panel {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .nav-wrapper.is-open .nav-toggle {
        background: var(--brand-charcoal);
        border-color: var(--brand-charcoal);
    }

    .nav-wrapper.is-open .nav-toggle {
        color: #fff;
    }

    .nav-wrapper.is-open .nav-toggle-bar {
        background: #fff;
    }

    .nav-wrapper.is-open .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-wrapper.is-open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .nav-wrapper.is-open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-link {
        margin-left: 0;
        padding: 0.9rem 1rem;
        border: 2px solid rgba(18, 18, 18, 0.08);
        border-radius: 16px;
        background: #fff;
    }

    .nav-link.text-blue-600.border-l-2.border-gray-200.pl-8.ml-8 {
        border-left-width: 2px;
        margin-left: 0;
        padding-left: 1rem;
    }

    .nav-page-indicator {
        display: none;
    }

    .work-list-container {
        border-top: none;
        display: grid;
        gap: 1rem;
    }

    .hero-title {
        font-size: 42px;
        line-height: 0.9;
    }

    .hero-subheadline {
        font-size: 1rem;
        line-height: 1.35;
    }

    .hero-cta {
        font-size: 0.82rem;
    }

    .hero-badge {
        font-size: 12px;
    }

    #solutions {
        padding-left: 1rem;
        padding-right: 1rem;
        overflow-x: clip;
    }

    #solutions .grid {
        justify-items: center;
        gap: 1rem;
    }

    .solution-card,
    .solution-card-featured {
        width: min(100%, 375px);
        margin-inline: auto;
        padding: 1.5rem;
    }

    .solution-card p,
    .solution-card h4,
    .solution-card-featured p,
    .solution-card-featured h4 {
        overflow-wrap: anywhere;
    }

    .work-item {
        display: block;
        padding: 0;
        border: 2px solid var(--brand-charcoal);
        border-radius: 24px;
        background: #f8f9fa;
        box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.06);
        overflow: hidden;
        color: inherit;
        text-decoration: none;
    }

    .work-item:hover {
        padding-left: 0;
        padding-right: 0;
    }

    .work-item h4 {
        font-size: 2rem;
        margin-bottom: 0;
        line-height: 0.95;
        letter-spacing: -0.03em;
    }

    .work-mobile-preview {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 5;
        height: auto;
        object-fit: cover;
        border: 0;
        border-bottom: 2px solid var(--brand-charcoal);
        margin-bottom: 0;
    }

    .work-mobile-body {
        display: block;
        padding: 1.25rem;
    }

    .work-mobile-header {
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 0.85rem;
    }

    .work-mobile-year {
        display: inline-block;
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        opacity: 0.45;
        white-space: nowrap;
    }

    .work-category {
        display: block;
        font-size: 0.68rem;
        letter-spacing: 0.2em;
        opacity: 0.65;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(18, 18, 18, 0.12);
    }

    .work-section-label {
        font-size: 1.15rem;
        letter-spacing: 0.5em;
    }
}

body.menu-open {
    overflow: hidden;
}

/* --- FAQ --- */
.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-size: 1.25rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    color: #666;
    font-size: 0.9rem;
    padding-bottom: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding-bottom: 2rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* --- Footer Specifics --- */
.newsletter-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    width: 100%;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--brand-blue);
}