/*
Theme Name: Nexus Elite "The Hub-Killer"
Theme URI: https://nexus-theme.com
Author: Antigravity Elite Design
Description: A high-performance, ultra-premium WordPress design engine. Built with GSAP, Modern CSS Grid, and Luxury Design Tokens.
Version: 1.6.0
Text Domain: nexus
*/

/* ----------------------------------------------------------------
   1. DESIGN TOKENS
----------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --nx-primary: #6366f1;
    --nx-secondary: #ff4f81;
    --nx-dark: #080b16;
    --nx-light: #f8faff;
    --nx-white: #ffffff;
    --nx-border: rgba(0, 0, 0, 0.08);

    --nx-grad-main: linear-gradient(135deg, #6366f1 0%, #ff4f81 100%);

    --nx-font-body: 'Plus Jakarta Sans', sans-serif;
    --nx-font-head: 'Outfit', sans-serif;
    --nx-font-alt: 'Space Grotesk', sans-serif;

    --nx-radius-xl: 40px;
    --nx-radius-lg: 24px;
    --nx-header-h: 100px;
    --nx-container-w: 1440px;

    --nx-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --nx-shadow-elite: 0 40px 100px -20px rgba(99, 102, 241, 0.15);
}

/* ----------------------------------------------------------------
   2. RESET & GLOBAL
----------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--nx-font-body);
    color: var(--nx-dark);
    background-color: var(--nx-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nx-container {
    max-width: var(--nx-container-w);
    margin: 0 auto;
    padding: 0 40px;
}

.nx-section {
    padding: 120px 0;
    position: relative;
}

.text-gradient {
    background: var(--nx-grad-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-display {
    font-family: var(--nx-font-alt);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    font-size: 13px;
}

/* ----------------------------------------------------------------
   3. ELITE HEADER & NAVIGATION (ROBUST)
----------------------------------------------------------------- */
.site-header {
    height: var(--nx-header-h);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-sticky {
    height: 85px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    box-shadow: var(--nx-shadow-sm);
    border-bottom: 1px solid var(--nx-border);
}

.nx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* The Navigation Fix */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.nx-nav-list {
    display: flex !important;
    gap: 35px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.nx-nav-list li {
    display: block;
    position: relative;
}

.nx-nav-list li a {
    font-family: var(--nx-font-head);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nx-dark);
    opacity: 0.6;
    padding: 10px 0;
    transition: 0.3s;
}

.nx-nav-list li a:hover {
    opacity: 1;
    color: var(--nx-primary);
}

/* Logo */
.site-logo .site-title {
    font-family: var(--nx-font-head);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -1px;
    margin: 0;
    white-space: nowrap;
}

/* Actions */
.nx-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 150px;
    justify-content: flex-end;
}

/* ----------------------------------------------------------------
   4. BUTTONS & UI
----------------------------------------------------------------- */
.nx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--nx-font-head);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: 0.4s;
}

.nx-btn--primary {
    background: var(--nx-dark);
    color: #fff;
}

.nx-btn--primary:hover {
    background: var(--nx-primary);
    transform: translateY(-3px);
    box-shadow: var(--nx-shadow-elite);
}

.nx-btn--sm {
    padding: 10px 20px;
    font-size: 13px;
}

/* ----------------------------------------------------------------
   5. FOOTER (FIXED)
----------------------------------------------------------------- */
.site-footer {
    background: var(--nx-dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 100px 0 40px;
}

.site-footer h3 {
    color: #fff;
    margin-bottom: 30px;
}

.nx-footer-bottom {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer Nav Fix */
.nx-footer-menu-list {
    display: flex;
    gap: 30px;
}

.nx-footer-menu-list li a {
    font-size: 14px;
    font-weight: 600;
}

.nx-footer-menu-list li a:hover {
    color: var(--nx-primary);
}

/* ----------------------------------------------------------------
   6. GRID SYSTEM
----------------------------------------------------------------- */
.nx-grid {
    display: grid;
    gap: 40px;
}

.nx-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.nx-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.nx-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {

    .nx-grid--4,
    .nx-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-navigation {
        display: none;
    }

    .nx-header-inner {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .nx-grid--2 {
        grid-template-columns: 1fr;
    }

    .nx-footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ----------------------------------------------------------------
   7. WIDGETS & ELITE UI
----------------------------------------------------------------- */
.nx-card,
.nx-pricing-card-elite,
.nx-counter-elite {
    background: #fff;
    padding: 40px;
    border-radius: var(--nx-radius-xl);
    border: 1px solid var(--nx-border);
    transition: 0.5s;
}

.nx-card:hover {
    transform: translateY(-10px);
    border-color: var(--nx-primary);
}

/* Preloader */
#nx-preloader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nx-preloader-bar {
    width: 0;
    height: 4px;
    background: var(--nx-grad-main);
    position: absolute;
    bottom: 0;
    left: 0;
}