@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --brand-primary: #10b981;
    --brand-secondary: #3b82f6;
    --surface-dark: #111827;
    --surface-light: #f9fafb;
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

#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;
}

/* Hero Section */
.hero-gradient {
    background-image: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.8) 100%), url('/assets/images/homepage.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.gradient-text {
    background: linear-gradient(to right, #10b981, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav-link {
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease-out;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #10b981;
    transition: width 0.3s ease-out;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease-out !important;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

/* Cards */
.feature-card {
    transition: all 0.4s ease-out;
}

.feature-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease-out;
}

.stat-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* Utilities */
.backdrop-blur-lg {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.text-white {
    color: white !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.font-weight-medium {
    font-weight: 500 !important;
}

.h-100 {
    height: 100%;
}

.relative {
    position: relative;
}

.text-secondary {
    color: #6b7280 !important;
}

/* Background Sections */
.gradient-surface {
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 50%, #dbeafe 100%);
}

.dark-gradient {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.premium-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #dbeafe 100%);
    border: 2px solid #10b981;
}

.icon-wrapper {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    width: fit-content;
    border-radius: 16px;
    padding: 1rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 1s ease-out;
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -10px, 0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.counter {
    animation: countUp 1s ease-out;
}

/* Hero Background Elements */
.hero-bg-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
}

.hero-bg-1 {
    top: 25%;
    left: 25%;
    width: 256px;
    height: 256px;
    background: rgba(16, 185, 129, 0.1);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.hero-bg-2 {
    bottom: 25%;
    right: 25%;
    width: 384px;
    height: 384px;
    background: rgba(16, 185, 129, 0.05);
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 2s;
}

/* MudBlazor Overrides */
.mud-appbar {
    position: fixed !important;
    z-index: 1300 !important;
}

.mud-main-content {
    padding-top: 64px;
}

/* Page Sections */
.page-section {
    padding: 5rem 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive utilities */
@media (max-width: 600px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
    }
}