/* ==========================================================================
   LEGACY GAMING & AI SOLUTIONS - CUSTOM OVERRIDE STYLESHEET
   ========================================================================== */

/* --- 1. Custom Scrollbars & Reset Options --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #111222;
}
::-webkit-scrollbar-thumb {
    background: #2b2e4a;
    border-radius: 4px;
    border: 1px solid #111222;
}
::-webkit-scrollbar-thumb:hover {
    background: #0ef0ad;
    box-shadow: 0 0 10px #0ef0ad;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- 2. Advanced Typography & Gradients --- */
.heading span, 
.sub-title span, 
.display-four span, 
.display-two span, 
.display-one span {
    background: linear-gradient(135deg, #0ef0ad 0%, #3a86ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- 3. Glassmorphic Navigation Bar --- */
.header-section {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(22, 24, 41, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease;
}

.header-section.header-fixed {
    background: rgba(17, 18, 34, 0.95) !important;
}

/* --- 4. Sleek Glass Card System (Home Services & General) --- */
.single-box.box-second {
    background: rgba(34, 36, 52, 0.4) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 20px !important;
    padding: 32px 28px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.single-box.box-second:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 240, 173, 0.3) !important;
    box-shadow: 0 12px 40px rgba(14, 240, 173, 0.12) !important;
    background: rgba(34, 36, 52, 0.65) !important;
}

.single-box.box-second .content-box h3 {
    transition: color 0.3s ease;
}

.single-box.box-second:hover .content-box h3 {
    color: #0ef0ad !important;
}

.single-box.box-second .end-area {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.single-box.box-second:hover .end-area {
    background: #0ef0ad;
    border-color: #0ef0ad;
    box-shadow: 0 0 15px rgba(14, 240, 173, 0.5);
}

.single-box.box-second:hover .end-area i {
    color: #161829 !important;
}

/* --- 5. Custom Grid cards (Services directory grid) --- */
.services .single-box {
    border-radius: 20px !important;
    overflow: hidden;
    background: rgba(34, 36, 52, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.services .single-box img,
.services .single-box video {
    max-width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: brightness(0.85);
}

.services .single-box:hover img,
.services .single-box:hover video {
    transform: scale(1.06);
    filter: brightness(1.0);
}

.services .single-box:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 240, 173, 0.4) !important;
    box-shadow: 0 15px 35px rgba(14, 240, 173, 0.2) !important;
}

.services .single-box h3.position-absolute {
    background: rgba(22, 24, 41, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 24px !important;
    border-radius: 12px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    bottom: 24px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 85% !important;
    text-align: center !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.services .single-box:hover h3.position-absolute {
    background: rgba(14, 240, 173, 0.9) !important;
    color: #161829 !important;
    border-color: #0ef0ad;
    box-shadow: 0 0 20px rgba(14, 240, 173, 0.4);
}

.services .single-box .abs-area {
    background: linear-gradient(135deg, rgba(14, 240, 173, 0.95) 0%, rgba(58, 134, 255, 0.95) 100%) !important;
    border-radius: 20px !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 0;
    transition: opacity 0.4s ease !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.services .single-box:hover .abs-area {
    opacity: 1;
}

.how-it-works .abs-area {
    display: none !important;
}

/* --- 6. Accordions (Details & FAQ Pages) --- */
.accordion-item {
    background: rgba(34, 36, 52, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    border-radius: 14px !important;
    margin-bottom: 14px !important;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.accordion-button {
    background: transparent !important;
    color: var(--n0) !important;
    font-family: var(--head-font);
    font-size: 17px !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px 24px !important;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    border-bottom: 1px solid rgba(14, 240, 173, 0.15) !important;
    color: #0ef0ad !important;
    background: rgba(14, 240, 173, 0.03) !important;
}

.accordion-button::after {
    filter: invert(1) brightness(0.8);
}

.accordion-button:not(.collapsed)::after {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(90deg) brightness(0.9);
}

.accordion-body {
    background: rgba(22, 24, 41, 0.2) !important;
    color: rgba(255, 255, 255, 0.7);
    padding: 20px 24px !important;
    font-size: 15px !important;
    line-height: 1.6;
}

/* --- 7. Buttons & Micro-Animations --- */
.box-style.btn-box, 
.btn-base, 
.box-style.btn-box-third {
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.box-style.btn-box:hover, 
.btn-base:hover {
    box-shadow: 0 0 22px rgba(14, 240, 173, 0.4) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

.mouse-follower .cursor-outline {
    border: 1.5px solid #0ef0ad !important;
    box-shadow: 0 0 10px rgba(14, 240, 173, 0.3);
}

.mouse-follower .cursor-dot {
    background: #0ef0ad !important;
}

/* --- 8. Content/Section Details & Sidebar --- */
.sidebar-area {
    background: rgba(34, 36, 52, 0.4) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
}

.sidebar-area .list li {
    font-family: var(--head-font);
    font-size: 16px;
    font-weight: 500;
    color: var(--n50);
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.sidebar-area .list li:hover {
    color: #0ef0ad;
    background: rgba(14, 240, 173, 0.05);
    border-color: rgba(14, 240, 173, 0.2);
    transform: translateX(4px);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS OVERRIDES
   ========================================================================== */

/* --- Tablet Devices (max-width: 991px) --- */
@media (max-width: 991px) {
    body {
        font-size: 16px;
        line-height: 26px;
    }
    
    .display-one { font-size: 54px !important; line-height: 64px !important; }
    .display-two { font-size: 48px !important; line-height: 56px !important; }
    .display-three { font-size: 42px !important; line-height: 50px !important; }
    .display-four { font-size: 36px !important; line-height: 44px !important; }
    
    .pt-120 { padding-top: 80px !important; }
    .pb-120 { padding-bottom: 80px !important; }
    
    .single-box.box-second {
        padding: 24px 20px !important;
    }

    .navbar-collapse {
        background: rgba(17, 18, 34, 0.98);
        border-radius: 12px;
        padding: 20px;
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* --- Mobile Devices (max-width: 575px) --- */
@media (max-width: 575px) {
    .display-one { font-size: 38px !important; line-height: 46px !important; }
    .display-two { font-size: 34px !important; line-height: 42px !important; }
    .display-three { font-size: 30px !important; line-height: 38px !important; }
    .display-four { font-size: 26px !important; line-height: 32px !important; }
    
    .fs-one, h1, h1>a { font-size: 30px !important; line-height: 38px !important; }
    .fs-two, h2, h2>a { font-size: 26px !important; line-height: 32px !important; }
    .fs-three, h3, h3>a { font-size: 22px !important; line-height: 28px !important; }
    
    .pt-120 { padding-top: 60px !important; }
    .pb-120 { padding-bottom: 60px !important; }

    .single-box.box-second {
        padding: 20px 16px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }
    
    .single-box.box-second .end-area {
        align-self: flex-end;
    }

    .services .single-box h3.position-absolute {
        font-size: 16px !important;
        padding: 10px 16px !important;
        width: 90% !important;
        bottom: 16px !important;
    }

    .accordion-button {
        padding: 16px 18px !important;
        font-size: 15px !important;
    }

    .accordion-body {
        padding: 16px 18px !important;
        font-size: 14px !important;
    }
    
    .footer-wrapper {
        padding: 40px 16px !important;
    }
}

/* --- Services 2-Column Grid on Home --- */
.our-services .row.g-4 {
    display: flex;
    flex-wrap: wrap;
}

.our-services .row.g-4 .col-md-6 {
    display: flex;
}

.our-services .single-box.box-second {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start !important;
    width: 100%;
    margin-bottom: 0 !important;
    padding: 28px 24px !important;
    border-radius: 16px !important;
}

.our-services .single-box.box-second .content-box {
    width: 100%;
}

.our-services .single-box.box-second .end-area {
    margin-top: 15px;
    align-self: flex-start;
}

/* --- Portfolio Card Height Harmonization (Our Games Section) --- */
.our-games .row.cus-mar {
    display: flex;
    flex-wrap: wrap;
}

.our-games .col-md-6 {
    display: flex;
}

.our-games .single-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: rgba(34, 36, 52, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    overflow: hidden;
    margin-bottom: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.our-games .single-box:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 240, 173, 0.3) !important;
    box-shadow: 0 12px 40px rgba(14, 240, 173, 0.15) !important;
}

.our-games .single-box .thumb-img {
    height: 280px !important;
    width: 100% !important;
    object-fit: cover !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.our-games .single-box .info-area.position-relative {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 24px !important;
}

.our-games .single-box .info-area .d-flex.align-items-center {
    width: 100%;
}

.our-games .single-box .img-area {
    flex-shrink: 0;
}

.our-games .single-box .img-area img,
.our-games .single-box .img-area .material-symbols-outlined {
    border-radius: 50%;
    object-fit: cover;
}

.our-games .single-box .app-download {
    margin-top: auto;
    padding-top: 20px;
    width: 100%;
}

@media (max-width: 575px) {
    .our-games .single-box .thumb-img {
        height: 180px !important;
    }
    .our-games .single-box .info-area.position-relative {
        padding: 20px 16px !important;
    }
}

/* Remove only the floating remote controllers on both sides of Our Games section */
.our-games::before,
.our-games::after,
.our-games.index-two::before,
.our-games.index-two::after {
    display: none !important;
    background-image: none !important;
    content: none !important;
}

.our-games .shape-area {
    display: none !important;
}

/* --- How it Works Section Redesign (our-services-1.html) --- */
.how-it-works .row.g-4 {
    display: flex;
    flex-wrap: wrap;
}

.how-it-works .row.g-4 .col-md-6 {
    display: flex;
}

.how-it-works .single-box.box-first {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100% !important;
    border-radius: 20px !important;
    background: rgba(34, 36, 52, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.how-it-works .single-box.box-first:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 240, 173, 0.3) !important;
    box-shadow: 0 12px 40px rgba(14, 240, 173, 0.15) !important;
}

.how-it-works .single-box.box-first .title-area {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.how-it-works .single-box.box-first .title-area h4 {
    margin-top: 24px;
    margin-bottom: 12px;
}

/* --- Service Pillar Cards & Tech Stack Styling (our-services-1.html) --- */
.service-pillar-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.service-pillar-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 240, 173, 0.4) !important;
    box-shadow: 0 15px 35px rgba(14, 240, 173, 0.15);
}

.tech-badge {
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.tech-badge:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 240, 173, 0.4) !important;
}

