:root {
    --primary-color: #0a58ca;
    --primary-dark: #084298;
    --primary-light: #3b71ca;
    --secondary-color: #6c757d;
    --dark-bg: #0a1c2f;
    --dark-bg-light: #0f2a42;
    --light-bg: #f8f9fa;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --blue-gradient-start: #0a58ca;
    --blue-gradient-end: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #0a1c2f 0%, #0f2a42 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.navbar-brand i {
    color: var(--primary-light);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    color: rgba(255,255,255,0.9) !important;
}

.nav-link:hover {
    color: var(--primary-light) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0a58ca 0%, #1e40af 50%, #1e3a8a 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section .text-primary {
    color: #93c5fd !important;
}

.min-vh-75 {
    min-height: 75vh;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.stat-card p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Audience Cards */
.audience-section {
    background: white;
}

.audience-card {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-bottom: 3px solid transparent;
}

.audience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-bottom-color: var(--primary-color);
}

.audience-card i {
    color: var(--primary-color);
}

/* Practice Cards */
.practice-areas {
    background: var(--light-bg);
}

.practice-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    border-bottom: 3px solid transparent;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    border-bottom-color: var(--primary-color);
}

.practice-card i {
    color: var(--primary-color);
}

.practice-card h4 {
    margin-bottom: 15px;
    font-weight: 600;
    color: #1a2a3a;
}

.practice-card p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #e6f0ff 0%, #d4e4ff 100%);
    position: relative;
}

.contact-section h2 {
    color: #1e3a8a;
}

.contact-section .lead {
    color: #2c3e50;
}

.contact-section .contact-info h6 {
    color: #1e3a8a;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(10,88,202,0.25);
}

/* Practice Area Hero */
.practice-area-hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.practice-area-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

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

.tort-bg {
    background-image: linear-gradient(135deg, #0a58ca 0%, #4f46e5 100%);
}

.commercial-bg {
    background-image: linear-gradient(135deg, #0a58ca 0%, #0891b2 100%);
}

.contract-bg {
    background-image: linear-gradient(135deg, #0a58ca 0%, #0d9488 100%);
}

.criminal-bg {
    background-image: linear-gradient(135deg, #0a58ca 0%, #16a34a 100%);
}

.family-bg {
    background-image: linear-gradient(135deg, #0a58ca 0%, #d97706 100%);
}

.employment-bg {
    background-image: linear-gradient(135deg, #0a58ca 0%, #059669 100%);
}

.realestate-bg {
    background-image: linear-gradient(135deg, #0a58ca 0%, #7c3aed 100%);
}

/* Sidebar Cards */
.sidebar-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.sidebar-card h4 {
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    color: #1e3a8a;
}

.sidebar-card a {
    color: var(--primary-color);
}

.sidebar-card a:hover {
    color: var(--primary-dark);
}

/* Footer - Enhanced */
.footer {
    background: linear-gradient(135deg, #0a1c2f 0%, #0f2a42 50%, #0a1c2f 100%);
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0a58ca, #3b82f6, #0a58ca);
}

.footer h5, .footer h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer h5::after, .footer h6::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #0a58ca, #3b82f6);
    border-radius: 2px;
}

.footer a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: #cbd5e1;
}

.footer a:hover {
    color: #3b82f6 !important;
    transform: translateX(5px);
    display: inline-block;
}

.footer .list-unstyled li {
    margin-bottom: 0.75rem;
}

.footer .list-unstyled li a {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer .list-unstyled li a:hover {
    transform: translateX(5px);
}

.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
}

.social-links a:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: white !important;
}

.footer hr {
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), transparent);
    height: 1px;
    border: none;
    margin: 2rem 0;
}

.footer .text-muted {
    color: #94a3b8 !important;
}

/* Blue Text Elements */
.text-primary {
    color: #0a58ca !important;
}

.text-primary-dark {
    color: #084298 !important;
}

.text-primary-light {
    color: #3b71ca !important;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, #0a58ca, #3b82f6);
}

/* Blue Links */
a {
    color: #0a58ca;
    transition: color 0.3s ease;
}

a:hover {
    color: #084298;
}

/* Blue Buttons */
.btn-primary {
    background: linear-gradient(135deg, #0a58ca, #3b82f6);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(10,88,202,0.4);
    background: linear-gradient(135deg, #084298, #0a58ca);
}

.btn-outline-primary {
    color: #0a58ca;
    border-color: #0a58ca;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #0a58ca, #3b82f6);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10,88,202,0.3);
}

/* Blue Cards */
.card {
    border-radius: 12px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card-header.bg-primary {
    background: linear-gradient(135deg, #0a58ca, #3b82f6) !important;
}

/* Blue Alert */
.alert-primary {
    background: linear-gradient(135deg, #e6f0ff, #d4e4ff);
    border-left: 4px solid #0a58ca;
    color: #084298;
}

/* Blue Progress Bar */
.progress-bar {
    background: linear-gradient(90deg, #0a58ca, #3b82f6);
    border-radius: 4px;
}

/* Blue Borders */
.border-primary {
    border-color: #0a58ca !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    
    .stats-grid {
        margin-top: 30px;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card h3 {
        font-size: 1.8rem;
    }
    
    .practice-area-hero {
        padding: 50px 0;
    }
    
    .practice-area-hero h1 {
        font-size: 2rem;
    }
    
    .footer h5::after, .footer h6::after {
        width: 30px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-section, .audience-card, .practice-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: #0a58ca;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0a58ca, #3b82f6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(10,88,202,0.3);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #084298, #0a58ca);
}

/* Blue Badges */
.badge-primary {
    background: linear-gradient(135deg, #0a58ca, #3b82f6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Blue Focus Ring */
:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(10,88,202,0.3);
}
