﻿/* ===================================
   BRIGHTWIRE - AI & HI-TECH THEME
   Modern dark theme with neon accents
   =================================== */

:root {
    /* Core Colors */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    
    /* Neon Accent Colors */
    --neon-cyan: #00f0ff;
    --neon-purple: #a855f7;
    --neon-blue: #3b82f6;
    --neon-pink: #ec4899;
    --neon-green: #10b981;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00f0ff 0%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #ec4899 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Glow Effects */
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.3);
}

html, body {
    font-family: 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* Override Bootstrap text-muted */
.text-muted {
    color: var(--text-secondary) !important;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

a, .btn-link {
    color: var(--neon-cyan);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--neon-purple);
    text-shadow: var(--glow-cyan);
}

/* Gradient Text */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-azure, .text-primary {
    color: var(--neon-cyan) !important;
}

/* ===================================
   BUTTONS
   =================================== */

.btn-primary {
    color: var(--bg-dark);
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    background: var(--gradient-primary);
}

.btn-outline-primary {
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    background: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--text-primary);
    color: var(--bg-dark);
    font-weight: 600;
    border: none;
}

.btn-light:hover {
    background: var(--neon-cyan);
    color: var(--bg-dark);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 240, 255, 0.25);
}

/* ===================================
   LAYOUT
   =================================== */

.layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-dark);
}

.main-content {
    flex: 1;
    padding-top: 80px;
}

/* ===================================
   NAVBAR
   =================================== */

.navbar {
    background: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--neon-cyan) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-toggler {
    border-color: var(--neon-cyan);
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    background: var(--bg-dark);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Animated grid background */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    pointer-events: none; /* ADDED: allows clicks to pass through */
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Glowing orbs */
.hero-section::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none; /* ADDED: allows clicks to pass through */
}

/* Ensure hero content is above decorative elements */
.hero-section .container {
    position: relative;
    z-index: 1;
}

.min-vh-75 {
    min-height: 75vh;
}

/* ===================================
   HERO VISUAL - TECH BADGES
   =================================== */

.hero-visual {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.tech-badge {
    background: var(--bg-card);
    color: var(--neon-cyan);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: var(--glow-cyan);
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.tech-badge:nth-child(2) { animation-delay: 1s; }
.tech-badge:nth-child(3) { animation-delay: 2s; }
.tech-badge:nth-child(4) { animation-delay: 3s; }

.tech-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.5);
    border-color: var(--neon-cyan);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ===================================
   CARDS
   =================================== */

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--glow-cyan);
}

.card:hover::before {
    opacity: 1;
}

.card-body {
    position: relative;
    z-index: 1;
}

.card-title {
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
}

/* ===================================
   SERVICE ICONS
   =================================== */

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.6)); }
}

/* ===================================
   STATS GRID
   =================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 240, 255, 0.1), transparent 30%);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.stat-card:hover {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: var(--glow-cyan);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* ===================================
   CTA SECTION
   =================================== */

.cta-section {
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none; /* ADD THIS LINE - allows clicks to pass through */
}

.cta-section h2 {
    position: relative;
    z-index: 1;
}

.cta-section p {
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
}

.cta-section .btn {
    position: relative;
    z-index: 1;
}

/* ===================================
   PAGE HEADER
   =================================== */

.page-header {
    background: var(--bg-dark);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
}

/* ===================================
   SECTIONS
   =================================== */

.bg-light {
    background: var(--bg-darker) !important;
}

.bg-white {
    background: var(--bg-card) !important;
}

section {
    position: relative;
}

/* Section dividers */
.py-5 {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* ===================================
   SERVICE DETAILS
   =================================== */

.service-detail {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease;
}

.service-detail:hover {
    border-color: rgba(0, 240, 255, 0.2) !important;
    box-shadow: var(--glow-cyan);
}

.service-detail.border-primary {
    border-color: rgba(0, 240, 255, 0.3) !important;
}

.service-detail ul li {
    padding: 0.25rem 0;
}

/* ===================================
   METHODOLOGY CARDS
   =================================== */

.methodology-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.methodology-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--glow-purple);
}

/* ===================================
   ABOUT VALUES
   =================================== */

.about-values {
    background: var(--bg-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===================================
   BADGES
   =================================== */

.badge.bg-primary {
    background: var(--gradient-primary) !important;
    color: var(--bg-dark);
    font-weight: 600;
}

.badge.bg-secondary {
    background: rgba(168, 85, 247, 0.2) !important;
    color: var(--neon-purple);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

/* ===================================
   FORMS
   =================================== */

.form-control {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    background: var(--bg-card);
    border-color: var(--neon-cyan);
    color: var(--text-primary);
    box-shadow: var(--glow-cyan);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
}

textarea.form-control {
    min-height: 120px;
}

/* ===================================
   ALERTS
   =================================== */

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--neon-green);
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
    background: var(--bg-darker) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.site-footer h5,
.site-footer h6 {
    color: var(--text-primary);
}

.site-footer a {
    transition: all 0.3s ease;
}

.site-footer a:hover {
    color: var(--neon-cyan) !important;
}

/* ===================================
   CHECKMARKS & LIST ITEMS
   =================================== */

.text-primary.fw-bold {
    color: var(--neon-cyan) !important;
    text-shadow: var(--glow-cyan);
}

/* ===================================
   CONTENT AREA
   =================================== */

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

/* ===================================
   VALIDATION
   =================================== */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--neon-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.invalid {
    outline: 1px solid #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.validation-message {
    color: #ef4444;
}

/* ===================================
   ERROR BOUNDARY
   =================================== */

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg4IDE3LjAwNTkwNCAzOC40MjQ3IDE3LjAwNTkwNC4xMiAxLjQ3MjMgNC40NjA3MyA2LjEzNzUgOS4yMjU1NjkgNi4xMDAwMDAwMCAwIDE3LjAwNTkwNCAwIDAgNy4wMzI2MDQgNi40NTY0MDAwMDAwMDAwMDAwLjM2NzUzMjYgMi44NzAxMjEgNy4yMjU2MDQ2Ni41MjQxMzY0NDAwMDAwMDAwMDAwLjAwMDAwMDAwMDAwMDAwMDAwLjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwLjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwLjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwIj4KPHBhdGggZD0iTTI5Mi4xNTIgMS41NjVMMjU1IDAgMVoiIHN0eWxlPSJmaWxsOnJlZDsiIiBjbGFzcz0icGF0aDgiLz48L3N2Zz4=);
    background-size: cover;
    background-position: center;
    padding: 5rem 0;
    color: #fff;
    border-radius: 0.5rem;
}

/* ===================================
   CUSTOM SCROLLBAR
   =================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}

::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 4px;
}

/* ===================================
   ANIMATIONS
   =================================== */

.fadeIn {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slideInUp {
    animation: slideInUp 0.7s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zoomIn {
    animation: zoomIn 0.6s ease-out forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================
   STICKY ELEMENTS
   =================================== */

[data-sticky] {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: blur(10px);
}

/* ===================================
   HIDE ELEMENT ON SCROLL
   =================================== */

[data-hide-on-scroll] {
    transition: transform 0.3s ease-in-out;
}

[data-hide-on-scroll].is-hidden {
    transform: translateY(-100%);
}