/* ==========================================================================
   Nexaweb – 3D Animated Header & Footer Design System
   ========================================================================== */

:root {
    --nx-hf-bg: #070919;
    --nx-hf-card-bg: rgba(255, 255, 255, 0.04);
    --nx-hf-border: rgba(255, 255, 255, 0.1);
    --nx-hf-primary: #6c5cff;
    --nx-hf-cyan: #00e5ff;
    --nx-hf-pink: #ff3d9a;
    --nx-hf-grad: linear-gradient(120deg, #6c5cff 0%, #00e5ff 50%, #ff3d9a 100%);
    --nx-hf-text: #e8eaff;
    --nx-hf-muted: rgba(232, 234, 255, 0.65);
}

/* ==========================================================================
   1. 3D FLOATING HEADER
   ========================================================================== */
.main-header.header-one {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 18px 0;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-header.header-one.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: rgba(7, 9, 25, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(108, 92, 255, 0.15);
    animation: nxHeaderSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes nxHeaderSlideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.main-header.header-one .header-upper {
    background: transparent;
}

.main-header.header-one .header-inner {
    background: rgba(15, 18, 42, 0.6);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 10px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.35s ease;
}

.main-header.header-one.fixed-header .header-inner {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    padding: 6px 12px;
}

/* Logo 3D tilt hover */
.main-header .logo a {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.main-header .logo a:hover {
    transform: perspective(600px) rotateY(12deg) scale(1.05);
    filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.5));
}

.main-header .logo img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

/* Navigation items */
.main-header.white-menu .navigation > li > a {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88) !important;
    padding: 10px 18px;
    position: relative;
    border-radius: 999px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.main-header.white-menu .navigation > li > a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.3);
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.main-header.white-menu .navigation > li:hover > a {
    color: #00e5ff !important;
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.main-header.white-menu .navigation > li:hover > a::before {
    opacity: 1;
    transform: scale(1);
}

.main-header.white-menu .navigation > li.dropdown > a .nav-dropdown-icon {
    font-size: 11px;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.main-header.white-menu .navigation > li.dropdown:hover > a .nav-dropdown-icon {
    transform: rotate(180deg);
}

/* 3D Glass Dropdown */
.main-header .navigation li.dropdown ul {
    background: rgba(10, 13, 32, 0.94) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border: 1px solid rgba(108, 92, 255, 0.35) !important;
    border-radius: 20px !important;
    padding: 14px 10px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(108, 92, 255, 0.25) !important;
    transform: perspective(800px) rotateX(-12deg) translateY(10px);
    transform-origin: top center;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.main-header .navigation li.dropdown:hover > ul {
    transform: perspective(800px) rotateX(0deg) translateY(0);
}

.main-header .navigation li.dropdown ul li {
    padding: 0 !important;
    margin: 4px 0 !important;
}

.main-header .navigation li.dropdown ul li a {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s ease !important;
}

.main-header .navigation li.dropdown ul li a::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Pro', 'Font Awesome 5 Free', sans-serif;
    font-weight: 900;
    font-size: 11px;
    color: var(--nx-hf-cyan);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.25s ease;
}

.main-header .navigation li.dropdown ul li a:hover {
    background: linear-gradient(90deg, rgba(108, 92, 255, 0.25) 0%, rgba(0, 229, 255, 0.15) 100%) !important;
    color: #ffffff !important;
    transform: translateX(6px) !important;
    border-left: 3px solid var(--nx-hf-cyan);
}

.main-header .navigation li.dropdown ul li a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Header 3D Animated Button */
.main-header .menu-btns .theme-btn.btn-small,
.main-header .menu-btns .nx-nav-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 24px !important;
    border-radius: 999px !important;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    color: #ffffff !important;
    background: var(--nx-hf-grad) !important;
    background-size: 200% auto !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 24px rgba(108, 92, 255, 0.4) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    animation: nxHeaderGradShift 5s linear infinite;
}

@keyframes nxHeaderGradShift {
    to { background-position: 200% center; }
}

.main-header .menu-btns .theme-btn.btn-small:hover,
.main-header .menu-btns .nx-nav-btn:hover {
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 12px 32px rgba(0, 229, 255, 0.55) !important;
    border-color: rgba(0, 229, 255, 0.6) !important;
}

/* Mobile Toggle Button (Vivid Neon Cyan & White Glowing Bars) */
.main-header .navbar-toggle,
.main-menu .navbar-header .navbar-toggle,
button.navbar-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(6, 182, 212, 0.45) !important;
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.3) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    outline: none !important;
    transition: all 0.3s ease !important;
}

.main-header .navbar-toggle:hover,
.main-menu .navbar-header .navbar-toggle:hover,
button.navbar-toggle:hover {
    background: rgba(6, 182, 212, 0.22) !important;
    border-color: #00e5ff !important;
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.6) !important;
    transform: scale(1.08) !important;
}

.main-header .navbar-toggle .icon-bar,
.main-menu .navbar-header .navbar-toggle .icon-bar,
button.navbar-toggle .icon-bar {
    width: 22px !important;
    height: 2.5px !important;
    min-height: 2.5px !important;
    background: #00e5ff !important;
    background: linear-gradient(90deg, #38bdf8 0%, #ffffff 100%) !important;
    border-radius: 999px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.9) !important;
    transition: all 0.3s ease !important;
}

.main-header .navbar-toggle:hover .icon-bar,
.main-menu .navbar-header .navbar-toggle:hover .icon-bar,
button.navbar-toggle:hover .icon-bar {
    background: #ffffff !important;
    box-shadow: 0 0 12px #ffffff !important;
}

/* ==========================================================================
   2. MOBILE OFFCANVAS DRAWER (CYBER DARK)
   ========================================================================== */
.mobile-nav-offcanvas {
    width: min(380px, 92vw) !important;
    background: #060818 !important;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(108, 92, 255, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 90% 90%, rgba(0, 229, 255, 0.18) 0%, transparent 45%) !important;
    border-left: 1px solid rgba(0, 229, 255, 0.25) !important;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8) !important;
}

.mobile-nav-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 22px 24px !important;
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.mobile-nav-close span {
    background: #ffffff !important;
}

.mobile-nav-close:hover {
    background: rgba(255, 61, 154, 0.25) !important;
    border-color: var(--nx-hf-pink) !important;
    transform: rotate(90deg) scale(1.1) !important;
}

.mobile-nav-close:hover span {
    background: var(--nx-hf-pink) !important;
}

.mobile-nav-eyebrow {
    color: var(--nx-hf-cyan) !important;
    letter-spacing: 0.15em !important;
}

.mobile-nav-offcanvas .navigation li a {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.mobile-nav-offcanvas .navigation li a:hover {
    background: rgba(108, 92, 255, 0.2) !important;
    border-color: var(--nx-hf-cyan) !important;
    color: #00e5ff !important;
    transform: translateX(6px) !important;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.15) !important;
}

.mobile-nav-offcanvas .navigation li.dropdown .dropdown-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.mobile-nav-offcanvas .navigation li ul li a {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.mobile-nav-call-btn {
    background: var(--nx-hf-grad) !important;
    background-size: 200% auto !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(108, 92, 255, 0.4) !important;
    animation: nxHeaderGradShift 5s linear infinite;
}

/* ==========================================================================
   3. 3D ANIMATED FOOTER
   ========================================================================== */
.main-footer {
    position: relative;
    background: #04050d !important;
    color: var(--nx-hf-text) !important;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Background Glowing Aura Orbs */
.main-footer::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 255, 0.18) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.main-footer::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.14) 0%, transparent 70%);
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

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

/* Footer Marquee 3D Strip */
.footer-marquee-3d {
    position: relative;
    padding: 30px 0;
    background: linear-gradient(90deg, rgba(108, 92, 255, 0.15), rgba(0, 229, 255, 0.15), rgba(255, 61, 154, 0.15));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    margin-bottom: 60px;
}

.footer-marquee-3d .track {
    display: flex;
    width: max-content;
    animation: nxFooterMarquee 26s linear infinite;
}

@keyframes nxFooterMarquee {
    to { transform: translateX(-50%); }
}

.footer-marquee-3d .item {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(24px, 3.5vw, 44px);
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.footer-marquee-3d .item i {
    font-size: 0.55em;
    color: var(--nx-hf-cyan);
    animation: nxStarSpin 6s linear infinite;
}

@keyframes nxStarSpin {
    to { transform: rotate(360deg); }
}

/* Footer 3D Glass Cards */
.nx-footer-card {
    height: 100%;
    padding: 32px 28px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.nx-footer-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(350px circle at var(--fx, 50%) var(--fy, 50%), rgba(0, 229, 255, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nx-footer-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 229, 255, 0.35);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(108, 92, 255, 0.2);
}

.nx-footer-card:hover::before {
    opacity: 1;
}

.nx-footer-card h6 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.nx-footer-card h6::after {
    content: '';
    height: 2px;
    flex: 1;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.5), transparent);
}

.nx-footer-card .icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: var(--nx-hf-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Newsletter Input 3D Cyber Form */
.nx-newsletter-form {
    position: relative;
    margin-top: 20px;
}

.nx-newsletter-wrap {
    display: flex;
    align-items: center;
    background: rgba(10, 13, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 6px 8px 6px 20px;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.nx-newsletter-wrap:focus-within {
    border-color: var(--nx-hf-cyan);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.35), inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.nx-newsletter-wrap input {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 14px !important;
    outline: none !important;
    width: 100% !important;
    padding: 8px 10px !important;
}

.nx-newsletter-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.nx-newsletter-wrap button {
    border: none !important;
    background: var(--nx-hf-grad) !important;
    background-size: 200% auto !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.nx-newsletter-wrap button:hover {
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

/* Quick links 3D hover list */
.nx-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nx-footer-links li {
    margin-bottom: 12px;
}

.nx-footer-links li a {
    color: var(--nx-hf-muted);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.nx-footer-links li a i {
    font-size: 10px;
    color: var(--nx-hf-cyan);
    transition: transform 0.25s ease;
}

.nx-footer-links li a:hover {
    color: #ffffff;
    transform: translateX(6px);
}

.nx-footer-links li a:hover i {
    transform: translateX(4px);
    color: var(--nx-hf-pink);
}

/* 3D Floating Social Icons */
.nx-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.nx-social-orb {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.nx-social-orb:hover {
    transform: translateY(-6px) scale(1.15) rotate(8deg);
    color: #ffffff;
}

.nx-social-orb.fb:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 10px 25px rgba(24, 119, 242, 0.5); }
.nx-social-orb.ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); border-color: transparent; box-shadow: 0 10px 25px rgba(214, 36, 159, 0.5); }
.nx-social-orb.tw:hover { background: #000000; border-color: #ffffff; box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3); }
.nx-social-orb.wa:hover { background: #25d366; border-color: #25d366; box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5); }
.nx-social-orb.li:hover { background: #0a66c2; border-color: #0a66c2; box-shadow: 0 10px 25px rgba(10, 102, 194, 0.5); }

/* Bottom Footer Bar */
.footer-bottom-3d {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 0 20px;
    margin-top: 50px;
}

.footer-bottom-3d p {
    font-size: 13px;
    color: var(--nx-hf-muted);
    margin: 0;
}

.footer-bottom-3d a {
    color: #ffffff;
    transition: color 0.25s ease;
}

.footer-bottom-3d a:hover {
    color: var(--nx-hf-cyan);
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 24px;
}

.footer-bottom-links li a {
    font-size: 13px;
    color: var(--nx-hf-muted);
}

.footer-bottom-links li a:hover {
    color: var(--nx-hf-cyan);
}

/* 3D Scroll to Top Button */
.nx-scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--nx-hf-grad);
    background-size: 200% auto;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 10px 30px rgba(108, 92, 255, 0.45);
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: nxHeaderGradShift 4s linear infinite;
}

.nx-scroll-top-btn.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nx-scroll-top-btn:hover {
    transform: translateY(-5px) scale(1.12);
    box-shadow: 0 15px 35px rgba(0, 229, 255, 0.6);
}

@media (max-width: 991px) {
    .main-header.header-one .header-inner {
        padding: 8px 16px;
    }
    .footer-bottom-links {
        justify-content: center;
        margin-top: 14px;
    }
    .main-header.header-one .menu-btns {
        display: none;
    }
}
