/* PREMIUM NAVBAR & FOOTER & FLOATING LAYER STRUCTURES */

.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(10, 10, 20, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-container .logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
}

.nav-container .logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.1;
    z-index: 100000;
    /* Must stay above menu overlay */
    position: relative;
    transition: transform 0.3s ease;
}

.nav-container .logo:hover {
    transform: scale(1.02);
}

.logo-main {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.logo-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 1px;
    color: #00F0FF;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    padding: 15px 0;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 0px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, #00F0FF, transparent);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
    padding-left: 5px;
    /* Slight magnetic pull effect on hover */
}

.nav-cta {
    background: linear-gradient(45deg, #00F0FF, #6A00FF);
    border-radius: 25px;
    padding: 10px 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #fff !important;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px #00F0FF;
    text-shadow: none;
}

/* --- CREATIVE MEGA DROPDOWN (10+ SERVICES) --- */
.creative-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px) rotateX(-15deg);
    width: 850px;
    background: rgba(8, 8, 15, 0.95);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 999999;
    transform-origin: top center;
    perspective: 1000px;
}

.nav-item:hover .creative-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) rotateX(0deg);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.drop-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #a0aec0;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.drop-icon {
    font-size: 1.4rem;
    margin-right: 15px;
    color: #6A00FF;
    transition: 0.3s;
    filter: drop-shadow(0 0 5px rgba(106, 0, 255, 0.5));
}

.drop-link:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.3);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.drop-link:hover .drop-icon {
    color: #00F0FF;
    filter: drop-shadow(0 0 10px #00F0FF);
}

/* FLOATING ENGINE CSS */
#floating-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    /* Pushed behind main content (10) but above body gradient */
    pointer-events: none;
}

/* Floating Icon Styles Base */
.social-float-node {
    position: absolute;
    width: 45px;
    height: 45px;
    background: rgba(10, 10, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease, border 0.3s ease, opacity 0.5s ease;
    cursor: pointer;
    opacity: 0;
    pointer-events: auto;
    z-index: 100;
    backdrop-filter: blur(4px);
}

.social-float-node img {
    transition: 0.3s;
    pointer-events: none;
    width: 50%;
    filter: invert(1);
}

.social-float-node:hover {
    background: rgba(255, 255, 255, 0.05);
    z-index: 1000;
    opacity: 1 !important;
}

.social-float-node:hover img {
    transform: scale(1.2);
}

.social-float-node .tooltip {
    position: absolute;
    top: -35px;
    font-size: 0.75rem;
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.3s ease;
    white-space: nowrap;
}

.social-float-node .tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
}

.social-float-node:hover .tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Keyword Styles Base */
.keyword-float-node {
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 0 10px currentColor;
    /* Engine will tint color */
    white-space: nowrap;
    transition: opacity 1s ease;
}

/* Base Content */
.hero-section {
    padding-top: 160px;
    /* Push hero content below fixed navigation bar globally */
}

.main-content {
    position: relative;
    z-index: 10;
}

/* PREMIUM FOOTER STRUCTURE */
.main-footer {
    background: linear-gradient(to top, #050510, #0F0F1A);
    padding: 80px 0 30px;
    color: #ccc;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 20px;
}

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

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

.footer-col h3,
.footer-col h4 {
    color: #00F0FF;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 55px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.footer-logo-img:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #a0aec0;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-col a:hover {
    color: #00F0FF;
    text-shadow: 0 0 8px #00F0FF;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.parent-company {
    font-size: 0.85em;
    color: #6A00FF;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    color: #718096;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s ease;
}

.footer-social-icons a:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: #00F0FF;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.footer-social-icons img {
    width: 20px;
    filter: invert(1);
    transition: 0.3s ease;
}

.footer-social-icons a:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   MOBILE RESPONSIVE OVERRIDES
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 100001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #00F0FF;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger to X Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: #fff;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: #fff;
}

@media (max-width: 991px) {

    /* Header & Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(8, 8, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        /* Changed from center to prevent top-clipping */
        align-items: center;
        gap: 20px;
        padding-top: 100px;
        /* Offset for the header */
        padding-bottom: 50px;
        overflow-y: auto;
        /* Enable scrolling for small screens */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.4s ease;
        z-index: 99999;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-item {
        width: 100%;
        text-align: center;
        padding: 5px 0;
    }

    .nav-link {
        font-size: 20px;
    }

    /* Reset the nav CTA button */
    .nav-cta {
        display: inline-block;
        margin-top: 20px;
    }

    /* Mobile Mega Menu Handling */
    .creative-dropdown {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 320px;
        margin: 10px auto 0;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        display: none;
        /* Hide default block */
    }

    .creative-dropdown.mobile-open {
        display: block;
        /* Show when active */
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        position: relative;
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .drop-link {
        justify-content: center;
        padding: 10px;
        background: rgba(255, 255, 255, 0.05);
    }
}

/* ==========================================================================
   GLOBAL CHAT BUTTON & UI PARITY FIXES
   ========================================================================== */
.sticky-chat-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 999999 !important;
    /* Force above all overlays and webgl canvases */
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #25D366;
    /* WhatsApp Green */
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sticky-chat-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    color: #fff;
}

/* Ensure stats grids center properly if they have fewer than 3 items */
.stats-grid {
    align-items: stretch;
    justify-content: center;
}

.stats-grid .stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Force social media page to drop the hero overlay so it matches other service pages */
.social-hero .hero-video-wrapper::after {
    display: none !important;
}