/* Mood Designz Custom Styles */

/* ====================================================== */
/* Custom Fonts — Guton (headings) & Trevia Groteska (body) */
/* ====================================================== */

/* Guton — used for titles, headings, header & footer */
@font-face {
    font-family: "Guton";
    src: url("../fonts/Guton/GUTON-REGULAR.OTF") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Guton";
    src: url("../fonts/Guton/GUTON-MEDIUM.OTF") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Guton";
    src: url("../fonts/Guton/GUTON-SEMIBOLD.OTF") format("opentype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Guton";
    src: url("../fonts/Guton/GUTON-BOLD.OTF") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Guton";
    src: url("../fonts/Guton/GUTON-EXTRABOLD.OTF") format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Guton";
    src: url("../fonts/Guton/GUTON-BLACK.OTF") format("opentype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Trevia Groteska — used for secondary / body text */
@font-face {
    font-family: "Trevia Groteska";
    src: url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-ExtraLight.woff2") format("woff2"),
         url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-ExtraLight.woff") format("woff");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Trevia Groteska";
    src: url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-Light.woff2") format("woff2"),
         url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-Light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Trevia Groteska";
    src: url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-Regular.woff2") format("woff2"),
         url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Trevia Groteska";
    src: url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-Regular-Italic.woff2") format("woff2"),
         url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-Regular-Italic.woff") format("woff");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "Trevia Groteska";
    src: url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-Medium.woff2") format("woff2"),
         url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Trevia Groteska";
    src: url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-SemiBold.woff2") format("woff2"),
         url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-SemiBold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Trevia Groteska";
    src: url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-Bold.woff2") format("woff2"),
         url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Trevia Groteska";
    src: url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-ExtraBold.woff2") format("woff2"),
         url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-ExtraBold.woff") format("woff");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Trevia Groteska";
    src: url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-Heavy.woff2") format("woff2"),
         url("../fonts/Trevia%20Groteska/Webfonts/TreviaGroteska-Heavy.woff") format("woff");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --mood-lime: #c3ff06;
    --mood-bg-blur: rgba(255, 255, 255, 0.05);
    --mood-border: rgba(255, 255, 255, 0.1);
}

/* Remap the template's font tokens to the brand fonts.
   --_font-accent drives all headings/titles/display text (header & footer included).
   --_font-default drives body / secondary text. */
:root {
    --_font-accent: "Guton", sans-serif;
    --_font-default: "Trevia Groteska", sans-serif;
}

/* Hide pill header on scroll down, show on scroll up */
#mood-header.header-hidden {
    transform: translateX(-50%) translateY(-120%);
    opacity: 0;
    pointer-events: none;
}

/* Pill Shaped Header */
#mood-header {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    max-width: 95vw;
    height: 70px;
    background: rgba(22, 22, 22, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--mood-border);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px 0 35px;
    z-index: 9999;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

#mood-header.scrolled {
    top: 15px;
    height: 60px;
    background: rgba(22, 22, 22, 0.9);
}

#mood-header .logo img {
    height: 35px;
    width: auto;
    display: block;
}

#mood-header .nav-links {
    display: flex;
    gap: 30px;
}

#mood-header .nav-links a {
    color: #fff;
    font-family: var(--_font-default);
    font-size: 14px;
    font-weight: 600;

    letter-spacing: 1px;
    text-decoration: none;
    opacity: 0.8;
    transition: 0.3s;
}

#mood-header .nav-links a:hover {
    color: var(--mood-lime);
    opacity: 1;
}

#mood-header .nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#mood-header .cta-btn {
    background: var(--mood-lime);
    color: #000;
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 100px;
    font-size: 12px;
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--_font-default);
    transition: transform 0.3s ease;
}

#mood-header .cta-btn:hover {
    transform: scale(1.05);
}

/* Burger Menu for Mobile */
#mood-header .menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

#mood-header .menu-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

/* ------------------------------------------------------------------
   Compact screens (phones & tablets): the injected pill header is
   replaced by the template's own header — logo on the left, theme
   toggle + hamburger on the right — restyled as the pill. The template
   hamburger opens the fullscreen template menu, so the pill's own
   menu panel is not needed here.
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
    #mood-header {
        display: none !important;
    }

    /* Template header becomes the fixed pill */
    .mxd-header {
        position: fixed;
        top: 12px;
        left: 50%;
        width: min(95vw, 720px);
        height: 64px;
        align-items: center;
        /* right padding reserves room for the overlaid hamburger */
        padding: 0 70px 0 20px;
        background: rgba(22, 22, 22, 0.96);
        border: 1px solid var(--mood-border);
        border-radius: 100px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
        z-index: 9998;
        transform: translateX(-50%);
    }

    /* The template hides .mxd-header after 10px of scroll (it was an
       absolute header that scrolled away). As a fixed pill it must
       stay visible — also keeps translateX from being clobbered by
       the is-hidden scaleY transform. */
    .mxd-header.is-hidden {
        transform: translateX(-50%);
        opacity: 1;
    }

    /* Hide on scroll down, reappear on scroll up — same behavior as the
       desktop pill. The header-hidden class is toggled by
       mood-designs-custom.js on the template header and the hamburger
       container together. (Placed after the .is-hidden override so it
       wins when both classes are present.) */
    .mxd-header,
    .mxd-header.is-hidden {
        transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
    }
    .mxd-header.header-hidden {
        transform: translateX(-50%) translateY(-130%);
        opacity: 0;
        pointer-events: none;
    }
    .mxd-nav__contain {
        transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
    }
    .mxd-nav__contain.header-hidden {
        transform: translateY(-150%);
        opacity: 0;
    }
    .mxd-nav__contain.header-hidden > * {
        pointer-events: none;
    }

    /* When the fullscreen menu opens, drop below it (template behavior) */
    .mxd-header.menu-is-visible {
        z-index: 10;
    }

    .mxd-header__controls {
        align-items: center;
    }

    /* The pill is always dark, so always use the white logo and a
       light toggle icon regardless of the color scheme. */
    .mxd-header .mood-header-logo-img.theme-light {
        display: none !important;
    }
    .mxd-header .mood-header-logo-img.theme-dark {
        display: block !important;
    }
    .mxd-header .mxd-color-switcher {
        width: 4.6rem;
        height: 4.6rem;
        color: #fff;
    }
    .mxd-header .mxd-color-switcher i {
        font-size: 2.2rem;
    }

    /* Hamburger rides inside the pill's right end: pill top 12px,
       height 64px, button 46px -> top offset 12 + (64 - 46) / 2 = 21px.
       The nav wrap must paint above the pill (z 9998) or the hamburger
       is buried behind the pill's opaque background; .mxd-nav__contain
       is pointer-events: none, so only the button itself catches taps. */
    .mxd-nav__wrap {
        z-index: 9999;
        /* The wrap now sits above the pill, so it must not swallow taps
           meant for the logo / theme toggle underneath. The hamburger
           re-enables itself (.mxd-nav__contain > * is pointer-events:
           auto), and the fullscreen menu is display: none when closed. */
        pointer-events: none;
    }
    .mxd-nav__wrap .mxd-menu__wrapper {
        pointer-events: auto;
    }
    .mxd-nav__contain {
        margin-top: 21px;
        min-height: 0;
        padding: 0 calc((100vw - min(95vw, 720px)) / 2 + 9px) 0 0;
    }
    .mxd-nav__hamburger {
        width: 4.6rem;
        height: 4.6rem;
    }
}

/* Mobile Menu Panel */
#mood-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(22, 22, 22, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 10000;
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

#mood-menu-panel.active {
    transform: translateX(0);
}

#mood-menu-panel .close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

#mood-menu-panel a {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
}

#mood-menu-panel a:hover {
    color: var(--mood-lime);
}

#mood-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

#mood-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hide original header if needed, or adjust it */
/* The user wants to keep the current header but add the pill shaped one. */
/* We'll make sure they don't overlap awkwardly. */
.mxd-header {
    /* Optional: move original header down or change its transparency */
    transition: transform 0.4s ease;
}

body.menu-open {
    overflow: hidden;
}

/* Footer Custom Logo Image */
.mood-footer-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: clamp(30px, 6vw, 60px) 0;
    overflow: hidden;
}

.mood-footer-logo-img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    max-height: clamp(50px, 15vw, 180px);
    object-fit: contain;
    display: none;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Show correct image based on color scheme attribute on root */
html[color-scheme="dark"] .mood-footer-logo-img.theme-dark {
    display: block;
}

html[color-scheme="light"] .mood-footer-logo-img.theme-light {
    display: block;
}

/* Fallback if color-scheme attribute is not present (usually default to dark) */
html:not([color-scheme]) .mood-footer-logo-img.theme-dark {
    display: block;
}

/* Modern Minimal WhatsApp Float */
.mood-whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 10000;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.mood-whatsapp-float.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mood-whatsapp-content {
    background: rgba(22, 22, 22, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 8px 8px 25px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.mood-whatsapp-text {
    font-family: var(--_font-default);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
}

.mood-whatsapp-icon {
    width: 48px;
    height: 48px;
    background: var(--mood-lime);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 20px rgba(195, 255, 6, 0.3);
}

.mood-whatsapp-icon svg {
    width: 20px;
    height: 20px;
}

.mood-whatsapp-float:hover .mood-whatsapp-content {
    background: rgba(22, 22, 22, 0.9);
    border-color: var(--mood-lime);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.mood-whatsapp-float:hover .mood-whatsapp-icon {
    transform: rotate(360deg);
}

.mood-whatsapp-float:hover .mood-whatsapp-text {
    color: #fff;
    letter-spacing: 3px;
}

/* Subtle breathing animation instead of heavy pulse */
@keyframes mood-breathe {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Main Header Logo Images */
.mood-header-logo-container-main {
    display: flex;
    align-items: center;
    height: 40px;
}

.mood-header-logo-img {
    height: 38px;
    width: auto;
    display: none;
    object-fit: contain;
}

/* Toggle main header logo based on theme scheme */
html[color-scheme="dark"] .mood-header-logo-img.theme-dark {
    display: block;
}

html[color-scheme="light"] .mood-header-logo-img.theme-light {
    display: block;
}

/* Fallback if color-scheme attribute is not present (usually default to dark) */
html:not([color-scheme]) .mood-header-logo-img.theme-dark {
    display: block;
}

/* Contact Social Cards Grid */
.mood-social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 40px;
}

.mood-social-card {
    position: relative;
    background: #0a0a0a;
    border-radius: 20px;
    padding: 45px 35px;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    border: 1px solid #1a1a1a;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.mood-social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px;
    /* Border thickness */
    background: linear-gradient(135deg, var(--mood-lime), rgba(255, 255, 255, 0.1) 40%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.mood-social-card:hover {
    background: #0d0d0d;
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(195, 255, 6, 0.08);
}

.mood-social-card:hover::before {
    opacity: 0.8;
}

.mood-social-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mood-social-card__title {
    color: #ffffff;
    font-family: var(--_font-default);
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 18px 0;
    transition: color 0.3s ease;
}

.mood-social-card:hover .mood-social-card__title {
    color: var(--mood-lime);
}

.mood-social-card__divider {
    height: 1px;
    background: #1a1a1a;
    width: 100%;
    margin-bottom: 22px;
    transition: background 0.3s ease;
}

.mood-social-card:hover .mood-social-card__divider {
    background: rgba(195, 255, 6, 0.2);
}

.mood-social-card__desc {
    color: #666666;
    font-family: var(--_font-default);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.mood-social-card:hover .mood-social-card__desc {
    color: #b5b5b5;
}

@media (max-width: 1024px) {
    .mood-social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .mood-social-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mood-social-card {
        padding: 35px 25px;
    }
}

/* Social Card — Icon & Arrow */
.mood-social-card__top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
}

.mood-social-card__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mood-social-card__icon-wrap svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    transition: fill 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
    flex-shrink: 0;
}

.mood-social-card__icon-wrap i {
    font-size: 24px;
    color: #ffffff;
    line-height: 1;
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.mood-social-card:hover .mood-social-card__icon-wrap {
    transform: scale(1.08);
}

.mood-social-card:hover .mood-social-card__icon-wrap svg,
.mood-social-card:hover .mood-social-card__icon-wrap i {
    transform: scale(1.08);
}

.mood-social-card__arrow-wrap {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 13px;
    flex-shrink: 0;
    transition: background 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, color 0.4s ease, transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.mood-social-card:hover .mood-social-card__arrow-wrap {
    background: var(--mood-lime);
    border-color: var(--mood-lime);
    color: #000;
    transform: rotate(45deg);
}

/* All social cards — unified mood-lime hover (matches the site's accent) */
.mood-social-card:hover .mood-social-card__icon-wrap {
    background: rgba(195, 255, 6, 0.08);
    border-color: rgba(195, 255, 6, 0.28);
    box-shadow: 0 0 22px rgba(195, 255, 6, 0.14);
}
.mood-social-card:hover .mood-social-card__icon-wrap svg {
    fill: var(--mood-lime);
}
.mood-social-card:hover .mood-social-card__icon-wrap i {
    color: var(--mood-lime);
}

/* Footer Logo / Fullwidth Text — true edge-to-edge on all screens */
.mxd-footer__fullwidth-text {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Custom Spacing for Home Marquee Section */
.mood-marquee-section {
    padding-top: 0 !important;
    padding-bottom: 3.5rem !important;
    /* Reduced from 10.8rem */
    margin-top: -3.5rem !important;
    /* Pulls it slightly closer to the hero section */
}

@media (max-width: 768px) {
    .mood-marquee-section {
        padding-bottom: 2rem !important;
        margin-top: -1.5rem !important;
    }
}

/* Hero Stats Absolute Positioning & Floating styles around the 3D small logo container */
.mood-hero-objects-container {
    position: absolute;
    left: 50% !important;
    top: 110% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 5 !important;
}

/* Base Card Style matching the premium look of index-personal-portfolio.html */
.mood-hero-stat-card {
    position: relative;
    padding: 1.5rem 2rem;
    border-radius: var(--_radius-pt-m);
    background-color: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5), 0px 0px 20px rgba(195, 255, 6, 0.02);
    width: max-content;
    z-index: 6;
}

/* Mobile — same absolute-around-the-image layout as desktop, scaled down. */
@media (max-width: 767px) {
    .mood-hero-objects-container {
        width: 65vw !important;
        height: 65vw !important;
        max-width: 320px;
        max-height: 320px;
        top: 50% !important;
    }

    .mood-hero-objects-container .mxd-move {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
    }

    .mood-hero-stat-card {
        position: absolute;
        margin: 0;
        padding: 0.7rem 1rem;
        width: max-content;
        background-color: rgba(10, 10, 10, 0.55);
        box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.5);
    }

    /* Years of experience — top-right of the image */
    .mood-hero-stat-card.item-01 {
        top: -1rem;
        right: -3.5rem;
    }

    /* Successful Projects — top-left of the image */
    .mood-hero-stat-card.item-02 {
        top: -1rem;
        left: -3.5rem;
    }

    /* Global Clients — bottom-right of the image */
    .mood-hero-stat-card.item-03 {
        bottom: 1rem;
        right: -3rem;
    }

    /* Stack number above descr so the cards stay narrow and don't collide
       at the top of the image. */
    .mood-hero-stat-card .mxd-counter.horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .mood-hero-stat-card .mxd-counter__number {
        font-size: 1.46rem !important;
    }
    .mood-hero-stat-card .mxd-counter__descr {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    .mood-hero-stat-card .mxd-hero__mark.style-custom-stat { gap: 6px; }
    .mood-hero-stat-card .mxd-hero__mark.style-custom-stat .style-custom-globe {
        font-size: 22px !important;
    }
}

/* Very narrow phones — pull the badges in a bit so they don't clip. */
@media (max-width: 380px) {
    .mood-hero-stat-card { padding: 0.55rem 0.8rem; }
    .mood-hero-stat-card.item-01 { right: -1.5rem; top: -0.5rem; }
    .mood-hero-stat-card.item-02 { left: -1.5rem; top: -0.5rem; }
    .mood-hero-stat-card.item-03 { right: -1rem; bottom: 0.5rem; }
}

/* Adjustments for custom stats to keep them clean and large */
.mood-hero-stat-card .mxd-counter.horizontal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mood-hero-stat-card .mxd-counter__number {
    font-size: clamp(2.56rem, 4vw, 3.86rem) !important;
    line-height: 1;
    font-weight: 700;
    color: var(--mood-lime) !important;
}

.mood-hero-stat-card .mxd-counter__descr {
    line-height: 1.3;
    font-size: 15px;

    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
}

.mood-hero-stat-card .mxd-hero__mark.style-custom-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    padding: 0;
    border: none;
}

.mood-hero-stat-card .mxd-hero__mark.style-custom-stat .style-custom-globe {
    font-size: 34px !important;
    color: var(--mood-lime) !important;
    line-height: 1;
    display: inline-block;
    animation: mood-globe-spin 12s infinite linear;
}

@keyframes mood-globe-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {
    .mood-hero-stat-card .mxd-hero__mark.style-custom-stat .style-custom-globe {
        font-size: 18px !important;
    }
}

.mood-hero-stat-card .mxd-hero__mark.style-custom-stat .mark-text {
    font-family: var(--_font-default);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
    color: #fff;
}

/* Desktop absolute floating styles matching index-personal-portfolio.html */
@media (min-width: 768px) {
    .mood-hero-objects-container {
        /* Set explicit positioning container size matching the rotating 3D logo */
        width: 40rem !important;
        height: 40rem !important;
    }

    .mood-hero-stat-card {
        position: absolute;
        margin: 0;
        background-color: rgba(10, 10, 10, 0.5);
        /* Semi-transparent with backdrop blur */
    }

    /* 10+ Years of experience - Position Top Right */
    .mood-hero-stat-card.item-01 {
        top: 2rem;
        right: -8rem;
    }

    /* 1500+ Successful Projects - Position Left/Center */
    .mood-hero-stat-card.item-02 {
        left: -12rem;
        top: 2rem;
    }

    /* Global Clients - Position Bottom Right */
    .mood-hero-stat-card.item-03 {
        right: -10rem;
        bottom: 4rem;
    }
}

@media (min-width: 1200px) {
    .mood-hero-objects-container {
        width: 45rem !important;
        height: 45rem !important;
    }

    .mood-hero-stat-card.item-01 {
        top: 3rem;
        right: -10rem;
    }

    .mood-hero-stat-card.item-02 {
        left: -15rem;
        top: 3rem;
    }

    .mood-hero-stat-card.item-03 {
        right: -6rem;
        bottom: 18rem;
    }
}

@media (min-width: 1600px) {
    .mood-hero-objects-container {
        width: 60rem !important;
        height: 60rem !important;
    }

    .mood-hero-stat-card.item-01 {
        top: 5rem;
        right: -15rem;
    }

    .mood-hero-stat-card.item-02 {
        left: -20rem;
        top: 5rem;
    }

    .mood-hero-stat-card.item-03 {
        right: -4rem;
        bottom: 24rem;
    }
}

/* Custom Hero 02 Video Block replacement for Scroll Button */
.mxd-hero-02__video-wrap {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(195, 255, 6, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: var(--base-tint);
    width: 24.6rem;
    height: 16rem;
    display: block;
}

@media only screen and (min-width: 1600px) {
    .mxd-hero-02__video-wrap {
        width: 30.8rem;
        height: 20rem;
    }
}

.mxd-hero-02__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mxd-hero-02__video-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 1rem;
}

/* The template hides the hero button slot (which holds the video card)
   below 768px. Show it on phones: centered between the floating logo
   cluster and the bottom caption. Centering uses a full-width flex
   strip, NOT a transform — GSAP scrubs this element's transform on
   scroll and would clobber a translateX(-50%).
   Height is vh-based so it clears the stat cards on short screens. */
@media (max-width: 767.98px) {
    .mxd-hero-02-static__btn {
        display: flex;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 10.6rem;
        justify-content: center;
        pointer-events: none;
    }
    .mxd-hero-02-static__btn .mxd-hero-02__video-wrap {
        pointer-events: auto;
        width: auto;
        height: clamp(9.6rem, 16vh, 16rem);
        aspect-ratio: 246 / 160;
        border-radius: 24px;
    }
}

/* Custom Redesigned CTA Card (White Background & Overflowing Star) */
.mxd-promo__inner.mood-promo-white {
    background-color: #ffffff !important;
    background-image: none !important;
    color: #000000 !important;
    overflow: visible !important;
    border-radius: 40px !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.mxd-promo__inner.mood-promo-white::before {
    display: none !important;
    /* Hide any overlay/background gradient layers if any */
}

/* Ensure the background container or hover background is overridden */
.mood-promo-white .mxd-promo__bg {
    display: none !important;
}

.mood-promo-white .mxd-promo__content {
    position: relative;
    z-index: 10;
    /* Reduced margins to reduce the height of the section card */
    margin: 3.5rem 0 4rem 0 !important;
}

@media only screen and (min-width: 768px) {
    .mood-promo-white .mxd-promo__content {
        margin: 4.5rem 0 5rem 0 !important;
    }
}

@media only screen and (min-width: 1200px) {
    .mood-promo-white .mxd-promo__content {
        margin: 5rem 0 5.5rem 0 !important;
    }
}

@media only screen and (min-width: 1600px) {
    .mood-promo-white .mxd-promo__content {
        margin: 5.5rem 0 6rem 0 !important;
    }
}

/* Chrome Heart Icon */
.mood-promo-white .mxd-promo__icon {
    display: inline-block;
    padding-right: 0.5rem;
    vertical-align: middle;
}

.mood-promo-white .mxd-promo__icon img {
    height: 3.8rem !important;
    width: auto !important;
    vertical-align: middle;
    display: inline-block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

@media only screen and (min-width: 768px) {
    .mood-promo-white .mxd-promo__icon img {
        height: 6rem !important;
    }
}

@media only screen and (min-width: 1400px) {
    .mood-promo-white .mxd-promo__icon img {
        height: 7rem !important;
    }
}

/* Text Caption */
.mood-promo-white .mxd-promo__caption {
    color: #000000 !important;
    font-weight: 700 !important;
    letter-spacing: -0.04em !important;
    vertical-align: middle;
    display: inline;
}

/* Button override */
.mood-promo-white .btn-additional {
    background-color: var(--mood-lime) !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 100px !important;
    /* Reduced vertical padding to make it super sleek and compact */
    padding: 0.8rem 3.2rem !important;
    font-weight: 700 !important;
    font-size: 1.4rem !important;
    display: inline-flex !important;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(195, 255, 6, 0.15) !important;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.mood-promo-white .btn-additional span.btn-caption {
    color: #000000 !important;
    font-weight: 700 !important;
}

.mood-promo-white .btn-additional i {
    color: #000000 !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.mood-promo-white .btn-additional:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-3px) scale(1.02) !important;
}

.mood-promo-white .btn-additional:hover span.btn-caption,
.mood-promo-white .btn-additional:hover i {
    color: #ffffff !important;
}

.mood-promo-white .btn-additional:hover i {
    transform: translate(3px, -3px);
}

/* Custom Overflowing Star */
.mood-promo-star-wrap {
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
    overflow: visible !important;
}



.mood-promo-star-img {
    width: 100%;
    height: auto;
    max-width: none;
    transform: scale(1.1) rotate(-14deg);
    transform-origin: center center;
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.12));
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}


/* Custom Section Override to ensure star doesn't get cropped by parent wrapper overflow settings */
.mood-promo-section {
    overflow-x: clip;
}

/* Responsiveness for Star and Card */
@media only screen and (max-width: 1400px) {
    .mood-promo-star-wrap {
        right: -3rem;
        width: 30%;
    }

    .mood-promo-star-img {
        transform: scale(1.1) rotate(-14deg);
    }
}

@media only screen and (max-width: 1199px) {

    /* Allow overflow but stack/adjust nicely */
    .mxd-promo__inner.mood-promo-white {
        overflow: hidden !important;
        /* contain on mobile to prevent horizontal page scrolling */
    }

    .mood-promo-star-wrap {
        right: -8%;
        bottom: -20%;
        top: auto;
        transform: none;
        width: 40%;
        height: 70%;
        opacity: 0.9;
    }

    .mood-promo-star-img {
        transform: scale(1.1) rotate(15deg);
    }
}

@media only screen and (max-width: 767px) {
    .mood-promo-star-wrap {
        right: -10%;
        bottom: -15%;
        width: 30%;

        opacity: 0.8;
    }

    .mood-promo-star-img {
        transform: scale(1.1) rotate(15deg);
    }

    .mood-promo-white .mxd-promo__content {
        gap: 4rem;
        margin: 3.5rem 0 4rem 0 !important;
    }
}

@media only screen and (max-width: 480px) {
    .mood-promo-star-wrap {
        right: -15%;
        bottom: -8%;
        width: 30%;
        opacity: 0.65;
    }
}

/* Fix for marquee star SVG icons display on mobile / small screens */
.marquee__image svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ====================================================== */
/* Case Studies — image slots (scroll-driven expansion)    */
/* ====================================================== */

/* Map the six new case-study images to the existing slots. */
.preview-image-1 { background-image: url("../page-images/home/casestudies/1.jpg"); }
.preview-image-2 { background-image: url("../page-images/home/casestudies/2.jpg"); }
.preview-image-3 { background-image: url("../page-images/home/casestudies/3.jpg"); }
.preview-image-4 { background-image: url("../page-images/home/casestudies/4.jpg"); }
.preview-image-5 { background-image: url("../page-images/home/casestudies/5.jpg"); }
.preview-image-6 { background-image: url("../page-images/home/casestudies/6.jpg"); }

/* Inline headline icon used on the "Our team" / "Our services" blocks. */
.headline-img-05::before {
    background-image: url("../page-images/home/hero/logo-small.webp") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-color: transparent !important;
}

/* CTA "Contact Us" button in the "Let's talk about your project" promo:
   the template's .btn-large gives a tall pill with tiny text. Trim height,
   add real horizontal padding, and bump the caption size. The .btn-anim
   mechanism stacks two .btn-anim__block siblings inside .btn-caption and
   relies on the caption being exactly one block tall (overflow: hidden) to
   keep the hover-revealed copy hidden — so caption height must match the
   line-height. We use em units so it stays correct if font-size changes. */
.mxd-promo__controls .btn.btn-large {
    height: auto !important;
    min-height: 0 !important;
    padding: 18px 32px !important;
    font-size: 18px !important;
    line-height: 1.5 !important;
}
.mxd-promo__controls .btn.btn-large .btn-caption {
    font-size: 18px !important;
    line-height: 1.5em !important;
    height: 1.5em !important;
    font-weight: 600;
}
.mxd-promo__controls .btn.btn-large .btn-anim__block {
    line-height: 1.5em !important;
}
.mxd-promo__controls .btn.btn-large i {
    font-size: 20px !important;
}

/* =========================================================== */
/* Case Studies — Portfolio End Card                           */
/* Final full-screen panel of the case-studies stack. Links to */
/* the portfolio page, and has hover-driven 3D tilt + a custom */
/* cursor follower.                                            */
/* =========================================================== */

.mxd-cs-end-card-wrap {
  perspective: 1400px;
}

.mxd-cs-end-card {
  position: relative;
  display: block;
  width: 100%;
  height: 86vh;
  max-height: 900px;
  text-decoration: none !important;
  background: var(--base);
  color: var(--base-opp);
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: background 0.3s ease;
  cursor: pointer;
}

.mxd-cs-end-card:hover {
  box-shadow: none;
}

.mxd-cs-end-card__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6vh 6vw;
  text-align: center;
  transform-style: preserve-3d;
}

.mxd-cs-end-card__pills {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  /* Lift the whole pill layer in front of the title (which sits at
     translateZ(40px)) and keep its children in their own 3D context. */
  transform: translateZ(100px);
  transform-style: preserve-3d;
}
.mxd-cs-end-card__pill {
  --rot: 0deg;
  --z:   40px;
  --ax:  1;
  --ay:  1;
  --px:  0px;
  --py:  0px;
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid #ffffff;
  background-color: #000000;
  color: #ffffff;
  font-family: var(--_font-default);
  font-weight: 500;
  font-size: clamp(12px, 1vw, 17px);
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  transform: translate3d(var(--px), var(--py), var(--z)) rotate(var(--rot));
  will-change: transform;
  z-index: 10;
}
html[color-scheme="light"] .mxd-cs-end-card__pill {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
}
html[color-scheme="dark"] .mxd-cs-end-card__pill,
html:not([color-scheme]) .mxd-cs-end-card__pill {
  background-color: #161616 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}
.mxd-cs-end-card__pill[data-i="0"] { top: 26%; left: 28%; --rot: -8deg;  --ax: 1.4; --ay: 0.8; }
.mxd-cs-end-card__pill[data-i="1"] { top: 30%; right: 22%; --rot: 12deg;  --ax: 1.8; --ay: 1.0; }
.mxd-cs-end-card__pill[data-i="2"] { top: 60%; left: 24%; --rot: -10deg; --ax: 1.5; --ay: 1.2; }
.mxd-cs-end-card__pill[data-i="3"] { top: 12%; left: 12%; --rot:  6deg;  --ax: 0.9; --ay: 0.7; }
.mxd-cs-end-card__pill[data-i="4"] { top: 64%; right: 14%; --rot:  9deg;  --ax: 2.0; --ay: 1.3; }
.mxd-cs-end-card__pill[data-i="5"] { top: 18%; left: 56%; --rot: -4deg;  --ax: 0.8; --ay: 0.6; }

.mxd-cs-end-card__title-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 2;
  transform: translateZ(40px);
}
.mxd-cs-end-card__title {
  font-family: var(--_font-accent, var(--_font-default));
  color: var(--base-opp);
  font-weight: 800;
  font-size: clamp(60px, 14vw, 260px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
  text-transform: uppercase;
  -webkit-text-fill-color: currentColor;
}
.mxd-cs-end-card__spark { display: none; }

.mxd-cs-end-card__desc {
  position: relative;
  z-index: 3;
  margin: clamp(20px, 3vh, 40px) 0 clamp(28px, 4vh, 56px);
  color: var(--t-muted);
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.5;
  letter-spacing: 0.01em;
  max-width: 560px;
  transform: translateZ(30px);
}

.mxd-cs-end-card__cta {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  border-radius: 999px;
  /* Brand green in both light and dark mode (same accent used on the
     "Get in Touch" button and elsewhere). Dark text for contrast. */
  background: var(--accent, #c3ff06);
  color: #161616;
  border: 1.5px solid var(--accent, #c3ff06);
  font-family: var(--_font-default);
  font-weight: 600;
  font-size: clamp(14px, 1vw, 17px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateZ(60px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: none;
  will-change: transform;
}
.mxd-cs-end-card__cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: transparent;
  color: inherit;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}
.mxd-cs-end-card__cta-arrow i {
  font-size: 18px;
}
.mxd-cs-end-card:hover .mxd-cs-end-card__cta-arrow {
  transform: rotate(45deg);
}



/* Tablet — under 1200px the giant card / huge type starts feeling
   cramped. Bring everything in a notch. */
@media (max-width: 1199.98px) and (min-width: 768px) {
  .mxd-cs-pin .mxd-cs-track > .mxd-cs-cell.mxd-cs-end-card-wrap {
    width: 94vw !important;
    max-width: 1100px !important;
  }
  .mxd-cs-end-card { height: 78vh; }
  .mxd-cs-end-card__inner { padding: 5vh 5vw; }
  .mxd-cs-end-card__title { font-size: clamp(72px, 14vw, 160px); }
  .mxd-cs-end-card__desc  { font-size: clamp(14px, 1.6vw, 18px); }
  .mxd-cs-end-card__pill[data-i="0"] { top: 18%; left: 10%; }
  .mxd-cs-end-card__pill[data-i="1"] { top: 22%; right: 8%; }
  .mxd-cs-end-card__pill[data-i="2"] { top: 68%; left: 8%; }
  .mxd-cs-end-card__pill[data-i="3"] { top: 74%; left: 36%; }
  .mxd-cs-end-card__pill[data-i="4"] { top: 70%; right: 10%; }
  .mxd-cs-end-card__pill[data-i="5"] { top: 22%; left: 44%; }
}

/* Mobile — single-column layout, no 3D tilt, no follower dot.   */
@media (max-width: 767.98px) {
  .mxd-cs-pin .mxd-cs-track > .mxd-cs-cell.mxd-cs-end-card-wrap {
    width: 88vw !important;
    max-width: 88vw !important;
    max-height: 88vh !important;
  }
  .mxd-cs-end-card {
    height: 80vh;
    max-height: 720px;
    border-radius: 22px;
    cursor: pointer;
  }
  .mxd-cs-end-card__inner { padding: 4vh 5vw; }
  .mxd-cs-end-card__title { font-size: clamp(40px, 12.5vw, 78px); letter-spacing: -0.02em; }
  .mxd-cs-end-card__title-wrap { gap: 0.6rem; }
  .mxd-cs-end-card__desc { font-size: 13px; margin: 18px 0 26px; max-width: 90%; }
  .mxd-cs-end-card__cta { padding: 12px 20px; font-size: 12px; gap: 10px; letter-spacing: 0.06em; }
  .mxd-cs-end-card__cta-arrow { width: 18px; height: 18px; }
  .mxd-cs-end-card__cta-arrow i { font-size: 15px; }
  .mxd-cs-end-card__pill { font-size: 11px; padding: 6px 12px; border-width: 1.2px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
  .mxd-cs-end-card__pill[data-i="0"] { top: 14%; left: 6%; }
  .mxd-cs-end-card__pill[data-i="1"] { top: 18%; right: 4%; }
  .mxd-cs-end-card__pill[data-i="2"] { top: 72%; left: 4%; }
  .mxd-cs-end-card__pill[data-i="3"] { display: none; }
  .mxd-cs-end-card__pill[data-i="4"] { top: 76%; right: 4%; }
  .mxd-cs-end-card__pill[data-i="5"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mxd-cs-end-card__pill,
  .mxd-cs-end-card__spark { animation: none; }
}

/* =========================================================== */
/* Partners / Strategic Network                                 */
/* Two infinite marquees of brand logos, sliding opposite ways. */
/* =========================================================== */

.mood-partners {
  position: relative;
}

/* The template's .padding-default leaves a huge gap between the pinned
   case-studies section and this one — trim the top, keep the bottom. */
.mxd-section.mood-partners.padding-default {
  padding-top: clamp(30px, 6vh, 70px) !important;
}

.mood-partners__heading {
  /* NOTE: template root font-size is 10px, so 1rem = 10px here. */
  margin-bottom: clamp(4rem, 7vh, 6rem);
}

.mood-partners__eyebrow {
  justify-content: center;
  margin-bottom: 1.25rem;
}

.mood-partners__title {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 auto;
  max-width: 22ch;
}

.mood-partners__rails {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(2.4rem, 4.5vh, 4rem);
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.mood-partners__rail {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.mood-partners__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 2.4vw, 3.2rem);
  width: max-content;
  will-change: transform;
  /* the gap participates in the -50% loop, so pad each track's tail
     by the same gap to keep the wrap seamless */
  padding-right: clamp(2rem, 2.4vw, 3.2rem);
}

.mood-partners__track--ltr {
  animation: mood-partners-ltr 50s linear infinite;
}

.mood-partners__track--rtl {
  animation: mood-partners-rtl 60s linear infinite;
}

/* Marquees never pause — not on hover, not ever. */

@keyframes mood-partners-ltr {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@keyframes mood-partners-rtl {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Each logo rides in a soft outlined chip — modern logo-wall look. */
.mood-partners__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  padding: 0 4rem;
  border-radius: 20px;
  border: 1px solid rgba(128, 128, 128, 0.22);
  background: rgba(128, 128, 128, 0.06);
  opacity: 0.8;
  transition: opacity 0.35s ease, border-color 0.35s ease,
              background 0.35s ease, transform 0.35s ease;
}

.mood-partners__item:hover {
  opacity: 1;
  border-color: var(--accent, #c3ff06);
  background: rgba(195, 255, 6, 0.07);
  
}

.mood-partners__item img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  /* Brand SVGs ship with white fill, so we flatten them to black with
     brightness(0) and re-invert for dark mode. Result: black logos on
     light backgrounds, white logos on dark backgrounds. */
  filter: brightness(0);
}

@media (prefers-color-scheme: dark) {
  .mood-partners__item img { filter: brightness(0) invert(1); }
}
[color-scheme=light] .mood-partners__item img { filter: brightness(0); }
[color-scheme=dark]  .mood-partners__item img { filter: brightness(0) invert(1); }

@media (max-width: 767.98px) {
  .mood-partners__heading { margin-bottom: 2rem; }
  .mood-partners__rails { gap: 1.6rem; }
  .mood-partners__track { gap: 1.4rem; padding-right: 1.4rem; }
  .mood-partners__item { height: 64px; padding: 0 2.2rem; border-radius: 14px; }
  .mood-partners__item img { height: 26px; max-width: 120px; }
  .mood-partners__track--ltr { animation-duration: 35s; }
  .mood-partners__track--rtl { animation-duration: 42s; }
}

@media (prefers-reduced-motion: reduce) {
  .mood-partners__track--ltr,
  .mood-partners__track--rtl { animation: none; }
}

/* ------------------------------------------------------------------
   Case study page: gallery images get the same left/right gutters as
   the header (3rem phone / 6rem tablet+ / 9rem wide), instead of
   running full-bleed edge to edge.
   ------------------------------------------------------------------ */
.cs-gallery-block {
    padding: 4rem 3rem 0;
}
@media only screen and (min-width: 768px) {
    .cs-gallery-block {
        padding: 4rem 6rem 0;
    }
}
@media only screen and (min-width: 1600px) {
    .cs-gallery-block {
        padding: 4rem 9rem 0;
    }
}

/* ------------------------------------------------------------------
   Light mode: dark text/icons on the lime accent backgrounds
   The template pairs accent (lime) backgrounds with "opposite" text
   tokens (--t-opp-*). In dark mode those resolve to dark text — fine
   on lime — but in light mode they flip to white, which is unreadable
   on the green. Inside accent containers we pin the opposite tokens
   to their dark-scheme (dark text) values, which every descendant
   (.opposite headings, .t-opposite, outline tags/buttons, icons)
   resolves automatically.
   ------------------------------------------------------------------ */
[color-scheme=light] .bg-accent,
[color-scheme=light] .bg-additional,
[color-scheme=light] .btn-accent,
[color-scheme=light] .tag-accent,
[color-scheme=light] .marquee__item.has-caption,
[color-scheme=light] .mxd-hero-00__marquee,
[color-scheme=light] .mxd-hero-01__marquee {
    --t-opp-bright: var(--t-opp-bright--dark);
    --t-opp-medium: var(--t-opp-medium--dark);
    --t-opp-muted: var(--t-opp-muted--dark);
    --st-opp-bright: var(--st-opp-bright--dark);
}

/* .btn-additional / .tag-additional are lime in BOTH themes but the
   template gives them --t-bright text — white in dark mode. Their
   text/icons must always be dark. */
.btn-additional,
.tag-additional {
    color: #161616;
}

/* Text selection is lime in both themes; keep its text dark in light
   mode too (the template uses --t-opp-bright, white in light mode). */
[color-scheme=light] ::selection {
    color: #161616;
}
[color-scheme=light] ::-moz-selection {
    color: #161616;
}

/* ------------------------------------------------------------------
   Mobile scroll performance
   backdrop-filter on fixed elements forces the GPU to re-blur the
   content scrolling underneath on every frame — a major source of
   scroll lag on real phones. On coarse-pointer devices we swap the
   blur for a slightly more opaque solid background instead.
   ------------------------------------------------------------------ */
@media (pointer: coarse) {
  #mood-header,
  #mood-header.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(22, 22, 22, 0.96);
  }
  .mood-whatsapp-content {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(22, 22, 22, 0.94);
  }
  .mood-hero-stat-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: rgba(10, 10, 10, 0.85);
  }
  #mood-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.65);
  }
}

/* ==========================================================================
   Team photos — anchor to the top so members' heads are never cropped
   ========================================================================== */
.mxd-team-cards__photo picture {
  width: 100%;
  height: 100%;
  display: block;
}
.mxd-team-cards__photo img {
  object-position: top center;
}

/* ==========================================================================
   Footer / menu credit — "Developed by [logo] Pixel Web Developers"
   ========================================================================== */
.mood-dev-credit {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}
.mood-dev-logo {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.45em;
  border-radius: 4px;
  flex: 0 0 auto;
}

/* ==========================================================================
   About hero "Agency" marquee — narrower container only.
   Text size, pill height and vertical position are left exactly as the
   template defines them. We ONLY reduce the container width and add a matching
   `right` offset so the LEFT edge stays locked beside the headline (the right
   edge retracts), keeping the text the same size and avoiding any gap.
   ========================================================================== */
/* Shrink the invisible "your work" placeholder to the marquee width so the
   centred title flow packs "Design" + (narrow slot) as a tight, centred pair.
   The text is transparent so clipping it is invisible. */
.mxd-hero-00 .hero-00-title__item.title-item-transparent {
  overflow: hidden;
  white-space: nowrap;
}
/* The marquee overlays the (now narrow, centred) "your work" slot. We position
   its centre at the slot centre = title-wrap centre + K, where K is constant per
   breakpoint (it depends only on the rem-based "Design" width + gap). Using
   left: calc(50% + K - width/2) keeps it tracking the centre responsively. */
@media only screen and (min-width: 768px) {
  .mxd-hero-00__marquee {
    width: 290px;                 /* was 484px */
    left: calc(50% - 6px);        /* 50% + K(139) - width/2(145) */
    right: auto;
  }
  .mxd-hero-00 .hero-00-title__item.title-item-transparent {
    flex: 0 0 290px;
    width: 290px;
  }
}
@media only screen and (min-width: 1200px) {
  .mxd-hero-00__marquee {
    width: 431px;                 /* was 719px */
    left: calc(50% - 4.5px);      /* 50% + K(211) - width/2(215.5) */
    right: auto;
  }
  .mxd-hero-00 .hero-00-title__item.title-item-transparent {
    flex: 0 0 431px;
    width: 431px;
  }
}
@media only screen and (min-width: 1600px) {
  .mxd-hero-00__marquee {
    width: 490px;                 /* was 816px */
    left: calc(50% - 1px);        /* 50% + K(244) - width/2(245) */
    right: auto;
  }
  .mxd-hero-00 .hero-00-title__item.title-item-transparent {
    flex: 0 0 490px;
    width: 490px;
  }
}

/* Re-anchor the decorative star to the marquee's right corner (it used to sit
   on the full-width marquee). We centre the star on the marquee's right edge =
   parent centre + K + marquee-width/2, so it tracks the marquee responsively.
   right: calc(50% - (K + marqueeW/2 + starW/2)). */
@media only screen and (min-width: 768px) {
  .mxd-hero-00 .hero-00-image.image-02 {
    left: auto;
    right: calc(50% - 334px);   /* K139 + mqW/2 145 + starW/2 50 */
  }
}
@media only screen and (min-width: 1200px) {
  .mxd-hero-00 .hero-00-image.image-02 {
    left: auto;
    right: calc(50% - 496.5px); /* K211 + mqW/2 215.5 + starW/2 70 */
  }
}
@media only screen and (min-width: 1600px) {
  .mxd-hero-00 .hero-00-image.image-02 {
    left: auto;
    right: calc(50% - 579px);   /* K244 + mqW/2 245 + starW/2 90 */
  }
}

/* Make email link green on mobile without hover */
@media only screen and (max-width: 767px) {
  .btn-line-headline span {
    color: var(--accent) !important;
    font-size: 2.5rem;
  }
  .btn-line-headline i {
    color: var(--accent) !important;
    
  }
}

/* Testimonial background image sizing & coverage fix */
.mxd-testimonials-image__img {
  display: flex;
  justify-content: center; /* Center on mobile */
  align-items: center;
  margin-top: 2rem; /* Add spacing on mobile between text and image */
  background: none !important;
}

.mxd-testimonials-image__img img {
  width: 240px;
  height: 320px;
  object-fit: contain;
  border-radius: 12px;
}

@media only screen and (min-width: 1200px) {
  .mxd-testimonials-image__img {
    display: flex;
    justify-content: flex-start; /* Align next to text on desktop */
    align-items: center !important;
    height: 100% !important;
    margin-top: 0;
    background: none !important;
  }
}

/* Service card image — cap at 50% card width on desktop so it doesn't overlap text */
@media only screen and (min-width: 992px) {
  .services-stack__image {
    max-width: 50%;
  }
}

/* About page divider image update */
.divider-image-7 {
  background-image: url(../mood-designs-img/about-page/Untitled-1.webp) !important;
}

