:root {
    /* Define a bright, energetic theme color: Vibrant Orange */
    --theme-color: #FF5722;
    --theme-hover: #E64A19;
    --bg-color: #FFFFFF;
    --text-main: #111827;
    --text-sec: #4B5563;
    --light-gray: #F3F4F6;
    --accent-color: #FF5722;
    /* Matches theme color */
    --theme-shadow: rgba(255, 87, 34, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
html {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    opacity: 0;
    animation: fadeInPage 1s ease-out forwards;
}

@keyframes fadeInPage {
    to {
        opacity: 1;
    }
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.1;
}

p {
    line-height: 1.6;
    color: var(--text-sec);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;

}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
    z-index: 1;
}

/* Restore original white haze overlay for home page only */
.home-page .hero-overlay {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.4));
}

.logo-container {
    position: relative;
    z-index: 3;
    text-align: center;
    /* Removed the glassmorphism box:
    padding: 3rem 5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    */
    transform: translateY(20px);
    animation: slideUpLogo 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideUpLogo {
    to {
        transform: translateY(0);
    }
}

.logo {
    margin-bottom: 2rem;
}

.main-logo-img {
    height: 45px;
    /* Unified height for consistency */
    width: auto;
    display: block;
    margin: 0 auto;
}

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

.subtitle {
    margin-bottom: 2rem;
}

.sub-logo-img {
    height: 70px;
    /* Increased to compensate for internal padding and match visual scale */
    width: auto;
    display: block;
    margin: 0 auto;
    opacity: 0.9;
}

/* Top Navigation (Company Logo & Contact Info) */
.top-nav {
    position: fixed;

    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
    /* Optional: add a subtle background on scroll via JS later, keeping it clear for now */
    pointer-events: none;
    /* Let clicks pass through empty areas */
    transform: translateZ(0);
}

/* Re-enable pointer events for interactive children */
.top-nav>* {
    pointer-events: auto;
}

/* Company Brand */
.company-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1.2rem 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.company-brand:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-logo-img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

/* Make logo2 use the theme color */
.theme-logo {
    filter: invert(48%) sepia(87%) saturate(2250%) hue-rotate(338deg) brightness(101%) contrast(102%);
}

.brand-logo {
    width: 28px;
    height: 28px;
    color: var(--theme-color);
}

/* ZX Studio Logo between main logos */
.zx-studio-container {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    mix-blend-mode: difference;
    /* Inverse color based on background video */
    perspective: 1000px;
    /* Enable 3D space */
}

/* Sub-site specific: Override blend mode to force white logo against dark overlay */
body:not(.home-page) .zx-studio-container {
    mix-blend-mode: normal;
}

.zx-studio-img {
    height: 50px;
    width: auto;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

body:not(.home-page) .zx-studio-img {
    filter: brightness(0) invert(1);
}

.brand-name {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.2rem;
}

.contact-wrapper {
    position: relative;
    /* Anchor for popovers */
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: rgba(255, 255, 255, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    cursor: copy;
}

/* Contact Popover (Small Window) */
.contact-popover {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 100;
    pointer-events: auto;
    /* Enable pointer events so users can click content inside */
    text-align: center;
    min-width: 180px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Position variant: Top */
.contact-popover.popover-top {
    top: auto;
    bottom: calc(100% + 15px);
    transform: translateX(-50%) translateY(-10px);
}

.contact-popover.popover-top::before {
    top: auto;
    bottom: -6px;
    border-top: none;
    border-left: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-wrapper.show .contact-popover.popover-top {
    transform: translateX(-50%) translateY(0);
}

.contact-popover::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

/* Show on hover OR when parent has .active class */
/* Show when wrapper has .show class (handled by JS for delay) */
.contact-wrapper.show .contact-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.popover-item {
    padding: 0.5rem 0;
}

.popover-label {
    font-size: 0.75rem !important;
    color: var(--text-sec) !important;
    margin-bottom: 2px !important;
    text-transform: uppercase;
}

.popover-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 4px 0;
}

/* Style for clickable elements inside popover */
.popover-phone {
    font-weight: 800;
    font-size: 1.1rem !important;
    color: var(--text-main) !important;
    margin-bottom: 0.25rem !important;
    cursor: copy;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.popover-phone:hover {
    background: rgba(0, 0, 0, 0.05);
}

.qr-popover img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.contact-popover p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-sec);
    white-space: nowrap;
}

.popover-phone {
    font-weight: 800;
    font-size: 1.1rem !important;
    color: var(--text-main) !important;
    margin-bottom: 0.25rem !important;
}

.popover-hint {
    color: var(--theme-color) !important;
    font-weight: 600;
}

/* Click Feedback */
.copy-btn.success {
    background: var(--theme-color);
    color: white;
    border-color: var(--theme-color);
}

.copy-btn.success svg {
    color: white;
}

.contact-link svg {
    color: var(--theme-color);
    /* Restored to theme color */
    transition: transform 0.3s ease;
}

.contact-link:hover {
    color: var(--theme-color);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-link:hover svg {
    transform: scale(1.1);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

.scroll-text {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-main);
}

body:not(.home-page) .scroll-text {
    color: #FFFFFF;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--text-main);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

body:not(.home-page) .scroll-line {
    background: rgba(255, 255, 255, 0.5);
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--theme-color);
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

.portfolio-container {
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--light-gray) 100%);
    position: relative;
    z-index: 3;
    padding-bottom: 20vh;
    /* Adds some space at the very bottom */
}

.video-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Denser layout but safely expands if content requires it to prevent overlap */
    min-height: max(60vh, 450px);
    padding: 3rem clamp(2rem, 5vw, 8%);
    gap: 3rem;

}

/* Flexible widths preventing overlap */
.text-side {
    flex: 1 1 40%;
    min-width: 300px;
    /* Prevent text column from getting too squished */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-side {
    flex: 1 1 55%;
    max-width: 800px;
    /* Don't let it get absurdly wide on ultrawide monitors */
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-content {
    opacity: 1;
    transform: translateZ(0);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.text-content.reveal {
    opacity: 1;
    transform: none;
}

.category-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--theme-color);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.project-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.2;
}

.project-desc {
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: 2rem;
    max-width: 95%;
}

.theme-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--theme-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(255, 87, 34, 0.4);
    position: relative;
    overflow: hidden;
}

.theme-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.theme-button:hover {
    background-color: var(--theme-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(255, 87, 34, 0.5);
}

.theme-button:hover::before {
    left: 100%;
}

/* Video Wrapper Styling */
.video-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    transform: translateZ(0);
    opacity: 1;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
    background: #000;
}

.video-wrapper::after {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    bottom: -10px;
    left: -10px;
    background: var(--theme-color);
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 1s ease;
}

.video-wrapper.reveal {
    transform: scale(1);
    opacity: 1;
}

/* This class will be added by JS to the center-most video */
.video-wrapper.active {
    transform: scale(1.05) translateY(-15px);
    box-shadow: 0 40px 80px rgba(255, 87, 34, 0.25), 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.video-wrapper.active::after {
    opacity: 0.3;
    /* Brighter glow for the active one */
}

.video-wrapper.reveal::after {
    opacity: 0.15;
}

.portfolio-video {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-wrapper:hover .portfolio-video {
    transform: scale(1.02);
}

/* Responsive adjustments for Tablets and Mobile */
@media (max-width: 1024px) {
    .video-row {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 5rem 5%;
        gap: 2.5rem;
        min-height: auto;
        /* Let it grow naturally on mobile */
        height: auto;
    }

    .text-side,
    .video-side {
        width: 100%;
        min-width: unset;
        flex: 0 0 auto;
        padding: 0;
    }

    .text-side {
        align-items: center;
    }

    .project-desc {
        max-width: 100%;
    }

    .logo {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .top-nav {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .contact-info {
        justify-content: center;
    }
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Dark dimming background */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--bg-color);
    width: 90vw;
    height: 90vh;
    border-radius: 20px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem 2.5rem 3rem;
    /* Further reduced from 2rem to 1.5rem */
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
}

/* Custom Scrollbar for Modal Container */
.modal-container::-webkit-scrollbar {
    width: 8px;
    /* slim and sleek */
}

.modal-container::-webkit-scrollbar-track {
    background: transparent;
    margin: 15px 0;
    /* Prevents scrollbar from extending into the rounded borders! */
}

.modal-container::-webkit-scrollbar-thumb {
    background: rgba(255, 87, 34, 0.3);
    /* Theme color light */
    border-radius: 20px;
    border: 2px solid var(--bg-color);
    /* Adds a faux gap between thumb and container edge */
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 87, 34, 0.7);
    /* Darkens on hover */
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border: none;
    color: var(--text-sec);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-radius: 20px;
}

.modal-close:hover {
    color: white;
    background: var(--theme-color);
    transform: rotate(90deg) scale(1.1);
}

.modal-content {
    display: flex;
    flex-direction: column;
}

.modal-header {
    margin-bottom: 0.8rem;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 0.8rem;
}

.modal-header h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    margin-top: 0;
    line-height: 1.3;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.gallery-item {
    background: var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item video {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    background: #000;
}

.item-info {
    padding: 1.5rem;
}

.item-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.item-info p {
    font-size: 0.95rem;
    color: var(--text-sec);
    margin: 0;
}

/* Modal Responsive */
@media (max-width: 1024px) {
    .modal-container {
        width: 95vw;
        height: 90vh;
        padding: 2rem 1.5rem;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
    }
}

/* --- Homepage Redesign Sections --- */

.business-cards-section {
    padding: 80px 5%;
    background: #fdfdfd;

}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    letter-spacing: -0.02em;
}

.cards-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.business-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    height: 500px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    z-index: 1;
}

.business-card:hover .card-bg {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.8));
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
}

.business-card .card-title {
    font-size: 2rem;
    /* Large Chinese title */
    font-weight: 800;
    margin-bottom: 5px;
    color: white !important;
}

.business-card .card-category {
    font-size: 0.9rem;
    /* Small English label */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    display: block;
}

.business-card .card-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 0;
    /* Hidden by default */
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.business-card:hover .card-desc {
    opacity: 1;
    transform: translateY(0);
}

.card-btn {
    display: block;
    width: 100%;
    padding: 14px 25px;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-btn:hover {
    background: var(--accent-color);
    color: white;
}

/* --- Partners Section (Boxed Carousel) --- */
.partners-section {
    padding: 120px 0;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;

}

.partners-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.partners-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.marquee-rows-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* More compact gap between rows */
    padding: 20px 0;
    /* Compact vertical space */
    overflow: hidden;
    /* Hide horizontal overflow at the edges */
    position: relative;
    background: transparent;
}

/* Removed edge fading shadows for a borderless feel */

.marquee-row {
    display: flex;
    width: 100%;
    overflow: visible !important;
    /* Allow shadows to bleed outside row height */
    position: relative;
}

.marquee-track {
    display: flex;
    width: fit-content;
    gap: 30px;
    padding: 40px 15px;
    /* Enough vertical space specifically for hover scale */
}

/* Row 1: Leftward */
.scroll-left .marquee-track {
    animation: scroll-left 40s linear infinite;
}

/* Row 2: Rightward */
.scroll-right .marquee-track {
    animation: scroll-right 40s linear infinite;
}

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

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

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

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

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

.partner-box {
    flex: 0 0 280px;
    height: 280px;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 28px;
    padding: 20px; /* Reduced from 40px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.partner-logo-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.partner-logo {
    width: 220px;
    height: 120px;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0);
    opacity: 0.85;
    transition: all 0.5s ease;
}

.text-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #000;
    letter-spacing: -1px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    opacity: 0.85;
}

.partner-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, #ffffff 80%, rgba(255, 255, 255, 0));
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.2, 1, 0.2, 1);
    text-align: center;
    pointer-events: none;
}

.partner-info h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.partner-info p {
    font-size: 0.85rem;
    color: var(--text-sec);
    line-height: 1.4;
}

/* Hover Effect: Scale, Float, and Reveal Info */
.partner-box:hover {
    background: #ffffff;
    border-color: var(--theme-color);
    box-shadow: 0 30px 60px var(--theme-shadow);
    transform: translateY(-5px) scale(1.05);
    /* Reduced translate for marquee smoothness */
    z-index: 10;
}

.partner-box:hover .partner-logo-wrapper {
    transform: translateY(-40px) scale(0.8);
}

.partner-box:hover .partner-logo {
    filter: brightness(0);
    opacity: 1;
}

.partner-box:hover .partner-info {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .partner-box {
        flex: 0 0 220px;
        height: 220px;
        padding: 30px;
    }

    .marquee-rows-container {
        gap: 20px;
    }
}

.partner-logo:hover {
    filter: brightness(0);
    opacity: 1;
}

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

.cases-testimonials {
    padding: 100px 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    background: #fafafa;
}

.featured-cases h3,
.testimonials h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.case-item {
    background: white;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.case-img, 
.case-video-preview {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    display: block;
    background: #000;
}

.case-item h4 {
    font-size: 1rem;
    font-weight: 700;
}

.case-item.view-details {
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-item.view-details:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 87, 34, 0.15);
}

.case-link-hint {
    font-size: 0.75rem;
    color: var(--theme-color);
    margin-top: 10px;
    font-weight: 600;
    opacity: 0.8;
}

.testimonial-item {
    background: white;
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h5 {
    font-weight: 800;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-sec);
}

.contact-block {
    padding: 100px 5%;
    background: #111;
    color: white;
    text-align: center;
}

.contact-block h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.contact-item.copy-click {
    cursor: default;
    /* Remove previous card-level cursor */
}

.copy-click {
    cursor: pointer;
    transition: color 0.3s ease;
}

.copy-click:hover {
    color: var(--theme-color) !important;
}

.copy-target {
    word-break: break-all;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--theme-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-details p {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-label {
    font-size: 0.85rem;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-qr-container {
    background: white;
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 15px;
}

.contact-qr-img {
    width: 140px;
    height: 140px;
    display: block;
}

.main-footer {
    padding: 40px 5%;
    background: #000;
    color: white;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer .copyright {
    font-size: 0.85rem;
    opacity: 0.5;
    margin: 0;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1.25rem;
    overflow: hidden;
    padding: 0;
}

.social-icon .platform-name {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 600;
    margin-left: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.xhs-logo {
    font-size: 0.8rem;
    font-weight: 800;
    font-family: -apple-system, sans-serif;
    letter-spacing: -1px;
}

.social-icon:hover {
    transform: translateY(-4px);
    width: 130px;
}

.social-icon:hover .platform-name {
    max-width: 100px;
    opacity: 1;
    margin-left: 0.6rem;
}

/* Default state has the brand theme color shadow and border! */
.brand-douyin {
    color: #fe2c55;
    border: 1px solid rgba(254, 44, 85, 0.4);
    box-shadow: 0 4px 15px rgba(254, 44, 85, 0.25);
}

.brand-bilibili {
    color: #00a1d6;
    border: 1px solid rgba(0, 161, 214, 0.4);
    box-shadow: 0 4px 15px rgba(0, 161, 214, 0.25);
}

.brand-xhs {
    color: #ff2442;
    border: 1px solid rgba(255, 36, 66, 0.4);
    box-shadow: 0 4px 15px rgba(255, 36, 66, 0.25);
}

.brand-wechat {
    color: #07c160;
    border: 1px solid rgba(7, 193, 96, 0.4);
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.25);
}

/* Hover fills the circle */
.brand-douyin:hover {
    color: #fff;
    background: #fe2c55;
    box-shadow: 0 8px 25px rgba(254, 44, 85, 0.5);
    border-color: #fe2c55;
}

.brand-bilibili:hover {
    color: #fff;
    background: #00a1d6;
    box-shadow: 0 8px 25px rgba(0, 161, 214, 0.5);
    border-color: #00a1d6;
}

.brand-xhs:hover {
    color: #fff;
    background: #ff2442;
    box-shadow: 0 8px 25px rgba(255, 36, 66, 0.5);
    border-color: #ff2442;
}

.brand-wechat:hover {
    color: #fff;
    background: #07c160;
    box-shadow: 0 8px 25px rgba(7, 193, 96, 0.5);
    border-color: #07c160;
}

@media (max-width: 900px) {
    .cases-testimonials {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Menu Styles */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    z-index: 1001;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2rem;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-main);
}

.sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-sec);
    padding: 5px;
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    color: var(--theme-color);
    transform: rotate(90deg);
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-links li a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.sidebar-links li a:hover {
    color: var(--theme-color);
    transform: translateX(10px);
}

/* 3-Layer Sidebar Enhancements */
.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Use gap instead of space-evenly for better scroll behavior */
    padding-bottom: 2rem;
}

.sidebar-group {
    margin-bottom: 0;
    /* Let space-evenly handle distribution */
}

/* Spacing for links inside groups */
.sidebar-links li,
.studio-links li {
    margin-bottom: 1rem;
}

.sidebar-menu.compact-nav .studio-links .link-en {
    font-size: 1.2rem;
}

.sidebar-menu.compact-nav .group-label {
    margin-bottom: 0.8rem;
}

.group-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-sec);
    margin-bottom: 1.2rem;
    font-weight: 800;
    opacity: 0.6;
}

/* Layer 1: Studio Hub */
.studio-links li {
    margin-bottom: 1.5rem;
}

.studio-links li a {
    display: flex;
    flex-direction: column;
    padding: 0;
    line-height: 1.2;
}

.studio-links .link-en {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.studio-links .link-zh {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 4px;
    font-weight: 400;
}

/* Layer 2: Secondary Links */
.secondary-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Layer 3: Utility & Social */
.utility-links li {
    margin-bottom: 0.5rem;
}

.utility-links .home-link {
    font-size: 0.85rem;
    opacity: 0.5;
}

.xhs-icon-mini {
    font-size: 0.7rem;
    font-weight: 900;
    font-family: -apple-system, sans-serif;
    letter-spacing: -0.2px;
    border: 1.5px solid currentColor;
    padding: 1px 4px;
    border-radius: 4px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    transform: translateY(-1px);
}

.sidebar-social-mini {
    display: flex;
    justify-content: center;
    /* Center social icons */
    gap: 1.8rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-social-mini a {
    font-size: 1.2rem;
    color: var(--text-sec);
    transition: all 0.3s ease;
}

.sidebar-social-mini .xhs-logo {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: -1px;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    transform: translateY(-1px);
}

.sidebar-social-mini a:hover {
    color: var(--theme-color);
    transform: translateY(-3px);
}

/* --- Site-Specific Theme Overrides (White Background) --- */

/* 1. Global Premium Monochrome Theme (Home, Video, Music, Stage) 
   Design: White Background, Black/Dark Text, No extra colors for "High-End" feel. */
:is(.home-page, .video-page, .music-page, .stage-page) .sidebar-menu {
    border-left: 1px solid #eee;
    /* Ultra-thin subtle divider */
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
}

:is(.home-page, .video-page, .music-page, .stage-page) .sidebar-links .link-en,
:is(.home-page, .video-page, .music-page, .stage-page) .studio-links .link-en,
:is(.home-page, .video-page, .music-page, .stage-page) .sidebar-links li a,
:is(.home-page, .video-page, .music-page, .stage-page) .studio-links li a,
:is(.home-page, .video-page, .music-page, .stage-page) .sidebar-social-mini a,
:is(.home-page, .video-page, .music-page, .stage-page) .sidebar-header h3,
:is(.home-page, .video-page, .music-page, .stage-page) .sidebar-close {
    color: #1a1a1a !important;
    /* Premium Off-Black */
    letter-spacing: 0.05em;
}

:is(.home-page, .video-page, .music-page, .stage-page) .sidebar-links .link-zh,
:is(.home-page, .video-page, .music-page, .stage-page) .studio-links .link-zh,
:is(.home-page, .video-page, .music-page, .stage-page) .group-label {
    color: #1a1a1a !important;
    opacity: 0.5;
    /* Subtle secondary info */
}

/* Specific adjustment for active/hover link in Mono theme */
:is(.home-page, .video-page, .music-page, .stage-page) .sidebar-links li a:hover,
:is(.home-page, .video-page, .music-page, .stage-page) .studio-links li a:hover {
    color: #000 !important;
    background: rgba(0, 0, 0, 0.02);
    /* Almost invisible touch of grey */
}

:is(.home-page, .video-page, .music-page, .stage-page) .sidebar-links li a.active,
:is(.home-page, .video-page, .music-page, .stage-page) .studio-links li a.active {
    font-weight: 700;
}

/* Social QR Modal */
.social-modal-container {
    width: 90vw;
    max-width: 360px;
    height: auto;
    padding: 2.5rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-modal-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--theme-color), #ff9800);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.qr-wrapper {
    background: white;
    padding: 1rem;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.qr-wrapper img {
    width: 200px;
    height: 200px;
    display: block;
    object-fit: contain;
}

.social-id-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 1rem 0;
    padding: 0.6rem 1.2rem;
    background: var(--light-gray);
    border-radius: 50px;
    display: inline-block;
    cursor: copy;
    transition: all 0.3s ease;
}

.social-id-text:hover {
    background: rgba(0, 0, 0, 0.05);
}

.copy-success-badge {
    color: var(--theme-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.copy-success-badge.show {
    opacity: 1;
    transform: translateY(0);
}


/* --- Floating Inquiry Button (FAB) --- */
.inquiry-fab {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 80;
    background: var(--theme-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.9rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.inquiry-fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 87, 34, 0.5);
}

/* --- Inquiry Modal --- */
.inquiry-modal-container {
    width: 90vw;
    max-width: 560px;
    height: auto;
    padding: 2.5rem;
    background: #fff;
}

.inquiry-form-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
    /* Push content down away from the close button */
}

/* Progress Bar */
.inquiry-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    padding: 0 1.5rem;
    /* Squeeze progress bar inwards to avoid the top-right close button */
}

.progress-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--text-sec);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.progress-step.active {
    background: var(--theme-color);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.35);
}

.progress-step.done {
    background: rgba(255, 87, 34, 0.15);
    color: var(--theme-color);
}

.progress-line {
    flex-grow: 1;
    height: 2px;
    background: var(--light-gray);
    margin: 0 0.4rem;
    transition: background 0.4s ease;
}

.progress-line.active {
    background: var(--theme-color);
}

/* Steps */
.inquiry-step {
    display: none;
    flex-direction: column;
    gap: 1rem;
    animation: stepFadeIn 0.3s ease;
}

.inquiry-step.active {
    display: flex;
}

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

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

.inquiry-step h3 {
    font-size: 1.4rem;
    font-weight: 800;
}

.step-hint {
    font-size: 0.9rem;
    color: var(--text-sec);
    margin-top: -0.5rem;
}

/* Service Type Chips */
.service-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.service-chip {
    cursor: pointer;
}

.service-chip input {
    display: none;
}

.service-chip span {
    display: block;
    text-align: center;
    padding: 0.7rem;
    border-radius: 10px;
    border: 2px solid var(--light-gray);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.service-chip input:checked+span {
    border-color: var(--theme-color);
    background: rgba(255, 87, 34, 0.08);
    color: var(--theme-color);
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-sec);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.7rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
    background: var(--light-gray);
    color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--theme-color);
    background: white;
}

/* Success State */
.inquiry-success {
    text-align: center;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--theme-color);
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes successPop {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Nav Buttons */
.inquiry-nav {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-top: 1px solid var(--light-gray);
    padding-top: 1.5rem;
}

.inquiry-btn-primary {
    background: var(--theme-color);
    color: white;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inquiry-btn-primary:hover {
    background: var(--theme-hover);
    transform: translateY(-2px);
}

.inquiry-btn-secondary {
    background: var(--light-gray);
    color: var(--text-sec);
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inquiry-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.07);
}

/* --- Form Validation & Submission States --- */
.required-star {
    color: #e53935;
    font-weight: 700;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #e53935 !important;
    background: rgba(229, 57, 53, 0.04);
    animation: inputShake 0.4s ease;
}

.form-group .error-hint {
    color: #e53935;
    font-size: 0.8rem;
    margin-top: 0.2rem;
    font-weight: 600;
    display: none;
}

.form-group.has-error .error-hint {
    display: block;
    animation: stepFadeIn 0.3s ease;
}

.service-type-grid.has-error .service-chip span {
    border-color: rgba(229, 57, 53, 0.4);
    animation: inputShake 0.4s ease;
}

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* Submit button loading state */
.inquiry-btn-primary.loading,
.form-btn-submit.loading {
    pointer-events: none;
    opacity: 0.85;
    position: relative;
}

.inquiry-btn-primary.loading::after,
.form-btn-submit.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* Success fallback text */
.success-fallback {
    font-size: 0.9rem;
    color: var(--text-sec);
    opacity: 0.7;
    margin-top: 0.5rem;
}

.success-fallback strong {
    color: var(--theme-color);
    opacity: 1;
}
.modal-video-wrapper {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
    max-height: calc(90vh - 12rem);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.meta-label {
    font-size: 0.85rem;
    color: var(--text-sec);
    text-transform: uppercase;
    font-weight: 600;
}

.meta-value {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 800;
}

/* Workflow Module */
.workflow-module {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.workflow-module h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.workflow-type-badge {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 87, 34, 0.1);
    color: var(--theme-color);
    border-radius: 50px;
    font-weight: 600;
}

.workflow-map {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
}

.workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 90px;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 0.8rem;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.2);
}

.step-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.step-line {
    flex-grow: 1;
    height: 2px;
    background: rgba(255, 87, 34, 0.3);
    margin-top: 20px;
    min-width: 30px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .workflow-map {
        flex-direction: column;
        align-items: flex-start;
    }

    .workflow-step {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
    }

    .step-circle {
        margin-bottom: 0;
    }

    .step-line {
        height: 30px;
        width: 2px;
        margin: 5px 0 5px 19px;
        min-width: 2px;
    }

    .sidebar-menu {
        width: 280px;
        left: -280px;
        padding: 1.5rem;
    }

    .sidebar-header {
        margin-bottom: 1.5rem;
    }

    .sidebar-content {
        gap: 1.5rem;
    }

    .sidebar-links li a {
        font-size: 1.1rem;
    }
}