/* ==========================================================================
   CSS Variables - Refined Light Mode (China & Brazil mix)
   ========================================================================== */
:root {
    /* Refined Light Colors */
    --bg-main: #FDFDFD; /* Pure elegant white/off-white */
    --bg-secondary: #F3F4F6; /* Soft gray for sections */
    --text-primary: #1A1A1A; /* Very dark charcoal for readability */
    --text-secondary: #52525B; /* Medium gray */
    
    /* Branding Colors */
    --china-red: #DA251D;
    --brazil-green: #009C3B;
    --brazil-yellow: #FFDF00;
    
    /* Accent & Borders */
    --accent-color: var(--china-red);
    --accent-hover: #B91C14;
    --card-bg: #FFFFFF;
    --border-color: rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-heading: 'Playfair Display', 'Georgia', 'Times New Roman', Times, 'PingFang SC', 'Microsoft YaHei', serif; /* Custom local + native fallback */
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif; /* Custom local + native fallback */
    
    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; font-weight: 700; margin-bottom: 0.5rem; }
h2 { font-size: 2.8rem; font-weight: 600; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }

.accent-text { color: var(--text-secondary); font-family: var(--font-main); font-weight: 300; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.section {
    padding: var(--space-xl) 0;
    border-bottom: 2px solid;
    border-image: linear-gradient(to right, #009c3b, #ffdf00) 1;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Ambient Color Mix (China + Brasil Background)
   ========================================================================== */
.ambient-colors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    opacity: 0.12; /* Subtle and refined */
}

.color-blob {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    animation: drift 20s infinite alternate ease-in-out;
}

.china-red {
    top: -10%;
    left: 10%;
    width: 600px;
    height: 600px;
    background-color: var(--china-red);
}

.brazil-green {
    top: 20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background-color: var(--brazil-green);
    animation-delay: -5s;
}

.brazil-yellow {
    top: 40%;
    left: 30%;
    width: 500px;
    height: 500px;
    background-color: var(--brazil-yellow);
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.1); }
}

.gradient-text {
    background: linear-gradient(90deg, var(--brazil-green) 0%, var(--brazil-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* ==========================================================================
   Components
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 500;
    font-family: var(--font-main);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-radius: 2px;
}

.btn-primary {
    background-color: var(--text-primary);
    color: #FFF;
}

.btn-primary:hover {
    background-color: var(--china-red);
    box-shadow: 0 10px 25px rgba(218, 37, 29, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background-color: rgba(0,0,0,0.03);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 0;
    background: transparent;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(253, 253, 253, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(0,0,0,0.02);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: 0px;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-family: var(--font-main);
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    transition: color 0.3s ease;
}

.lang-btn.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-text {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.hero-text h1.subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Before/After Section
   ========================================================================== */
.before-after-section {
    background-color: var(--bg-secondary);
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.comparison-card {
    background: var(--card-bg);
    padding: 3rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    position: relative;
}

.status-label {
    position: absolute;
    top: -15px;
    left: 3rem;
    background: var(--text-secondary);
    color: #FFF;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
}

.highlight-label {
    background: var(--china-red);
}

.comparison-card h3 {
    margin-top: 1rem;
}

.comparison-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.comparison-card-title h3 {
    margin: 0;
}

.comparison-card.before {
    opacity: 0.85;
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    transform: scale(0.98);
}

.comparison-card.before .comparison-card-title svg {
    color: #999;
}

.comparison-card.after {
    border: 2px solid var(--china-red);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.1);
    transform: scale(1.02);
}

.comparison-card.after .comparison-card-title svg {
    color: var(--china-red);
}

/* ==========================================================================
   Deliverables Section (Practical)
   ========================================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.deliverable-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.deliverable-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.d-icon {
    font-size: 2.5rem;
    line-height: 1;
    color: var(--text-primary);
}

.d-content h3 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.d-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Methodology (Steps Timeline)
   ========================================================================== */
.methodology-section {
    background-color: var(--bg-main);
    position: relative;
    z-index: 1;
    /* overflow: hidden is not used here to avoid cutting off sticky children prematurely, but usually fine. Let's see */
}

/* China background at the top */
.methodology-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: url('../../shanghai-city-china-2026-03-10-03-55-03-utc.jpg') no-repeat center top;
    background-size: cover;
    opacity: 0.12;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

/* Brazil background at the bottom */
.methodology-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: url('../../rio-with-corcovado-mountain-sugarloaf-mountain-an-2026-03-24-21-59-51-utc.jpg') no-repeat center bottom;
    background-size: cover;
    opacity: 0.12;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.methodology-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: start;
}

.methodology-image-container {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.methodology-image-container img,
.methodology-image-container video {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: block;
}

.steps-container {
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
}

.step-card {
    background: transparent;
    border-left: 1px solid var(--border-color);
    padding: 0 2rem 4rem 3rem;
    position: relative;
    transition: all 0.3s ease;
}

.step-card::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.step-card:hover::before {
    background: var(--china-red);
    box-shadow: 0 0 10px rgba(218, 37, 29, 0.3);
}

.step-card:hover {
    border-left-color: rgba(218, 37, 29, 0.3);
}

.step-card:last-child {
    border-left-color: transparent;
}

.step-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.2rem;
    position: relative;
    top: -5px;
}

.step-number {
    font-size: 1rem;
    font-family: var(--font-main);
    color: var(--text-secondary);
    font-weight: 500;
}

.step-header h3 {
    margin: 0;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.step-body p {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.step-body strong {
    color: var(--text-primary);
    font-weight: 500;
}

.deliverable-box {
    background: transparent;
    padding: 1.5rem 0;
    margin: 1.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.deliverable-box ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.deliverable-box li {
    margin-bottom: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.tag-target {
    background: transparent;
    color: var(--brazil-green);
    border: 1px solid rgba(0, 156, 59, 0.3);
}

.step-footer {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-item {
    display: flex;
    gap: 0.5rem;
}

.status-item strong {
    min-width: 130px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================================================
   Social Proof Section
   ========================================================================== */
.social-proof-section {
    background-color: var(--card-bg);
}

.brands-ribbon {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    opacity: 0.7;
    filter: grayscale(100%);
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.brands-ribbon:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-item {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.cases-grid {
    margin-top: 3rem;
}

.case-card {
    padding: 2rem;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.case-card:hover {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.case-header {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* ==========================================================================
   Extra Strategic Services Section
   ========================================================================== */
.extra-services-section {
    background-color: var(--bg-secondary);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    transform: translateY(-3px);
}

.card h3 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ==========================================================================
   Contact Form & Channels
   ========================================================================== */
.contact-section {
    background-color: #0d0101;
    background-image: linear-gradient(135deg, #150101 0%, #050000 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.contact-particles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-section .section-title,
.contact-section h2, 
.contact-section h3, 
.contact-section label {
    color: #fff;
}

.contact-section p {
    color: rgba(255, 255, 255, 0.7);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-header h2 {
    font-size: 2.2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="text"],
input[type="url"],
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--china-red);
    background: rgba(255, 255, 255, 0.1);
}

.contact-section .btn-primary {
    background-color: var(--china-red);
}

.contact-section .btn-primary:hover {
    background-color: var(--accent-hover);
}

/* Contact Channels */
.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
}

.channel-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
}

.channel-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.channel-info {
    display: flex;
    flex-direction: column;
}

.channel-info strong {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.channel-info span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
    background-color: var(--text-primary);
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-family: var(--font-main);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

/* ==========================================================================
   Language Specific Styles (Density Tweaks)
   ========================================================================== */
html[lang="zh"] body {
    line-height: 1.8;
}

html[lang="zh"] h1, 
html[lang="zh"] h2, 
html[lang="zh"] h3 {
    letter-spacing: 1px;
}

html[lang="zh"] .section {
    padding: 5rem 0; /* Slightly denser spacing for Chinese */
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .comparison-container,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 992px) {
    .methodology-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .methodology-image-container {
        position: relative;
        top: 0;
        order: -1;
    }
}
/* ==========================================================================
   Portfolio Grid (Videos)
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    margin-top: 3rem;
    margin-bottom: 3rem;
    border-radius: 8px; /* Optional: border-radius on the whole grid container to keep the edges smooth */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.portfolio-video-wrapper {
    position: relative;
    background: #000;
    line-height: 0; /* Prevents tiny gaps below videos */
}

.portfolio-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}
/* ==========================================================================
   Hero Video Background Overrides
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    color: #FFF; /* Ensure text is white */
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.85); /* Dark elegant overlay */
    z-index: 1;
}

.hero .container {
    z-index: 2;
}

.hero-text h1, 
.hero-text h1.subtitle, 
.hero-text p {
    color: #FFF;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-text h1.subtitle {
    opacity: 0.9;
}

.hero .badge {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFF;
    border-color: rgba(255, 255, 255, 0.2);
}
/* Custom Video Play Button */
.portfolio-video-wrapper {
    position: relative;
    cursor: pointer;
}

.portfolio-video {
    /* Hide native controls */
    pointer-events: none; 
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none; /* Let the wrapper handle clicks */
}

.portfolio-video-wrapper:hover .play-overlay {
    background: rgba(218, 37, 29, 0.8); /* China Red */
    border-color: #FFF;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-overlay svg {
    width: 24px;
    height: 24px;
    fill: #FFF;
    margin-left: 4px; /* Optical center for play icon */
}

.portfolio-video-wrapper.is-playing .play-overlay {
    opacity: 0;
}

.portfolio-video-wrapper.is-playing:hover .play-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

.portfolio-video-wrapper.is-playing .play-overlay svg {
    margin-left: 0;
    /* We can swap to pause icon via JS, but for now we just show a semi-transparent play button on hover if playing to imply "pause" */
}
/* ==========================================================================
   Custom Poster and Before-After Section Updates
   ========================================================================== */
.custom-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
}

.portfolio-video-wrapper.is-playing .custom-poster {
    display: none;
}

.portfolio-video-wrapper .play-overlay {
    z-index: 2;
}

.before-after-section {
    position: relative;
    z-index: 1;
    background-color: transparent !important;
}

.before-after-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: url('../../rio-with-corcovado-mountain-sugarloaf-mountain-an-2026-03-24-21-59-51-utc.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.25;
    z-index: -1;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

.before-after-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../../shanghai-city-china-2026-03-10-03-55-03-utc.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.25;
    z-index: -1;
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}
