/* Modern Custom Styles for Chimwezi Redesign */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@700;800&display=swap');

:root {
    --primary-modern: #4F46E5;
    /* Indigo */
    --accent-modern: #10B981;
    /* Emerald */
    --text-dark: #1F2937;
    --text-light: #F9FAFB;
    --glass-background: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --card-radius: 20px;
    --modern-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --modern-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', sans-serif !important;
    color: var(--text-dark);
}

h1,
h2,
h3,
h4,
.title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
}

/* Glassmorphism Navbar */
.navbar.navbar-transparent {
    transition: all 0.3s ease;
}

.navbar:not(.navbar-transparent) {
    background: var(--glass-background) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--modern-shadow) !important;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

/* Hero Section Enhancements */
.page-header {
    background-size: cover;
    background-position: center center;
    position: relative;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.4) 0%, rgba(16, 185, 129, 0.2) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header .title {
    font-size: 3.5rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Modernized Main Raised Section */
.main-raised {
    margin: -80px 30px 0px !important;
    border-radius: var(--card-radius) !important;
    box-shadow: var(--modern-shadow) !important;
    border: 1px solid var(--glass-border);
}

/* Service Cards / Features */
.features .info {
    padding: 30px 20px !important;
    background: white;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.features .info:hover {
    transform: translateY(-10px);
    box-shadow: var(--modern-shadow-hover) !important;
}

.features .icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
}

.features .icon i {
    font-size: 32px !important;
}

.icon-info {
    background: rgba(79, 70, 229, 0.1) !important;
    color: var(--primary-modern) !important;
}

.icon-success {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--accent-modern) !important;
}

.icon-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #EF4444 !important;
}

.icon-warning {
    background: rgba(245, 158, 11, 0.1) !important;
    color: #F59E0B !important;
}

/* Buttons */
.btn.btn-primary,
.btn.bg-primary {
    background-color: var(--primary-modern) !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39) !important;
    transition: all 0.2s ease;
}

.btn.btn-primary:hover,
.btn.bg-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23) !important;
}

/* Profile / About Me specific */
.modern-avatar img {
    max-width: 180px;
    margin-top: -90px;
    transition: transform 0.3s ease;
}

.modern-avatar img:hover {
    transform: scale(1.05);
}

.modern-title {
    margin-top: 15px !important;
    font-size: 2.2rem !important;
}

.modern-category {
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    color: var(--primary-modern) !important;
    margin-bottom: 20px !important;
}

.social-links .btn {
    margin: 0 10px !important;
    font-size: 20px !important;
}

.max-width-800 {
    max-width: 800px;
}

.opacity-8 {
    opacity: 0.8;
}

.modern-subtitle {
    font-weight: 500 !important;
    opacity: 0.9;
    margin-top: 0 !important;
}

.profile-page .avatar img {
    box-shadow: var(--modern-shadow) !important;
    border: 4px solid white;
}

.profile-tabs .nav-pills {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    padding: 8px;
}

.profile-tabs .nav-pills .nav-link {
    border-radius: 12px !important;
    margin: 4px !important;
}

.profile-tabs .nav-pills .nav-link.active {
    background-color: var(--primary-modern) !important;
    box-shadow: var(--modern-shadow) !important;
}

/* Footer */
footer.footer {
    padding: 40px 0 !important;
    background: #F3F4F6 !important;
    border-top: 1px solid #E5E7EB;
}

.footer .copyright {
    color: #6B7280;
}

/* Portal & Utilities */
.glass-card {
    background: var(--glass-background) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--modern-shadow) !important;
}

.modern-portal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.8) 100%) !important;
}

.modern-input-group {
    background: white;
    border-radius: 12px;
    padding: 5px;
    border: 1px solid #E5E7EB;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.modern-input-group .form-control {
    border: none !important;
    padding-left: 10px !important;
}

.glass-icon {
    background: transparent !important;
    border: none !important;
    color: var(--primary-modern) !important;
}

.modern-hr {
    border-top: 2px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    margin: 30px auto;
}

.btn-block {
    display: block;
    width: 100%;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.p-5 {
    padding: 3rem !important;
}