﻿/* Complete Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: #0F172A !important;
    color: white !important;
    line-height: 1.5;
}

/* Modern Color Palette & Variables */
:root {
    --electric-blue: #00D4FF;
    --neon-green: #00FF88;
    --hot-pink: #FF0080;
    --purple-primary: #8B5CF6;
    --dark-bg: #0F172A;
    --card-glass: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.12);
    --orange-accent: #f97316;
}

/* Remove all default ASP.NET and browser styling */
body {
    background: var(--dark-bg) !important;
    color: white !important;
}

/* Override any container or layout styles */
.container, main, section, div {
    box-sizing: border-box;
}

section {
    width: 100%;
    max-width: none;
}

/* Animated Mesh Gradient Background */
.hero-gradient {
    background: linear-gradient(-45deg, 
        #0F172A 0%, 
        #1e1b4b 25%, 
        #312e81 50%, 
        #1e40af 75%, 
        #0F172A 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    animation: floatingOrbs 20s ease-in-out infinite;
}

/* Fixed keyframes for Razor pages - use @@ instead of @ */
@@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@@keyframes floatingOrbs {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.02);
}

/* Neon Accents */
.neon-border {
    border: 2px solid var(--electric-blue) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.neon-text {
    color: var(--electric-blue) !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.neon-button {
    background: linear-gradient(135deg, var(--electric-blue), var(--purple-primary)) !important;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
    border: none;
    color: white;
}

/* UPDATED: Remove translateY, keep scale and glow effects */
.neon-button:hover {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    transform: scale(1.05);
}

/* Micro Animations */
@@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating { 
    animation: float 3s ease-in-out infinite; 
}

@@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 136, 0.6); }
}

.pulse-glow { 
    animation: pulse-glow 2s ease-in-out infinite; 
}

/* Modern Typography */
.heading-xl {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 0.9;
    background: linear-gradient(135deg, #fff, var(--electric-blue), var(--neon-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Navigation */
.nav-modern {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--electric-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--electric-blue), var(--neon-green));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Stats Cards */
.stat-card {
    background: linear-gradient(135deg, 
        rgba(0, 212, 255, 0.1), 
        rgba(139, 92, 246, 0.1)
    );
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Pricing Cards */
.pricing-popular {
    background: linear-gradient(135deg, 
        rgba(255, 0, 128, 0.15), 
        rgba(0, 212, 255, 0.15)
    );
    border: 2px solid var(--hot-pink);
    position: relative;
    overflow: hidden;
}

.pricing-popular::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 0, 128, 0.1), transparent);
    animation: rotate 10s linear infinite;
}

@@keyframes rotate {
    100% { transform: rotate(360deg); }
}

/* File Upload */
.upload-area {
    background: rgba(0, 212, 255, 0.05);
    border: 2px dashed var(--electric-blue);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
}

.upload-area.dragover {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--neon-green);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.3);
}

/* UPDATED: Hover Effects - Remove translateY, keep scale */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Form Inputs */
input, select, textarea {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--electric-blue) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3) !important;
    outline: none !important;
}

/* Select dropdown styling */
select option {
    background: #1f2937 !important;
    color: white !important;
}

/* Modal Styles */
.modal-overlay {
    backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background: var(--card-glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
}

@@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ADDED: Orange button styles for cancelled page */
.orange-button {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    border: none;
    color: white;
}

.orange-button:hover {
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.6);
    transform: scale(1.05);
}

/* Mobile Responsive */
@@media (max-width: 768px) {
    .heading-xl { 
        font-size: 3rem; 
    }
    
    .hero-gradient {
        padding-top: 2rem;
    }
    
    .glass-card {
        border-radius: 16px;
    }
    
    .neon-button, .orange-button {
        padding: 1rem 2rem;
    }
}

@@media (max-width: 640px) {
    .heading-xl {
        font-size: 2.5rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--electric-blue), var(--purple-primary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--neon-green), var(--electric-blue));
}

/* Button enhancements */
button {
    line-height: normal !important;
    box-sizing: border-box !important;
    cursor: pointer;
    font-family: inherit;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Link styling */
a {
    text-decoration: none !important;
    color: inherit;
}

/* Footer styling */
footer {
    margin: 0 !important;
    padding: 4rem 0 !important;
}

/* Loading states */
.spinner {
    animation: spin 1s linear infinite;
}

@@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid var(--electric-blue);
    outline-offset: 2px;
}

button:focus, a:focus {
    outline: 2px solid var(--electric-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@@media (prefers-contrast: high) {
    .glass-card {
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .neon-text {
        color: #ffffff !important;
        text-shadow: none;
    }
}

/* Reduced motion support */
@@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating {
        animation: none;
    }
    
    .pulse-glow {
        animation: none;
    }
    
    .hero-gradient {
        animation: none;
    }
}

/* Print styles */
@@media print {
    .nav-modern,
    #mobileMenu,
    .neon-button,
    .orange-button,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .glass-card {
        background: white !important;
        border: 1px solid #ccc !important;
    }
}

/* Fix for any remaining specificity issues */
body * {
    color: inherit;
}

.text-white {
    color: white !important;
}

.text-gray-300 {
    color: rgb(209 213 219) !important;
}

.text-gray-400 {
    color: rgb(156 163 175) !important;
}