/* ============================================
   Innova AI Soft — Design System
   Dark Mode + Glassmorphism + Tech Aesthetic
   ============================================ */

/* === CSS Variables === */
:root {
    --primary: #0066FF;
    --primary-dark: #0044CC;
    --primary-light: #3388FF;
    --secondary: #FF6B35;
    --secondary-dark: #E55A2B;
    --accent: #00CCFF;
    --dark: #0A0A1A;
    --darker: #050510;
    --dark-surface: #111128;
    --light: #F8FAFC;
    --light-muted: #94A3B8;
    --success: #10B981;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-hero: linear-gradient(135deg, #0066FF 0%, #00CCFF 50%, #FF6B35 100%);
    --gradient-text: linear-gradient(135deg, #0066FF 0%, #00CCFF 50%, #FF6B35 100%);
    --gradient-bg: linear-gradient(180deg, #0A0A1A 0%, #111128 50%, #0A0A1A 100%);
    --shadow-glow: 0 0 40px rgba(0, 102, 204, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent); }

/* === Typography === */
.display-xl { font-size: 3rem; font-weight: 800; line-height: 1.1; }
.display { font-size: 2.75rem; font-weight: 800; line-height: 1.15; }
h1, .h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; }
h2, .h2 { font-size: 2.25rem; font-weight: 800; line-height: 1.2; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; }
h4, .h4 { font-size: 1.0625rem; font-weight: 700; }
p.lead { font-size: 1.0625rem; line-height: 1.6; color: var(--light-muted); }

/* === Gradient Text === */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Container === */
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

/* === Site Header (sticky wrapper) === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* === Header Top Bar === */
.header-top-bar {
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--light-muted);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    width: 100%;
    z-index: 2;
    transition: all 0.3s ease;
}
.header-top-bar .contact-info { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.header-top-bar .contact-info span { white-space: nowrap; }
.header-top-bar .contact-sep { color: var(--glass-border); }

/* === Main Header === */
.main-header {
    position: relative;
    width: 100%;
    z-index: 1;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}
.main-header.scrolled {
    background: rgba(5, 5, 16, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === Navbar === */
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.navbar-brand img { height: 40px; }
.navbar-brand .brand-text { font-size: 1.3rem; font-weight: 800; color: var(--light); line-height: 1; }
.navbar-toggler { background: none; border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer; }
.navbar-toggler span { display: block; width: 22px; height: 2px; background: var(--light); margin: 4px 0; transition: all 0.3s; }

@media (min-width: 992px) {
    .navbar-toggler { display: none; }
}

.navbar-nav { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-item { display: flex; align-items: center; height: 100% !important; padding: 0 !important; font-size: 14px !important; }
.nav-item:first-of-type { padding-top: 0 !important; }
.nav-item:last-of-type { padding-bottom: 0 !important; }
.nav-link {
    color: var(--light) !important;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    height: 100% !important;
    vertical-align: middle;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent) !important;
    background: var(--glass-bg);
}
/* Override Blazor scoped active style */
.nav-item ::deep a.active,
.nav-item a.active {
    background-color: transparent !important;
    color: var(--accent) !important;
}

/* === Dropdown === */
.dropdown-toggle {
    color: var(--light) !important;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    height: 100%;
    vertical-align: middle;
    cursor: pointer;
}
.dropdown-toggle:hover {
    color: var(--accent) !important;
    background: var(--glass-bg);
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    background: rgba(10, 10, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 10px 0;
    margin-top: 10px;
    min-width: 240px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.dropdown-menu.show {
    display: block;
}
.dropdown-item {
    display: block;
    white-space: nowrap;
    color: var(--light) !important;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin: 2px 10px;
    transition: all 0.3s;
}
.dropdown-item:hover {
    background: var(--glass-bg) !important;
    color: var(--secondary) !important;
}

/* === CTA Button === */
.btn-cta {
    background: linear-gradient(135deg, #FF6B35, #E55A2B) !important;
    color: var(--light) !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    transition: all 0.3s !important;
}
.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5) !important;
}

/* === Hero Section === */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    background: var(--gradient-bg);
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(0, 204, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}
.hero-badge {
    display: inline-block;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 24px;
}
.hero-title { margin-bottom: 24px; font-size: 3rem; font-weight: 800; line-height: 1.1; }
.hero-subtitle { font-size: 1rem; color: var(--light-muted); margin-bottom: 40px; max-width: 540px; line-height: 1.6; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-image-main { width: 100%; border-radius: var(--radius-xl); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.hero-floating-card {
    position: absolute;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

/* === Buttons === */
.btn-primary-custom {
    display: inline-block;
    background: var(--primary);
    color: var(--light);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}
.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.5);
}
.btn-secondary-custom {
    display: inline-block;
    background: transparent;
    color: var(--light);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s;
}
.btn-secondary-custom:hover {
    background: var(--glass-bg);
    color: var(--accent);
    border-color: var(--accent);
}

/* === Glass Card === */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.2);
}

/* === Service Card === */
.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: left;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.25);
}
.service-card .icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s;
}
.service-card:hover .icon {
    background: var(--primary);
    transform: rotateY(180deg);
}
.service-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--light-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; flex-grow: 1; }
.service-card .link {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.service-card .link:hover { color: var(--secondary); }

/* === Service Detail === */
.service-detail-image { width: 100%; border-radius: var(--radius-xl); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.check-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; color: var(--light-muted); }
.check-item .check { color: var(--success); font-weight: 700; flex-shrink: 0; }

/* === Section === */
.section {
    padding: 100px 40px;
    position: relative;
    z-index: 1;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 { margin-bottom: 16px; font-size: 2.25rem; font-weight: 800; }
.section-header p { color: var(--light-muted); max-width: 600px; margin: 0 auto; font-size: 1.125rem; line-height: 1.6; }

/* === Why Section === */
.why-card {
    text-align: left;
    padding: 32px 24px;
}
.why-card .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.why-card h3 { margin-bottom: 12px; font-size: 1.25rem; font-weight: 700; }
.why-card p { color: var(--light-muted); font-size: 0.95rem; line-height: 1.6; }

/* === Testimonials === */
.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: Georgia, serif;
}
.testimonial-card .text {
    font-style: italic;
    color: var(--light-muted);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}
.testimonial-card .author { font-weight: 700; font-size: 1rem; }
.testimonial-card .role { color: var(--accent); font-size: 0.9rem; }

/* === CTA Section === */
.cta-section {
    background: var(--gradient-bg);
    padding: 100px 0;
    text-align: center;
    position: relative;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* === Contact Form === */
.contact-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(20px);
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--light);
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    font-size: 15px;
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #8896AB; }
.validation-message { color: var(--secondary); font-size: 0.8rem; margin-top: 4px; display: block; }
.form-status {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.form-status-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--success);
}
.form-status-error {
    background: rgba(255, 107, 53, 0.12);
    border: 1px solid rgba(255, 107, 53, 0.4);
    color: var(--secondary);
}

/* === Footer === */
.main-footer {
    background: #111128;
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand p { color: var(--light-muted); margin-top: 12px; font-size: 0.95rem; }
.footer-col h4 { margin-bottom: 20px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--light-muted); font-size: 14px; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    text-align: center;
    color: var(--light-muted);
    font-size: 13px;
}

/* === Animations === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* === Floating Elements === */
.floating { animation: float 4s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === Process Steps === */
.process-step {
    text-align: center;
    padding: 32px;
    position: relative;
}
.process-step .step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* === Values === */
.value-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
}
.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}
.value-card .icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

/* === Grid Helpers === */
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.col { flex: 1; padding: 0 10px; }
.col-2 { flex: 0 0 16.66%; padding: 0 10px; }
.col-3 { flex: 0 0 25%; padding: 0 10px; }
.col-4 { flex: 0 0 33.33%; padding: 0 10px; }
.col-6 { flex: 0 0 50%; padding: 0 10px; }
.col-8 { flex: 0 0 66.66%; padding: 0 10px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 40px; }
.text-center { text-align: center; }
.text-gradient { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* === Focus Outline Fix === */
:focus { outline: none !important; }
:focus:not(:focus-visible) { outline: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
h1:focus, h2:focus, h3:focus, h4:focus, p:focus, div:focus, section:focus, span:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* === Responsive === */
@media (max-width: 991px) {
    .navbar-nav { display: none; }
    .navbar-nav.show { display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10, 10, 26, 0.98); padding: 20px; z-index: 1049; }
    .navbar-nav.show .nav-item,
    .navbar-nav.show .nav-link { height: auto !important; }
    .navbar-nav.show .nav-item { justify-content: flex-start; width: 100%; }
    .navbar-nav.show .nav-link { width: 100%; justify-content: flex-start; }
    .navbar-nav .dropdown { width: 100%; flex-direction: column; align-items: flex-start; }
    .navbar-nav .dropdown-menu {
        position: static;
        margin-top: 4px;
        padding-left: 24px;
        box-shadow: none;
        border: none;
        border-radius: var(--radius-md);
    }
    .navbar-nav .dropdown-menu .dropdown-item { display: block; margin: 2px 10px 2px 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.25rem; }
    .display-xl { font-size: 2.5rem; }
    .display { font-size: 2rem; }
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.625rem; }
    .col-8 { flex: 0 0 100%; }
    .col-4, .col-3 { flex: 0 0 50%; }
}
@media (max-width: 576px) {
    .container { padding: 0 20px; }
    .section { padding-left: 20px; padding-right: 20px; }
    .col-4, .col-3, .col-6, .col-8 { flex: 0 0 100%; }
    .hero-title { font-size: 1.75rem; }
    .display { font-size: 1.5rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta a { width: 100%; text-align: center; }
}

/* === Blazor Error UI === */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
#blazor-error-ui .reload {
    font-size: 0.85rem;
    margin-right: 10px;
    text-decoration: underline;
    font-weight: 500;
}

/* === WhatsApp Floating Button === */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}
.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}
.whatsapp-float .tooltip {
    position: absolute;
    right: 72px;
    background: white;
    color: #333;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.whatsapp-float:hover .tooltip {
    opacity: 1;
}

/* === Page Hero (inner pages) === */
.page-hero {
    padding-top: 100px;
    padding-bottom: 80px;
    background: var(--gradient-bg);
    position: relative;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 80%, rgba(0, 102, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .whatsapp-float svg { width: 26px; height: 26px; }
}
