/* AnyService Global Variables */
:root {
    --as-color-bg: #161A1F;
    --as-color-bg-dark: #0F0F0F;
    --as-color-card-bg: #21262E;
    --as-color-accent: #8A70FF;
    --as-color-desc: #6F7276;
    /* Darker grey for nav buttons */
    --as-color-text-white: #FFFFFF;
    --as-color-text-grey: #BBBBBB;
    --as-color-link: #12DCFE;

    --as-font-main: 'Instrument Sans', sans-serif;
}

.as-container {
    font-family: var(--as-font-main);
    color: var(--as-color-text-white);
}

.as-container h1,
.as-container h2,
.as-container h3,
.as-container h4,
.as-container h5,
.as-container h6 {
    color: #FFFFFF !important;
}

/* Helpers */
.as-text-gradient {
    background: linear-gradient(90deg, #55A4FA 0%, #A564F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.as-btn-primary {
    background: linear-gradient(90deg, #55A4FA 0%, #A564F6 100%);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.3s;
}

.as-btn-primary:hover {
    opacity: 0.9;
}

/* Hero & General */
.as-hero-section {
    background-color: var(--as-color-bg);
    padding: 60px 20px;
    text-align: center;
}

.as-search-bar {
    background-color: var(--as-color-card-bg);
    border-radius: 123px;
    padding: 10px 30px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    max-width: 800px;
    width: 100%;
    margin: 40px auto;
}

.as-search-input {
    background: transparent;
    border: none;
    color: var(--as-color-text-grey);
    font-size: 20px;
    flex-grow: 1;
    outline: none;
}

/* Marquee Styles */
.as-marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 20px;
    margin-bottom: 20px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.as-marquee-content {
    flex-shrink: 0;
    display: flex;
    gap: 20px;
    min-width: 100%;
    animation: as-scroll 30s linear infinite;
}

.as-marquee-content.reverse {
    animation-direction: reverse;
}

.as-marquee-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 16px;
    color: #CCC;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.as-marquee-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

@keyframes as-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 20px));
    }
}

/* Testimonials Slider */
.as-slide.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    /* Make it flow in doc flow when active if layout permits, or keep abs centered */
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

/* Override absolute positioning for active slide to let container grow? 
   Actually, container min-height is set. Absolute centering is good for transitions. 
   We will toggle a class that manages visibility. */

.as-nav-btn {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: var(--as-color-text-white);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.as-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.as-dot {
    width: 10px;
    height: 10px;
    background-color: #333;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.as-dot.active {
    background-color: var(--as-color-accent);
    width: 30px;
    border-radius: 5px;
}

/* Service Explorer Styles */
.as-service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.as-service-pill {
    background-color: var(--as-color-card-bg);
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: var(--as-color-text-grey);
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.as-service-pill:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.as-dot-orange {
    width: 6px;
    height: 6px;
    background-color: #FD7E14;
    /* Orange */
    border-radius: 50%;
}

.as-view-all-trigger {
    display: inline-block;
    color: var(--as-color-link);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    margin-top: 15px;
    transition: opacity 0.3s;
}

.as-view-all-trigger:hover {
    opacity: 0.8;
}

/* Modal Styles */
.as-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.as-modal-content {
    background-color: var(--as-color-bg);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 112, 255, 0.4);
    border: 1px solid #333;
}

/* Header Navigation Links */
.as-header-link {
    color: var(--as-color-desc);
    transition: all 0.3s ease;
}

.as-header-link:hover {
    background: linear-gradient(90deg, #A564F6 0%, #55A4FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.as-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #333;
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.as-modal-close:hover {
    background: #555;
}

.as-modal-tabs {
    background-color: var(--as-color-card-bg);
    border-radius: 50px;
    padding: 5px;
    display: inline-flex;
    margin: 0 auto 30px auto;
    border: 1px solid #333;
}

.as-tab-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 10px 40px;
    border-radius: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.as-tab-btn.active {
    background-color: #3C424D;
    color: white;
}

.as-modal-search {
    background-color: var(--as-color-card-bg);
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.as-modal-search input {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    width: 100%;
    outline: none;
}

.as-modal-body {
    overflow-y: auto;
    flex: 1;
    min-height: 300px;
    padding-right: 10px;
    /* Space for scrollbar */
}

/* Custom Scrollbar for Modal Body */
.as-modal-body::-webkit-scrollbar {
    width: 8px;
}

.as-modal-body::-webkit-scrollbar-track {
    background: #111;
}

.as-modal-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.as-modal-list {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.as-modal-list.active {
    display: grid;
}

/* Success Stories Styles */
.as-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 20px;
}

.as-story-card {
    background-color: var(--as-color-card-bg);
    padding: 40px;
    border-radius: 4px;
    text-align: left;
    height: 100%;
}

.as-stories-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    /* Covers roughly the last row */
    background: linear-gradient(to bottom, rgba(22, 26, 31, 0) 0%, rgba(22, 26, 31, 1) 100%);
    pointer-events: none;
    /* Allow clicks through transparency if needed, though usually bottom cards are just visual proof */
}

@media (max-width: 1024px) {
    .as-stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .as-stories-grid {
        grid-template-columns: 1fr;
    }
}


/* FAQ Styles */
.as-faq-item {
    background-color: var(--as-color-card-bg);
    border-radius: 50px;
    /* Fully rounded when collapsed */
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.as-faq-item.active {
    background-color: #0F3D75;
    /* Blue active background */
    border-radius: 8px;
    /* Less rounded when expanded, per design maybe? Or keep 50px if design implies pills */
    border-color: #0F3D75;
}

/* Actually, looking at image, expanded item is rectangular (ish), collapsed are pills. */
.as-faq-item.active {
    border-radius: 4px;
}

.as-faq-header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    min-height: 80px;
}

.as-faq-question {
    font-size: 18px;
    margin: 0;
    font-weight: 500;
    color: var(--as-color-text-white);
}

.as-faq-icon {
    font-size: 20px;
    color: var(--as-color-text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.as-faq-icon .eicon-minus {
    display: none;
}

.as-faq-item.active .as-faq-icon .eicon-plus {
    display: none;
}

.as-faq-item.active .as-faq-icon .eicon-minus {
    display: block;
}

.as-faq-content {
    padding: 0 40px 30px 40px;
    color: #BBBBBB;
    /* Grey text */
    font-size: 16px;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.as-faq-item.active .as-faq-content {
    /* border top only visible if we want separator, but blue bg makes it uniform */
    border-top: none;
    color: rgba(255, 255, 255, 0.7);
}