/* Digital Services Page Styles */

/* ==========================================================================
   SERVICES HERO SECTION
   ========================================================================== */
.evmt-services-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 750px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--navy-bg);
}

.evmt-services-hero .hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image:
        linear-gradient(90deg, rgba(7, 14, 29, 0.5) 0%, rgba(9, 18, 38, 0.45) 45%, rgba(8, 17, 36, 0.3) 100%),
        url("../assets/images/service-page-bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 30%;
    animation: heroBgZoom 20s ease-in-out infinite alternate;
}

@keyframes heroBgZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

/* Global Cursor Layer */
#cursorCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

@media (hover: none) {
    #cursorCanvas {
        display: none;
    }
}

.hero-content-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    max-width: 720px;
    margin-top: -40px;
    animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 24px;
    width: fit-content;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.hero-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px rgba(211, 160, 47, 0.6);
}

.hero-headline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(32px, 3.5vw, 46px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 24px 0;
}

.hero-gold-text {
    background: linear-gradient(to right, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: evmtShine 7s linear infinite;
    display: inline-block;
}

@keyframes evmtShine {
    to { background-position: 220% center; }
}

.hero-desc {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    margin: 0 0 40px 0;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.hero-btn {
    position: relative;
    overflow: hidden;
    height: 54px;
    padding: 0 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: transform .3s ease;
    background: transparent;
    z-index: 1;
    border: none !important;
    cursor: pointer;
}

.hero-btn::before {
    content: "";
    position: absolute;
    inset: -50%;
    z-index: -2;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 100deg, #D3A02F 180deg, #FFFFFF 220deg, transparent 300deg);
    animation: evmtBeam 6s linear infinite;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
}

.hero-btn::after {
    content: "";
    position: absolute;
    inset: 1.5px;
    background: #050810;
    border-radius: 999px;
    z-index: -1;
}

@keyframes evmtBeam {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform .3s ease;
}

.hero-btn:hover svg {
    transform: translateX(4px);
}

.hero-btn:hover {
    transform: scale(1.02);
}

.hero-btn-gold {
    --btn-color: #D3A02F;
    color: #D3A02F;
}

.hero-btn-gold::before {
    content: "";
    position: absolute;
    inset: -100%;
    z-index: -2;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 60deg, #D3A02F 100deg, #ffffff 120deg, #D3A02F 140deg, transparent 180deg);
    animation: evmtBeam 3s linear infinite;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
}

.hero-btn-gold:hover {
    color: #fff;
    --btn-color: #fff;
    box-shadow: 0 0 25px rgba(240, 208, 117, 0.25);
}

.hero-btn-white {
    --btn-color: #4facfe;
    color: #fff;
}

.hero-btn-white::before {
    content: "";
    position: absolute;
    inset: -100%;
    z-index: -2;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 60deg, #ffffff 100deg, #ffffff 120deg, #ffffff 140deg, transparent 180deg);
    animation: evmtBeam 3s linear infinite;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
}

.hero-btn-white:hover {
    --btn-color: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .evmt-services-hero {
        height: auto !important;
        min-height: 100dvh !important;
        padding: 0 15px;
    }
    
    .evmt-services-hero .hero-bg-layer {
        background-image: 
            linear-gradient(180deg, rgba(7, 14, 29, 0.5) 0%, rgba(9, 18, 38, 0.8) 60%, rgba(8, 17, 36, 1) 100%),
            url("../assets/images/service-page-bg.png");
    }

    .hero-content {
        margin-top: 0;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-desc {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .hero-btn {
        width: 100%;
    }
}

/* ==========================================================================
   DIGITAL SERVICES ROOTS & TABS
   ========================================================================== */

/* Scoped Resets to prevent bleeding into other sections */
#evmt-services-root *,
#evmt-services-root *::before,
#evmt-services-root *::after {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    outline: none !important;
    user-select: none;
    /* Prevents text selection highlight */
    box-sizing: border-box;
}

#evmt-services-root button:focus,
#evmt-services-root button:active,
#evmt-services-root button:focus-visible {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

:root {
    /* Updated Colors from Reference */
    --navy-bg: #020408;
    /* Darker Ink Navy */
    --navy-deep: #060F1F;
    --navy-glow: #0a1a3a;

    --gold: #D3A02F;
    --gold-light: #F0D075;
    --gold-glow: rgba(211, 160, 47, 0.15);

    /* Card Glass Colors */
    --navy-glass: rgba(13, 22, 41, 0.75);
    --navy-glass-active: rgba(16, 28, 56, 0.95);

    --text-main: #FFFFFF;
    --text-dim: rgba(255, 255, 255, 0.7);

    --font-family-services: 'Plus Jakarta Sans', sans-serif;
    --trans: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#evmt-services-root {
    position: relative;
    overflow: hidden;
    padding: 80px 20px 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* Updated Background Gradient from Reference */
    background-color: var(--navy-bg);
    background-image:
        radial-gradient(circle at 50% -10%, var(--navy-glow) 0%, transparent 70%),
        radial-gradient(circle at 80% 20%, rgba(6, 15, 31, 0.4) 0%, transparent 50%),
        linear-gradient(180deg, var(--navy-bg) 0%, var(--navy-deep) 100%);

    font-family: var(--font-family-services);
    color: var(--text-main);
}

.evmt-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

.evmt-header {
    text-align: center;
    margin-bottom: 50px;
}

.evmt-main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #fff;
}

/* Dual Color Heading Animation from Reference */
.evmt-main-title span {
    background: linear-gradient(to right, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: eagleAbShine 7s linear infinite;
    display: inline-block;
}

@keyframes eagleAbShine {
    to {
        background-position: 200% center;
    }
}

.evmt-description {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Navigation Pills */
.evmt-tabs-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.evmt-tabs-list {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.evmt-tabs-list::-webkit-scrollbar {
    display: none;
}

.evmt-tab-pill {
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 100px;
    background: transparent;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--trans);
    white-space: nowrap;
    font-family: var(--font-family-services);
}

.evmt-tab-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.evmt-tab-pill.active {
    background: rgba(211, 160, 47, 0.15);
    color: var(--gold-light);
    border-color: rgba(211, 160, 47, 0.3);
    /* Ensure shadow is forced with important to override global reset if needed, though specific class usually wins */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Carousel Layout */
.evmt-carousel-layout {
    position: relative;
    width: 100%;
}

.evmt-viewport {
    width: 100%;
    overflow: visible;
    clip-path: inset(-100px -100px -100px -100px);
    padding: 10px 0;
}

.evmt-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: grab;
}

.evmt-track:active {
    cursor: grabbing;
}

/* Card Design */
.evmt-card {
    min-width: calc(33.333% - 16px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
        var(--navy-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 32px;
    transition: var(--trans);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    user-select: none;
}

.evmt-card::after {
    content: "";
    position: absolute;
    top: 18px;
    left: 32px;
    right: 32px;
    height: 1px;
    background: linear-gradient(90deg, rgba(211, 160, 47, 0.65), transparent);
    opacity: 0.35;
    pointer-events: none;
}

/* Hover State (Non-Active) */
.evmt-card:not(.active):hover {
    background: rgba(20, 35, 60, 0.7);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Active State - Premium Fix */
.evmt-card.active {
    background: linear-gradient(160deg, var(--navy-glass-active) 0%, rgba(10, 15, 30, 0.95) 100%);
    transform: translateY(-8px) scale(1.02);
    /* Border color removed from here as it is handled by the ::before pseudo-element */
    border-color: transparent;
    box-shadow:
        0 20px 60px -10px rgba(2, 6, 12, 0.5),
        0 0 40px -10px var(--gold-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* Animated Border Shimmer - Updated for Light Golden & White */
.evmt-card.active::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 18px;
    padding: 1px;
    /* New Gradient: Transparent -> Light Gold -> White -> Gold -> Transparent */
    background: linear-gradient(90deg, transparent, var(--gold-light), #ffffff, var(--gold), transparent);
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderShimmer 2.5s linear infinite;
    /* Speed up slightly for premium feel */
    pointer-events: none;
}

@keyframes borderShimmer {
    0% {
        background-position: 100% 0;
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }

    100% {
        background-position: -100% 0;
        opacity: 0.8;
    }
}

/* CTA Button Styles */
.evmt-cta-btn {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-dim);
    font-family: var(--font-family-services);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--trans);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.evmt-cta-btn span {
    z-index: 2;
    position: relative;
}

.evmt-cta-btn svg {
    z-index: 2;
    position: relative;
    transition: transform 0.3s ease;
}

/* Active Card Button - The "Pop" */
.evmt-card.active .evmt-cta-btn {
    background: rgba(211, 160, 47, 0.12);
    /* Gold tint */
    color: #fff;
    border-color: transparent;
    /* Handled by pseudo */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Moving Gradient Border for Active Button */
.evmt-card.active .evmt-cta-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    /* Premium thin border */
    background: linear-gradient(90deg, transparent, var(--gold), #ffffff, var(--gold), transparent);
    background-size: 200% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: btnBorderMove 3s linear infinite;
}

@keyframes btnBorderMove {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Hover effect on button itself */
.evmt-cta-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.evmt-cta-btn:hover svg {
    transform: translateX(4px);
}

.evmt-card.active .evmt-cta-btn:hover {
    background: rgba(211, 160, 47, 0.25);
    box-shadow: 0 0 20px var(--gold-glow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

/* Icon Styling - Reduced Size as requested */
.icon-container {
    width: 48px;
    /* Reduced from 56px */
    height: 48px;
    /* Reduced from 56px */
    border-radius: 14px;
    border: 1px solid rgba(211, 160, 47, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    background: rgba(211, 160, 47, 0.05);
    transition: var(--trans);
}

/* Inner SVG sizing */
.icon-container svg {
    width: 24px;
    /* Fixed internal size for cleaner look */
    height: 24px;
}

.evmt-card.active .icon-container {
    background: linear-gradient(135deg, rgba(211, 160, 47, 0.2), rgba(211, 160, 47, 0.05));
    border-color: rgba(211, 160, 47, 0.6);
    box-shadow: 0 8px 20px -5px rgba(211, 160, 47, 0.3);
    color: #fff;
}

.arrow-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: var(--trans);
    opacity: 0.7;
}

.evmt-card.active .arrow-indicator {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    opacity: 1;
    transform: rotate(45deg);
}

.service-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
}

.service-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 24px 0;
    min-height: 3em;
}

/* Bullet List */
.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    /* Reduced margin to fit button */
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--trans);
}

.bullet-item svg {
    flex-shrink: 0;
    color: var(--gold);
}

.evmt-card.active .bullet-item {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Tool Cluster */
.tool-cluster {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-icon {
    width: 24px;
    height: 24px;
    opacity: 0.4;
    transition: var(--trans);
    filter: grayscale(1);
}

.evmt-card.active .tool-icon {
    opacity: 1;
    filter: grayscale(0);
}

/* Controls (Moved to Bottom) */
.evmt-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding-right: 10px;
}

.evmt-nav-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--trans);
    backdrop-filter: blur(10px);
    /* Ensure no blue highlight on click */
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

.evmt-nav-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
    color: #000;
    transform: scale(1.1);
}

.evmt-nav-btn:focus,
.evmt-nav-btn:active {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.evmt-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* Background Glows */
.evmt-bg-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(10, 26, 58, 0.15) 0%, transparent 70%);
    top: -30%;
    right: -10%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 1;
}

.evmt-bg-glow.secondary {
    top: auto;
    bottom: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(211, 160, 47, 0.05) 0%, transparent 70%);
    width: 600px;
    height: 600px;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .evmt-card {
        min-width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    #evmt-services-root {
        padding: 40px 15px;
    }

    .evmt-card {
        min-width: 85vw;
        /* Almost full width for mobile swipe */
        padding: 24px;
    }

    .evmt-track {
        gap: 16px;
    }

    .evmt-main-title {
        font-size: 2rem;
    }

    /* UX FIX: Premium App-Like 2x2 Grid for Tabs */
    .evmt-tabs-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 Columns */
        gap: 8px;
        padding: 8px;
        justify-content: center;
        overflow-x: visible;
        /* Remove scroll */
        border-radius: 20px;
        white-space: normal;
    }

    .evmt-tab-pill {
        width: 100%;
        text-align: center;
        padding: 12px 6px;
        font-size: 0.8rem;
        white-space: normal;
        /* Allow text wrap */
        line-height: 1.25;
        border-radius: 12px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.03);
        /* Slight bg for better tappability */
    }

    /* Adjust active state for the block style */
    .evmt-tab-pill.active {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        border-color: rgba(211, 160, 47, 0.4);
    }

    .evmt-controls {
        justify-content: center;
        /* Center buttons on mobile */
        margin-top: 24px;
    }

    .evmt-nav-btn {
        width: 48px;
        height: 48px;
    }
}
