/* 
   ==========================================================================
   NOVATREND LANDING PAGE STYLES - EXPERT EDITION (v2.0)
   ========================================================================== 
*/

/* Internal CSS moved to external file */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

:root {
    /* Theme Variables */
    --bg-color: #020617;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;

    /* Glassmorphism 2.0 */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    /* Neon Palette */
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-pink: #f472b6;
    --accent-gradient: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    --accent-gradient-text: linear-gradient(90deg, #00f3ff, #bc13fe, #f472b6);

    /* Animations */
    --transition-speed: 0.3s;
}

body.light-theme {
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-highlight: rgba(0, 0, 0, 0.1);
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    margin: 0;
    transition: background 0.3s, color 0.3s;
}

/* =========================================
   ANIMATIONS & KEYFRAMES
   ========================================= */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(188, 19, 254, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(188, 19, 254, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(188, 19, 254, 0);
    }
}

@keyframes gradient-x {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* =========================================
   COMPONENT UTILITIES
   ========================================= */

.text-gradient-animated {
    background: var(--accent-gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-x 3s linear infinite;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-delay-1 {
    animation-delay: 1s;
}

.floating-delay-2 {
    animation-delay: 2s;
}

/* =========================================
   BACKGROUNDS & SECTIONS
   ========================================= */

.bg-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('hero_bg_neon.png') no-repeat center center/cover;
    opacity: 0.6;
    z-index: -1;
    mix-blend-mode: screen;
}

body.light-theme .bg-hero {
    opacity: 0.2;
    mix-blend-mode: normal;
}

.bg-benefits {
    background: url('section_bg_soft.png') no-repeat center center/cover;
}

body:not(.light-theme) .bg-benefits {
    background: none;
    position: relative;
}

body:not(.light-theme) .bg-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
}

.bg-cta {
    background: url('cta_bg_gradient.png') no-repeat center center/cover;
    position: relative;
}

.bg-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

/* =========================================
   NAVBAR
   ========================================= */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    background: rgba(2, 6, 23, 0.7);
    border-bottom: 1px solid var(--glass-border);
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.8);
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.3));
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.theme-toggle:hover {
    background: var(--glass-bg);
    color: var(--neon-blue);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 10px;
    transition: 0.3s;
}

.menu-toggle:hover {
    background: var(--glass-bg);
    color: var(--neon-blue);
}

.nav-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
    border-color: var(--neon-blue);
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    transform: translateY(-2px);
}

.nav-btn-login {
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    background: linear-gradient(90deg, #020617, #1e293b);
    border: 1px solid var(--neon-purple);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.nav-btn-login:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 25px rgba(188, 19, 254, 0.6);
    transform: translateY(-2px);
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    /* For floating elements */
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Floating 3D Elements container (Absolute positioned in Hero) */
.hero-floating-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.hero-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    filter: blur(2px);
}

/* Buttons */
.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    padding: 1.2rem 3rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy */
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.6);
    border-color: #fff;
}

.btn-pulse {
    animation: pulse-glow 2s infinite;
}

/* =========================================
   TRUST BAR (SCROLLING MARQUEE)
   ========================================= */
.trust-bar {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.trust-content {
    display: inline-block;
    animation: scroll-left 30s linear infinite;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 2rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.8;
}

.trust-item i {
    color: var(--neon-blue);
}

/* =========================================
   SECTIONS & CARDS
   ========================================= */

section {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Improved Glassmorphism Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

/* Shine effect on hover */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.card:hover::after {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--glass-highlight);
    background: rgba(255, 255, 255, 0.05);
    /* Slightly lighter */
}

.card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card ul {
    list-style: none;
    padding: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.card ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.card ul li i {
    color: var(--neon-purple);
    margin-top: 4px;
}

/* Incentives Box */
.incentives-box {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.95), rgba(20, 4, 30, 0.95));
    border: 1px solid rgba(188, 19, 254, 0.3);
    border-radius: 30px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(188, 19, 254, 0.1);
}

.incentives-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(rgba(188, 19, 254, 0.15), transparent 70%);
    pointer-events: none;
}

/* Testimonials */
.quote-card {
    border-left: 4px solid var(--neon-blue);
    padding-left: 2rem;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

@media (max-width: 900px) {
    .navbar {
        padding: 1rem;
    }

    .menu-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(2, 6, 23, 0.95); /* Deep dark bg */
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        display: block;
        text-align: center;
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
        background: rgba(255,255,255,0.03);
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-icon {
        display: none;
        /* Reduce clutter on mobile */
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-3>div[style*="span 2"] {
        grid-column: auto !important;
    }
}

/* Sticky Mobile CTA */
.sticky-mobile-cta {
    position: fixed;
    bottom: 20px;
    left: 5%;
    width: 90%;
    background: var(--accent-gradient);
    color: #fff;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 800;
    border: 1px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    /* Hidden by default, shown via JS on scroll */
    text-decoration: none;
    animation: slide-up 0.5s ease-out;
}

@keyframes slide-up {
    from {
        transform: translateY(100px);
    }

    to {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .sticky-mobile-cta.visible {
        display: block;
    }
}

/* New Backgrounds */
.bg-simulator {
    background: url('simulator_bg_finance_neon.png') no-repeat center center/cover;
    position: relative;
    padding: 6rem 0;
    /* Add padding for breathing room */
}

.bg-simulator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.85);
    /* Deep dark overlay */
    pointer-events: none;
}

.bg-success {
    background: url('testimonials_bg_stage_spotlight.png') no-repeat center center/cover;
    position: relative;
    padding: 6rem 0;
}

.bg-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.8);
    /* Stage overlay */
    pointer-events: none;
}

/* Ensure content sits above overlay */
.bg-simulator .container,
.bg-success .container {
    position: relative;
    z-index: 2;
}

/* Simulator Specific Layout */
.simulator-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

/* The Pulsing Glow for Nova Card */
@keyframes borderPulse {
    0% {
        box-shadow: 0 0 20px rgba(188, 19, 254, 0.2);
    }

    50% {
        box-shadow: 0 0 60px rgba(188, 19, 254, 0.5);
    }

    100% {
        box-shadow: 0 0 20px rgba(188, 19, 254, 0.2);
    }
}

.nova-card-glow {
    animation: borderPulse 3s infinite;
    transform: scale(1.02);
    border: 2px solid var(--neon-purple) !important;
    z-index: 10;
}

@media (max-width: 900px) {
    .simulator-grid {
        flex-direction: column;
        gap: 3rem;
    }

    .vs-badge {
        transform: rotate(90deg);
        margin: 0;
    }
}

/* =========================================
   NOVA CHAT CUSTOM STYLES
   ========================================= */

.nova-chat-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nova-chat-launcher:hover {
    transform: scale(1.1);
}

.nova-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(2, 6, 23, 0.95);
    border-radius: 50%;
    border: 2px solid var(--neon-purple);
    padding: 5px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.nova-avatar-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--neon-purple);
    filter: blur(15px);
    opacity: 0.6;
    z-index: 1;
    animation: novaPulse 2s infinite;
}

@keyframes novaPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }

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

/* Custom Window Styles */
.nova-chat-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: #020617;
    border-radius: 20px;
    border: 1px solid rgba(188, 19, 254, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

/* Active State for Window */
.nova-chat-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Mobile Chat Adjustments */
@media (max-width: 480px) {
    .nova-chat-window {
        width: calc(100% - 40px);
        height: 80vh;
        right: 20px;
        bottom: 100px;
    }
}
