/*
Theme Name: 109 web platform theme
Theme URI: https://www.linkedin.com/in/bouazizi-med-achref/
Description: Custom WordPress theme for 109 Production.
Author: MAB
Author URI: https://www.linkedin.com/in/bouazizi-med-achref/
Version: 1.0.0
*/

/* Load General Sans from Fontshare */
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@200,300,400,500,600,700&display=swap');

/* Design Tokens & Variables */
:root {
    --color-dark: #0A0A0A;
    --color-light: #F9F4F4;
    --color-accent: #ff000d;

    --font-primary: 'General Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Dynamic viewport corner positions (recalculated on responsive viewports) */
    --corner-top: 112px;
    --corner-left: 40px;
    --corner-bottom: 40px;
}

/* Base Styles */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-dark);
    color: var(--color-light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Context Switching Utilities */
.theme-light {
    background-color: var(--color-light);
    color: var(--color-dark);
}

.theme-light h1,
.theme-light h2,
.theme-light h3,
.theme-light h4,
.theme-light h5,
.theme-light h6,
.theme-light .h1,
.theme-light .h2,
.theme-light .h3,
.theme-light .h4,
.theme-light .h5 {
    color: var(--color-dark);
}

.theme-light p,
.theme-light .paragraph {
    color: rgba(10, 10, 10, 0.8);
}

.theme-light .bracket-wrapper::before,
.theme-light .bracket-wrapper::after {
    border-color: var(--color-dark);
}

.theme-dark {
    background-color: var(--color-dark);
    color: var(--color-light);
}

.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark h4,
.theme-dark h5,
.theme-dark h6,
.theme-dark .h1,
.theme-dark .h2,
.theme-dark .h3,
.theme-dark .h4,
.theme-dark .h5 {
    color: var(--color-light);
}

.theme-dark p,
.theme-dark .paragraph {
    color: rgba(249, 244, 244, 0.8);
}

.theme-dark .bracket-wrapper::before,
.theme-dark .bracket-wrapper::after {
    border-color: var(--color-light);
}

.accent-text {
    color: var(--color-accent);
}

/* Typographic Scale */
h1,
.h1 {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 5rem);
    /* Responsive Header 01 */
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem 0;
    color: var(--color-light);
}

h2,
.h2 {
    font-family: var(--font-primary);
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    /* Responsive Header 02 */
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem 0;
    color: var(--color-light);
}

h3,
.h3 {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    /* Responsive Header 03 */
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.15;
    margin: 0 0 1rem 0;
    color: var(--color-light);
}

h4,
.h4 {
    font-family: var(--font-primary);
    font-size: clamp(1.35rem, 3vw, 1.875rem);
    /* Responsive Header 04 */
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 0.875rem 0;
    color: var(--color-light);
}

h5,
.h5 {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    /* Responsive Header 05 */
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.25;
    margin: 0 0 0.75rem 0;
    color: var(--color-light);
}

h6,
.h6 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0 0 0.75rem 0;
    color: var(--color-light);
}

.subtitle {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    display: inline-block;
}

p,
.paragraph {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(249, 244, 244, 0.8);
    margin: 0 0 1.5rem 0;
}

/* Buttons Component */
.btn,
.elementor-button {
    font-family: var(--font-primary) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 15px 30px !important;
    border-radius: 0px !important;
    border: 2px solid transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: var(--transition-smooth) !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

/* Button Variations - Solid Dark */
.btn-dark,
.btn-filled {
    background-color: var(--color-dark) !important;
    color: var(--color-light) !important;
    border-color: var(--color-dark) !important;
}

.btn-dark:hover,
.btn-filled:hover {
    background-color: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
    color: var(--color-light) !important;
}

/* Button Variations - Solid Accent */
.btn-accent {
    background-color: var(--color-accent) !important;
    color: var(--color-light) !important;
    border-color: var(--color-accent) !important;
}

.btn-accent:hover {
    background-color: var(--color-dark) !important;
    border-color: var(--color-dark) !important;
    color: var(--color-light) !important;
}

/* Swap style inside a light context for contrast */
.theme-light .btn-accent:hover {
    background-color: var(--color-light) !important;
    border-color: var(--color-dark) !important;
    color: var(--color-dark) !important;
}

/* Button Variations - Outline Light */
.btn-outline-light {
    background-color: transparent !important;
    color: var(--color-light) !important;
    border-color: var(--color-light) !important;
}

.btn-outline-light:hover {
    background-color: var(--color-light) !important;
    color: var(--color-dark) !important;
}

.theme-light .btn-outline-light {
    color: var(--color-dark) !important;
    border-color: var(--color-dark) !important;
}

.theme-light .btn-outline-light:hover {
    background-color: var(--color-dark) !important;
    color: var(--color-light) !important;
}

/* Button Variations - Outline Accent */
.btn-outline-accent {
    background-color: transparent !important;
    color: var(--color-accent) !important;
    border-color: var(--color-accent) !important;
}

.btn-outline-accent:hover {
    background-color: var(--color-accent) !important;
    color: var(--color-light) !important;
}

/* Geometric Layout Elements */

/* Brackets motif wrapper class */
.bracket-wrapper {
    position: relative;
    padding: 30px;
}

.bracket-wrapper::before,
.bracket-wrapper::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--color-light);
    border-style: solid;
    transition: var(--transition-smooth);
}

.bracket-wrapper::before {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
    /* Top-left bracket */
}

.bracket-wrapper::after {
    bottom: 0;
    right: 0;
    border-width: 0 2px 2px 0;
    /* Bottom-right bracket */
}

/* Custom Components */

/* Action Card Component */
.card-action {
    background-color: var(--color-light);
    color: var(--color-dark);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1 / 1;
    border-radius: 0px;
    border: 1px solid rgba(10, 10, 10, 0.1);
    transition: var(--transition-smooth);
    cursor: pointer;
    box-sizing: border-box;
}

.card-action:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.card-action .card-arrow {
    font-size: 2.25rem;
    line-height: 1;
    color: var(--color-dark);
    transition: var(--transition-smooth);
    align-self: flex-start;
}

.card-action:hover .card-arrow {
    color: var(--color-accent);
    transform: translate(3px, -3px);
}

.card-action .card-body {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}

.card-action h3,
.card-action .h3 {
    color: var(--color-dark) !important;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

.card-action p,
.card-action .paragraph {
    color: rgba(10, 10, 10, 0.8) !important;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
}

/* Row List Item Component */
.row-item {
    background-color: var(--color-light);
    color: var(--color-dark);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0px;
    gap: 30px;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(10, 10, 10, 0.1);
    box-sizing: border-box;
}

.row-item:hover {
    border-left: 4px solid var(--color-accent);
    padding-left: 36px;
}

.row-item .row-content {
    flex: 1;
}

.row-item .row-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.row-item .row-title {
    color: var(--color-dark);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.row-item .row-subtitle {
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.row-item .row-description {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(10, 10, 10, 0.7);
    margin: 0;
}

.row-item .row-action {
    flex-shrink: 0;
}

/* Make row responsive */
@media (max-width: 768px) {
    .row-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 30px;
    }

    .row-item:hover {
        padding-left: 26px;
    }

    .row-item .row-action {
        width: 100%;
    }

    .row-item .row-action .btn {}
}

/* ==========================================================================
   Header Component Styles
   ========================================================================== */

/* Custom Glass Header Container */
.site-header-custom {
    position: fixed;
    top: 5px;
    /* Floating 5px from top */
    left: 50%;
    transform: translate(-50%, 0);
    width: 80%;
    /* Width of 80% */
    z-index: 9999;
    background-color: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(249, 244, 244, 0.08);
    /* Fine border all around */
    border-radius: 10px;
    /* Border radius of 10px */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s ease, border-color 0.4s ease, width 0.4s ease, border-radius 0.4s ease;
    padding: 12px 0;
    box-sizing: border-box;
}

/* Force visibility overrides (prevents plugin collision hiding our <header> tag) */
#tahefobu-header {
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.turbo-hide-theme-header .site-header-custom {
    display: block !important;
}

/* Smart Auto-Hide Scroll Reveal Class */
.site-header-custom.header-hidden {
    transform: translate(-50%, -120%) !important;
    /* Include centering transform and override homepage animation */
}

/* Scrolled/Sticky State */
.site-header-custom.scrolled {
    padding: 8px 0;
    width: 80%;
    background-color: rgba(10, 10, 10, 0.85);
    border-color: rgba(249, 244, 244, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    /* Slimmer padding for rounded capsule */
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Brand Logo (Text Logo with pulsing recording indicator) */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.95;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-light);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.logo-brand {
    color: var(--color-light);
}

.logo-sub {
    color: var(--color-accent);
    font-weight: 500;
    margin-left: 5px;
}

.logo-record-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    flex-shrink: 0;
    animation: recordBlink 1s infinite alternate;
}

@keyframes recordBlink {
    0% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 10px var(--color-accent);
    }
}

/* Navigation Links */
.header-nav {
    display: flex;
    align-items: center;
}

.mobile-menu-logo,
.mobile-menu-contact {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-primary);
    font-size: 14px;
    /* 14px as specified in stylesheet */
    font-weight: 500;
    /* Medium weight */
    text-transform: uppercase;
    letter-spacing: 0.08em;
    /* Clean tracking */
    line-height: 1.2;
    color: var(--color-light);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

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

.nav-link:hover::after {
    width: 100%;
}

/* CTA Arrow Link Specifics */
.nav-item-cta .cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-item-cta .cta-link::after {
    display: none;
}

.cta-arrow-svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}

.nav-item-cta .cta-link:hover .cta-arrow-svg {
    transform: translate(3px, -3px);
    color: var(--color-accent);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
    box-sizing: border-box;
}

.toggle-bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-light);
    transition: var(--transition-smooth);
    transform-origin: left center;
}

/* Toggle Animations */
.mobile-nav-toggle.is-active .toggle-bar:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: -1px;
}

.mobile-nav-toggle.is-active .toggle-bar:nth-child(2) {
    opacity: 0;
    width: 0;
}

.mobile-nav-toggle.is-active .toggle-bar:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: 1px;
}

/* Tablet & Mobile Layouts */
@media (max-width: 991px) {
    .header-container {
        padding: 0 24px;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9998;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }

    .mobile-menu-container {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        padding: 120px 24px 60px 24px;
        overflow-y: auto;
    }

    .mobile-menu-logo {
        display: block;
        margin-bottom: 20px;
        flex-shrink: 0;
    }

    .mobile-logo-img {
        height: 32px;
        width: auto;
        display: block;
    }

    .mobile-menu-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-top: 30px;
        width: 100%;
        flex-shrink: 0;
    }

    .mobile-contact-link {
        font-family: monospace;
        font-size: 11px;
        color: #a0aec0;
        text-decoration: none;
        letter-spacing: 0.5px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        transition: color 0.3s;
    }

    a.mobile-contact-link:hover {
        color: #FF2E2E;
    }

    .mobile-contact-icon {
        width: 13px;
        height: 13px;
        color: #FF2E2E;
        flex-shrink: 0;
    }

    .site-header-custom.nav-open .header-nav {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    /* Expand floating app-header parent to full-screen when mobile menu is active */
    .site-header-custom.nav-open {
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        transform: none !important;
        background-color: rgba(10, 10, 10, 0.96) !important;
        border-color: transparent !important;
        box-shadow: none !important;
        transition: none !important;
    }

    .nav-list {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }

    .nav-link {
        font-size: 1.25rem;
        letter-spacing: 0.15em;
    }
}

/* Homepage-only Entry Animations */
.home .site-header-custom {
    animation: headerFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both, headerBorderSweep 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.home .site-header-custom .logo-link {
    animation: logoReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.home .site-header-custom .nav-list>li {
    animation: navItemReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.home .site-header-custom .nav-list>li:nth-child(1) {
    animation-delay: 0.4s;
}

.home .site-header-custom .nav-list>li:nth-child(2) {
    animation-delay: 0.5s;
}

.home .site-header-custom .nav-list>li:nth-child(3) {
    animation-delay: 0.6s;
}

.home .site-header-custom .nav-list>li:nth-child(4) {
    animation-delay: 0.7s;
}

.home .site-header-custom .nav-list>li:nth-child(5) {
    animation-delay: 0.8s;
}

/* Mobile animation overrides: avoid entry delay transitions when expanding menu */
@media (max-width: 991px) {
    .home .site-header-custom .nav-list>li {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Hide fallback bottom header sweep element as capsule uses container border border animations instead */
.header-border-sweep {
    display: none !important;
}

/* Keyframes for GPU-accelerated header animations */
@keyframes headerFadeIn {
    0% {
        transform: translate(-50%, -50px);
        opacity: 0;
        background-color: rgba(10, 10, 10, 0);
    }

    100% {
        transform: translate(-50%, 0);
        opacity: 1;
        background-color: rgba(10, 10, 10, 0.4);
    }
}

/* Header capsule border glow effect */
@keyframes headerBorderSweep {
    0% {
        border-color: rgba(249, 244, 244, 0.08);
    }

    30% {
        border-color: var(--color-accent);
        box-shadow: 0 0 15px rgba(172, 27, 35, 0.35);
    }

    100% {
        border-color: rgba(249, 244, 244, 0.08);
        box-shadow: none;
    }
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        letter-spacing: 0.25em;
        filter: blur(8px);
        transform: translateY(-5px);
    }

    100% {
        opacity: 1;
        letter-spacing: 0.05em;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes navItemReveal {
    0% {
        opacity: 0;
        transform: translateY(-12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderSweep {
    0% {
        transform: scaleX(0);
        background-color: var(--color-accent);
    }

    40% {
        transform: scaleX(1);
        background-color: var(--color-accent);
    }

    100% {
        transform: scaleX(1);
        background-color: rgba(249, 244, 244, 0.05);
    }
}


/* ==========================================================================
   Trusted By Section
   ========================================================================== */

.trusted-section {
    position: relative;
    width: 100%;
    background-color: #080808;
    padding: 90px 0 80px;
    overflow: hidden;
}

.trusted-section .accent-text {
    color: var(--color-accent);
}

/* Elementor container reset for trusted section */
.elementor-element:has(.trusted-section) {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.elementor-widget-html:has(.trusted-section) .elementor-widget-container,
.elementor-widget-html:has(.trusted-section) {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.trusted-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ── Header ── */
.trusted-header {
    text-align: center;
    margin-bottom: 56px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-header {
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.trusted-header.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.trusted-eyebrow {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin: 0 0 14px;
}

.trusted-title {
    font-family: var(--font-primary);
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    font-weight: 600;
    color: var(--color-light);
    margin: 0 0 16px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.trusted-subtitle {
    font-family: var(--font-primary);
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    color: rgba(249, 244, 244, 0.5);
    margin: 0;
    line-height: 1.6;
}

/* ── Marquee wrapper ── */
.trusted-marquee-wrapper {
    position: relative;
    overflow: hidden;
    /* Edge fade masks */
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            #000 12%,
            #000 88%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            #000 12%,
            #000 88%,
            transparent 100%);
}

/* Pause marquee on hover */
.trusted-marquee-wrapper:hover .trusted-track {
    animation-play-state: paused;
}

/* ── Scrolling track ── */
.trusted-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: marqueeScroll 28s linear infinite;
}

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

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

    /* Slides exactly one set width (6 logos) */
}

/* ── Individual logo item ── */
.trusted-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    /* Fixed uniform width for all logos */
    height: 72px;
    /* Fixed uniform height */
    flex-shrink: 0;
    padding: 0 28px;
    position: relative;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.trusted-logo-item::after {
    content: attr(data-name);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-primary);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.trusted-logo-item:hover::after {
    opacity: 1;
}

.trusted-logo-item:hover {
    transform: translateY(-4px);
}

/* ── Logo image: identical constrained size ── */
.trusted-logo-item img {
    width: 120px;
    /* Fixed width — same for every logo */
    height: 48px;
    /* Fixed height — same for every logo */
    object-fit: contain;
    object-position: center;
    /* Greyscale + dim by default */
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.55;
    transition:
        filter 0.4s ease,
        opacity 0.4s ease,
        transform 0.4s ease;
    display: block;
}

.trusted-logo-item:hover img {
    filter: grayscale(0%) brightness(1.1);
    opacity: 1;
    transform: scale(1.06);
}

/* ── Bottom divider ── */
.trusted-divider {
    margin-top: 70px;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(249, 244, 244, 0.12) 20%,
            rgba(249, 244, 244, 0.12) 80%,
            transparent);
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .trusted-section {
        padding: 60px 0 56px;
    }

    .trusted-inner {
        padding: 0 24px;
    }

    .trusted-header {
        margin-bottom: 40px;
    }

    .trusted-logo-item {
        width: 140px;
        height: 60px;
        padding: 0 20px;
    }

    .trusted-logo-item img {
        width: 90px;
        height: 38px;
    }
}

/* ==========================================================================
   Hero Section — Elementor Container Reset

   Ensure the Elementor flex container + HTML widget that wraps .hero-page
   add zero padding/margin and stretch to full viewport width.
   ========================================================================== */

/* Elementor flex container wrapping the hero */
.elementor-element:has(> .elementor-widget-container > .elementor-widget-html .hero-page),
.elementor-element:has(.hero-page) {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Pull the top-level Elementor section UP to cover the black gap at the top */
.elementor-section:has(.hero-page),
.e-con:has(.hero-page),
.elementor-top-section:has(.hero-page) {
    margin-top: -27px !important;
}

/* The HTML widget wrapper itself */
.elementor-widget-html:has(.hero-page) .elementor-widget-container,
.elementor-widget-html:has(.hero-page) {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

/* ==========================================================================
   Hero Section Base
   ========================================================================== */

.hero-page {
    /* Full-bleed breakout: escapes any Elementor container max-width */
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 100vh;
    min-height: 600px;
    background-color: var(--color-dark);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    /* anchor split layout to bottom */
    justify-content: flex-start;
    box-sizing: border-box;
}

/* Background Video */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

/* Overlay: darkens sides & bottom only — model in centre stays clearly visible */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to right, rgba(10, 10, 10, 0.75) 0%, rgba(10, 10, 10, 0) 35%, rgba(10, 10, 10, 0) 65%, rgba(10, 10, 10, 0.75) 100%),
        linear-gradient(to bottom, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0) 30%, rgba(10, 10, 10, 0) 60%, rgba(10, 10, 10, 0.85) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Content Wrapper: 60px sides/top, 90px bottom = clear corner frames + extra breathing room */
.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 60px 60px 90px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
}

/* Split Layout: side-by-side columns sitting at bottom of hero */
.hero-split-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-top: auto;
    margin-bottom: 0;
    /* wrapper padding handles bottom spacing */
    gap: 40px;
    box-sizing: border-box;
}

.hero-split-layout .accent-text {
    color: var(--color-accent);
}

/* When hero is scrolled, disable the entrance animations to allow JS parallax transforms to work without lock-in */
.hero-page.hero-scrolled .hero-left-column,
.hero-page.hero-scrolled .hero-right-column,
.hero-page.hero-scrolled .title-line-1,
.hero-page.hero-scrolled .title-line-2 {
    animation: none !important;
    opacity: 1 !important;
}

/* Left Column: Subtitle & CTA Buttons */
.hero-left-column {
    flex: 0 1 480px;
    /* Readability constrained width */
    display: flex;
    flex-direction: column;
    gap: 28px;
    opacity: 0;
    transform: translateY(30px);
    animation: cinematicRevealLeft 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.8s;
}

.hero-subtitle-p {
    font-family: var(--font-primary);
    font-size: clamp(0.95rem, 1.25vw, 1.15rem);
    line-height: 1.65;
    color: rgba(249, 244, 244, 0.7);
    margin: 0;
    text-align: left;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Right Column: Title Heading — right-justified */
.hero-right-column {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.hero-main-title {
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: var(--color-light);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    text-align: right;
}

.hero-main-title .title-line-1 {
    font-size: clamp(2rem, 5.5vw, 90px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-align: right;
    opacity: 0;
    transform: translateX(40px);
    filter: blur(12px);
    animation: cinematicRevealRight 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.4s;
}

.hero-main-title .title-line-2 {
    font-size: clamp(1.6rem, 4.2vw, 68px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-align: right;
    opacity: 0;
    transform: translateX(40px);
    filter: blur(12px);
    animation: cinematicRevealRight 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 1.6s;
}

/* Modern Pill CTA buttons */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    /* Premium blur on both buttons */
    -webkit-backdrop-filter: blur(10px);
}

.cta-btn .cta-text {
    font-family: var(--font-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-light);
    transition: color 0.4s ease;
}

.cta-btn .cta-arrow-svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--color-light);
}

/* Primary Button Styling */
.cta-btn-primary {
    background-color: rgba(249, 244, 244, 0.08);
    /* Transparent glass bg */
    border: 1px solid rgba(249, 244, 244, 0.15);
}

.cta-btn-primary .cta-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cta-btn-primary:hover {
    background-color: var(--color-light);
    border-color: var(--color-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.cta-btn-primary:hover .cta-text {
    color: var(--color-dark);
}

.cta-btn-primary:hover .cta-dot {
    transform: scale(1.6);
}

.cta-btn-primary:hover .cta-arrow-svg {
    color: var(--color-dark);
    transform: translate(3px, -3px);
}

/* Secondary Button Styling */
.cta-btn-secondary {
    background-color: rgba(10, 10, 10, 0.35);
    /* Translucent dark glass bg */
    border: 1px solid rgba(249, 244, 244, 0.15);
}

.cta-btn-secondary:hover {
    background-color: rgba(249, 244, 244, 0.08);
    border-color: var(--color-light);
    transform: translateY(-2px);
}

.cta-btn-secondary:hover .cta-arrow-svg {
    transform: translate(3px, -3px);
}

/* Tablet & Mobile Hero Layout Overrides */
@media (max-width: 991px) {
    .site-header-custom {
        width: 92% !important;
        border-radius: 10px;
    }

    .hero-split-layout {
        flex-direction: column-reverse;
        /* Stack H1 on top, subtitle and buttons below */
        align-items: flex-start;
        gap: 32px;
        margin-bottom: 20px;
        margin-top: 100px;
        /* Leave space for floating header */
    }

    .hero-left-column {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        gap: 24px;
    }

    .hero-right-column {
        flex: 1 1 auto;
        width: 100%;
        text-align: left;
        align-items: flex-start;
    }

    .hero-main-title {
        text-align: left;
        align-items: flex-start;
        gap: 8px;
    }

    .hero-main-title .title-line-1,
    .hero-main-title .title-line-2 {
        text-align: left;
        transform: translateY(20px);
        /* slide up instead of right on mobile */
        animation-name: cinematicRevealLeft;
    }
}

/* ==========================================================================
   Viewport Corner Brackets
   ========================================================================== */

.viewport-corners {
    display: none !important;
}

.corner {
    position: absolute;
    width: 24px;
    /* Figma width */
    height: 31.5px;
    /* Figma height */
    border-color: var(--color-light);
    border-style: solid;
    box-sizing: border-box;
    transition: border-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
}

/* Corner Position & Delicate thin border-widths (3px solid to match screenshot 2) */
.corner-tl {
    top: var(--corner-top);
    left: var(--corner-left);
    border-width: 5px 0 0 5px;
    transform-origin: top left;
    animation: openTL 1.6s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

.corner-tr {
    top: var(--corner-top);
    right: var(--corner-left);
    border-width: 5px 5px 0 0;
    transform-origin: top right;
    animation: openTR 1.6s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

.corner-bl {
    bottom: var(--corner-bottom);
    left: var(--corner-left);
    border-width: 0 0 5px 5px;
    transform-origin: bottom left;
    animation: openBL 1.6s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

.corner-br {
    bottom: var(--corner-bottom);
    right: var(--corner-left);
    border-width: 0 5px 5px 0;
    transform-origin: bottom right;
    animation: openBR 1.6s cubic-bezier(0.85, 0, 0.15, 1) forwards;
}

/* ============================================================
   Mobile Hero Layout (≤ 768px)
   Stack columns, center everything, ensure visibility
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --corner-top: 90px;
        --corner-left: 20px;
        --corner-bottom: 20px;
    }

    /* Stronger overlay on mobile so text pops over video */
    .hero-overlay {
        background:
            linear-gradient(to bottom,
                rgba(10, 10, 10, 0.55) 0%,
                rgba(10, 10, 10, 0.25) 30%,
                rgba(10, 10, 10, 0.55) 70%,
                rgba(10, 10, 10, 0.92) 100%) !important;
    }

    /* Hero content: switch to column, fill height */
    .hero-content-wrapper {
        padding: 100px 24px 60px 24px;
        justify-content: flex-end;
        align-items: center;
    }

    /* Stack columns vertically, H1 on top then subtitle/buttons */
    .hero-split-layout {
        flex-direction: column-reverse;
        /* H1 renders first visually (top) */
        align-items: center;
        gap: 24px;
        margin-bottom: 0;
        width: 100%;
    }

    /* Right column (H1): full width, centered */
    .hero-right-column {
        flex: none;
        width: 100%;
        align-items: center;
        text-align: center;
    }

    /* Left column (subtitle + CTAs): full width, centered */
    .hero-left-column {
        flex: none;
        width: 100%;
        align-items: center;
        text-align: center;
        animation-delay: 0.4s;
        /* faster on mobile */
    }

    /* H1 title lines: centered on mobile */
    .hero-main-title {
        align-items: center;
    }

    .hero-main-title .title-line-1,
    .hero-main-title .title-line-2 {
        text-align: center;
        font-size: clamp(1.8rem, 8vw, 3.2rem);
        /* Override right-slide animation with upward reveal on mobile */
        transform: translateY(20px);
        animation: cinematicRevealLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .hero-main-title .title-line-1 {
        animation-delay: 0.6s;
    }

    .hero-main-title .title-line-2 {
        animation-delay: 0.8s;
    }

    /* Subtitle: centered */
    .hero-subtitle-p {
        text-align: center;
        font-size: 0.95rem;
    }

    /* CTA buttons: centered, stacked */
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
        max-width: 320px;
    }
}

/* Viewport Corners Light Background state (turns borders black) */
.corner.corner-dark {
    border-color: var(--color-dark) !important;
}

/* Keyframes for Viewport Corners (Animate from center rectangle to screen corners) */
@keyframes openTL {
    0% {
        transform: translate(calc(50vw - var(--corner-left) - 24px), calc(50vh - var(--corner-top) - 31.5px));
        border-color: var(--color-accent);
    }

    30% {
        transform: translate(calc(50vw - var(--corner-left) - 24px), calc(50vh - var(--corner-top) - 31.5px));
        border-color: var(--color-accent);
    }

    100% {
        transform: translate(0, 0);
        border-color: var(--color-light);
    }
}

@keyframes openTR {
    0% {
        transform: translate(calc(-50vw + var(--corner-left) + 24px), calc(50vh - var(--corner-top) - 31.5px));
        border-color: var(--color-accent);
    }

    30% {
        transform: translate(calc(-50vw + var(--corner-left) + 24px), calc(50vh - var(--corner-top) - 31.5px));
        border-color: var(--color-accent);
    }

    100% {
        transform: translate(0, 0);
        border-color: var(--color-light);
    }
}

@keyframes openBL {
    0% {
        transform: translate(calc(50vw - var(--corner-left) - 24px), calc(-50vh + var(--corner-bottom) + 31.5px));
        border-color: var(--color-accent);
    }

    30% {
        transform: translate(calc(50vw - var(--corner-left) - 24px), calc(-50vh + var(--corner-bottom) + 31.5px));
        border-color: var(--color-accent);
    }

    100% {
        transform: translate(0, 0);
        border-color: var(--color-light);
    }
}

@keyframes openBR {
    0% {
        transform: translate(calc(-50vw + var(--corner-left) + 24px), calc(-50vh + var(--corner-bottom) + 31.5px));
        border-color: var(--color-accent);
    }

    30% {
        transform: translate(calc(-50vw + var(--corner-left) + 24px), calc(-50vh + var(--corner-bottom) + 31.5px));
        border-color: var(--color-accent);
    }

    100% {
        transform: translate(0, 0);
        border-color: var(--color-light);
    }
}

/* Futuristic Text Reveal Keyframes: slides up, expands tracking, clears blur */
@keyframes futuristicReveal {
    0% {
        transform: translateY(45px) scale(0.95);
        filter: blur(12px);
        letter-spacing: 0.25em;
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(0) scale(1);
        filter: blur(0);
        letter-spacing: -0.02em;
        opacity: 1;
    }
}

@keyframes heroFadeInText {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cinematicRevealLeft {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes cinematicRevealRight {
    0% {
        opacity: 0;
        transform: translateX(40px) scaleX(1.05);
        filter: blur(15px);
        letter-spacing: 0.1em;
    }

    100% {
        opacity: 1;
        transform: translateX(0) scaleX(1);
        filter: blur(0);
        letter-spacing: -0.02em;
    }
}

/* ==========================================================================
   Portfolio Video Section
   ========================================================================== */

/* Elementor section reset to stretch portfolio-section full width */
.elementor-element:has(.portfolio-section) {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.elementor-widget-html:has(.portfolio-section) .elementor-widget-container,
.elementor-widget-html:has(.portfolio-section) {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.portfolio-section {
    position: relative;
    width: 100%;
    background-color: #080808;
    padding: 120px 0 100px;
    overflow: hidden;
    box-sizing: border-box;
}

.portfolio-glow-spotlight {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(172, 27, 35, 0.12) 0%, rgba(172, 27, 35, 0.03) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease, left 0.1s ease-out, top 0.1s ease-out;
}

.portfolio-section:hover .portfolio-glow-spotlight {
    opacity: 1;
}

.portfolio-section.spotlight-disabled .portfolio-glow-spotlight {
    opacity: 0 !important;
}

.portfolio-inner {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 0 100px;
    box-sizing: border-box;
}

/* ── Header ── */
.portfolio-header {
    text-align: center;
    margin-bottom: 90px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-header.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-eyebrow {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin: 0 0 16px;
}

.portfolio-title {
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 600;
    color: var(--color-light);
    margin: 0 0 20px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.portfolio-subtitle {
    font-family: var(--font-primary);
    font-size: clamp(0.95rem, 1.25vw, 1.15rem);
    color: rgba(249, 244, 244, 0.5);
    margin: 0;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Showcase Stack ── */
.portfolio-showcase-stack {
    display: flex;
    flex-direction: column;
    gap: 120px;
    /* Space out rows nicely */
}

/* Individual Showcase Row */
.portfolio-showcase-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll-reveal visible state */
.portfolio-showcase-row.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Alternating Layout - Disabled */

/* Video Column */
.portfolio-showcase-video-col {
    width: 72%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(249, 244, 244, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    aspect-ratio: 16/9;
    background-color: #000;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-showcase-row.is-active .portfolio-showcase-video-col {
    border-color: rgba(249, 244, 244, 0.15);
    box-shadow: 0 25px 50px rgba(172, 27, 35, 0.15);
    transform: scale(1.02);
}

.portfolio-showcase-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.4) grayscale(30%) blur(10px);
    transform: scale(1.06);
    transition: filter 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Fully visible/colored video when active */
.portfolio-showcase-row.is-active .portfolio-showcase-video {
    filter: brightness(0.95) grayscale(0%) blur(0px);
    transform: scale(1);
}

/* Custom player controls bar */
.custom-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 60%, rgba(10, 10, 10, 0.85) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
}

/* Only reveal controls when card is active or hovered */
.portfolio-showcase-row.is-active .portfolio-showcase-video-col:hover .custom-player-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Circular Center Play Toggle Button */
.play-toggle-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.65);
    border: 1px solid rgba(249, 244, 244, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-light);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    box-sizing: border-box;
}

.play-toggle-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: none;
}

.play-toggle-btn .play-svg {
    transform: translateX(2px);
}

.play-toggle-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background: var(--color-light);
    color: var(--color-dark);
    border-color: var(--color-light);
    box-shadow: 0 0 15px rgba(249, 244, 244, 0.35);
}

/* Controls Bar */
.player-controls-bar {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(249, 244, 244, 0.2);
    border-radius: 100px;
    position: relative;
    cursor: pointer;
    transition: height 0.2s ease;
}

.progress-container:hover {
    height: 6px;
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    background-color: var(--color-accent);
    border-radius: 100px;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
    transition: transform 0.2s ease;
}

.progress-container:hover .progress-bar-fill::after {
    transform: translateY(-50%) scale(1);
}

.controls-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.time-display {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(249, 244, 244, 0.75);
    letter-spacing: 0.05em;
}

.controls-bottom button {
    background: transparent;
    border: none;
    color: rgba(249, 244, 244, 0.75);
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.controls-bottom button:hover {
    color: var(--color-light);
    transform: scale(1.05);
}

.controls-bottom button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

/* Text Column */
.portfolio-showcase-text-col {
    width: 24%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* Huge background project number */
.showcase-number {
    font-family: var(--font-primary);
    font-size: clamp(6rem, 10vw, 10rem);
    font-weight: 800;
    color: rgba(249, 244, 244, 0.02);
    position: absolute;
    top: -60px;
    left: -20px;
    pointer-events: none;
    line-height: 1;
    transition: color 0.6s ease;
}

.portfolio-showcase-row.is-active .showcase-number {
    color: rgba(172, 27, 35, 0.05);
    /* Glow to red when active */
}

/* Meta Information Row */
.showcase-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.showcase-date {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
}

.showcase-client {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(249, 244, 244, 0.45);
    margin: 0;
}

/* Title and Description */
.showcase-title {
    font-family: var(--font-primary);
    font-size: clamp(1.4rem, 2.2vw, 2.2rem);
    font-weight: 600;
    color: var(--color-light);
    margin: 0 0 16px 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
    transition: color 0.4s ease;
}

.portfolio-showcase-row.is-active .showcase-title {
    color: #fff;
}

.showcase-desc {
    font-family: var(--font-primary);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.7;
    color: rgba(249, 244, 244, 0.6);
    margin: 0 0 32px 0;
    transition: color 0.4s ease;
}

.portfolio-showcase-row.is-active .showcase-desc {
    color: rgba(249, 244, 244, 0.85);
}

/* Premium Glass CTA Button */
.showcase-cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 100px;
    border: 1px solid rgba(249, 244, 244, 0.12);
    background-color: rgba(249, 244, 244, 0.03);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    cursor: pointer;
}

.showcase-cta-text {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-light);
    transition: color 0.4s ease;
}

.showcase-cta svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: var(--color-light);
}

.showcase-cta:hover {
    background-color: var(--color-light);
    border-color: var(--color-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.showcase-cta:hover .showcase-cta-text {
    color: var(--color-dark);
}

.showcase-cta:hover svg {
    transform: translate(3px, -3px);
    color: var(--color-accent);
}

/* Staggered entrance/exit animations for showcase row text details */
.showcase-meta,
.showcase-title,
.showcase-desc,
.showcase-cta {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-showcase-row.is-active .showcase-meta,
.portfolio-showcase-row.is-active .showcase-title,
.portfolio-showcase-row.is-active .showcase-desc,
.portfolio-showcase-row.is-active .showcase-cta {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-showcase-row.is-active .showcase-meta {
    transition-delay: 0.1s;
}

.portfolio-showcase-row.is-active .showcase-title {
    transition-delay: 0.2s;
}

.portfolio-showcase-row.is-active .showcase-desc {
    transition-delay: 0.3s;
}

.portfolio-showcase-row.is-active .showcase-cta {
    transition-delay: 0.4s;
}

/* Divider */
.portfolio-divider {
    margin-top: 120px;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(249, 244, 244, 0.12) 20%,
            rgba(249, 244, 244, 0.12) 80%,
            transparent);
}

/* ── Responsive adjustments ── */
@media (max-width: 991px) {
    .portfolio-section {
        padding: 90px 0 80px;
    }

    .portfolio-showcase-stack {
        gap: 90px;
    }

    .portfolio-showcase-row {
        flex-direction: column !important;
        align-items: stretch;
        gap: 32px;
    }

    .portfolio-showcase-video-col,
    .portfolio-showcase-text-col {
        width: 100% !important;
    }

    .showcase-number {
        top: -45px;
        left: -10px;
    }
}

@media (max-width: 768px) {
    .portfolio-section {
        padding: 70px 0 60px;
    }

    .portfolio-inner {
        padding: 0 24px;
    }

    .portfolio-header {
        margin-bottom: 56px;
    }

    .portfolio-divider {
        margin-top: 80px;
    }
}

/* ==========================================================================
   Studio Teaser Section (Cinematic Refinement)
   ========================================================================== */

.studio-teaser-section {
    position: relative;
    width: 100%;
    background-color: #080808;
    /* Matches other sections exactly */
    padding: 140px 0;
    overflow: hidden;
}

/* Background red glow spotlight follows cursor inside the studio teaser section */
.studio-glow-spotlight {
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(172, 27, 35, 0.07) 0%, rgba(10, 10, 10, 0) 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    filter: blur(60px);
    transition: opacity 0.5s ease;
    opacity: 0;
    /* Hidden by default until mousemove */
}

.studio-teaser-section:hover .studio-glow-spotlight {
    opacity: 1;
}

.studio-teaser-inner {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 80px;
    /* Full width side clearance matching hero & navigation */
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    /* Generous visual column size */
    gap: 80px;
    align-items: center;
    box-sizing: border-box;
}

/* Scroll Entry animations */
.studio-media-col,
.studio-glass-panel {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.8, 0.25, 1), transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.studio-teaser-section.is-revealed .studio-media-col,
.studio-teaser-section.is-revealed .studio-glass-panel {
    opacity: 1;
    transform: translateY(0);
}

.studio-teaser-section.is-revealed .studio-glass-panel {
    transition-delay: 0.18s;
    /* Subtle entrance stagger */
}

.studio-header {
    text-align: left;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
    padding: 0 80px;
    box-sizing: border-box;
}

.studio-header.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.studio-eyebrow {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin: 0 0 16px;
    text-align: left;
    display: block;
}

.studio-title {
    font-family: var(--font-primary);
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    /* Matches trusted-title sizing exactly */
    font-weight: 600;
    /* Semibold weight matches marquee section exactly */
    color: var(--color-light);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-align: left;
}

/* Left Column - Cinematic Widescreen Image Panel */
.studio-media-col {
    position: relative;
    width: 100%;
}

.studio-viewfinder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Widescreen ratio */
    overflow: hidden;
    background-color: #050505;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(249, 244, 244, 0.04);
    border-radius: 8px;
    /* Rounded corners */
}

.studio-viewfinder-screen {
    position: relative;
    width: 100%;
    height: 100%;
}

.studio-viewfinder-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.studio-viewfinder-img-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.8s ease;
    overflow: hidden;
    border-radius: 8px;
}

.studio-viewfinder-img-panel.is-active {
    opacity: 1;
    visibility: visible;
}

.studio-viewfinder-img-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(10%) brightness(0.9);
    border-radius: 8px;
    /* Rounded images */
}

/* Active Ken Burns panning/zooming effect */
.studio-viewfinder-img-panel.is-active img {
    animation: studioKenBurns 12s ease-in-out infinite alternate;
}

@keyframes studioKenBurns {
    0% {
        transform: scale(1.02) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-1.5%, -1%);
    }
}

/* Selector Tabs (Placed under image on the left) */
.studio-setup-selector {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid rgba(249, 244, 244, 0.08);
    padding-bottom: 12px;
    margin-top: 24px;
    /* Clearance spacer below the widescreen image panel */
}

.studio-setup-tab {
    background: transparent;
    border: none;
    outline: none;
    color: rgba(249, 244, 244, 0.45);
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 0 12px 0;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
    margin-bottom: -13px;
}

.studio-setup-tab:hover {
    color: var(--color-light);
}

.studio-setup-tab.is-active {
    color: var(--color-light);
    border-bottom: 2px solid var(--color-accent);
}

/* Right Column - Premium Clean Content Layout */
.studio-glass-panel {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.studio-content-eyebrow {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin: 0;
}

.studio-content-title {
    font-family: var(--font-primary);
    font-size: clamp(1.4rem, 2.2vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-light);
    text-transform: uppercase;
    margin: 0;
    letter-spacing: -0.01em;
}

.studio-description-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-left: 2px solid rgba(249, 244, 244, 0.04);
    padding-left: 24px;
}

.studio-description-group p {
    font-size: 1.025rem;
    line-height: 1.65;
    color: rgba(249, 244, 244, 0.65);
    margin: 0;
}

/* Minimalist Horizontal Bullet Specifications */
.studio-features-list {
    font-family: monospace;
    font-size: 0.75rem;
    color: rgba(249, 244, 244, 0.45);
    line-height: 1.8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-top: 1px solid rgba(249, 244, 244, 0.05);
    padding-top: 20px;
    margin: 0;
}

.studio-features-list span {
    color: var(--color-accent);
    font-weight: bold;
    margin: 0 8px;
}

.studio-cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .studio-teaser-inner {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 40px;
    }

    .studio-teaser-section {
        padding: 90px 0;
    }
}

@media (max-width: 768px) {
    .studio-teaser-inner {
        padding: 0 24px;
    }

    .studio-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
}

/* ==========================================================================
   Services Section (Block 4 - Portfolio-style Stack)
   ========================================================================== */

.services-section {
    position: relative;
    width: 100%;
    background-color: #080808;
    /* Matches other sections exactly */
    padding: 120px 0 100px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Services Section Layout Adjustments */
.services-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
    margin-bottom: 80px;
    width: 100%;
    box-sizing: border-box;
}

.services-header-left {
    flex: 1;
    max-width: 60%;
}

.services-header-right {
    width: 35%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.services-header {
    text-align: left;
}

.services-header .portfolio-title,
.services-header .portfolio-subtitle {
    max-width: 100%;
    width: 100%;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

/* Services Carousel Nav Menu Tabs */
.services-carousel-nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
    border-bottom: none;
    padding-bottom: 0;
    margin: 0;
    width: 100%;
    position: relative;
    z-index: 10;
}

.services-nav-tab {
    background: none;
    border: none;
    border-left: 2px solid rgba(249, 244, 244, 0.05);
    padding: 6px 0 6px 20px;
    color: rgba(249, 244, 244, 0.4);
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}

.services-nav-tab:hover {
    color: rgba(249, 244, 244, 0.85);
    border-left-color: rgba(249, 244, 244, 0.2);
}

.services-nav-tab.is-active {
    color: var(--color-light);
    border-left-color: var(--color-accent);
    font-weight: 600;
}

@media (max-width: 991px) {
    .services-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        margin-bottom: 50px;
    }

    .services-header-left {
        max-width: 100%;
    }

    .services-header-right {
        width: 100%;
        max-width: 100%;
    }

    .services-carousel-nav {
        flex-direction: row;
        overflow-x: auto;
        border-bottom: 1px solid rgba(249, 244, 244, 0.08);
        padding-bottom: 16px;
        gap: 24px;
        scrollbar-width: none;
    }

    .services-carousel-nav::-webkit-scrollbar {
        display: none;
    }

    .services-nav-tab {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 0 0 8px 0;
        width: auto;
        font-size: 0.95rem;
    }

    .services-nav-tab:hover {
        border-bottom-color: rgba(249, 244, 244, 0.2);
    }

    .services-nav-tab.is-active {
        border-left: none;
        border-bottom-color: var(--color-accent);
    }
}

.showcase-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(249, 244, 244, 0.03);
    border: 1px solid rgba(249, 244, 244, 0.08);
    border-radius: 8px;
    color: rgba(249, 244, 244, 0.65);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.portfolio-showcase-row.is-active .showcase-icon-wrapper {
    color: var(--color-accent);
    border-color: rgba(172, 27, 35, 0.25);
    background: rgba(172, 27, 35, 0.05);
    box-shadow: 0 0 15px rgba(172, 27, 35, 0.1);
    transform: scale(1.05);
}

.showcase-icon-wrapper svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
}

/* Micro-animations for active slide icons */
.icon-globe,
.icon-heart,
.icon-lightning,
.wave-bar,
.icon-spark {
    transform-origin: center;
    transition: transform 0.3s ease;
}

/* 1. Corporate: Rotate Globe */
.portfolio-showcase-row.is-active .icon-globe {
    animation: spinGlobe 10s linear infinite;
}

@keyframes spinGlobe {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 2. Documentary: Heartbeat Pulse */
.portfolio-showcase-row.is-active .icon-heart {
    animation: pulseHeart 1.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulseHeart {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.15);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.15);
    }

    70% {
        transform: scale(1);
    }
}

/* 3. Events: Flicker Lightning */
.portfolio-showcase-row.is-active .icon-lightning {
    animation: flickerLightning 2s infinite;
}

@keyframes flickerLightning {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    10% {
        opacity: 0.4;
    }

    15% {
        opacity: 1;
        transform: scale(1.08);
    }

    20% {
        opacity: 0.7;
    }

    25% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }
}

/* 4. Interviews: Soundwave Bounce */
.portfolio-showcase-row.is-active .wave-bar {
    animation: soundBounce 1.2s ease-in-out infinite;
}

.wave-bar-1 {
    animation-delay: 0.1s;
}

.wave-bar-2 {
    animation-delay: 0.3s;
}

.wave-bar-3 {
    animation-delay: 0.5s;
}

.wave-bar-4 {
    animation-delay: 0.2s;
}

.wave-bar-5 {
    animation-delay: 0.4s;
}

@keyframes soundBounce {

    0%,
    100% {
        transform: scaleY(0.4);
    }

    50% {
        transform: scaleY(1.2);
    }
}

/* 5. Creative: Star Spark Spin */
.portfolio-showcase-row.is-active .icon-spark {
    animation: spinSpark 4s ease-in-out infinite;
}

@keyframes spinSpark {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.2);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Entry Animations */
.services-header,
.services-carousel,
.services-bottom-callout {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-section.is-revealed .services-header,
.services-section.is-revealed .services-carousel,
.services-section.is-revealed .services-bottom-callout {
    opacity: 1;
    transform: translateY(0);
}

.services-section.is-revealed .services-carousel {
    transition-delay: 0.15s;
}

.services-section.is-revealed .services-bottom-callout {
    transition-delay: 0.3s;
}

/* Visibility resets for carousel children */
.services-carousel .portfolio-showcase-row {
    opacity: 1 !important;
    transform: none !important;
}

/* Background numbers visibility & position shifts to avoid overlap */
.services-section .showcase-number {
    color: rgba(249, 244, 244, 0.05);
    /* Faint but legible */
    left: auto !important;
    right: 0 !important;
    top: -40px !important;
    transition: color 0.6s ease;
}

.services-section .portfolio-showcase-row.is-active .showcase-number {
    color: rgba(172, 27, 35, 0.12) !important;
    /* Brighter active state */
}

/* Services Swiper/Carousel Layout */
.services-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 2;
}

.services-carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.services-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 100px;
    /* Aligns with portfolio inner layout padding */
}

/* Arrows Navigation */
.services-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(249, 244, 244, 0.12);
    color: var(--color-light);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.services-carousel-arrow:hover {
    background: var(--color-light);
    color: var(--color-dark);
    border-color: var(--color-light);
    box-shadow: 0 0 15px rgba(249, 244, 244, 0.25);
}

.services-carousel-arrow-prev {
    left: 24px;
}

.services-carousel-arrow-next {
    right: 24px;
}

.services-carousel-arrow svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
}

/* Dot Indicators */
.services-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 50px;
    position: relative;
    z-index: 3;
}

.services-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(249, 244, 244, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition-smooth);
}

.services-carousel-dot:hover {
    background-color: rgba(249, 244, 244, 0.5);
}

.services-carousel-dot.is-active {
    background-color: var(--color-accent);
    transform: scale(1.3);
}

/* Adjust paddings for responsive */
@media (max-width: 1199px) {
    .services-carousel-slide {
        padding: 0 40px;
    }

    .services-carousel-arrow-prev {
        left: 10px;
    }

    .services-carousel-arrow-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .services-carousel-slide {
        padding: 0 24px;
    }

    .services-carousel-arrow {
        display: none;
        /* Hide arrows on touch screens */
    }
}

.services-glow-spotlight {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(172, 27, 35, 0.12) 0%, rgba(172, 27, 35, 0.03) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease, left 0.1s ease-out, top 0.1s ease-out;
}

.services-section:hover .services-glow-spotlight {
    opacity: 1;
}

.services-section.spotlight-disabled .services-glow-spotlight {
    opacity: 0 !important;
}

.services-bottom-callout {
    position: relative;
    z-index: 2;
    background: linear-gradient(to right, rgba(249, 244, 244, 0.02), rgba(249, 244, 244, 0.01));
    border: 1px solid rgba(249, 244, 244, 0.04);
    border-radius: 8px;
    margin: 80px 100px 0 100px;
    /* Matches portfolio-inner side padding */
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    gap: 40px;
}

.services-callout-left {
    max-width: 700px;
}

.services-callout-text {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(249, 244, 244, 0.65);
    margin: 0;
}

@media (max-width: 1199px) {
    .services-bottom-callout {
        margin: 60px 40px 0 40px;
        padding: 30px 40px;
    }
}

@media (max-width: 768px) {
    .services-bottom-callout {
        margin: 50px 24px 0 24px;
        padding: 30px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .services-section {
        padding: 95px 0;
    }
}