/* ==========================================================================
   Toonz Global Collaboration Widget Styles
   ========================================================================== */

.toonz-global-collab-wrapper {
    position: relative;
    padding: 100px 5%;
    overflow: hidden;
    background-color: #050505;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
}

/* --- BACKGROUND EARTH ANIMATION --- */
.tgc-earth-bg {
    position: absolute;
    top: 0;
    left: -10%;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.tgc-earth-img {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: top right;
    background-repeat: no-repeat;
    animation: earthBreathe 10s ease-in-out infinite alternate;
}

@keyframes earthBreathe {
    0% {
        opacity: 0.4;
        filter: brightness(0.8) contrast(1.1);
        transform: scale(1);
    }

    100% {
        opacity: 1;
        filter: brightness(1.5) contrast(1.6);
        transform: scale(1.02);
    }
}

/* --- CONTENT WRAPPER --- */
.tgc-content-container {
    position: relative;
    z-index: 2;
    /*max-width: 1400px;*/
    margin: 0 auto;
    top: 80px;
}

/* --- HEADER --- */
.tgc-header {
    max-width: 600px;
    margin-bottom: 60px;
}

.tgc-header > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.toonz-global-collab-wrapper.is-visible .tgc-header > *,
.elementor-editor-active .tgc-header > * {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger header children */
.toonz-global-collab-wrapper.is-visible .tgc-header h2 { transition-delay: 0.1s; }
.toonz-global-collab-wrapper.is-visible .tgc-header .tgc-accent-dash { transition-delay: 0.2s; }
.toonz-global-collab-wrapper.is-visible .tgc-header p:nth-of-type(1) { transition-delay: 0.3s; }
.toonz-global-collab-wrapper.is-visible .tgc-header p:nth-of-type(2) { transition-delay: 0.4s; }

.tgc-title {
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.tgc-dot {
    color: #E87722;
}

.tgc-accent-dash {
    width: 30px;
    height: 2px;
    background-color: #E87722;
    margin-bottom: 25px;
}

.tgc-subtitle {
    font-size: 18px;
    color: #f2f2f2;
    margin: 5px 0;
    font-weight: 400;
}

/* --- GRID LAYOUT --- */
.tgc-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: flex-start;
}

.tgc-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
}

/* Asymmetry offset */
.tgc-col-right {
    margin-top: 60px;
}

/* --- CARD STYLING --- */
.tgc-card {
    position: relative;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.toonz-global-collab-wrapper.is-visible .tgc-card,
.elementor-editor-active .tgc-card {
    opacity: 1;
    transform: translateY(0);
}

/* Card Wrapper for Connectors */
.tgc-card-wrap {
    position: relative;
    width: 91%;
}

/* Stagger card entrances */
.toonz-global-collab-wrapper.is-visible .tgc-col-left .tgc-card-wrap:nth-child(1) .tgc-card {
    transition-delay: 0.5s;
}

.toonz-global-collab-wrapper.is-visible .tgc-col-right .tgc-card-wrap:nth-child(1) .tgc-card {
    transition-delay: 0.7s;
}

.toonz-global-collab-wrapper.is-visible .tgc-col-left .tgc-card-wrap:nth-child(2) .tgc-card {
    transition-delay: 0.9s;
}

.toonz-global-collab-wrapper.is-visible .tgc-col-right .tgc-card-wrap:nth-child(2) .tgc-card {
    transition-delay: 1.1s;
}


/* ANGLED CORNERS (Clip Path) */
.tgc-angled-tr {
    clip-path: polygon(0 0, calc(100% - 140px) 0, 99% 140px, 100% 100%, 0 100%);
    border-radius: 8px 0 8px 8px;
}

/* Card Hover Enhancements */
.tgc-card:hover {
    background: rgba(20, 20, 20, 0.8);
    border-color: rgba(232, 119, 34, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(232, 119, 34, 0.05);
}

/* Inner Background Image */
.tgc-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    /* opacity: 0.2;*/
    z-index: 1;
    transform: scale(1);
    transition: all 3s cubic-bezier(0.25, 1, 0.5, 1);
    background-color: #050505;
}

.tgc-card:hover .tgc-card-bg {
    opacity: 0.9;
    transform: scale(1.1);
}

.tgc-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(90deg, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.4) 100%);*/
    z-index: 2;
}

.tgc-card-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

.tgc-text-wrap {
    display: flex;
    flex-direction: column;
}

.tgc-node-num {
    font-size: 14px;
    color: #E87722;
    font-weight: 600;
    margin-bottom: 5px;
}

.tgc-node-line {
    width: 20px;
    height: 2px;
    background-color: #E87722;
    margin-bottom: 12px;
}

.tgc-icon-wrap {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(232, 119, 34, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    top: 70px;
}

.tgc-icon-wrap img {
    width: 20px;
    height: 20px;
}

.tgc-node-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 5px 0;
}

.tgc-node-subtitle {
    font-size: 14px;
    color: #E87722;
    font-weight: 500;
    margin: 0 0 10px 0;
}

.tgc-node-desc {
    font-size: 13px;
    color: #a0a0a0;
    line-height: 1.6;
    margin: 0;
}

/* Primary Card overrides (India) */
.tgc-card-primary .tgc-node-title {
    font-size: 32px;
}

/* --- CONNECTORS --- */
.tgc-connector {
    position: absolute;
    right: -115px;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left center;
    width: 150px;
    z-index: -1;
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.toonz-global-collab-wrapper.is-visible .tgc-conn-1 {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
    transition-delay: 0.8s;
}

.toonz-global-collab-wrapper.is-visible .tgc-conn-3 {
    opacity: 1;
    transform: translateY(-50%) scaleX(1);
    transition-delay: 1.2s;
}

/* --- CTA BUTTON --- */
.tgc-cta-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 80px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
    transition-delay: 1.4s;
}

.toonz-global-collab-wrapper.is-visible .tgc-cta-wrapper,
.elementor-editor-active .tgc-cta-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.tgc-cta-btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #E87722;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tgc-cta-btn:hover {
    background-color: #E87722;
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(232, 119, 34, 0.3);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .tgc-grid {
        flex-direction: column;
        gap: 30px;
    }

    .tgc-col-right {
        margin-top: 0;
    }

    .tgc-connector {
        display: none;
    }

    .tgc-angled-tl,
    .tgc-angled-tr {
        clip-path: none;
        border-radius: 8px;
    }
}