/* Global Styles */
:root {
    --primary-color: #002147;
    /* Deep Blue */
    --secondary-color: #4a0404;
    /* Dark Maroon */
    --accent-color: #C5A059;
    /* Soft Gold */
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 400;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--accent-color);
}

.btn-contact {
    padding: 8px 20px;
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    color: var(--accent-color);
}

.btn-contact:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 33, 71, 0.9), rgba(74, 4, 4, 0.8)), url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    /* Fallback generic legal background if needed, but gradient is main */
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 5px solid var(--accent-color);
    max-width: 400px;
}

.subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.statement {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* About Section */
.about {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 3rem;
}

.about-text {
    text-align: left;
    font-size: 1.1rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-profile-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--accent-color);
}

.about-profile-card img {
    transition: transform 0.5s ease;
}

.about-profile-card:hover img {
    transform: scale(1.05);
}

/* Portfolio Section Styles */
.portfolio {
    background-color: var(--light-bg);
}

.portfolio-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.portfolio-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 33, 71, 0.9));
    padding: 20px;
    color: var(--white);
    font-weight: 600;
}

.card-info {
    padding: 25px;
}

.card-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.card-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.author-tag {
    font-size: 0.85rem;
    color: var(--primary-color);
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Responsive Grid fix */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }
}

.education-card {
    background-color: var(--white);
    /* Changed to white to pop against the textured background if needed, but original was light-bg. Let's keep card white/light */
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.education-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.education-card i {
    color: var(--accent-color);
}

/* Expertise Section */
.expertise {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.expertise-card {
    background-color: var(--white);
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-bottom: 3px solid transparent;
}

.expertise-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--accent-color);
}

.expertise-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.expertise-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* Experience Section */
.experience {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--accent-color);
    opacity: 0.3;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    width: 50%;
    padding: 0 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    top: 5px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    background-color: var(--white);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.timeline-item:hover .timeline-content {
    transform: scale(1.03);
    border-top-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    line-height: 1.3;
}

.role-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Law Firm Section */
.law-firm {
    background: linear-gradient(rgba(0, 33, 71, 0.9), rgba(0, 33, 71, 0.9)), url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
}

.firm-card h2 {
    color: var(--accent-color);
    font-size: 3rem;
}

.firm-card .location {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.firm-desc {
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
}

.firm-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item i {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-item h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.feature-item p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.firm-quote {
    margin-top: 60px;
    padding: 30px 20px;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.quote-text {
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-style: italic;
    font-family: var(--font-heading);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.quote-author {
    margin-top: 15px;
}

.author-name {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.author-title {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    background-color: var(--light-bg);
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 30px;
    text-align: center;
}

.info-item a {
    color: var(--white);
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--accent-color);
}

.contact-form-wrapper {
    flex: 1.5;
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: #00152e;
    color: #aaa;
    text-align: center;
    padding: 40px 0;
}

.footer p {
    margin-bottom: 10px;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    margin: 0 5px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--accent-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
/* Responsive Improvements */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
}

@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 80px 0;
        text-align: center;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .hero-image img {
        max-width: 320px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .title {
        font-size: 2.8rem;
    }

    .statement {
        border-left: none;
        border-bottom: 2px solid var(--accent-color);
        padding: 0 0 10px 0;
        display: inline-block;
        font-size: 1.3rem;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info,
    .contact-form-wrapper {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        height: auto;
        text-align: center;
        transition: 0.4s ease;
        padding: 40px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
        text-align: left !important;
        left: 0 !important;
        margin-bottom: 30px;
    }

    .timeline-item::after {
        left: 20px !important;
    }

    .firm-card h2 {
        font-size: 2rem;
    }

    .title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 30px 20px;
    }

    .info-item {
        font-size: 1rem;
        gap: 15px;
    }
}