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

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary-color: #d97706;
    --success-color: #059669;
    --text-dark: #111827;
    --text-light: #374151;
    --text-muted: #9ca3af;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --hero-text-light: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    scroll-behavior: smooth;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

/* Hero Section specific text styling */
.hero-section h1,
.hero-section .display-4 {
    color: var(--white) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    color: var(--white) !important;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.display-4 {
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.6;
}

/* Hero Section specific text styling */
.hero-section h1,
.hero-section .display-4 {
    color: var(--white) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    color: var(--white) !important;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced Navigation */
.navbar {
    background: rgba(30, 64, 175, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(30, 64, 175, 0.98) !important;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--white) !important;
    text-decoration: none;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section Enhancement */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 8rem 0 6rem;
    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="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="25" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="25" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Enhanced Cards */
.card {
    background: var(--white);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    opacity: 1;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 400;
}

/* Enhanced Buttons */
.btn {
    font-weight: 600;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: var(--shadow-md);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline-light {
    border: 3px solid rgba(255, 255, 255, 1);
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    text-shadow: none;
}

.btn-outline-light:focus {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    text-shadow: none;
}

.btn-secondary {
    background: var(--text-muted);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--white);
}

.btn-success {
    background: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background: #047857;
    color: var(--white);
}

/* Badge Enhancements */
.badge {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: var(--white);
}

.badge.bg-secondary {
    background-color: var(--text-dark) !important;
    color: var(--white);
}

.badge.bg-success {
    background-color: var(--success-color) !important;
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Section Enhancements */
section {
    padding: 5rem 0;
}

.bg-light {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(249, 250, 251, 0.5) 100%) !important;
}

/* Form Enhancements */
.form-control,
.form-select {
    border: 2px solid #d1d5db;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition);
    font-size: 1rem;
    color: var(--text-dark);
    background-color: var(--white);
    font-weight: 400;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    outline: none;
    background-color: var(--white);
    color: var(--text-dark);
}

.form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

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

/* List Enhancements */
.list-group-item {
    border: none;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: var(--transition);
    color: var(--text-dark);
}

.list-group-item:hover {
    background: rgba(30, 64, 175, 0.05);
    padding-left: 1rem;
    color: var(--text-dark);
}

/* Footer Enhancement */
footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #0f172a 100%) !important;
    color: var(--white);
    margin-top: auto;
    padding: 2rem 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 3rem;
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
@keyframes shimmer {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

.shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #eff1f3 4%, #e2e2e2 25%, #eff1f3 36%);
    background-size: 1000px 100%;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.text-hero-light {
    color: var(--hero-text-light) !important;
    font-weight: 400;
}

.text-contrast-high {
    color: var(--text-dark) !important;
    font-weight: 500;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-lg);
}

.glass-effect .card-body {
    color: var(--text-dark);
}

.glass-effect .text-muted {
    color: var(--text-muted) !important;
}

.stat-item.glass-effect {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}
