/* EonMatrix Solutions - Modern Styling */

:root {
    --eon-primary: #7B2CBF;
    --eon-secondary: #9D4EDD;
    --eon-purple-light: #C77DFF;
    --eon-purple-dark: #5A189A;
    --eon-accent: #E0AAFF;
    --eon-gradient: linear-gradient(135deg, var(--eon-primary) 0%, var(--eon-secondary) 100%);
}

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
    background: var(--eon-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.4);
    background: linear-gradient(135deg, var(--eon-purple-dark) 0%, var(--eon-primary) 100%);
}

.btn-outline-primary {
    color: var(--eon-primary);
    border-color: var(--eon-primary);
}

.btn-outline-primary:hover {
    background: var(--eon-gradient);
    border-color: var(--eon-primary);
}

.bg-primary {
    background: var(--eon-gradient) !important;
}

.text-primary {
    color: var(--eon-primary) !important;
}

/* Modern Navbar Styles */
.modern-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    min-height: 80px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
}

.modern-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    width: 100%;
}

/* Brand Section */
.navbar-brand-modern {
    flex-shrink: 0;
}

.brand-link {
    text-decoration: none;
    color: inherit;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 200px;
    height: 48px;
    border-radius: 12px;
    /* object-fit: cover; */
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.2);
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(123, 44, 191, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--eon-primary);
    margin: 0;
}

.brand-tagline {
    font-size: 0.875rem;
    color: var(--eon-secondary);
    font-weight: 500;
    margin: 0;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    flex: 1;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link-modern {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link-modern:hover {
    color: var(--eon-primary);
    background: rgba(123, 44, 191, 0.08);
    transform: translateY(-1px);
}

.nav-link-modern.active {
    color: var(--eon-primary);
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.1), rgba(157, 78, 221, 0.05));
}

.nav-indicator {
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--eon-gradient);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link-modern.active .nav-indicator {
    width: 70%;
}

.nav-link-modern:hover .nav-indicator {
    width: 50%;
}

/* Right Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--eon-gradient);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(123, 44, 191, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 44, 191, 0.4);
    color: white;
}

/* User Menu */
.user-menu-container {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(123, 44, 191, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    color: #374151;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-menu-trigger:hover {
    background: rgba(123, 44, 191, 0.05);
    border-color: var(--eon-primary);
    color: var(--eon-primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--eon-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.user-name {
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Dropdown Menu Modern */
.dropdown-menu-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 280px;
}

.dropdown-header .user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(123, 44, 191, 0.05);
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    background: var(--eon-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name-large {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.user-email {
    font-size: 0.875rem;
    color: #6b7280;
}

.dropdown-item-modern {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.dropdown-item-modern:hover {
    background: rgba(123, 44, 191, 0.08);
    color: var(--eon-primary);
    transform: translateX(4px);
}

.logout-btn {
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 0.95rem;
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 3px;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--eon-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover .hamburger-line {
    background: var(--eon-secondary);
}

/* Mobile Menu */
.mobile-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.mobile-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.mobile-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--eon-primary);
}

.mobile-brand-tagline {
    font-size: 0.8rem;
    color: var(--eon-secondary);
    font-weight: 500;
}

.btn-close-modern {
    background: transparent;
    border: none;
    color: var(--eon-primary);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-close-modern:hover {
    background: rgba(123, 44, 191, 0.1);
    color: var(--eon-secondary);
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.mobile-nav-item {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(123, 44, 191, 0.08);
    color: var(--eon-primary);
    transform: translateX(8px);
}

.cta-mobile {
    background: var(--eon-gradient) !important;
    color: white !important;
    margin-top: 1rem;
}

.cta-mobile:hover {
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 44, 191, 0.3);
}

/* Mobile User Section */
.mobile-user-section {
    border-top: 1px solid rgba(123, 44, 191, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(123, 44, 191, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.mobile-user-avatar {
    width: 48px;
    height: 48px;
    background: var(--eon-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.mobile-user-details {
    display: flex;
    flex-direction: column;
}

.mobile-user-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.mobile-user-role {
    font-size: 0.875rem;
    color: #6b7280;
}

.mobile-user-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.logout-mobile {
    background: transparent !important;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
}

.logout-mobile:hover {
    background: rgba(220, 53, 69, 0.08) !important;
    color: #dc3545 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .cta-button {
        display: none;
    }
}

@media (max-width: 768px) {
    .modern-navbar {
        min-height: 70px;
    }
    
    .navbar-content {
        padding: 0.75rem 0;
    }
    
    .brand-logo {
        width: 200px;
        height: 40px;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
    
    .brand-tagline {
        font-size: 0.8rem;
    }
}

/* Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
    .modern-navbar {
        animation: slideDown 0.5s ease-out;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Navbar Styling */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar-brand img {
    filter: brightness(0) invert(1);
}

.nav-link {
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--eon-accent) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--eon-accent);
    border-radius: 2px;
}

/* Main Content */
.main-content {
    padding-top: 80px; /* Account for fixed modern navbar */
    min-height: calc(100vh - 80px);
}

/* Enhanced Animations */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUpDelay {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glowText {
    0%, 100% { text-shadow: 0 0 20px rgba(199, 125, 255, 0.5); }
    50% { text-shadow: 0 0 30px rgba(199, 125, 255, 0.8); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
    40%, 43% { transform: translate3d(0,-15px,0); }
    70% { transform: translate3d(0,-7px,0); }
    90% { transform: translate3d(0,-2px,0); }
}

.fade-in-left { 
    animation: fadeInLeft 1s ease-out; 
}

.fade-in-right { 
    animation: fadeInRight 1s ease-out; 
}

.slide-up-delay { 
    animation: slideUpDelay 0.8s ease-out 0.3s both; 
}

.float-animation { 
    animation: floatAnimation 6s ease-in-out infinite; 
}

.pulse-hover:hover { 
    animation: pulse 1s infinite; 
}

.glow-text { 
    animation: glowText 2s ease-in-out infinite; 
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    animation: floatAnimation 6s ease-in-out infinite;
    z-index: 1;
}

.shape-1 { 
    width: 60px; 
    height: 60px; 
    top: 20%; 
    left: 10%; 
    animation-delay: 0s; 
}

.shape-2 { 
    width: 40px; 
    height: 40px; 
    top: 60%; 
    right: 15%; 
    animation-delay: 2s; 
}

.shape-3 { 
    width: 80px; 
    height: 80px; 
    bottom: 20%; 
    left: 20%; 
    animation-delay: 4s; 
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(255,255,255,0.7);
    animation: floatAnimation 4s ease-in-out infinite;
}

.icon-1 { top: 10%; left: 10%; animation-delay: 0s; }
.icon-2 { top: 20%; right: 10%; animation-delay: 1s; }
.icon-3 { bottom: 30%; left: 20%; animation-delay: 2s; }
.icon-4 { bottom: 10%; right: 20%; animation-delay: 3s; }

/* Hero Section */
.hero-section {
    background: var(--eon-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-logo-container {
    position: relative;
    z-index: 2;
}

.hero-logo-large {
    width: 300px;
    height: 300px;
    animation: floatAnimation 6s ease-in-out infinite;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.text-gradient {
    background: linear-gradient(135deg, var(--eon-accent), white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Enhanced Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(123, 44, 191, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(123, 44, 191, 0.2);
    border-color: var(--eon-secondary);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--eon-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.service-icon:hover {
    animation: bounce 1s;
    transform: scale(1.1);
}

.service-icon-large {
    width: 100px;
    height: 100px;
    background: var(--eon-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.service-detail-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(123, 44, 191, 0.15);
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:before {
    content: '?';
    position: absolute;
    left: 0;
    color: var(--eon-secondary);
    font-weight: bold;
}

/* Enhanced Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.1), rgba(157, 78, 221, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(123, 44, 191, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(123, 44, 191, 0.2);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Technology Categories */
.tech-category {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(123, 44, 191, 0.15);
}

.tech-category h5 {
    color: var(--eon-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.tech-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-category li {
    padding: 0.25rem 0;
    color: #666;
}

/* Contact Form */
.contact-info-item {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(123, 44, 191, 0.15);
}

/* Form Controls */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--eon-secondary);
    box-shadow: 0 0 0 0.25rem rgba(123, 44, 191, 0.15);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.card-body {
    padding: 2rem;
}

/* Feature List */
.feature-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-item i {
    transition: all 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(25, 135, 84, 0.05));
    color: #0a3622;
    border-left: 4px solid #198754;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    color: #58151c;
    border-left: 4px solid #dc3545;
}

/* Footer */
footer a:hover {
    color: var(--eon-accent) !important;
    transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .service-card, .service-detail-card {
        padding: 1.5rem;
    }
    
    .hero-logo-large {
        width: 200px;
        height: 200px;
    }
    
    .floating-shape {
        display: none;
    }
    
    .floating-icons {
        display: none;
    }
}

/* Loading Animations */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Error UI */
#blazor-error-ui {
    position: fixed;
    top: 100px;
    right: 20px;
    max-width: 400px;
    z-index: 1050;
    display: none;
}

#blazor-error-ui.show {
    display: block;
}

/* Utilities */
.shadow-purple {
    box-shadow: 0 10px 30px rgba(123, 44, 191, 0.2) !important;
}

.bg-gradient-purple {
    background: var(--eon-gradient) !important;
}

/* Animation Classes */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}