/*
 Theme Name:     Nuvexia-Gen
 Theme URI:      https://nuvexia.com
 Description:    Custom child theme for Nuvexia premium WordPress hosting
 Author:         Nuvexia
 Author URI:     https://nuvexia.com
 Template:       generatepress
 Version:        1.1.0
 Text Domain:    nuvexia
*/

@import url("../generatepress/style.css");

/* DO NOT REMOVE ANYTHING ABOVE THIS LINE */

/* ==========================================================================
   1. CSS VARIABLES & COLOR PALETTE
   ========================================================================== */
:root {
    --nx-hero-bg: #0e231c; 
    --nx-text-main: #ffffff;
    --nx-text-muted: rgba(255, 255, 255, 0.7);
    --nx-accent-green: #2ecc71;
    --nx-accent-gold: #fff08d;
    --button-header-cta: #fff08d;
    --button-header-cta-hover: #fff08d;
    --text-on-dark: #ffffff;
}

/* Make the body a flex container that fills the whole screen */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Ensure the GeneratePress main wrapper flexes properly */
.site, #page {
    display: flex;
    flex-direction: column;
    flex: 1; 
}

/* Force the content area to grow and push the footer down */
.site-content, #content {
    flex: 1;
}

/* Fix the Safari White Overscroll Flash */
html, body {
    background-color: var(--nx-hero-bg) !important; /* Forces the absolute bottom layer to be dark green */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================================================
   2. GLOBAL ARCHITECTURE & CONTAINERS
   ========================================================================== */

/* The Master Grid Container (Keeps everything perfectly aligned) */
.nx-grid-container {
    max-width: 1300px !important;
    margin: 0 auto !important;
    padding: 0 22px;
    width: 100%;
    box-sizing: border-box;
    /* display: grid; */
    /* grid-template-columns: 1.1fr 1fr;  /* Split layout */
    /* gap: 15px; */
    /* align-items: center; */
}

/* Force specific sections to break out of the theme wrapper and span the screen */
.nx-hero,
.nx-features-section,
.nx-pricing-section {
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background-color: var(--nx-hero-bg);
    color: var(--nx-text-main);
    overflow-x: hidden;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */

/* --- Desktop Header --- */
.site-header{
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background-color: var(--hero-header-background) !important;
    width: 100% !important;
}

.inside-header {
    padding: 5px 22px;
    display: flex;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto !important;
    justify-content: space-between;
}

.site-branding {
    margin-right: auto;
}

.main-navigation {
    margin-left: auto;
}

.main-navigation .main-nav > ul {
    display: flex;
    align-items: center;
}

.main-navigation .main-nav > ul > li > a {
    padding: 0 18px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 30px;
}

/* Menu Links */
.main-navigation .menu > li > a {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px;
    position: relative;
    /* color: var(--nx-text-main); */
}

.main-navigation .menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--button-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-navigation .menu > li > a:hover::after {
    width: 60%;
}

/* Desktop CTA Button */
.header-cta-button > a {
    background-color: var(--button-header-cta) !important;
    background: transparent !important;
    color: var(--text-on-dark) !important;
    border: 2px solid var(--button-header-cta) !important;
    border-radius: 30px;
    padding: 8px 20px !important;
    font-weight: 600;
    font-size: 14px !important;
    margin-left: 15px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.header-cta-button > a::after {
    display: none !important;
}

.header-cta-button > a:hover {
    background: var(--button-header-cta) !important;
    background-color: var(--button-header-cta-hover) !important;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: none;
}

.header-cta-button {
    position: relative;
    margin-left: 30px;
}

.header-cta-button::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* --- DESKTOP MENU PERSISTENT ACTIVE STATES --- */

/* 1. Keep the gold underline visible on the current page */
.main-navigation .menu > li.current-menu-item > a::after,
.main-navigation .menu > li.current_page_item > a::after {
    width: 60%;
}

/* 2. Keep the CTA button gold (active state) on its current page */
.main-navigation .menu > li.header-cta-button.current-menu-item > a,
.main-navigation .menu > li.header-cta-button.current_page_item > a {
    background: var(--button-header-cta) !important;
    background-color: var(--button-header-cta) !important;
    color: #000000 !important;
    border-color: var(--button-header-cta) !important;
}

/* --- Mobile Header & Overlay Menu --- */
@media (min-width: 1367px) {
    .custom-menu-toggle {
        display: none !important; 
    }
    .main-navigation .main-nav {
        display: block !important;
    }
}

@media (max-width: 1366px) {

    /* 1. HIDE EVERYTHING GP TRIES TO DO */
    .header-cta-button::before,
    .main-navigation, /* Kill the entire GP menu container */
    .menu-toggle,
    #mobile-header .menu-toggle {
        display: none !important; 
    }
    
    /* 2. FORCE THE HEADER INTO A STRICT ROW */
    .site-header .inside-header,
    #mobile-header .inside-navigation {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important; /* Pushes Logo Left, Hamburger Right */
        padding: 10px 22px !important;
        width: 100% !important;
        max-width: 1366px;
    }

    /* 3. PIN LOGO LEFT */
    .site-logo, 
    .site-branding,
    .mobile-header-logo {
        margin: 0 !important;
        margin-right: auto !important; 
        display: block !important;
        flex: 0 0 auto !important;
    }

    .site-logo img {
        max-height: 46px;
        width: auto;
    }

    /* 4. PIN HAMBURGER RIGHT */
    .custom-menu-toggle {
        display: block !important;
        margin: 0 !important;
        margin-left: auto !important; /* Force to the absolute right */
        flex: 0 0 auto !important;
    }

    /* 5. MOBILE TAP HIGHLIGHT FIX */
    button.custom-menu-toggle,
    button.custom-menu-toggle:hover,
    button.custom-menu-toggle:focus,
    button.custom-menu-toggle:active,
    button.custom-menu-toggle:focus-visible {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important; 
        -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    }
}

/* =========================================
   CUSTOM HAMBURGER TOGGLE (Crisp White)
   ========================================= */
.custom-menu-toggle {
    position: relative;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 99999;
    padding: 0;
}

.custom-menu-toggle::before,
.custom-menu-toggle::after,
.custom-menu-toggle span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffffff !important; 
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.custom-menu-toggle::before { top: 5px; }
.custom-menu-toggle span { top: 13px; display: block; } 
.custom-menu-toggle::after { top: 21px; }

.custom-menu-toggle.toggled::before {
    top: 13px;
    transform: rotate(45deg);
}
.custom-menu-toggle.toggled span {
    opacity: 0;
}
.custom-menu-toggle.toggled::after {
    top: 13px;
    transform: rotate(-45deg);
}

.custom-menu-toggle:hover::before, 
.custom-menu-toggle:hover span, 
.custom-menu-toggle:hover::after {
    opacity: 0.8; 
}

.custom-menu-toggle:focus,
.custom-menu-toggle:active,
.custom-menu-toggle:focus-visible {
    outline: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.custom-menu-toggle:focus::before, 
.custom-menu-toggle:focus span, 
.custom-menu-toggle:focus::after,
.custom-menu-toggle:active::before, 
.custom-menu-toggle:active span, 
.custom-menu-toggle:active::after {
    background: #ffffff !important;
}

/* =========================================
   FULL-SCREEN OVERLAY MENU
   ========================================= */
#mobile-overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0e231c; 
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.4s; 
    z-index: 9999;
    overflow-y: auto; 
}

#mobile-overlay-menu.active {
    opacity: 1;
    visibility: visible;
}

#mobile-overlay-menu .logo {
    margin-bottom: 10px; 
    max-width: 300px; 
}

#mobile-overlay-menu .close-btn {
    position: absolute;
    top: 25px; 
    right: 25px; 
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100000;
    padding: 0;
}

#mobile-overlay-menu .close-btn::before,
#mobile-overlay-menu .close-btn::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ffffff !important;
    border-radius: 2px;
}

#mobile-overlay-menu .close-btn::before {
    top: 13px;
    transform: rotate(45deg);
}

#mobile-overlay-menu .close-btn::after {
    top: 13px;
    transform: rotate(-45deg);
}

#mobile-overlay-menu .close-btn:hover::before,
#mobile-overlay-menu .close-btn:hover::after {
    opacity: 0.8;
}

body.no-scroll {
    overflow: hidden;
}

body.overlay-active #page {
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

/* =========================================
   OVERLAY MENU ITEMS & ANIMATIONS
   ========================================= */
#mobile-overlay-menu .menu {
    list-style: none; 
    padding: 0;
    margin: 0;
    text-align: center;
}

#mobile-overlay-menu .menu li {
    margin: 15px 0;
    list-style-type: none; 
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease-in-out;
    width: 100%;
    display: flex;
    justify-content: center;
}

#mobile-overlay-menu.active .menu li {
    transform: translateY(0);
    opacity: 1;
}

#mobile-overlay-menu.active .menu li:nth-child(1) { transition-delay: 0.1s; }
#mobile-overlay-menu.active .menu li:nth-child(2) { transition-delay: 0.2s; }
#mobile-overlay-menu.active .menu li:nth-child(3) { transition-delay: 0.3s; }
#mobile-overlay-menu.active .menu li:nth-child(4) { transition-delay: 0.4s; }
#mobile-overlay-menu.active .menu li:nth-child(5) { transition-delay: 0.5s; }

#mobile-overlay-menu .menu a {
    color: #fff; 
    font-size: 1.5em; 
    text-decoration: none;
    transition: color 0.3s ease;
    display: block !important;
    width: 355px !important; 
    max-width: 85vw !important; 
    box-sizing: border-box;
    text-align: center;
    margin: 0 auto !important; 
}

#mobile-overlay-menu .menu a:hover {
    color: #ccc; 
}

/* Overlay Sign In Button Override */
#mobile-overlay-menu .header-cta-button > a {
    font-size: 1.3rem !important; 
    padding: 14px 10px !important; /* Adjusted padding to let the fixed width control size */
    margin-left: 0 !important; 
    margin-top: 20px !important; 
    border-width: 2px !important; 
    background: linear-gradient(135deg, #1b4d3e, #0e231c) !important; 
    border-radius: 50px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

#mobile-overlay-menu .header-cta-button > a:hover,
#mobile-overlay-menu .header-cta-button > a:focus {
    background: linear-gradient(135deg, #2a6d55, #1b4d3e) !important; 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3) !important; 
    transform: translateY(-2px) !important; 
    color: #fff !important;
}

/* =========================================
   MOBILE MENU PERSISTENT ACTIVE STATES
   ========================================= */

/* Standard Menu Items (Active Page) */
#mobile-overlay-menu .menu li.current-menu-item:not(.header-cta-button) > a {
    background-color: rgba(39, 174, 96, 0.25) !important;
    color: #ffffff !important;
    border-radius: 8px;
    padding: 8px 0; /* Padding left/right removed since width is fixed */
}

#mobile-overlay-menu .menu li.current-menu-item:not(.header-cta-button) > a:hover,
#mobile-overlay-menu .menu li.current-menu-item:not(.header-cta-button) > a:active {
    background-color: rgba(39, 174, 96, 0.45) !important; 
    color: #ffffff !important;
    transform: scale(0.98); 
}

/* Sign In Button (Active Page) */
#mobile-overlay-menu .menu li.header-cta-button.current-menu-item > a {
    background-color: var(--button-header-cta) !important;
    background: var(--button-header-cta) !important;
    color: #000000 !important;
    border-color: var(--button-header-cta) !important; 
}

#mobile-overlay-menu .menu li.header-cta-button.current-menu-item > a:hover,
#mobile-overlay-menu .menu li.header-cta-button.current-menu-item > a:active {
    opacity: 0.8 !important; 
    transform: scale(0.98) !important; 
}


/* ==========================================================================
   4. GLOBAL UI (Buttons & Scroll Animations)
   ========================================================================== */

/* Primary Standard Button */
.nx-btn-primary {
    background-color: var(--button-header-cta); color: #000 !important;
    padding: 14px 34px; font-weight: 700; font-size: 14px; letter-spacing: 0.8px; border-radius: 30px; text-decoration: none; display: inline-block; transition: all 0.3s ease; box-shadow: none;
}

.nx-btn-primary:hover { transform: translateY(-3px); /*box-shadow: 0 6px 20px rgba(243, 156, 18, 0.35);*/ }

/* Secondary Outline Button */
.nx-btn-outline {
    background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 24px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: all 0.2s ease;
}
.nx-btn-outline:hover { background: rgba(255, 255, 255, 0.05); border-color: #fff; }

/* Apple-Style Scroll Reveal */
.nx-scroll-reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nx-scroll-reveal.is-revealed { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.3s; }
.delay-2 { transition-delay: 0.6s; }


/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */
.nx-hero { 
    /*padding: 100px 0 140px;*/
    padding: 7rem 0rem 12rem;
    margin-top: 0px; /* Make adjustments to close gap with sticky header if needed */
}

/* Strictly enforce the 2-column layout */
.nx-hero .nx-grid-container {
    display: grid !important; 
    grid-template-columns: 1.1fr 1fr;
    align-items: center; gap: 40px;
}

/* Left side text */
.nx-hero-content {
    max-width: 600px; width: 100%; text-align: left; position: relative; z-index: 2;
    animation: nxFadeIn 0.8s ease forwards; animation-delay: 0.2s; opacity: 0;
}

.nx-hero-tagline {
    display: inline-block; background: rgba(46, 204, 113, 0.15); color: var(--nx-accent-green);
    padding: 6px 18px; border-radius: 50px; font-size: 13px; font-weight: 600; text-transform: uppercase; /*letter-spacing: 1px;*/ margin-bottom: 25px;
}

.nx-hero-headline { /*color: var(--nx-text-main);*/ font-size: 55px; line-height: 1.1; font-weight: 800; margin-bottom: 20px; word-break: keep-all;}
.nx-text-highlight { color: var(--nx-accent-green); position: relative; }
.nx-text-highlight::after {
    content: ''; position: absolute; bottom: 2px; left: 0; width: 100%; height: 4px;
    background: var(--nx-accent-green); border-radius: 2px; filter: blur(2px); opacity: 0.7;
}

/* SplitType Fix */
.nx-hero-headline .word { display: inline-block; white-space: nowrap; /*margin-right: 0.15em;*/ }

.nx-hero-subheadline { font-size: 19px; line-height: 1.6; color: var(--nx-text-muted); margin-bottom: 45px; }
.nx-hero-btns { display: flex; gap: 20px; align-items: center; }

/* Right side visuals */
.nx-hero-visual { position: relative; width: 100%; min-height: 500px; display: block; }
.nx-visual-container { position: absolute; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }

/* Visual Animations */
.nx-orb {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(46,204,113,0.5) 0%, rgba(46,204,113,0) 70%);
    border-radius: 50%;
    filter: blur(25px);
    position: absolute;
    animation: orbPulse 5s infinite ease-in-out;
}

/* Floating Boxes ("Data Points") */
.nx-floating-box {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: transform 0.2s ease-out; /* For optional mouse parallax later */
}

/* specific box styles and floating animations */
.nx-box-1 { width: 60px; height: 60px; top: 15%; left: 20%; background-color: rgba(46,204,113, 0.1); border-color: rgba(46,204,113, 0.2); animation: float1 9s infinite ease-in-out; }
.nx-box-2 { width: 80px; height: 80px; top: 60%; right: 15%; animation: float2 11s infinite ease-in-out; }
.nx-box-3 { width: 40px; height: 40px; bottom: 10%; left: 35%; animation: float1 7s infinite ease-in-out; }
.nx-box-4 { width: 100px; height: 100px; top: 40%; left: 50%; transform: translate(-50%, -50%); border-radius: 20px; background-color: rgba(10,10,10,0.3); border-color: rgba(255,255,255,0.08); box-shadow: 0 10px 30px rgba(0,0,0,0.4); animation: orbPulse 4s infinite ease-in-out; z-index: 2; }

/* SVG Circuit Lines Animation */
.nx-circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.circuit-path {
    stroke-dasharray: 10;
    animation: lineRun 1s infinite linear;
}

.path-2 {
    animation-direction: reverse;
}

/* --- KEYFRAME ANIMATIONS --- */

@keyframes nxFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 1; filter: blur(25px); }
    50% { transform: scale(1.1); opacity: 0.7; filter: blur(35px); }
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -15px) rotate(3deg); }
    66% { transform: translate(-5px, 10px) rotate(-2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-15px, 15px) rotate(-3deg); }
    66% { transform: translate(10px, -10px) rotate(2deg); }
}

@keyframes lineRun {
    to { stroke-dashoffset: 20; }
}

/* Hero Mobile & Tablet Overrides */
@media (max-width: 1200px) {
    .nx-hero { 
        /*padding: 100px 0 140px;*/
        padding: 3rem 0rem 4rem;
    }
}

@media (max-width: 992px) {
    .nx-hero { 
        /*padding: 100px 0 140px;*/
        padding: 3rem 0rem 4rem;
    }

    /* 1. Nuke the grid and force a vertical stack */
    .nx-hero .nx-grid-container { 
        display: flex !important; 
        flex-direction: column !important; 
        text-align: center !important; 
        gap: 10px !important;
    }
    
    /* 2. Force text and paragraphs to center */
    .nx-hero-content { 
        max-width: 100% !important; 
        text-align: center !important; 
    }
    .nx-hero-subheadline { 
        margin-left: auto !important; 
        margin-right: auto !important; 
    }
    
    /* 3. Center the buttons */
    .nx-hero-btns { 
        justify-content: center !important; 
        width: 100%;
    }
    
    /* 4. Drop the visuals below the text and keep them contained */
    .nx-hero-visual { 
        min-height: 350px !important; 
        width: 100% !important;
        margin-top: 30px;
    }
    
    /* Prevent boxes from flying off the edge of small phone screens */
    .nx-box-1 { left: 10%; }
    .nx-box-2 { right: 10%; }
}


/* ==========================================================================
   6. FEATURES SECTION
   ========================================================================== */
.nx-features-section {
    padding: 10rem 0rem 7rem 0rem;
}

/* Force stacked structure */
.nx-features-section .nx-grid-container {
    display: block !important; 
} 

.nx-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.nx-section-header h2 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 15px;
}

.nx-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.nx-feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 30px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.nx-feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(46, 204, 113, 0.3);
    transform: translateY(-5px); /* Hover lift effect */
}

.nx-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75px; 
    height: 75px;
    background: rgba(46, 204, 113, 0.1); /* Subtle green background */
    border-radius: 12px;
    margin-bottom: 25px; /* Spacing below the icon */
    padding: 12px; /* Space inside the box for the SVG to breathe */
    box-sizing: border-box;
}

/* Ensure the SVG scales smoothly */
.nx-feature-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-out; /* Setup the hover animation */
}

/* Micro-interaction: Scale up the SVG when hovering over the parent card */
.nx-feature-card:hover .nx-feature-icon svg {
    transform: scale(1.15); /* Make it 15% larger */
}

.nx-feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.nx-feature-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* Features Mobile */
@media (max-width: 992px) {
    .nx-features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nx-features-grid { grid-template-columns: 1fr; gap: 20px; }
    .nx-scroll-reveal { transition-delay: 0s !important; } /* Remove delays on mobile so they don't get stuck */
}
/* ==========================================================================
   Nuvexia Features Section (Floating Icons)
   ========================================================================== */

/* The continuous levitating animation */
@keyframes premiumFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* Base styling for the Feature Cards */
.nx-feature-card {
    background: transparent; /* Assuming your cards are sitting on the dark background */
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background-color: rgba(255, 255, 255, 0.02); /* Very subtle card background */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.nx-feature-card:hover {
    background-color: rgba(255, 255, 255, 0.04);
    transform: translateY(-5px);
}

/* Matching the Icon circles to the Migration section */
.nx-feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    background-color: var(--nx-hero-bg) !important; 
    border: 1px solid rgba(255, 255, 255, 0.08) !important; 
    border-radius: 50%; /* Makes them perfectly round */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Apply the floating animation */
    animation: premiumFloat 4s ease-in-out infinite; 
}

/* Stagger the animations so they don't all float up and down at the exact same time */
.nx-feature-card:nth-child(1) .nx-feature-icon { animation-delay: 0s; }
.nx-feature-card:nth-child(2) .nx-feature-icon { animation-delay: 1.2s; }
.nx-feature-card:nth-child(3) .nx-feature-icon { animation-delay: 2.4s; }

/* Control the SVG size inside the circles */
.nx-feature-icon svg {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

/* Optional: Slight rotation when the user hovers over the card */
.nx-feature-card:hover .nx-feature-icon svg {
    transform: scale(1.1) rotate(5deg);
}

/* Typography Overrides (just in case the theme tries to dull them) */
.nx-feature-card h3 {
    color: var(--nx-text-main) !important;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.nx-feature-card p {
    color: var(--nx-text-muted) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   7. PRICING SECTION
   ========================================================================== */
.nx-pricing-section {
    padding: 8rem 0rem;
}

.nx-pricing-section .nx-grid-container {
    display: block !important;
}

/* Billing Toggle */
.nx-billing-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.nx-billing-toggle {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 5px;
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nx-toggle-btn {
    background: transparent;
    border: none;
    color: var(--nx-text-muted);
    padding: 12px 24px;
    border-radius: 40px;
    /* font-size: 16px; */
    font-weight:600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nx-toggle-btn.active {
    background: #2ecc71;
    color: #111;
}

.nx-free-badge {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    /* letter-spacing: 0.5px; */
}

.nx-toggle-btn.active .nx-free-badge {
    background: rgba(0, 0, 0, 0.15);
    color: #111;
}

/* The Pricing Grid */
.nx-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center; /* Aligns cards so the middle one can pop up */
    margin-top: 50px;
}

.nx-pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* The "Most Popular" Highlight */
.nx-pricing-card.nx-popular {
    background: rgba(255, 255, 255, 0.04);
    border-color: #2ecc71;
    transform: scale(1.05); /* Makes it slightly larger */
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(46, 204, 113, 0.1);
    z-index: 2;
}

.nx-popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #2ecc71;
    color: #111;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

/* Add this class to your Most Popular badge */
.shimmer-badge {
  overflow: hidden;
}

.shimmer-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
  animation: shimmer 5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* Card Content Styling */
.nx-pricing-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.nx-plan-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    min-height: 65px;
    margin-bottom: 20px;
}

.nx-price-block {
    display: flex;
    align-items: baseline;
    margin-bottom: 5px;
}

.nx-currency { font-size: 24px; font-weight: 700; }
.nx-price-amount { font-size: 48px; font-weight: 800; letter-spacing: -1px; }
.nx-price-interval { font-size: 16px; color: rgba(255, 255, 255, 0.5); margin-left: 5px; }

.nx-annual-subtext {
    font-size: 13px;
    color: #2ecc71;
    margin-bottom: 25px;
    opacity: 0; /* Hidden by default */
    height: 0;
    transition: all 0.3s ease;
}

.nx-annual-subtext.visible {
    opacity: 1;
    height: auto;
}

/* Buttons and Lists */
.nx-btn {
    display: inline-block;
    text-align: center;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 30px;
}

.nx-btn-primary {
    background: var(--nx-accent-gold);
    color: #111;
}

.nx-btn-primary:hover {
    background: var(--nx-accent-gold);
    transform: translateY(-2px);
}

.nx-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nx-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

.nx-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nx-feature-list li {
    padding: 10px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nx-feature-list li:last-child { border: none; }

/* Mobile Adjustments */
@media (max-width: 992px) {
    .nx-pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin: 50px auto 0; gap: 40px; }
    .nx-pricing-card.nx-popular { transform: scale(1); } /* Remove scale on mobile so it doesn't break screen width */
}

.nx-risk-reversal {
  text-align: center;
  margin-top: 2.5rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 700px; /* Keeps it readable and centered on desktop */
  width: 100%; /* Ensures it respects container bounds on mobile */
  position: relative;
  z-index: 10;
  color: var(--nx-text-muted); /* Using the muted text variable so it doesn't overpower the buttons */
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0 1rem; /* Prevents text from touching phone screen edges */
  box-sizing: border-box;
}

/* By default (for mobile phones), the break is visible */
.nx-mobile-break {
  display: block;
}

/* On screens larger than 768px (Tablets and Desktops), hide the break */
@media (min-width: 768px) {
  .nx-mobile-break {
    display: none;
  }
}

/* ==========================================================================
   Nuvexia Social Proof Section
   ========================================================================== */

/* Force the background to be transparent and remove any theme borders */
.nx-trust-section {
  background-color: var(--nx-hero-bg) !important; 
  padding: 6rem 0rem 2rem 0rem;
  /*border-top: 1px solid rgba(255, 255, 255, 0.08) !important; */
  /*border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important; */
}

/* Override any default theme white boxes on the container */
.nx-trust-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background-color: transparent !important; 
}

/* Force the quote text to be white, remove weird theme borders/backgrounds */
.nx-testimonial-quote {
  font-size: 1.5rem !important;
  line-height: 1.6 !important;
  color: #f8fafc !important; /* Forces white text */
  font-weight: 500 !important;
  margin: 0 0 1.5rem 0 !important;
  padding: 0 !important;
  font-style: italic !important;
  background: transparent !important;
  border: none !important; /* Removes that weird gray line on the left of your screenshot */
}

@media (min-width: 768px) {
  .nx-testimonial-quote {
    font-size: 1.75rem !important;
  }
}

/* Force the author name to be green */
.nx-testimonial-author strong {
  display: block;
  color: #4ade80 !important; /* Forces Nuvexia green */
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

/* Force the location text to be light gray */
.nx-testimonial-author span {
  color: #94a3b8 !important; /* Forces muted gray */
  font-size: 0.9rem;
}

/* Testimonial Styling */
.nx-testimonial-wrapper {
  margin-bottom: 4rem;
}

.nx-stars {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.nx-testimonial-quote {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--nx-text-white);
  font-weight: 500;
  margin: 0 0 1.5rem 0;
  padding: 0;
  font-style: italic;
}

@media (min-width: 768px) {
  .nx-testimonial-quote {
    font-size: 1.75rem;
  }
}

.nx-testimonial-author strong {
  display: block;
  color: var(--nx-green-primary);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.nx-testimonial-author span {
  color: var(--nx-text-muted);
  font-size: 0.9rem;
}

/* Logo Strip Styling 
.nx-logo-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 2rem;
}*/

.nx-logo-heading {
  color: var(--nx-text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0rem;
  font-weight: 600;
}

.nx-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  opacity: 0.5; /* Dims the logos so they don't distract from the main content */
  transition: opacity 0.3s ease;
  padding: 2rem 0rem;
}

.nx-logos:hover {
  opacity: 0.8; /* Subtle brighten when user looks closely */
}

.nx-logo-placeholder {
  color: var(--nx-text-white);
  font-size: 1.2rem;
  font-weight: 700;
  font-family: serif; /* Gives placeholders a "logo" feel */
}

/* The Magic Logo Filter */
.nx-logos img {
  /* brightness(0) turns them black 
    invert(1) turns them white 
    opacity(0.4) fades them into the background 
  */
  filter: brightness(1) invert(0) opacity(0.4) !important;
  transition: all 0.3s ease !important;
  max-height: 50px !important; /* Keeps them uniformly sized */
  width: auto !important;
}

/* Make them brighten up when a user hovers over them */
.nx-logos img:hover {
  filter: brightness(1) invert(0) opacity(1) !important;
}

@media (min-width: 768px) {
  .nx-logos {
    gap: 4rem;
  }
}

/* ==========================================================================
   Rolling Animated Gold Stars
   ========================================================================== */

/* Defines the rolling, spinning animation */
@keyframes starRollIn {
  0% {
    opacity: 0;
    transform: translateX(-30px) rotate(-360deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

/* Base state: Hidden and waiting */
.nx-stars svg {
  opacity: 0; 
  transform-origin: center center; 
}

/* The Trigger Class: When JS adds this class, the animation fires */
.nx-stars.is-visible svg {
  animation: starRollIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; 
}

/* Stagger the timing */
.nx-stars.is-visible svg:nth-child(1) { animation-delay: 0.1s; }
.nx-stars.is-visible svg:nth-child(2) { animation-delay: 0.2s; }
.nx-stars.is-visible svg:nth-child(3) { animation-delay: 0.3s; }
.nx-stars.is-visible svg:nth-child(4) { animation-delay: 0.4s; }
.nx-stars.is-visible svg:nth-child(5) { animation-delay: 0.5s; }

/* ==========================================================================
   Nuvexia Migration Section
   ========================================================================== */

.nx-migration-section {
    background-color: var(--nx-hero-bg) !important;
    padding: 4rem 1.5rem;
}

.nx-migration-header {
    text-align: center;
    margin-bottom: 5rem;
}

.nx-migration-header h2 {
    color: var(--nx-text-main) !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.nx-migration-header p {
    color: var(--nx-text-muted) !important;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layout */
.nx-migration-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 3rem;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Individual Cards */
.nx-step-card {
    text-align: center;
    position: relative;
    z-index: 1; 
}

/* Icon Wrapper */
.nx-step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    background-color: var(--nx-hero-bg) !important; /* Maps to your specific background */
    border: 1px solid rgba(255, 255, 255, 0.08) !important; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Solid halo using your exact background variable to cut the dashed line perfectly */
    box-shadow: 0 0 0 12px var(--nx-hero-bg) !important; 
    
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.nx-step-card:hover .nx-step-icon {
    transform: translateY(-5px);
    border-color: var(--nx-accent-green) !important;
}

.nx-step-icon svg {
    width: 34px;
    height: 34px;
}

/* Typography */
.nx-step-card h3 {
    color: var(--nx-text-main) !important;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.nx-step-card p {
    color: var(--nx-text-muted) !important;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* The Dashed Connector Line (Desktop Only) */
@media (min-width: 768px) {
    .nx-migration-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .nx-migration-grid::before {
        content: '';
        position: absolute;
        top: 40px; 
        left: 15%;
        right: 15%;
        height: 2px;
        /* Matches your --nx-accent-green (#2ecc71) but with 40% opacity for the line */
        background-image: linear-gradient(to right, rgba(46, 204, 113, 0.4) 50%, transparent 50%);
        background-size: 15px 2px;
        background-repeat: repeat-x;
        z-index: 0; 
    }
}

/* ==========================================================================
   Continuous "Wave" Animation for Migration Timeline
   ========================================================================== */

/* Animates the circle lifting and lighting up gold */
@keyframes stepWaveBounce {
    0%, 100% {
        transform: translateY(0);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 0 12px var(--nx-hero-bg); /* Normal halo */
    }
    15% {
        transform: translateY(-10px);
        border-color: var(--nx-accent-gold);
        /* Adds a very subtle gold glow underneath when it lifts */
        box-shadow: 0 0 0 12px var(--nx-hero-bg), 0 10px 20px rgba(255, 240, 141, 0.1); 
    }
    30%, 100% {
        transform: translateY(0);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 0 12px var(--nx-hero-bg);
    }
}

/* Animates the icon slightly popping in size */
@keyframes svgWavePulse {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30%, 100% { transform: scale(1); }
}

/* Apply the animations to the circles and SVGs (loops every 5 seconds) */
.nx-step-icon {
    animation: stepWaveBounce 5s infinite ease-in-out;
}

.nx-step-icon svg {
    transition: transform 0.3s ease; /* Keeps standard hover smooth if they do use a mouse */
    animation: svgWavePulse 5s infinite ease-in-out;
}

/* Stagger the delays so the wave travels Left -> Right */
.nx-step-card:nth-child(1) .nx-step-icon,
.nx-step-card:nth-child(1) .nx-step-icon svg {
    animation-delay: 0s;
}

.nx-step-card:nth-child(2) .nx-step-icon,
.nx-step-card:nth-child(2) .nx-step-icon svg {
    animation-delay: 0.4s;
}

.nx-step-card:nth-child(3) .nx-step-icon,
.nx-step-card:nth-child(3) .nx-step-icon svg {
    animation-delay: 0.8s;
}

/* Optional: Still allow users to manually trigger it if they hover on Desktop */
 /*.nx-step-card:hover .nx-step-icon {
    transform: translateY(-10px) !important;
    border-color: var(--nx-accent-gold) !important;*/
    /* Pauses the auto-animation while they are interacting with it */
/*    animation-play-state: paused; 
}*/

/*.nx-step-card:hover .nx-step-icon svg {
    transform: scale(1.15) !important;
    animation-play-state: paused;
}*/

/* ==========================================================================
   Nuvexia FAQ Accordion
   ========================================================================== */

.nx-faq-section {
    background-color: var(--nx-hero-bg) !important;
    padding: 4rem 1.5rem 8rem;
}

.nx-faq-container {
    max-width: 800px; /* Keep this narrow so it's easy to read */
    margin: 0 auto;
}

.nx-faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.nx-faq-header h2 {
    color: var(--nx-text-main) !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.nx-faq-header p {
    color: var(--nx-text-muted) !important;
    font-size: 1.1rem;
}

/* Accordion Wrapper */
.nx-accordion {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nx-accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* The Clickable Button */
.nx-accordion-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s ease;
}

.nx-question {
    color: var(--nx-text-main);
    font-size: 1.15rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nx-icon {
    color: var(--nx-accent-green);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

/* Hover State */
.nx-accordion-toggle:hover .nx-question {
    color: var(--nx-text-main);
}

/* Active (Open) State */
.nx-accordion-toggle.active .nx-question {
    color: var(--nx-accent-gold); /* Turns gold when open */
}

.nx-accordion-toggle.active .nx-icon {
    transform: rotate(45deg); /* Turns the + into an X */
    color: var(--nx-accent-gold);
}

/* The Hidden Content */
.nx-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.nx-accordion-content p {
    color: var(--nx-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    padding-bottom: 1.5rem; /* Padding at the bottom before the border */
    margin: 0;
}

/* Removes the theme's default green background and outline when clicking the FAQ buttons */
.nx-accordion-toggle:focus,
.nx-accordion-toggle:active,
.nx-accordion-toggle.active {
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Clean Footer Break on Mobile */
@media (max-width: 768px) {
    .nx-local-text {
        display: block;
        margin-top: 6px; /* Adds a tiny gap between the two lines so they don't touch */
    }
}

/* The bulletproof fix for the green box on mobile and desktop */
.nx-accordion-toggle,
.nx-accordion-toggle:focus,
.nx-accordion-toggle:active,
.nx-accordion-toggle.active {
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important; /* This specifically kills the mobile tap flash */
}

/* ==========================================================================
   Global Fixes (Prevents Mobile Side-Scrolling WITHOUT breaking sticky headers)
   ========================================================================== */

html, body {
    width: 100vw;
    max-width: 100%;
    overflow-x: clip; /* 'clip' fixes the wobble without breaking the sticky header */
    position: relative;
}

/* If you added this part to the Genesis/Theme wrappers, update them to 'clip' too 
.site-container, 
#page, 
.elementor-page {
    overflow-x: clip !important;
    width: 100%;
    max-width: 100vw;
}*/

/* INFO PRICING TABLE */
.nv-tip { position: relative; display: inline-block; margin-left: 4px; vertical-align: middle; cursor: help; }
.nv-tip-icon {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(74, 222, 128, 0.2); color: #4ade80;
  font: italic 700 11px/1 Georgia, serif;
  border: 1px solid rgba(74, 222, 128, 0.5);
  transition: all .15s ease; user-select: none;
}
.nv-tip:hover .nv-tip-icon, .nv-tip.is-open .nv-tip-icon { background: #4ade80; color: #0B2A1B; }
.nv-tip-content {
  visibility: hidden; opacity: 0;
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: 280px; padding: 14px 16px;
  background: #0B2A1B; color: #fff;
  border: 1px solid rgba(74, 222, 128, 0.3); border-radius: 10px;
  font: 400 14px/1.5 system-ui, -apple-system, sans-serif;
  text-align: left; box-shadow: 0 12px 32px rgba(0,0,0,.5); z-index: 9999;
  transition: opacity .18s, visibility .18s; pointer-events: none;
}
.nv-tip-content::after {
  content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px;
  border: 6px solid transparent; border-top-color: #0B2A1B;
}
.nv-tip:hover .nv-tip-content, .nv-tip.is-open .nv-tip-content { visibility: visible; opacity: 1; }
@media (max-width: 768px) { .nv-tip-content { width: 240px; font-size: 12px; } }