/* ==========================================================================
   Premium Global CSS - Business Gamer
   Modern glassmorphism, gradients, and micro-animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Global Typography ── */
:root {
    --primary: #9f4bee;
    --primary-dark: #7c3aed;
    --secondary: #3861fb;
    --accent: #ff003c;
    --success: #03c03c;
    --warning: #f2b500;
    --dark: #0f172a;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.75);
    --glass-dark: rgba(15, 23, 42, 0.8);
    --border-light: rgba(159, 75, 238, 0.12);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
}

body {
    font-family: var(--font-main);
    color: #334155;
    background-color: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ── Utilities ── */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 3rem; }

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

.text-primary { color: var(--primary) !important; }
.text-white { color: #ffffff !important; }
.font-bold { font-weight: 700 !important; }

/* ── Premium Section Backgrounds ── */
.bg-ash {
    background: linear-gradient(135deg, #f8f6ff 0%, #f0ecff 50%, #f5f3ff 100%) !important;
}

.padding-tb {
    padding: 0px 0;
    position: relative;
}

.padding-tb-sm {
    padding: 60px 0;
    position: relative;
}

/* Subtle mesh gradient on sections */
.service-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 10% 20%, rgba(159, 75, 238, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(56, 97, 251, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.service-section .container {
    position: relative;
    z-index: 1;
}

/* ── Premium Page Headers ── */
.page-header-section {
    background: linear-gradient(135deg, #1a0533 0%, #2d1b69 40%, #9f4bee 100%) !important;
    position: relative;
    overflow: hidden;
    padding: 60px 0 !important;
}

.page-header-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(159, 75, 238, 0.25) 0%, transparent 60%);
    animation: headerGlow 8s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-10%, 5%) scale(1.2);
    }
}

.page-header-title h1,
.page-header-area h1 {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    -webkit-background-clip: initial !important;
    font-weight: 800 !important;
    font-size: 2.8rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    letter-spacing: -0.5px;
    margin-bottom: 0;
}

/* ── Premium Cards ── */
.service-item .service-inner {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(159, 75, 238, 0.1) !important;
    border-radius: 20px !important;
    padding: 32px 24px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}

.service-item .service-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #9f4bee, #3861fb, #9f4bee);
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-item:hover .service-inner {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(159, 75, 238, 0.12) !important;
    border-color: rgba(159, 75, 238, 0.25) !important;
}

.service-item:hover .service-inner::before {
    opacity: 1;
    animation: gradientSlide 2s linear infinite;
}

@keyframes gradientSlide {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.service-content h4,
.service-content h5,
.service-content h6 {
    color: #1a1a2e !important;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-content p {
    color: #555 !important;
    line-height: 1.7;
    font-size: 14.5px;
}

/* ── Premium Buttons ── */
.btn-primary,
a.btn-primary {
    background: linear-gradient(135deg, #9f4bee 0%, #7c3aed 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(159, 75, 238, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover,
a.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(159, 75, 238, 0.4) !important;
}

/* ── Section Titles ── */
.sub-title {
    color: #9f4bee !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-header h4,
.text-center h3,
.text-center h4 {
    font-weight: 800 !important;
    color: #1a1a2e !important;
    line-height: 1.3;
}

/* ── Section Dividers ── */
section+section {
    border-top: 1px solid rgba(159, 75, 238, 0.06);
}

/* ── Premium Sidebar ── */
.sidebar-list {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px !important;
    border: 1px solid rgba(159, 75, 238, 0.1) !important;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ── Standardised Post Item (Image Left, Content Right) ── */
.post-item.d-flex {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 50px !important;
    margin: 60px 0 !important;
    text-align: left !important;
    flex-direction: row !important;
    /* Force row on desktop */
}

.post-thumb {
    flex: 0 0 45% !important;
    max-width: 45% !important;
    order: 1 !important;
    /* Strictly Left */
}

.post-thumb .thumb {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(159, 75, 238, 0.1);
}

.post-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.post-item:hover .post-thumb img {
    transform: scale(1.08);
}

.post-content {
    flex: 1 !important;
    order: 2 !important;
    /* Strictly Right */
}

.post-content h3 {
    font-size: 26px !important;
    font-weight: 800 !important;
    margin-bottom: 20px;
    color: #1a1a2e !important;
    line-height: 1.3;
}

.post-content p {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #444 !important;
}

/* Mobile Responsive adjustment for Post Item */
@media (max-width: 991px) {
    .post-item.d-flex {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .post-thumb,
    .post-content {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        order: initial !important;
        /* Reset order for stacking */
    }
}

.sidebar-list .title {
    background: linear-gradient(135deg, #9f4bee 0%, #7c3aed 100%) !important;
    padding: 18px 20px !important;
}

.sidebar-list .title h5 {
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
}

/* ── FAQ Premium ── */
.faq-accordion .card {
    border: 1px solid rgba(159, 75, 238, 0.1) !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.faq-accordion .card-header {
    background: rgba(159, 75, 238, 0.03) !important;
    border-bottom: none !important;
    padding: 16px 20px !important;
}

.faq-accordion .card-header h4 {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
}

.faq-accordion .card-body {
    padding: 0 20px 16px !important;
}

.faq-accordion .card-body p {
    color: #666 !important;
    font-size: 14px;
    line-height: 1.7;
}

/* ── Premium Testimonials ── */
.testi-item .testi-inner {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    border-radius: 16px !important;
    border: 1px solid rgba(159, 75, 238, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

/* ── Scroll Reveal Animation ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.service-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* ── Premium Footer Polish ── */
.footer-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%) !important;
    padding: 80px 0 0 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 85% 15%, rgba(159, 75, 238, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 1200px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-col h5 {
    color: #ffffff !important;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h5::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--primary);
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.65) !important;
    transition: all 0.3s ease;
    font-size: 15px;
    text-decoration: none !important;
}

.footer-link:hover {
    color: #ffffff !important;
    transform: translateX(5px);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(159, 75, 238, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================== 
   Workflow Chart Component Styles
   ========================================================================== */
.workflow-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f6ff 0%, #efe9ff 100%);
    position: relative;
    overflow: hidden;
}

.workflow-section::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(159, 75, 238, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.workflow-section .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.workflow-section .section-title span {
    display: inline-block;
    color: #9f4bee;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.workflow-section .section-title h3 {
    font-weight: 800;
    color: #1a1a2e;
    font-size: 2.5rem;
    letter-spacing: -1px;
}

/* Workflow Steps Container */
.workflow-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    position: relative;
    padding: 20px 0;
}

/* Connecting Line */
.workflow-steps::before {
    content: "";
    position: absolute;
    top: 55px;
    left: 10%;
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, #9f4bee, #3861fb, #00d2ff, #9f4bee);
    background-size: 300% 100%;
    animation: workflowGradient 4s linear infinite;
    z-index: 1;
    border-radius: 10px;
    opacity: 0.6;
}

@keyframes workflowGradient {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

/* Single Step */
.wf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: wfStepIn 0.6s ease forwards;
}

.wf-step:nth-child(1) {
    animation-delay: 0.1s;
}

.wf-step:nth-child(2) {
    animation-delay: 0.2s;
}

.wf-step:nth-child(3) {
    animation-delay: 0.3s;
}

.wf-step:nth-child(4) {
    animation-delay: 0.4s;
}

.wf-step:nth-child(5) {
    animation-delay: 0.5s;
}

.wf-step:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes wfStepIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Step Circle */
.wf-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 4px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #9f4bee;
    box-shadow:
        0 15px 35px rgba(159, 75, 238, 0.15),
        inset 0 0 0 2px rgba(159, 75, 238, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 3;
}

.wf-step:hover .wf-circle {
    background: linear-gradient(135deg, #9f4bee, #7c3aed);
    color: #fff;
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 20px 40px rgba(159, 75, 238, 0.4);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Step Number Badge */
.wf-number {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(238, 90, 36, 0.4);
    border: 2px solid #fff;
}

/* Step Label */
.wf-label {
    margin-top: 20px;
    font-weight: 700;
    font-size: 16px;
    color: #1a1a2e;
    text-align: center;
    line-height: 1.4;
    max-width: 140px;
    transition: all 0.3s ease;
}

.wf-step:hover .wf-label {
    color: #9f4bee;
    transform: translateY(-5px);
}

/* Animated Dot on Line */
.wf-dot {
    position: absolute;
    top: 52px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 3px solid #9f4bee;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(159, 75, 238, 0.8);
    animation: wfDotMove 5s linear infinite;
    z-index: 2;
}

@keyframes wfDotMove {
    0% {
        left: 10%;
    }

    100% {
        left: 90%;
    }
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
    .workflow-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-left: 40px;
    }

    .workflow-steps::before {
        top: 0;
        bottom: 0;
        left: 68px; /* Aligned with circle center (40px padding + 56px/2 circle) */
        width: 3px;
        height: 100%;
        transform: translateX(-50%);
    }

    .wf-step {
        flex-direction: row;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        padding: 25px 0;
        justify-content: flex-start;
    }

    .wf-circle {
        width: 56px;
        height: 56px;
        font-size: 18px;
        flex-shrink: 0;
        border-width: 3px;
    }

    .wf-label {
        margin-top: 0;
        text-align: left;
        font-size: 15px;
        max-width: 200px;
        align-self: center;
    }

    .wf-dot {
        top: auto;
        left: 68px !important;
        transform: translateX(-50%);
        animation: wfDotMoveV 4s linear infinite;
    }

    @keyframes wfDotMoveV {
        0% { top: 0; }
        100% { top: 100%; }
    }

    .page-header-title h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .wf-circle {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .wf-number {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: -5px;
        right: -5px;
    }
}