/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    color: #2A2A2A;
    background-color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation Bar */
nav {
    background-color: #4A4A4A;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

nav.scrolled {
    background-color: rgba(74, 74, 74, 0.95);
}

nav .container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

nav .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

nav .logo img {
    height: 40px; /* Adjust the height to fit the nav bar */
    width: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Space between logo and text */
}

nav .logo .logo-text {
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

nav .logo .logo-text span {
    color: #A3C644;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #A3C644;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1505664194779-8beaceb93744?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
}

.hero-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.hero h1 {
    font-size: 60px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #A3C644;
    color: #FFFFFF;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #8BAF38;
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 80px 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    color: #4A4A4A;
    font-size: 40px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

h3 {
    color: #4A4A4A;
    font-size: 28px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Practice Areas */
.practice-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.practice-card {
    background-color: #F5F5F5;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.practice-card:nth-child(2) { animation-delay: 0.2s; }
.practice-card:nth-child(3) { animation-delay: 0.4s; }

.practice-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.practice-card i {
    font-size: 40px;
    color: #A3C644;
    margin-bottom: 20px;
}

.practice-card h3 {
    margin-bottom: 15px;
}

/* Testimonial Slider */
.testimonial-slider {
    background-color: #E5E5E5;
    padding: 60px 20px;
    text-align: center;
}

.slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.slide {
    display: none;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s;
}

.slide.active {
    display: block;
    opacity: 1;
}

.slide p {
    font-style: italic;
    font-size: 18px;
    margin-bottom: 20px;
}

.slide h4 {
    color: #A3C644;
    font-family: 'Montserrat', sans-serif;
}

/* News Section */
.news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.4s; }

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-item h3 {
    color: #A3C644;
}

/* About Timeline */
.timeline {
    position: relative;
    margin: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #A3C644;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

.timeline-content {
    width: 45%;
    background-color: #F5F5F5;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-year {
    width: 10%;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #A3C644;
}

/* Why Choose Us */
.why-choose {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.why-card {
    text-align: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.why-card:nth-child(2) { animation-delay: 0.2s; }
.why-card:nth-child(3) { animation-delay: 0.4s; }
.why-card:nth-child(4) { animation-delay: 0.6s; }

.why-card i {
    font-size: 40px;
    color: #A3C644;
    margin-bottom: 20px;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.4s; }

.team-card:hover {
    transform: translateY(-5px);
}

.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-card .team-info {
    padding: 20px;
    text-align: center;
}

.team-card h3 {
    color: #A3C644;
}

/* Blog/Insights */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.blog-card:nth-child(2) { animation-delay: 0.2s; }
.blog-card:nth-child(3) { animation-delay: 0.4s; }

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card h3 {
    color: #A3C644;
}

/* Careers */
.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    text-align: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.4s; }
.benefit-card:nth-child(4) { animation-delay: 0.6s; }

.benefit-card i {
    font-size: 40px;
    color: #A3C644;
    margin-bottom: 20px;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    background-color: #F5F5F5;
    padding: 30px;
    border-radius: 10px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #E5E5E5;
    border-radius: 5px;
    font-size: 16px;
}

.contact-form button {
    background-color: #A3C644;
    color: #FFFFFF;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #8BAF38;
}

/* Footer */
footer {
    background-color: #2A2A2A;
    color: #FFFFFF;
    padding: 40px 20px;
    text-align: center;
}

footer a {
    color: #A3C644;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 16px;
    }

    nav .logo img {
        height: 30px; /* Smaller logo on mobile */
    }

    nav .logo .logo-text {
        font-size: 20px; /* Smaller text on mobile */
    }

    nav ul {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-content,
    .timeline-year {
        width: 100%;
        text-align: left;
    }

    .timeline-item:nth-child(odd) {
        flex-direction: column;
    }
}