/* 
   LIGHTNING BULLS - LUX MASTER V4.0 (LUXALGO STYLE)
   Premium Fintech & TradingView Aesthetic
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Manrope:wght@300;600;800&family=Roboto+Mono:wght@400;700&display=swap');

:root {
    /* LuxAlgo V5.0 Electrifying Palette */
    --bg-deep: #02040a;
    --bg-card: #080a12;
    --lux-blue: #0066ff;
    --lux-cyan: #00f2ff;
    --lux-purple: #8a2be2;
    --lux-green: #00ff88;

    /* Neon Glows */
    --glow-cyan: 0 0 15px rgba(0, 242, 255, 0.4), 0 0 30px rgba(0, 242, 255, 0.2);
    --glow-purple: 0 0 15px rgba(138, 43, 226, 0.4), 0 0 30px rgba(138, 43, 226, 0.2);
    --glow-text-cyan: 0 0 10px rgba(0, 242, 255, 0.5);

    --text-white: #ffffff;
    --text-muted: #8b949e;
    --border-lux: rgba(255, 255, 255, 0.08);
    --glass-lux: rgba(255, 255, 255, 0.03);

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Manrope', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    /* The TradingView Look */
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-white);
    font-family: var(--font-main);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.heading {
    font-family: var(--font-heading);
    font-weight: 800;
}

.mono {
    font-family: var(--font-mono);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(5, 8, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-lux);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Mobile Toggle - Hidden on Desktop */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
}

.mobile-toggle span {
    width: 28px;
    height: 2px;
    background: var(--lux-cyan);
    border-radius: 2px;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--lux-blue), var(--lux-purple));
    border-radius: 4px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    text-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
}

/* Sections & Layout */
.section {
    padding: 120px 8%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Ensure proper gap after hero sections when padding-top is reduced */
.hero+.section {
    margin-top: 60px;
}

.hero {
    height: 600px !important;
    padding: 100px 8% !important;
    /* Balanced top and bottom to ensure content is optically centered */
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    align-items: flex-start !important;
    background: radial-gradient(circle at 80% 20%, rgba(0, 102, 255, 0.15), transparent),
        radial-gradient(circle at 20% 80%, rgba(138, 43, 226, 0.1), transparent);
    position: relative;
    overflow: hidden;
    box-sizing: border-box !important;
}

.hero-home {
    height: auto !important;
    min-height: 85vh !important;
    justify-content: center !important;
    padding: 0 8% !important;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin: 0 0 20px 0;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

/* The TradingView Table / Grid Look */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-lux);
    border-radius: 12px;
    overflow: hidden;
    font-family: var(--font-mono);
}

.data-table td,
.data-table th {
    padding: 16px;
    border-bottom: 1px solid var(--border-lux);
    text-align: left;
}

.data-table th {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.2);
}

/* Components: Lux Cards */
.lux-card {
    background: var(--bg-card);
    border: 1px solid var(--border-lux);
    padding: 40px;
    border-radius: 20px;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.lux-card:hover {
    transform: translateY(-8px);
    border-color: var(--lux-blue);
    background: linear-gradient(180deg, var(--bg-card), rgba(0, 102, 255, 0.05));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    opacity: 0.15;
    transition: all 0.4s ease;
    filter: grayscale(100%);
}

.lux-card:hover .card-icon {
    opacity: 0.9;
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 15px currentColor) grayscale(0%);
}

.lux-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

/* Buttons */
.btn-lux {
    padding: 18px 36px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary-lux {
    background: linear-gradient(135deg, var(--lux-blue) 0%, var(--lux-purple) 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

.btn-secondary-lux {
    background: var(--glass-lux);
    border: 1px solid var(--border-lux);
    color: white;
}

.btn-primary-lux:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.5);
}

/* Status Indicators */
.pulse-green {
    color: var(--lux-green);
    font-weight: bold;
}

.pulse-green::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--lux-green);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--lux-green);
    animation: blink 2s infinite;
}

@keyframes blink {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

/* Footer */
/* --- TRADINGVIEW BACKGROUND SYSTEM --- */
.tech-grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(0, 102, 255, 0.15) 1px, transparent 0);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.hero-chart-bg {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    width: 65%;
    height: 90%;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    mask-image: linear-gradient(to left, black, transparent);
    -webkit-mask-image: linear-gradient(to left, black, transparent);
}

.candle-wick {
    fill: none;
    stroke-width: 1.2;
    stroke-linecap: round;
}

.candle-body {
    stroke-width: 1;
    rx: 1;
}

.candle-up .candle-wick {
    stroke: var(--lux-cyan);
}

.candle-up .candle-body {
    fill: rgba(0, 242, 255, 0.35);
    stroke: var(--lux-cyan);
}

.candle-down .candle-wick {
    stroke: var(--lux-purple);
}

.candle-down .candle-body {
    fill: rgba(138, 43, 226, 0.35);
    stroke: var(--lux-purple);
}

/* Animation: Sequential Candle Growth */
.candle {
    opacity: 0;
    transform: translateY(15px);
    animation: candleAppear 0.6s forwards cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes candleAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glow-overlay {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.25) 0%, transparent 70%);
    z-index: -3;
    pointer-events: none;
}

footer {
    padding: 80px 8%;
    background: #020408;
    border-top: 1px solid var(--border-lux);
}

/* --- LUX NOTIFICATION SYSTEM --- */
.lux-toast-container {
    position: fixed;
    top: 120px;
    right: 40px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

.lux-toast {
    pointer-events: auto;
    background: rgba(8, 10, 18, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-lux);
    padding: 24px 32px;
    border-radius: 16px;
    min-width: 320px;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.lux-toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.lux-toast.active {
    transform: translateX(0);
}

.lux-toast.success {
    border-color: rgba(0, 255, 136, 0.3);
}

.lux-toast.success::before {
    background: var(--lux-green);
    box-shadow: 0 0 15px var(--lux-green);
}

.lux-toast.error {
    border-color: rgba(138, 43, 226, 0.3);
}

.lux-toast.error::before {
    background: var(--lux-purple);
    box-shadow: 0 0 15px var(--lux-purple);
}

.lux-toast-title {
    font-family: var(--Manrope);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.lux-toast.success .lux-toast-title {
    color: var(--lux-green);
}

.lux-toast.error .lux-toast-title {
    color: var(--lux-purple);
}

.lux-toast-message {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.lux-toast-id {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 4px;
    font-family: var(--font-mono);
}

/* --- RESPONSIVE MOBILE CORE --- */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 15px 5%;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(2, 4, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        border-left: 1px solid var(--border-lux);
    }

    .nav-links.active {
        right: 0;
    }

    .hero {
        height: auto !important;
        min-height: 400px !important;
        padding: 80px 5% !important;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 60px 5%;
    }

    /* Grid Stacking */
    .contact-grid,
    form[style*="display: grid"],
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    footer div[style*="display: grid"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px !important;
    }

    .btn-lux {
        width: 100% !important;
        text-align: center;
    }

    .lux-card {
        padding: 25px;
    }

    /* Hamburger Animation */
    .mobile-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .mobile-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}