/* ==========================================================================
   DYNAMIC DESIGN SYSTEM TOKENS & CENTRAL VARIABLES MAP
   ========================================================================== */

/* THEME 1: DEVELOPMENT (ACTIVE BY DEFAULT) */
body[data-theme="development"] {
    --theme-primary: #FF6E27;       /* Brand Accent Orange */
    --theme-gradient-top: #FF9B5C;  /* Hero Blend Start */
    --theme-pill-bg: #FFF0EB;       /* Light Accent Tint Container */
    --tab-active-btn: #FF6E27;
    --card-border: rgba(255, 110, 39, 0.45); 
    --theme-card-bg: #FFEFE6;       
}

/* THEME 2: DIGITAL MEDIA (DYNAMIC METAMORPHOSIS ACTIVATED) */
body[data-theme="digital-media"] {
    --theme-primary: #6B38FB;       /* Brand Accent Vivid Purple/Indigo matching Figma Image */
    --theme-gradient-top: #A084FF;  /* Purple Hero Blend Start */
    --theme-pill-bg: #F1EDFF;       /* Light Purple Tint Container */
    --tab-active-btn: #6B38FB;
    --card-border: rgba(107, 56, 251, 0.4); 
    --theme-card-bg: #F4F0FF;       
}

/* Dynamic navigation link color metamorphosis shift */
body[data-theme="digital-media"] .nav-links a.active-nav {
    color: var(--theme-primary) !important;
}

.services-body-bg {
    background: #FEFAF8 !important; 
}

/* ==========================================================================
   STABLE EMPTY ASSET PLACEHOLDER CANVAS FALLBACK HOOKS
   ========================================================================== */
.local-image-layer[src=""], .local-image-layer:not([src]) {
    opacity: 0 !important;
}

/* REMOVED .mockup-frame from this group to eliminate the dark background color box */
.tab-icon-frame, 
.banner-circle-logo-holder, 
.feature-icon-wrapper,
.project-cta-icon-holder,
.heading-icon-pink,
.footer-logo {
    background-color: #0d0a2b; 
    transition: background-color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* REMOVED .mockup-frame from digital-media background theme variations */
body[data-theme="digital-media"] .tab-icon-frame,
body[data-theme="digital-media"] .banner-circle-logo-holder,
body[data-theme="digital-media"] .feature-icon-wrapper,
body[data-theme="digital-media"] .heading-icon-pink,
body[data-theme="digital-logo"] {
    background-color: #F4F0FF; 
}

/* ==========================================================================
   INTRO HERO TOPOGRAPHY HOOKS WITH SCREEN 1 GRADIENT BACKGROUND
   ========================================================================== */
.services-hero {
    text-align: center;
    padding: 175px 0 55px 0; 
    margin-top: -40px;
    background: linear-gradient(180deg, var(--theme-gradient-top) 0%, #FEFAF8 100%); 
    transition: background 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Override absolute positioning context to match index navbar centering manually */
@media (min-width: 1341px) {
    .services-hero .navbar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        left: 0 !important;
        padding-right: 55px !important;
    }
    
    .services-hero .nav-links {
        position: absolute !important;
        left: 380px !important;    
        top: 15px !important;      
        transform: none !important; 
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}

.services-hero .pill-tag {
    background: var(--theme-pill-bg);
    color: var(--theme-primary);
    font-size: 14px;
    font-weight: 700;
    padding: 7px 20px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 22px;
    transition: background 0.4s ease, color 0.4s ease;
    
    /* Text Animation Configuration */
    animation: textRevealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.1s;
}

.services-hero h1 {
    font-size: 60px;
    font-weight: 800;
    color: #130F3B;
    margin-bottom: 22px;
    
    /* Text Animation Configuration */
    animation: textRevealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.25s;
}

.services-hero h1 span {
    color: var(--theme-primary);
    transition: color 0.4s ease;
}

.services-hero .hero-subtext {
    font-size: 19px;
    color: #130F3B; 
    line-height: 28px;
    max-width: 825px;
    margin: 0 auto 45px auto;
    opacity: 0.85;
    
    /* Text Animation Configuration */
    animation: textRevealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.4s;
}

/* ==========================================================================
   TAB SWITCH MECHANISM FRAMEWORK (POPPINS INTRO)
   ========================================================================== */
.tabs-container {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #EAEAEA;
    border-radius: 20px;
    padding: 6px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    
    /* Tab Menu Group Fade In Configuration */
    animation: textRevealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.55s;
}

.tab-btn {
    font-family: 'Poppins', sans-serif; 
    background: transparent;
    border: none;
    font-size: 22px;
    font-weight: 700;
    color: #130F3B;
    padding: 14px 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s ease;
    position: relative;
}

.tab-btn.active {
    color: var(--tab-active-btn);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 40px;
    right: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--tab-active-btn);
    transition: background 0.4s ease;
}

.tab-icon-frame {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.circle-pink { background-color: #0d0a2b !important; }
.circle-blue { background-color: #ffffff !important; }

.tab-img-asset {
    max-width: 145%;
    max-height: 145%;
    object-fit: contain;
}

.tab-divider {
    width: 1px;
    height: 35px;
    background: #EAEAEA;
    margin: 0 5px;
}

/* TAB PANEL TOGGLE HIDING CONTROLS */
.tab-panel {
    display: none !important;
}

.tab-panel.active {
    display: block !important;
    animation: fadeFrameIn 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes fadeFrameIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   TEXT ANIMATION KEYFRAME DEFINITIONS
   ========================================================================== */
@keyframes textRevealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   NEW: STAGGERED INTERNAL CONTENT TEXT REVEAL ON TAB SHIFT
   ========================================================================== */
.tab-panel.active .banner-headline-txt h3,
.tab-panel.active .services-heading-block h2 {
    animation: textRevealUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.08s;
}

.tab-panel.active .banner-headline-txt p,
.tab-panel.active .banner-hashtags,
.tab-panel.active .services-heading-block p {
    animation: textRevealUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.18s;
}

.tab-panel.active .item-details h2 {
    animation: textRevealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.26s;
}

.tab-panel.active .item-desc,
.tab-panel.active .item-checklist {
    animation: textRevealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.34s;
}

/* ==========================================================================
   ALIGNMENT OVERRIDES FOR PARENT CONTAINERS ON SERVICES SCREEN
   ========================================================================== */
.tab-panel > section:first-of-type,
.services-listing-section.section-container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ==========================================================================
   DARK VISION BANNER LAYER (EXACT FIGMA ARCHITECTURE ALIGNED)
   ========================================================================== */
.vision-banner {
    background: #0D0A2B;
    border-radius: 20px;
    padding: 45px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px auto;
    color: #ffffff;
    box-shadow: 0 15px 40px rgba(13, 10, 43, 0.16);
    width: auto !important;
    max-width: none !important;
    margin-left: 64px !important;
    margin-right: 55px !important;
}

.banner-left-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 50%;
}

.banner-circle-logo-holder {
    width: 110px;
    height: 110px;
    background: #ffffff !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.banner-cube-img {
    max-width: 105%;
    max-height: 105%;
    object-fit: contain;
}

.banner-headline-txt h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.banner-headline-txt h3 span {
    color: var(--theme-primary);
    transition: color 0.4s ease;
}

.banner-headline-txt p {
    font-size: 15px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.75);
}

.banner-hashtags {
    font-size: 13px !important;
    font-weight: 700;
    color: var(--theme-primary) !important;
    margin-top: 10px;
    letter-spacing: 0.5px;
    transition: color 0.4s ease;
}

.banner-right-features-grid {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
}

.banner-right-features-grid.columns-4 { max-width: 38%; }
.banner-right-features-grid.columns-5 { max-width: 48%; }

.feature-vertical-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 12px;
    position: relative;
    flex: 1;
}

.feature-vertical-column:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    border-right: 1.5px dashed rgba(255, 255, 255, 0.25);
}

.feature-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.feature-row-icon {
    max-width: 130%;
    max-height: 130%;
    object-fit: contain;
}

.feature-row-label {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

/* ==========================================================================
   SERVICES HEADING BLOCK - HORIZONTAL FLEX LAYOUT
   ========================================================================== */
.services-content-wrapper {
    background: #FEFAF8;
    padding: 25px 0 30px 0; 
}

.services-heading-block {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
    margin-bottom: 50px;
    margin-left: 64px !important;
    padding-left: 0 !important;
}

.heading-icon-pink {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0 !important; 
    background-color: #FFEAEF !important;
    flex-shrink: 0;
}

.heading-inner-img {
    max-width: 105%;
    max-height: 105%;
    object-fit: contain;
}

.heading-text-container {
    display: flex;
    flex-direction: column;
}

.services-heading-block h2 {
    font-size: 40px;
    font-weight: 800;
    color: #130F3B;
    margin-bottom: 6px;
    line-height: 1.1;
}

.services-heading-block p {
    font-size: 16.5px;
    color: #656565;
    line-height: 1.4;
}

/* ==========================================================================
   SERVICES MODULES - COMPACT & UNIFORM SIZE FOR ALL GRID CARDS
   ========================================================================= */
.service-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 40px;
    background: #ffffff;
    padding: 35px 45px;
    border-radius: 24px;
    box-shadow: 0 8px 35px rgba(255, 155, 92, 0.03);
    border: 1px solid rgba(244, 236, 231, 0.5);
    min-height: 320px; 
    box-sizing: border-box;
    width: auto !important;
    max-width: none !important;
    margin-left: 64px !important;
    margin-right: 55px !important;
}

.service-item-row.reverse {
    flex-direction: row-reverse;
}

.item-details {
    flex: 1.2;
}

.row-num-tag {
    background: var(--theme-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 14px;
    transition: background 0.4s ease;
}

.item-details h2 {
    font-size: 30px;
    font-weight: 800;
    color: #130F3B;
    margin-bottom: 12px;
}

.item-details h2 span {
    color: var(--theme-primary);
    transition: color 0.4s ease;
}

.item-desc {
    font-size: 15px;
    line-height: 24px;
    color: #656565;
    margin-bottom: 18px;
}

.item-checklist {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
}

.item-checklist li {
    font-size: 14.5px;
    font-weight: 600;
    color: #222222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-mark {
    color: var(--theme-primary);
    font-weight: 800;
    transition: color 0.4s ease;
}

body[data-theme="digital-media"] .item-checklist li .check-mark {
    font-size: 11px;
    vertical-align: middle;
}

.item-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-frame {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    background: transparent !important;
    padding: 0 !important;
}

.main-mockup-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 20px; 
}

/* ==========================================================================
   BOTTOM ACCENT RIBBON & CONTACT CTA HOOKS (DYNAMICS INJECTED)
   ========================================================================== */
.bottom-cta-ribbon {
    background: var(--theme-card-bg);
    border: 1px solid var(--card-border); 
    border-radius: 20px;
    padding: 24px 35px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin: 20px auto 0px auto; 
    max-width: 1140px; 
    width: 100%;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.bottom-cta-ribbon.media-highlight-ribbon {
    background-color: #F4F0FF !important;
    border: 1px solid rgba(107, 56, 251, 0.4) !important;
}

.ribbon-left {
    display: flex;
    align-items: center; 
    gap: 18px;
    max-width: 60%;
}

.ribbon-icon-gear, .ribbon-icon-rocket {
    width: 44px; 
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.circle-white-glow {
    background-color: #F4F0FF !important;
}

.ribbon-inner-gear-img {
    max-width: 125%;
    max-height: 125%;
    object-fit: contain;
}

.ribbon-left h4 {
    font-size: 19px; 
    font-weight: 700;
    color: #130F3B;
    margin-bottom: 4px;
}

.ribbon-left p {
    font-size: 13.5px;
    line-height: 20px;
    color: #656565;
}

.ribbon-divider {
    width: 1px;
    height: 60px; 
    background: #EAEAEA;
}

.ribbon-right ul li {
    font-size: 14.5px; 
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-dot {
    color: var(--theme-primary);
    font-weight: 800;
    transition: color 0.4s ease;
}

.theme-check-icon {
    color: var(--theme-primary) !important;
    font-weight: 800;
    transition: color 0.4s ease;
}

.project-cta-section {
    margin-top: 20px; 
    margin-bottom: 50px;
    width: 90%;                  
    max-width: 1420px;           
    margin-left: auto;           
    margin-right: auto;          
}

.project-cta-bar {
    background: var(--theme-card-bg);
    border: 1px solid var(--card-border); 
    border-radius: 25px;
    padding: 16px 35px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px; 
    margin: 0 auto;
    width: 100%;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.project-cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.project-cta-icon-holder {
    width: 58px; 
    height: 58px;
    background: #0D0A2B !important;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.project-cta-img {
    max-width: 65px;
    max-height: 65px;
    object-fit: contain;
}

.project-cta-txt h5 {
    font-size: 21px; 
    font-weight: 700;
    color: #130F3B;
    margin-bottom: 4px;
}

.theme-highlight-text {
    color: var(--theme-primary) !important;
    transition: color 0.4s ease;
}

.project-cta-txt p {
    font-size: 14.5px;
    color: #656565;
    font-weight: 500;
}

.project-cta-btn-link {
    text-decoration: none;
}

.project-navy-btn {
    background: #0D0A2B;
    color: #ffffff;
    font-size: 16px; 
    font-weight: 700;
    padding: 12px 34px; 
    border: none;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.project-navy-btn:hover {
    transform: translateY(-2px);
    background: #19144B;
}

.footer-logo {
    width: 160px;
    height: auto;
    margin-bottom: 15px;
    display: block;
    background-color: transparent !important; 
    color: #ffffff !important;
}

/* ==========================================================================
   RESPONSIVE LAYOUT BREAKPOINTS ENGINE
   ========================================================================== */
@media (max-width: 1340px) {
    .vision-banner,
    .service-item-row {
        margin-left: 40px !important;
        margin-right: 30px !important;
    }
    .services-heading-block {
        margin-left: 40px !important;
    }
}

@media (max-width: 992px) {
    .service-item-row, .service-item-row.reverse {
        flex-direction: column;
        gap: 30px;
        padding: 30px;
        min-height: auto;
    }
    .mockup-frame {
        max-width: 300px;
        height: auto;
    }
    .vision-banner {
        flex-direction: column;
        gap: 35px;
        align-items: center;
        text-align: center;
        padding: 35px 20px;
    }
    .banner-left-content {
        flex-direction: column;
        max-width: 100%;
    }
    .banner-right-features-grid.columns-4,
    .banner-right-features-grid.columns-5 {
        max-width: 100%;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .tab-panel > section,
    .project-cta-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .bottom-cta-ribbon,
    .project-cta-bar {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
        padding: 25px !important;
        margin-left: 24px !important;
        margin-right: 20px !important;
        width: auto !important;
        box-sizing: border-box !important;
        border-radius: 20px !important;
    }

    .ribbon-divider {
        display: none;
    }
    
    .ribbon-left {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center !important;
        text-align: center !important;
        gap: 10px;                     
    }
    
    .bottom-cta-ribbon .ribbon-icon-gear, 
    .bottom-cta-ribbon .ribbon-icon-rocket { 
        display: none !important;     
    }
    
    .ribbon-left > div {
        width: 100%;
    }
    
    .project-cta-left {
        flex-direction: column !important;
        align-items: center !important;
        gap: 14px !important;
        width: 100% !important;
    }

    .project-cta-txt {
        text-align: center !important;
    }

    .project-cta-btn-link {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .services-heading-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    .vision-banner,
    .service-item-row {
        margin-left: 24px !important;
        margin-right: 20px !important;
    }
    .services-heading-block {
        margin-left: 0 !important;
    }
    .services-hero h1 {
        font-size: 42px;
    }
    .services-heading-block h2 {
        font-size: 34px;
    }
    .item-checklist {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .banner-right-features-grid.columns-4,
    .banner-right-features-grid.columns-5 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .feature-vertical-column:not(:last-child)::after {
        display: none;
    }
    
    .feature-row-label {
        white-space: normal !important;
        line-height: 1.3;
        display: inline-block;
    }
    
    .project-navy-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .services-hero h1 {
        font-size: 36px;
    }
    .services-hero .hero-subtext {
        font-size: 16px;
        line-height: 24px;
    }
    
    .tabs-container {
        padding: 4px 6px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        display: flex !important;           
        justify-content: center !important; 
    }
    .tab-btn {
        font-size: 14px !important;
        padding: 8px 12px !important;
        gap: 6px !important;
        flex: 1 !important;                 
        justify-content: center !important; 
    }
    .tab-btn.active::after {
        left: 12px;
        right: 12px;
    }
    .tab-icon-frame {
        width: 24px !important;
        height: 24px !important;
    }
    .tab-divider {
        height: 24px !important;
    }
    
    .item-details h2 {
        font-size: 26px;
    }
}