/* --- Global Styles & Variables --- */
:root {
    --slide-speed: 0.8s;
    --ease: cubic-bezier(0.65, 0, 0.35, 1);
    --bg-dark: #0f0026;
    --accent-dblue: #1c2541;
    --accent-blue: #1c5e74;
    --bg-white: #fcfcfc;
    --bg-gray: #a8b0c0;
    --line-color: #3b82f6;
    --text-muted: #94a3b8;
    --step-1: #3b82f6;
    --step-2: #10b981;
    --step-3: #a855f7;
    --step-4: #f59e0b;
    --step-5: #059669;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    max-width: 100%;
    overflow-x: hidden;
}
html {
    max-width: 100%;
    overflow-x: hidden;
}

/* loader */
/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

#loader img.logo {
    display: inline-block;
    width: 120px;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    animation: loader-pulse 2.5s ease-in-out infinite;
}

@keyframes loader-pulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
        /* Optional: subtle brightness shift adds depth */
    }

    50% {
        transform: scale(1.1);
        /* 1.1 is often smoother/more subtle than 1.2 */
        filter: brightness(1.05);
    }

    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* Scrollbar Logic (Your Code) */
@media screen and (min-width: 601px) {
    ::-webkit-scrollbar {
        width: 7px;
        height: 7px;
    }

    ::-webkit-scrollbar-track {
        background: var(--bg-white);
    }

    ::-webkit-scrollbar-thumb {
        background: #1e6091;
    }
}


/* --- Hero Section --- */
.support-section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(5rem, 15vh, 17rem) 5%;
    height: 80vh;
    background: linear-gradient(rgba(15, 0, 38, 0.75), rgba(15, 0, 38, 0.75)),
        url("/assets/support/support-header.webp") no-repeat center/cover;
}

.support-section .header-title {
    font-family: "Inter", sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.support-section .highlight {
    color: #00d4ff;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.support-section .header-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}


/* --- Extra Small Devices (Phones) --- */
@media (max-width: 768px) {
    .support-section {
        height: auto;
        min-height: 100svh;
        overflow-x: hidden;
    }
}
@media (max-width: 480px) {
    .support-section {
        height: auto;
        padding: 6rem 5% 4rem;
    }

    .card {
        padding: 15px;
    }

}


@media (max-width: 1440px) {
    .support-section {
        height: auto;
        min-height: 80vh;
        overflow-x: hidden;
    }

    .support-section .header-title {
        font-size: 3rem;
    }


}




/* --- Timeline Section --- */
.process-wrapper {
    padding: 80px 5%;
    background-color: var(--bg-white);
    text-align: center;
}

.header-tag {
    color: var(--accent-dblue);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.header-tag::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent-dblue);
    margin: 5px auto 0;
}


.timeline-main-title {
    margin: 20px 0;
    color: var(--bg-dark);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;

}

/* --- Animation Container Fix --- */
.bg-design {
    position: relative;
    display: flex;
    justify-content: center;
    /* Centers the ball and platform */
    align-items: center;
    height: 80px;
    /* Increased height to prevent text overlap */
    margin: 20px auto;
    /* Centers the container itself */
    width: 100%;
}

/* --- The Floating Ball (Black) --- */
.bg-design:before {
    content: "";
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background-color: #000;
    z-index: 2;
    bottom: 22px;
    /* Positions it above the bar */
    animation: disc-movement-2 0.6s ease-in-out infinite alternate;
}

/* --- The Sliding Platform (Orange) --- */
.bg-design:after {
    content: "";
    position: absolute;
    bottom: 10px;
    width: 4.5rem;
    height: 0.7rem;
    background-color: var(--accent-blue);
    border-radius: 20px;
    z-index: 1;
    animation: disc-movement-1 1.2s ease-in-out infinite alternate;
}

/* --- Keyframes (Ensure these are exactly as below) --- */
@keyframes disc-movement-1 {
    from {
        transform: translateX(-15px) rotate(-6deg);
    }

    to {
        transform: translateX(15px) rotate(5deg);
    }
}

@keyframes disc-movement-2 {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-30px);
        /* Smooth bouncing height */
    }
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 80px;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(59, 130, 246, 0.3);
    transform: translateX(-50%);
}

.step-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease);
}

.step-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-side,
.card-side {
    width: 45%;
    text-align: left;
    color: var(--accent-dblue);
}

.step-desc {
    color: var(--accent-blue);
    font-size: 14px;
    margin-top: 10px;
}

.card {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid var(--line-color);
}

.card ul {
    list-style: none;
    color: var(--bg-white);
}

.card li {
    margin: 12px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.card li::before {
    content: '✔';
    margin-right: 12px;
    font-weight: bold;
    color: var(--line-color);
}

.step-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    z-index: 2;
    /* border: 3px solid #0b112b; */
}

/* Color Overrides */
.row-1 .step-number {
    background: var(--step-1);
}

.row-1 .card {
    border-color: var(--step-1);
}

.row-2 .step-number {
    background: var(--step-2);
}

.row-2 .card {
    border-color: var(--step-2);
}

.row-3 .step-number {
    background: var(--step-3);
}

.row-3 .card {
    border-color: var(--step-3);
}

.row-4 .step-number {
    background: var(--step-4);
}

.row-4 .card {
    border-color: var(--step-4);
}

.row-5 .step-number {
    background: var(--step-5);
}

.row-5 .card {
    border-color: var(--step-5);
}

/* Alternating Logic */
.step-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* Floating Chat Button */
.chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s ease, transform 0.3s ease;
  background: rgb(7, 7, 44);
  box-shadow: 0 0 20px 5px rgba(56, 52, 112, 0.7);
   transition: all 0.4s ease; /* Smooth transition for opacity and transform */
    opacity: 1;
    visibility: visible;
}


.chat-widget.hidden-widget {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* Optional: slight slide down effect */
    pointer-events: none; /* Prevents clicking while invisible */
}

.chat-widget.stuck {
    position: absolute;
}

.chat-widget svg {
    fill: white;
    width: 25px;
}

/* Responsive Mobile Fixes */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .step-number {
        left: 20px;
        transform: none;
    }

    .step-row,
    .step-row:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
    }

    .content-side,
    .card-side {
        width: 90%;
        margin-left: 50px;
        text-align: left !important;
    }

    .card-side {
        margin-top: 20px;
    }
}

/* All icons pulse */
.step-number i {
    animation: pulse-icon 2s infinite ease-in-out;
}

/* Add slight delays so it looks organic */
.row-1 .step-number i {
    animation-delay: 0s;
}

.row-2 .step-number i {
    animation-delay: 0.4s;
}

.row-3 .step-number i {
    animation-delay: 0.8s;
}

.row-4 .step-number i {
    animation-delay: 1.2s;
}

.row-5 .step-number i {
    animation-delay: 1.6s;
}


@keyframes pulse-icon {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* --- Enhanced Responsive Mobile Fixes --- */
@media (max-width: 768px) {

    /* 1. Shift the vertical line to the left edge */
    .timeline::before {
        left: 20px;
        transform: none;
    }

    /* 2. Force all rows to stack and align to the left line */
    .step-row,
    .step-row:nth-child(even) {
        flex-direction: column !important;
        /* Overrides alternating logic */
        align-items: flex-start;
        margin-bottom: 50px;
        padding-left: 50px;
        /* Space for the line and icon */
    }

    /* 3. Re-position icons to sit on the left-aligned line */
    .step-number {
        left: 20px;
        transform: translateX(-50%);
        width: 35px;
        height: 35px;
    }

    .step-number i {
        font-size: 14px;
    }

    /* 4. Make content and cards take full width */
    .content-side,
    .card-side {
        width: 100%;
        text-align: left !important;
        margin-left: 0;
    }

    .card-side {
        margin-top: 15px;
    }

    /* 5. Scale down text for smaller screens */
    .timeline-main-title {
        font-size: 1.8rem;
    }

    .support-section .header-title {
        font-size: 2.2rem;
    }
}



@keyframes slideDown {
    from {
        transform: translateY(-5000%);
    }

    to {
        transform: translateY(-5000%);
    }
}



.dynamic-process {
    padding: 80px 5%;
    background: var(--bg-white);
    color: #fff;
    text-align: center;
    position: relative;
}

/* The 5% inset border-top */
.dynamic-process::before {
    content: "";
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 1px;
    background-color: var(--bg-gray);
    opacity: 0.5;
}

.process-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.nav-item {
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.5;

}

.nav-item.active {
    opacity: 1;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: var(--bg-gray);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--bg-dark);
    /* Orange accent */
    margin-bottom: 10px;
    border: 1px solid transparent;
}

.nav-item.active .icon-box {
    border-color: var(--accent-dblue);
    box-shadow: 0 0 15px rgba(0, 38, 255, 0.2);
}

.nav-arrow {
    color: var(--accent-dblue);
    font-size: 20px;
    margin-bottom: 20px;
}

/* Content Switching */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.evolve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.evolve-card span {
    color: var(--bg-white);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}


.tagline {
    color: #94a3b8;
    font-size: 1rem;

   
}

.evolve-title{
     font-size: 1.5rem;
      margin-bottom: 10px;
       color: var(--bg-dark);
}

.evolve-card {
    background: var(--accent-dblue);
    padding: 26px;
    border-radius: 16px;
}

.evolve-card:hover {
    /* transform: translateY(-5px); */
    border-color: var(--accent-dblue);
    /* transition: all .5s ease; */

}

.evolve-card h4 {
    font-size: 1.2rem;
    color: var(--bg-white);
    margin-bottom: 10px;
}

.evolve-card p {
    color: var(--bg-gray);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width:1440px) {
    .dynamic-process {
        padding: 40px 5%;
    }
    .timeline-main-title{
        font-size: 2rem;
    }

    .subtitle{
        margin-bottom: 2rem;
    }

    .process-nav{
        margin-bottom: 0;
    }

    .cta-title{
        font-size: 3.2rem !important;
    }

    .cta-subtitle{
        margin-bottom: 1.5rem !important;
    }

    .dot{
        height: 14px !important;
        width: 14px !important;
    }

    .cta-logo{
        gap: 8px !important;
    }
    .btn-cta {
            padding: 16px 40px;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .dynamic-process {
        padding: 60px 5%;
    }
}

@media (max-width: 768px) {

    /* Allow nav items to wrap or scroll if there are many */
    .process-nav {
        flex-wrap: wrap;
        gap: 15px;
        margin-bottom: 30px;
    }

    .nav-arrow {
        display: none;
        /* Arrows usually clutter small screens */
    }

    .icon-box {
        width: 65px;
        height: 65px;
        font-size: 20px;
    }

    .evolve-grid {
        grid-template-columns: 1fr;
        /* Stack cards on top of each other */
        gap: 20px;
    }
}

@media (max-width: 480px) {

    /* For very small screens, make icons smaller */
    .process-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        /* 3 icons per row */
        justify-items: center;
    }

    .nav-item p {
        font-size: 0.8rem;
    }
}


/* --- CTA Section: Brand Dark Theme --- */
.project-cta {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #160040 100%);
    padding: 80px 5%;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;

}

/* Logo Decoration: Using Brand Colors */
.cta-logo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 44px;
    margin: 0 auto 35px auto;
}

.dot {
    width: 17px;
    height: 17px;
    border-radius: 50%;
}

.dot-blue {
    background-color: var(--step-1);
    box-shadow: 0 0 10px var(--step-1);
}

.dot-cyan {
    background-color: #00d4ff;
}

.dot-white {
    background-color: var(--bg-white);
}

.dot-muted {
    background-color: var(--accent-dblue);
}

/* Typography */
.cta-title {
    font-family: "Inter", sans-serif;
    color: var(--bg-white);
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-title .highlight {
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.cta-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 50px;
    font-family: "Inter", sans-serif;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Button: Electric Blue Style */
/* 1. Define the "Attention" Keyframes */
@keyframes click-me-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    }

    50% {
        transform: scale(1.05);
        /* Slight grow */
        box-shadow: 0 15px 35px rgba(59, 130, 246, 0.6);
        /* Glowing spread */
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    }
}

/* 2. Apply to the Button */
.btn-cta {
    display: inline-block;
    background-color: var(--step-1);
    color: #fff;
    padding: 20px 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);

    /* The Magic: Infinitely repeating pulse */
    animation: click-me-pulse 2.5s infinite ease-in-out;
}

/* 3. Refine Hover State */
.btn-cta:hover {
    background-color: var(--line-color);
    /* Pause the animation on hover so the user feels in control */
    animation-play-state: paused;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.5);
}

/* 4. Active (Click) State */
.btn-cta:active {
    transform: translateY(-2px) scale(0.98);
    /* Squash effect when clicked */
}

/* 1. Define the "Attention" Keyframes */
@keyframes click-me-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    }

    50% {
        transform: scale(1.05);
        /* Slight grow */
        box-shadow: 0 15px 35px rgba(59, 130, 246, 0.6);
        /* Glowing spread */
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    }
}

/* 2. Apply to the Button */
.btn-cta {
    display: inline-block;
    background-color: var(--step-1);
    color: #fff;
    padding: 20px 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);

    /* The Magic: Infinitely repeating pulse */
    animation: click-me-pulse 2.5s infinite ease-in-out;
}

/* 3. Refine Hover State */
.btn-cta:hover {
    background-color: var(--line-color);
    /* Pause the animation on hover so the user feels in control */
    animation-play-state: paused;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.5);
}

/* 4. Active (Click) State */
.btn-cta:active {
    transform: translateY(-2px) scale(0.98);
    /* Squash effect when clicked */
}

/* 1. Define the "Attention" Keyframes */
@keyframes click-me-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    }

    50% {
        transform: scale(1.05);
        /* Slight grow */
        box-shadow: 0 15px 35px rgba(59, 130, 246, 0.6);
        /* Glowing spread */
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    }
}

/* 2. Apply to the Button */
.btn-cta {
    display: inline-block;
    background-color: var(--step-1);
    color: #fff;
    padding: 20px 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);

    /* The Magic: Infinitely repeating pulse */
    animation: click-me-pulse 2.5s infinite ease-in-out;
}

/* 3. Refine Hover State */
.btn-cta:hover {
    background-color: var(--line-color);
    /* Pause the animation on hover so the user feels in control */
    animation-play-state: paused;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.5);
}

/* 4. Active (Click) State */
.btn-cta:active {
    transform: translateY(-2px) scale(0.98);
    /* Squash effect when clicked */
}



/* Mobile Tweak */
@media (max-width: 768px) {
    .project-cta {
        padding: 80px 5%;
    }
}

/* --- Entrance Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Applying Animations to Roadmap --- */
.step-row .content-side {
    opacity: 0;
}

.step-row .card-side {
    opacity: 0;
}

/* When the row becomes visible via JS */
.step-row.visible .content-side {
    animation: fadeInLeft 0.8s ease forwards;
}

.step-row.visible .card-side {
    animation: fadeInRight 0.8s ease forwards;
    animation-delay: 0.2s;
    /* Slight stagger */
}

/* Reverse logic for even rows so they fly in from correct sides */
.step-row.visible:nth-child(even) .content-side {
    animation: fadeInRight 0.8s ease forwards;
}

.step-row.visible:nth-child(even) .card-side {
    animation: fadeInLeft 0.8s ease forwards;
}

/* --- Dynamic Process Section Animations --- */
.nav-item {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-item:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* --- Optimized Slide-In Effect --- */

.tab-content {
    display: none;
    /* Keep this for logic */
}

.tab-content.active {
    display: block;
}


.evolve-card {
    background: var(--accent-dblue);
    padding: 26px;
    border-radius: 16px;
    border: 1px solid transparent;

    /* Initial state for the slide */
    opacity: 0;
    /* transform: translateY(30px); */
    /* transition: transform 0.8s var(--ease), opacity 0.8s var(--ease), border-color 0.3s ease; */
}



/* When the parent tab becomes active, slide the cards up */
.tab-content.active .evolve-card {
    opacity: 1;
    /* transform: translateY(0); */
}



/* Staggered delays for a professional "wave" effect */
.tab-content.active .evolve-card:nth-child(1) {
    transition-delay: 0.1s;
}

.tab-content.active .evolve-card:nth-child(2) {
    transition-delay: 0.2s;
}

.tab-content.active .evolve-card:nth-child(3) {
    transition-delay: 0.3s;
}





/* Pulse effect for the active icon box */
.nav-item.active .icon-box {
    animation: pulse-border 2s infinite;
}



@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}