/* --- Global Overrides --- */
.floating-actions {
    display: none !important;
}

/* Hide Mobile Components on Desktop Globally */
.mobile-menu-header,
.mobile-menu-footer {
    display: none !important;
}

/* --- New Premium Tech Footer (Brand & Marketing Powerhouse) --- */
.main-footer {
    background: linear-gradient(180deg, #05080f 0%, #0b0f19 100%);
    padding: 100px 0 60px;
    color: #a0aec0;
    font-family: 'Outfit', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Marketing Background: Abstract Tech Mesh */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 166, 182, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 166, 182, 0.03) 0%, transparent 20%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    pointer-events: none;
    z-index: 1;
}

.main-footer .container {
    position: relative;
    z-index: 2;
}

/* Top Marketing Bar (Optional Partner/Trust Indicators) */
.footer-trust-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 50px;
    margin-bottom: 60px;
}

.trust-item {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-item strong {
    display: block;
    font-size: 24px;
    color: white;
    margin-bottom: 5px;
    font-weight: 900;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.6fr;
    gap: 70px;
    margin-bottom: 80px;
}

/* Brand Column & Logo */
.footer-brand .logo-text img {
    height: 48px;
    filter: brightness(0) invert(1);
    margin-bottom: 5px;
}

.brand-slogan {
    font-size: 16px;
    color: white;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    font-size: 14px;
    color: #718096;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 320px;
}

/* Social Media - Tech Hub Style */
.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 166, 182, 0.3);
}

/* Headings with Neon Accent */
.footer-col h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 35px;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-col h4::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Links List */
.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: white;
    padding-left: 10px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-links a::before {
    content: '//';
    position: absolute;
    left: 0;
    opacity: 0;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    transition: 0.3s;
    transform: translateX(-10px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* High-End Contact Card (Glassmorphism) */
.footer-contact-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-contact-box::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    opacity: 0.1;
    filter: blur(50px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
}

.footer-contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 166, 182, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 166, 182, 0.2);
}

.footer-contact-text span {
    display: block;
    font-size: 11px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.footer-contact-text strong {
    color: white;
    font-size: 18px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
    display: block;
}

.footer-contact-text p {
    color: #94a3b8 !important;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Footer Bottom Area */
.footer-bottom {
    background: #05080f;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: #64748b;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Responsive Adaptations (Mobile First Cascade) --- */

/* 1. Large Mobile & Tablets (Standard Adaptation) */
@media (max-width: 1024px) {

    /* Header & Navigation Fixes */
    .header-container {
        height: 80px !important;
    }

    .logo-text img {
        height: 40px !important;
    }

    /* Menu Overlay & Toggle System */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 4px;
        color: var(--dark);
        font-size: 20px;
        z-index: 1200;
        transition: 0.3s;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: auto !important;
        width: 100%;
        height: 100vh;
        background: #0b0f19;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
        transform: translateX(-100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
        z-index: 10000 !important;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: all;
    }

    /* Injected Header */
    .mobile-menu-header {
        padding: 30px;
        background: #05080b;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .m-menu-logo {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .m-menu-logo img {
        height: 38px !important;
        filter: brightness(0) invert(1);
    }

    .m-menu-slogan {
        display: flex;
        flex-direction: column;
    }

    .m-menu-slogan strong {
        color: white;
        font-size: 16px;
        letter-spacing: 1px;
    }

    .m-menu-slogan span {
        color: var(--primary);
        font-size: 10px;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    .m-menu-close {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.1);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* Navigation Links Styling */
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    .nav-links a {
        padding: 22px 30px !important;
        font-size: 16px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 700 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        transition: 0.3s;
        text-decoration: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: relative;
    }

    /* Restore Original Chevrons & Alignment */
    /* Restore & Align Chevrons - Reinforced */
    .nav-links li.has-dropdown>a i[class*="fa-chevron"],
    .nav-links li.has-dropdown>a i.fa-chevron-down {
        display: inline-block !important;
        font-size: 13px !important;
        transition: transform 0.3s ease !important;
        opacity: 0.7 !important;
        margin-left: auto !important;
        color: inherit !important;
        visibility: visible !important;
    }

    .nav-links li.has-dropdown.active>a i[class*="fa-chevron"],
    .nav-links li.has-dropdown.active>a i.fa-chevron-down {
        transform: rotate(180deg) !important;
        opacity: 1 !important;
        color: var(--primary) !important;
    }

    /* No pseudo-element needed now */
    .nav-links .has-dropdown>a::after {
        display: none !important;
    }

    .nav-links li.active>a {
        color: var(--primary) !important;
        background: rgba(255, 255, 255, 0.02);
    }

    /* Accordion Dropdown Container - Complete Positioning Reset */
    .dropdown-container {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-height: 0;
        overflow: hidden;
        visibility: visible !important;
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.1) !important;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
    }

    .nav-links li.has-dropdown.active .dropdown-container {
        max-height: 500px;
        /* Adjusted from 1000px */
    }

    .dropdown-item {
        padding: 18px 30px 18px 30px !important;
        font-size: 15px !important;
        color: rgba(255, 255, 255, 0.8) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        white-space: normal !important;
        /* Allow text wrap */
    }

    .dropdown-item i {
        color: var(--primary) !important;
        font-size: 16px !important;
        width: 24px !important;
        text-align: center !important;
        opacity: 0.8;
    }

    .dropdown-item div {
        color: white !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
    }

    .dropdown-item span {
        display: block !important;
        font-size: 10px !important;
        color: rgba(255, 255, 255, 0.4) !important;
        margin-top: 4px !important;
        font-weight: 400 !important;
        text-transform: uppercase !important;
    }

    .dropdown-item:active {
        background: rgba(255, 255, 255, 0.05) !important;
    }

    /* About Page Timeline - Tablet Optimization (<= 1024px) */
    .timeline-section {
        padding: 100px 0 !important;
    }

    .section-header-v2 h2 {
        font-size: 32px !important;
    }

    .section-header-v2 p {
        font-size: 16px !important;
        padding: 0 20px !important;
    }

    .chronicle-flow-container {
        grid-template-columns: 1fr !important;
        gap: 120px !important;
        margin-top: 80px !important;
        padding: 0 20px !important;
    }

    .chronicle-card {
        height: auto !important;
        min-height: 480px !important;
        padding: 40px 30px !important;
        justify-content: flex-end !important;
    }

    .chronicle-card.feature:last-child {
        grid-column: span 1 !important;
        height: auto !important;
        min-height: 550px !important;
    }

    .chronicle-year {
        font-size: 150px !important;
        top: -70px !important;
        left: -15px !important;
        letter-spacing: -8px !important;
        opacity: 0.1 !important;
    }

    .chronicle-card h4 {
        font-size: 32px !important;
        margin-bottom: 15px !important;
    }

    .chronicle-card p {
        font-size: 17px !important;
        max-width: 100% !important;
    }

    .chronicle-image-box {
        top: 25px !important;
        left: 25px !important;
        right: 25px !important;
        height: 50% !important;
    }

    .chronicle-hud {
        font-size: 40px !important;
        right: 25px !important;
        bottom: 25px !important;
    }

    /* Injected Footer */
    .mobile-menu-footer {
        display: block !important;
        padding: 40px 30px;
        margin-top: auto;
        background: #05080b;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .m-footer-call {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        background: var(--primary);
        color: white !important;
        padding: 18px !important;
        border-radius: 12px;
        font-weight: 900 !important;
        margin-bottom: 20px;
        text-decoration: none;
        box-shadow: 0 10px 20px rgba(0, 166, 182, 0.2);
        animation: pulseCTA 2s infinite;
    }

    @keyframes pulseCTA {
        0% {
            transform: scale(1);
            box-shadow: 0 10px 20px rgba(0, 166, 182, 0.2);
        }

        50% {
            transform: scale(1.02);
            box-shadow: 0 15px 30px rgba(0, 166, 182, 0.3);
        }

        100% {
            transform: scale(1);
            box-shadow: 0 10px 20px rgba(0, 166, 182, 0.2);
        }
    }

    .m-footer-contact p {
        color: rgba(255, 255, 255, 0.4);
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-align: center;
        margin-bottom: 25px;
    }

    .m-footer-trust {
        display: flex;
        justify-content: center;
        gap: 25px;
    }

    .m-footer-trust i {
        font-size: 24px;
        color: rgba(255, 255, 255, 0.15);
        transition: 0.3s;
    }

    .m-footer-trust i:hover {
        color: var(--primary);
    }

    /* Global Page Flow Fix */
    body {
        padding-top: 80px !important;
    }

    /* Hero & Marketing Sections (Unified for all sub-pages) */
    .product-hero,
    .news-hero,
    .cases-hero,
    .inner-banner {
        height: auto !important;
        min-height: unset !important;
        padding: 40px 0 40px !important;
        /* Balanced internal spacing */
        display: flex !important;
        align-items: center !important;
        border: none !important;
        /* Remove any ghost borders */
        margin-top: 0 !important;
        /* Ensure no top margin */
    }

    .product-hero-content h1 {
        font-size: 32px !important;
        line-height: 1.2 !important;
    }

    .product-hero-content p {
        color: white !important;
        opacity: 0.9 !important;
        font-size: 15px !important;
    }

    .hero-stats {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .stat-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 20px !important;
    }

    /* Stats Matrix Adaptation (Cases Page) */
    .stats-matrix {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }

    .stats-matrix .stat-item h3 {
        font-size: 32px !important;
    }

    .stats-matrix .stat-item p {
        font-size: 14px !important;
    }

    /* Product Filter Bar Adaptation (Products, News, Cases) */
    .product-filter-bar {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: stretch !important;
        padding: 20px !important;
        margin-bottom: 40px !important;
    }

    .filter-group {
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: center !important;
    }

    .filter-btn {
        flex: 1 1 calc(50% - 10px) !important;
        padding: 12px 15px !important;
        font-size: 11px !important;
        text-align: center !important;
        min-width: 140px !important;
    }

    .filter-search {
        width: 100% !important;
    }

    .filter-search input {
        padding: 12px 45px 12px 20px !important;
        font-size: 13px !important;
    }

    .filter-search i {
        right: 20px !important;
    }

    /* UI Polish: Hide Desktop-only Floaters */
    .floating-hub,
    .floating-consultation {
        display: none !important;
    }

    /* Footer Tablet Adaptation */
    .footer-top {
        display: flex !important;
        flex-direction: column !important;
        gap: 50px !important;
        text-align: center !important;
    }

    .footer-col {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .logo-text {
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-bottom: 20px !important;
    }

    .logo-text img {
        margin: 0 auto !important;
        display: block !important;
        height: 40px !important;
    }

    .footer-brand p {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .footer-links {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
    }

    .footer-links li {
        width: 100% !important;
        text-align: center !important;
    }

    .footer-links a {
        justify-content: center !important;
        width: 100% !important;
    }

    .footer-contact-box {
        padding: 30px !important;
        max-width: 450px;
        margin: 0 auto !important;
        text-align: left !important;
    }
}

@media (max-width: 768px) {

    /* Floating Actions Removal */
    .floating-actions {
        display: none !important;
    }

    /* Premium Mobile Bottom Bar */
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px;
        background: rgba(11, 15, 25, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 10000;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-contact-box {
        text-align: left !important;
        max-width: 100% !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding: 25px !important;
        margin: 0 auto !important;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 20px;
    }

    /* Global Typography Squish */
    h1 {
        font-size: 28px !important;
    }

    /* Stats Matrix Force Single Column */
    .stats-matrix {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .stats-matrix .stat-item h3 {
        font-size: 36px !important;
    }

    /* About Page Timeline - Mobile Optimization (<= 768px) */
    .chronicle-flow-container {
        gap: 100px !important;
        margin-top: 60px !important;
    }

    .section-header-v2 h2 {
        font-size: 28px !important;
    }

    .section-header-v2 p {
        font-size: 15px !important;
    }

    .chronicle-card {
        min-height: 420px !important;
        padding: 35px 25px !important;
    }

    .chronicle-year {
        font-size: 110px !important;
        top: -50px !important;
        left: -10px !important;
        letter-spacing: -5px !important;
    }

    .chronicle-card h4 {
        font-size: 26px !important;
        margin-bottom: 12px !important;
    }

    .chronicle-card p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    .chronicle-image-box {
        height: 45% !important;
    }

    .chronicle-hud {
        font-size: 32px !important;
        opacity: 0.2 !important;
    }
}

@keyframes pulsePhone {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}