:root {
    --primary-color: #4a4a4a;
    --secondary-color: #3d4f7c;
    --accent-color: #5b6ea8;
    --light-bg: #f7fafc;
    --card-bg: #e8edf5;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand i {
    font-size: 24px;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.nav-link {
    color: var(--primary-color) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 4px;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: #E8EDF5;
    border: 2px solid #E8EDF5;
    transform: translateY(-2px);
}

.nav-link:active, .nav-link.active {
    background-color: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--secondary-color);
}

/* Content Section */
.content-section {
    padding: 40px 0 80px;
    background: white;
    min-height: 60vh;
}

.content-section h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.content-section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.content-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
}

/* Hero Section */
.hero-section {
    background: url('../legal_professional.png') center/cover no-repeat;
    padding: 80px 0;
    text-align: left;
}

.hero-content-box {
    width: 400px;
    max-width: 100%;
    margin-left: 125px;
}

.hero-section h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.hero-section .subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
}

.hero-description {
    max-width: 600px;
    margin: 0 0 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.6;
}

.btn-primary-custom {
    background: var(--secondary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: white;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: white;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.feature-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.feature-icon {
    width: 100%;
    height: 150px;
    background: var(--light-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--card-bg);
}

.feature-icon i {
    font-size: 48px;
    color: #cbd5e0;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: white;
    font-size: 24px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.copyright {
    opacity: 0.6;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-content-box {
        width: 300px;
        margin-left: 5px;
    }

    .content-section {
        padding: 60px 0;
    }

    .navbar-collapse {
        background: white;
        padding: 15px;
        margin-top: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
}

@media (max-width: 576px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
