/* NIUAXI Custom Premium Stylesheet */

:root {
    --bg-primary: #040814;
    --bg-secondary: #0a1128;
    --accent-blue: #1e62ec;
    --accent-blue-glow: rgba(30, 98, 236, 0.55);
    --text-primary: #ffffff;
    --text-muted: #8c9cb5;
    --card-bg: rgba(9, 17, 39, 0.65);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-blur: 16px;
    --transition-speed: 0.3s;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Base Headings - Outfit Font */
h1, h2, h3, h4, h5, h6, .brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Background Radial Glows */
body::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 70%;
    background: radial-gradient(circle, rgba(30, 98, 236, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 70%;
    background: radial-gradient(circle, rgba(30, 98, 236, 0.12) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Logo Grid Icon */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 3px;
    width: 24px;
    height: 24px;
}

.logo-grid .dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-blue);
    display: inline-block;
    position: relative;
}

/* Connect some dots visually */
.logo-grid .dot.d1, .logo-grid .dot.d5, .logo-grid .dot.d9,
.logo-grid .dot.d3, .logo-grid .dot.d7 {
    background-color: #4facfe;
    box-shadow: 0 0 10px #4facfe;
}

.brand-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-primary);
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 8px 20px !important;
    transition: color var(--transition-speed);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-primary);
}

/* Navigation & Header Buttons */
.btn-contact {
    background-color: var(--accent-blue);
    color: var(--text-primary);
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 0 20px var(--accent-blue-glow);
    transition: all var(--transition-speed);
}

.btn-contact:hover {
    background-color: #3b7bf8;
    color: var(--text-primary);
    box-shadow: 0 0 28px rgba(30, 98, 236, 0.85);
    transform: translateY(-2px);
}

/* Primary Funnel CTA */
.btn-primary-glow {
    background-color: var(--accent-blue);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 0 24px var(--accent-blue-glow);
    transition: all var(--transition-speed);
}

.btn-primary-glow:hover {
    background-color: #3b7bf8;
    color: var(--text-primary);
    box-shadow: 0 0 32px rgba(30, 98, 236, 0.9);
    transform: translateY(-2px);
}

/* Secondary Button */
.btn-secondary-outline {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed);
}

.btn-secondary-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ============================================================
   HEADER - NIUAXI Modern Design
   ============================================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(4, 8, 20, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 10;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    transition: color var(--transition-speed);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--accent-blue);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.nav-link:hover::after {
    opacity: 1;
}

.btn-header {
    background-color: var(--accent-blue);
    color: var(--text-primary);
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-speed);
    white-space: nowrap;
    margin-left: 10px;
}

.btn-header:hover {
    background-color: #3b7bf8;
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(30, 98, 236, 0.6);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 11;
    flex-shrink: 0;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
}

/* Mobile Responsive Header */
@media (max-width: 768px) {
    .header-content {
        gap: 15px;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(4, 8, 20, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 20px;
        justify-content: flex-start;
    }

    .navbar-links.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 16px;
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    .btn-header {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 12px 0;
    }

    .logo-img {
        height: 32px;
    }

    .navbar-links {
        padding: 16px;
    }
}

/* Main content offset for fixed header */
body {
    padding-top: 72px;
}

/* Glasmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--card-blur));
    -webkit-backdrop-filter: blur(var(--card-blur));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.45);
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.glass-card:hover {
    border-color: rgba(30, 98, 236, 0.25);
}

/* Floating Card List on Landing Page */
.floating-cards-container {
    position: relative;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.floating-card {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    max-width: 380px;
    position: absolute;
    right: 5%;
}

.floating-card .icon-box {
    width: 44px;
    height: 44px;
    background: rgba(30, 98, 236, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    border: 1px solid rgba(30, 98, 236, 0.3);
}

.floating-card .icon-box i {
    font-size: 20px;
    color: #4facfe;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

.floating-card .card-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

    /* Card option icon sizing and focus/hover improvements */
    .card-option {
        display:flex;
        align-items:center;
        gap:1rem;
        padding:18px;
        transition: box-shadow var(--transition-speed), transform var(--transition-speed), border-color var(--transition-speed);
    }

    .card-option-icon {
        width:4rem; /* 64px */
        height:4rem;
        display:flex;
        align-items:center;
        justify-content:center;
        border-radius:0.75rem;
        background: rgba(255,255,255,0.02);
        flex-shrink:0;
        border:1px solid rgba(255,255,255,0.03);
    }
    .card-option-icon i {
        font-size:1.75rem; /* ~28px */
        color: var(--accent-blue);
    }

    .card-option .card-option-text { flex:1; }

    .card-option:hover, .card-option.selected {
        box-shadow: 0 6px 30px rgba(30,98,236,0.12);
        transform: translateY(-4px);
        border-color: rgba(30,98,236,0.15);
    }

    /* Focus styles for keyboard users */
    .card-option:focus-within, .card-option:focus {
        outline: 3px solid rgba(79,172,254,0.18);
        outline-offset: 4px;
    }

    @media (max-width: 991.98px) {
        .card-option-icon { width:3rem; height:3rem; }
        .card-option-icon i { font-size:1.25rem; }
        .card-option { padding:12px; }
    }

    /* Make option grid use 3 columns on large screens */
    @media (min-width: 992px) {
        .option-grid-3col .col-md-6 { flex: 0 0 33.333%; max-width:33.333%; }
    }

.floating-card .card-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Overlapping offset position for floating cards matching the image */
.fc-1 {
    top: 10%;
    transform: translateX(-10px);
    z-index: 10;
}
.fc-2 {
    top: 40%;
    transform: translateX(10px);
    z-index: 11;
}
.fc-3 {
    top: 70%;
    transform: translateX(-10px);
    z-index: 10;
}

/* Glowing Rotating Globe in Background */
.globe-wrapper {
    position: absolute;
    width: 600px;
    height: 600px;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
    pointer-events: none;
}

.glowing-globe {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 98, 236, 0.1) 0%, rgba(9, 17, 39, 0.3) 60%, rgba(4, 8, 20, 0.9) 100%);
    border: 1px solid rgba(30, 98, 236, 0.15);
    box-shadow: 0 0 80px rgba(30, 98, 236, 0.15);
    position: relative;
    overflow: hidden;
}

/* Add dotted grid outline on globe */
.glowing-globe::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(rgba(30, 98, 236, 0.18) 1.5px, transparent 1.5px),
        linear-gradient(rgba(30, 98, 236, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 98, 236, 0.03) 1px, transparent 1px);
    background-size: 24px 24px, 48px 48px, 48px 48px;
    border-radius: 50%;
    opacity: 0.65;
    animation: rotateGlobe 60s linear infinite;
}

@keyframes rotateGlobe {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Down Arrow Indicator */
.down-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 20px;
    margin: 40px auto 10px;
    animation: bounce 2s infinite;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.02);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Carousel/Slider elements for Hero Section */
.hero-slider-container {
    position: relative;
    min-height: 380px;
}

.hero-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    display: block;
    opacity: 1;
}

.ia-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(30, 98, 236, 0.08);
    border: 1px solid rgba(30, 98, 236, 0.35);
    border-radius: 20px;
    color: #4facfe;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 0 10px rgba(30, 98, 236, 0.15);
}

.hero-title {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(90deg, #1e62ec 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(30, 98, 236, 0.1);
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

/* Indicators representing slider pages */
.slider-indicators {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
}

.slider-indicators .indicator-dot {
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-indicators .indicator-dot.active {
    width: 24px;
    height: 6px;
    background-color: var(--accent-blue);
    border-radius: 3px;
    box-shadow: 0 0 8px var(--accent-blue-glow);
}

/* Stepper for Funnel Steps - VERTICAL at RIGHT */
.stepper-container {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 30px;
    align-items: start;
    margin-bottom: 40px;
}

.stepper-progress-bar {
    display: none;
}

.stepper-progress-fill {
    display: none;
}

.stepper-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    order: 2;
}

.stepper-steps::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 40px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-blue) 0%, rgba(30, 98, 236, 0.2) 100%);
    z-index: 0;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.step-dot {
    width: 24px;
    height: 24px;
    background-color: var(--bg-secondary);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.4s;
    flex-shrink: 0;
}

.step-node.active .step-dot {
    border-color: var(--accent-blue);
    background-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 12px var(--accent-blue-glow);
    transform: scale(1.15);
}

.step-node.completed .step-dot {
    border-color: #4facfe;
    background-color: #4facfe;
    color: #040814;
    box-shadow: 0 0 12px rgba(79, 172, 254, 0.4);
}

.step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.3;
    width: 100px;
    transition: color 0.3s;
    word-break: break-word;
}

.step-node.active .step-label {
    color: var(--accent-blue);
    font-weight: 700;
}

.step-node.completed .step-label {
    color: #4facfe;
}

/* Responsive: Hide stepper on very small screens */
@media (max-width: 768px) {
    .stepper-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .stepper-steps {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        order: 0;
    }

    .stepper-steps::before {
        display: none;
    }

    .step-node {
        margin-bottom: 0;
    }

    .step-label {
        font-size: 10px;
        width: auto;
    }

    .step-dot {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
}

/* Premium Form Elements */
.form-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 12px 16px;
    transition: all 0.25s ease;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(30, 98, 236, 0.25);
    color: var(--text-primary);
    outline: none;
}

.form-select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.text-danger-custom {
    color: #ff5252;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

/* Custom Card Options (Checkboxes/Radios) */
.card-option {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    position: relative;
}

.card-option:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-option.selected {
    background: rgba(30, 98, 236, 0.06);
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px rgba(30, 98, 236, 0.15);
}

.card-option input[type="radio"],
.card-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.card-option-circle {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.card-option.selected .card-option-circle {
    border-color: var(--accent-blue);
}

.card-option.selected .card-option-circle::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    display: block;
}

.card-option-text {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
}

/* Admin Dashboard CSS */
.admin-metric-card {
    padding: 24px;
    text-align: center;
}

.admin-metric-number {
    font-size: 36px;
    font-weight: 800;
    color: #4facfe;
    text-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
}

.admin-metric-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.admin-table {
    color: var(--text-primary);
}

.admin-table th {
    background-color: var(--bg-secondary) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-muted) !important;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-table td {
    background-color: transparent !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 36px;
    }
    
    .floating-cards-container {
        min-height: auto;
        margin-top: 50px;
    }
    
    .floating-card {
        position: relative;
        right: 0;
        margin: 15px auto;
        transform: none !important;
        max-width: 100%;
    }
    
    .globe-wrapper {
        width: 400px;
        height: 400px;
        right: 10%;
    }
}
