/* Modern Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Navbar Customization */
.navbar {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    background-color: var(--white);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(37, 99, 235, 0.9), rgba(30, 64, 175, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Card Styling */
.feature-card {
    border: none;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    padding: 2rem;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background-color: #111827;
    color: #9ca3af;
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .hero-section {
        padding: 6rem 0 4rem;
        background-position: center top;
        min-height: 60vh !important;
    }

    .hero-section h1 {
        font-size: 2rem !important;
        /* Smaller heading */
        margin-bottom: 1rem !important;
    }

    .hero-section p.lead {
        font-size: 1.1rem !important;
        margin-bottom: 2rem !important;
    }

    .hero-section .d-flex {
        flex-direction: column;
        width: 100%;
        gap: 1rem !important;
    }

    .hero-section .btn {
        width: 100%;
        padding: 1rem !important;
        font-size: 1rem;
    }

    /* Adjust stats section on mobile */
    .hero-section .row.mt-5 {
        margin-top: 2rem !important;
        padding-top: 2rem !important;
    }

    .display-6 {
        font-size: 1.5rem !important;
    }
}