/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Palette */
    --primary-bg: #0d1117; /* Very dark blue-gray, GitHub dark mode style */
    --secondary-bg: #161b22; /* Slightly lighter dark blue-gray */
    --card-bg: #1f242c; /* Darker card background */
    --border-color: #30363d; /* Subtle border color */
    --text-primary: #c9d1d9; /* Light gray for primary text */
    --text-secondary: #8b949e; /* Medium gray for secondary text */
    --accent-primary: #58a6ff; /* Bright blue accent */
    --accent-secondary: #1f6feb; /* Darker blue accent */
    --accent-hover: #79c0ff; /* Lighter blue for hover */
    --accent-gold: #f0b90b; /* New Gold Accent */
    --success-color: #3fb950;
    --error-color: #f85149;

    --gradient-1: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Softer shadow for dark theme */
    --box-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-bg); /* Dark background for body */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-primary); /* Headings also use light text */
}

h2 {
    font-size: 2.8rem; /* Slightly larger section titles */
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after { /* Underline effect for section titles */
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--secondary-bg); /* Solid dark theme background */
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.logo h1 {
    font-size: 1.6rem; /* Slightly larger logo */
    color: var(--accent-primary); /* Logo with accent color */
    letter-spacing: 1px;
}

.nav-links a {
    color: var(--text-secondary); /* Lighter text for nav links */
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative; /* For hover effect */
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active { /* Active state already handled by JS */
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary); /* Hamburger lines color */
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: auto; /* Adjust height to fit content */
    min-height: 100vh; /* Ensure it's at least full viewport height */
    background: linear-gradient(rgba(13, 17, 23, 0.85), rgba(13, 17, 23, 0.95)),
                url('https://images.unsplash.com/photo-1603190287605-e6ade32fa852?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80'); 
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column; /* Align items vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
    padding: 120px 20px 60px; /* Added more top/bottom padding */
}

.hero-content h1 {
    font-size: 4rem; 
    margin-bottom: 1rem; /* Reduced margin */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

.hero-content h1 .highlight-gold {
    color: var(--accent-gold);
}

.hero-clients-intro {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 2.5rem; /* Space above "Our Clients Are" */
    margin-bottom: 2rem;
}

.hero-client-categories {
    display: flex;
    justify-content: space-around;
    align-items: flex-start; /* Align items to the top of their container */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 2rem; /* Gap between categories */
    max-width: 1000px; /* Max width for the categories container */
    margin: 0 auto 2.5rem; /* Centering and bottom margin */
    text-align: left; /* Align text within each category to the left */
}

.client-category {
    display: flex;
    align-items: flex-start; /* Align icon and text to the top */
    gap: 1rem; /* Gap between icon and text */
    flex: 1; /* Allow categories to share space */
    min-width: 280px; /* Minimum width before wrapping */
    max-width: 320px; /* Maximum width */
    padding: 1rem; /* Padding for visual separation if needed */
    position: relative; /* For vertical line */
}

.client-category:not(:last-child)::after { /* Vertical separator line */
    content: '';
    position: absolute;
    right: -1rem; /* Position between cards, considering gap */
    top: 10%;
    bottom: 10%;
    width: 1px;
    background-color: var(--border-color); /* Use theme border color */
}

.client-icon i {
    font-size: 2.5rem; /* Size of the icon */
    color: var(--accent-gold); /* Gold color for icons */
    margin-top: 0.25rem; /* Align icon slightly with first line of text */
}

.client-text h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: 'Roboto', sans-serif; /* Using Roboto for this heading for a slightly different feel */
    font-weight: 700;
}

.client-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 2.2rem; /* Slightly adjusted padding */
    background: var(--gradient-accent); /* Gradient for CTA */
    color: var(--primary-bg); /* Dark text on bright button */
    text-decoration: none;
    border-radius: 8px; /* More rounded corners */
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.3); /* Glow effect */
}

.cta-button:hover {
    background: var(--gradient-accent); /* Keep gradient */
    filter: brightness(1.1); /* Slightly brighter on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.4);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--secondary-bg); /* Section background */
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Adjust column ratio */
    gap: 4rem;
    align-items: center;
}

.about-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px; /* Consistent rounding */
    box-shadow: var(--box-shadow-hover);
    object-fit: cover;
    max-height: 480px; /* Slightly increased max height */
    border: 2px solid var(--border-color); /* Subtle border */
}

.about-text-and-stats {
    display: flex;
    flex-direction: column;
    gap: 2.5rem; /* Increased gap */
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Responsive stats */
    gap: 2rem;
    text-align: center;
    margin-top: 1rem;
}

.stat-item {
    background: var(--card-bg); /* Darker card background for stats */
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.stat-item h3 {
    font-size: 2.8rem; /* Larger stat numbers */
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--primary-bg); /* Alternating section background */
}

.section-header-image {
    margin-bottom: 3rem;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.section-header-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 380px; /* Slightly increased */
    object-fit: cover;
    display: block; /* Remove extra space below image */
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Slightly larger minmax */
    gap: 2.5rem; /* Increased gap */
}

.service-card {
    padding: 2.5rem 2rem; /* More padding */
    text-align: center;
    background: var(--card-bg); /* Consistent card background */
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.service-card::before { /* Top border accent */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px; /* Thicker accent line */
    background: var(--gradient-accent); /* Use gradient for accent */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px); /* More lift */
    box-shadow: var(--box-shadow-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card i {
    font-size: 3rem; /* Larger icons */
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.service-details {
    list-style: none;
    margin-top: 1.5rem;
    padding-left: 0;
    text-align: left;
}

.service-details li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.service-details li:last-child {
    border-bottom: none;
}

.service-details li::before { /* Custom bullet point */
    content: "✓";
    color: var(--accent-primary);
    margin-right: 0.75rem;
    font-weight: bold;
}

/* Team Section */
.team {
    padding: 100px 0;
    background: var(--secondary-bg); /* Alternating section background */
}

.team h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.team-member {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.team-member img {
    width: 100%;
    height: 350px; /* Fixed height for team images */
    object-fit: cover; /* Ensure image covers the area */
    filter: grayscale(50%) contrast(1.1); /* Subtle image effect */
    transition: filter 0.3s ease;
}
.team-member:hover img {
    filter: grayscale(0%) contrast(1);
}

.team-member h3 {
    padding: 1.5rem 1.5rem 0.2rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.team-member .position {
    color: var(--accent-primary);
    padding: 0 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.team-member .bio {
    padding: 1rem 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.team-social {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem; /* Adjusted padding */
}

.team-social a {
    color: var(--text-secondary); /* Social icon color */
    font-size: 1.3rem;
    transition: var(--transition);
}

.team-social a:hover {
    color: var(--accent-hover);
    transform: scale(1.1);
}

/* News Section */
.news {
    padding: 100px 0;
    background-color: var(--primary-bg);
}

.news-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.6rem;
    border: 2px solid var(--accent-primary);
    background: transparent;
    color: var(--accent-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-primary);
    color: var(--primary-bg); /* Dark text on active button */
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.3);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Wider news cards */
    gap: 2.5rem;
}

.news-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
    display: flex; /* For better content alignment */
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.news-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 60%; /* Aspect ratio for news image */
}

.news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease; /* Smoother zoom */
}

.news-card:hover .news-image img {
    transform: scale(1.08); /* Slightly more zoom */
}

.news-tag { /* Repositioned to top-left of card for better design */
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 0.8rem;
    background: var(--gradient-accent);
    color: var(--primary-bg);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.news-content {
    padding: 1.8rem; /* Adjusted padding */
    background: var(--card-bg);
    flex-grow: 1; /* Ensure content area fills space */
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.news-content p { /* News description */
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1; /* Allows description to take available space */
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--accent-primary);
    text-decoration: none;
    margin-top: auto; /* Pushes to bottom if content is short */
    font-weight: 600;
    font-size: 0.9rem;
    align-self: flex-start; /* Align to left */
}
.read-more:hover {
    text-decoration: underline;
    color: var(--accent-hover);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--secondary-bg);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    gap: 4rem;
    align-items: flex-start;
    background: var(--card-bg); /* Give contact area a card-like bg */
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow);
}

.contact-details-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-section-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    object-fit: cover;
    max-height: 320px; /* Adjusted max height */
    border: 1px solid var(--border-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.8rem; /* Adjusted gap */
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.2rem; /* Adjusted gap */
}

.info-item i {
    font-size: 1.8rem; /* Larger icons */
    color: var(--accent-primary);
    width: 30px; /* Fixed width for icon alignment */
    text-align: center;
}
.info-item div h4 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}
.info-item div p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-form {
    display: grid;
    gap: 1.5rem; /* Adjusted gap */
}

.contact-form input,
.contact-form textarea,
.contact-form select { /* Added select styling */
    padding: 1rem;
    border: 1px solid var(--border-color); /* Consistent border */
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
    background: var(--secondary-bg); /* Darker input fields */
    color: var(--text-primary); /* Light text in inputs */
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary); /* Placeholder color */
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2); /* Focus glow */
    background-color: var(--primary-bg); /* Slightly different bg on focus */
}

.contact-form select { /* Specific select styling */
    appearance: none; /* Remove default arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2358a6ff'%3E%3Cpath d='M8 11.074L3.535 6.609a.5.5 0 01.707-.707L8 9.66l3.758-3.758a.5.5 0 01.707.707L8 11.074z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem; /* Space for custom arrow */
}

.submit-button {
    padding: 1rem 2rem;
    background: var(--gradient-accent);
    color: var(--primary-bg);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(88, 166, 255, 0.2);
}

.submit-button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.3);
}

/* Footer */
footer {
    background: var(--primary-bg); /* Dark footer background */
    color: var(--text-secondary); /* Footer text color */
    padding: 3rem 0 1.5rem; /* Adjusted padding */
    border-top: 1px solid var(--border-color);
}

.footer-content { /* Removed the previous gradient bg, keep simple */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive footer columns */
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding: 2rem 0; /* Removed previous padding for gradient */
    position: relative;
    overflow: visible; /* Changed from hidden */
}
/* Remove SVG pattern from footer */
/* .footer-content::before { ... } */

.footer-logo h2 {
    color: var(--accent-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.footer-logo p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links h3,
.footer-social h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h3::after,
.footer-social h3::after { /* Underline for footer headings */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-primary);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.7rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-hover);
    padding-left: 5px; /* Slight indent on hover */
}

.social-icons {
    display: flex;
    gap: 1.2rem; /* Increased gap */
    margin-top: 1rem;
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 1.6rem; /* Larger social icons */
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--accent-hover);
    transform: scale(1.1); /* Scale effect on hover */
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive Design Adjustments for Dark Theme */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    .about-image-container {
        margin-bottom: 2.5rem; /* Increased margin */
        order: -1; 
    }
    .contact-content { /* Stack contact form below details on medium screens */
        grid-template-columns: 1fr;
    }
    .contact-details-column {
        margin-bottom: 2.5rem;
    }
    .hero-client-categories {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    .client-category {
        min-width: 100%;
        max-width: 450px; /* Allow wider cards when stacked */
        text-align: center; /* Center text when stacked */
        align-items: center; /* Center icon and text block */
    }
    .client-category:not(:last-child)::after { /* Hide vertical line when stacked */
        display: none;
    }
    .client-icon {
        margin-bottom: 0.5rem; /* Space between icon and text when centered */
    }
     .client-text h3, .client-text p {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1.5rem; /* Adjust navbar padding */
        background: var(--secondary-bg); /* Solid on mobile for nav links */
    }
    .nav-links { /* For mobile dropdown */
        position: absolute;
        top: 100%; /* Position below navbar */
        left: 0;
        width: 100%;
        background: var(--secondary-bg);
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        /* display: none; is handled by JS */
    }
    .nav-links a {
        margin: 0.8rem 0; /* Spacing for mobile nav links */
        padding: 0.5rem 1rem;
        width: 100%;
        text-align: center;
    }
    .nav-links a::after { /* Adjust mobile nav hover effect */
        left: 50%;
        transform: translateX(-50%);
        bottom: -2px;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.8rem; 
    }
    .hero-clients-intro {
        font-size: 1.3rem;
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }
    .hero-client-categories {
        gap: 2rem;
    }
    .client-category {
        padding: 0.5rem;
    }
    .client-icon i {
        font-size: 2.2rem;
    }
    .client-text h3 {
        font-size: 1.2rem;
    }
    .client-text p {
        font-size: 0.9rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        padding: 2rem; /* Adjust padding for contact card on mobile */
    }
    .contact-details-column {
        order: -1; 
        margin-bottom: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center; /* Center footer content on mobile */
    }
    .footer-links h3::after,
    .footer-social h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-icons {
        justify-content: center;
    }
    .form-group {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px); /* Slightly more dramatic entry */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.about-content,
.services-grid, /* These direct animations might be redundant if JS observer handles all children */
.team-grid,
.news-grid {
    animation: fadeIn 1s ease-out 0.2s; /* Added slight delay */
    animation-fill-mode: backwards; /* Ensure it starts from opacity 0 before delay */
}

/* Loading Animation */
.loading-spinner {
    width: 45px; /* Slightly larger */
    height: 45px;
    border: 5px solid var(--border-color); /* Use theme border color */
    border-top: 5px solid var(--accent-primary); /* Accent color for spinner */
    border-radius: 50%;
    animation: spin 0.8s linear infinite; /* Faster spin */
    margin: 30px auto; /* More margin */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* News API Integration */
.news-container {
    position: relative;
    min-height: 250px; /* Increased min-height */
}

.news-error {
    color: var(--error-color); /* Use error color variable */
    text-align: center;
    padding: 2.5rem;
    background: rgba(248, 81, 73, 0.1); /* Error background */
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid var(--error-color);
}
.news-error i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

/*
.about-image-container,
.section-header-image,
.contact-section-image {
    animation: fadeIn 1s ease-out; 
}
*/

/* Client Expertise Section Styles */
.client-expertise-section {
    padding: 60px 0;
    background-color: var(--secondary-bg); /* Dark theme background */
    text-align: center;
}

.client-expertise-section .section-header-image {
    margin-bottom: 40px;
    max-height: 400px; /* Control image height */
    overflow: hidden; /* Ensure image fits well */
}

.client-expertise-section .section-header-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px; /* Optional: if you want rounded corners for the image */
}

.client-expertise-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    color: var(--text-primary); /* Dark theme text color */
    margin-bottom: 20px;
    /* Ensure the ::after pseudo-element for underline is present or matches theme */
}

.client-expertise-section .tagline {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4em;
    font-weight: 500;
    color: var(--accent-gold); /* Gold accent, should be fine on dark */
    margin-top: 0;
    margin-bottom: 30px;
}

.client-expertise-section .description {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-secondary); /* Dark theme secondary text color */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.client-expertise-section .creative-services-focus {
    margin-top: 50px;
}

.client-expertise-section .creative-services-focus h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    color: var(--text-primary); /* Dark theme text color */
    margin-bottom: 30px;
}

.client-expertise-section .creative-focus-lists {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    text-align: left;
}

.client-expertise-section .creative-focus-lists ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
    flex: 1;
    min-width: 300px;
}

.client-expertise-section .creative-focus-lists li {
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    color: var(--text-primary); /* Text color for items on card background */
    background-color: var(--card-bg); /* Card background for items */
    border: 1px solid var(--border-color); /* Theme border color */
    border-radius: 6px;
    padding: 12px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow); /* Use theme box shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-expertise-section .creative-focus-lists li:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover); /* Use theme hover box shadow */
}

.client-expertise-section .creative-focus-lists li i.fa-check-circle {
    margin-right: 12px;
    color: var(--accent-gold); /* Gold accent for icons */
    font-size: 1.3em;
    flex-shrink: 0;
}

/* New styles for additional creative images */
.client-expertise-section .additional-creative-images {
    display: flex;
    justify-content: space-around; /* Distribute images evenly */
    align-items: center; /* Align images vertically */
    gap: 20px; /* Space between images */
    margin-bottom: 40px; /* Space before the lists */
    flex-wrap: wrap; /* Allow images to wrap on smaller screens */
}

.client-expertise-section .additional-creative-images img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25); /* Slightly adjusted shadow for dark bg */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-expertise-section .additional-creative-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
}

/* Styles for additional talented images - similar to creative ones */
.client-expertise-section .additional-talented-images {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px; /* Space before the description paragraph */
    flex-wrap: wrap;
}

.client-expertise-section .additional-talented-images img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25); /* Shadow for dark bg */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-expertise-section .additional-talented-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
}

/* Styles for additional entrepreneurial images - similar to creative/talented ones */
.client-expertise-section .additional-entrepreneurial-images {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px; /* Space before the description paragraph */
    flex-wrap: wrap;
}

.client-expertise-section .additional-entrepreneurial-images img {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25); /* Shadow for dark bg */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-expertise-section .additional-entrepreneurial-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
}

/* Responsive adjustments for Client Expertise Section if needed */
@media (max-width: 768px) {
    .client-expertise-section h2 {
        font-size: 2.2em;
    }
    .client-expertise-section .tagline {
        font-size: 1.2em;
    }
    .client-expertise-section .description {
        font-size: 1em;
    }
    .client-expertise-section .creative-services-focus h3 {
        font-size: 1.8em;
    }
    .client-expertise-section .creative-focus-lists {
        flex-direction: column; /* Stack lists vertically */
        align-items: center; /* Center items in column */
    }
    .client-expertise-section .creative-focus-lists ul {
        min-width: 90%; /* Allow lists to take more width */
        text-align: center; /* Center text in list items if preferred */
    }
     .client-expertise-section .creative-focus-lists li {
        justify-content: center; /* Center icon and text if ul is centered */
    }
    /* Adjustments for additional images on smaller screens */
    .client-expertise-section .additional-creative-images {
        flex-direction: column; /* Stack images vertically */
        align-items: center; /* Center images when stacked */
    }
    .client-expertise-section .additional-creative-images img {
        max-width: 90%; /* Allow images to take more width when stacked */
        margin-bottom: 15px; /* Space between stacked images */
    }
    .client-expertise-section .additional-creative-images img:last-child {
        margin-bottom: 0; /* No bottom margin for the last stacked image */
    }

    /* Adjustments for additional talented images on smaller screens */
    .client-expertise-section .additional-talented-images {
        flex-direction: column;
        align-items: center;
    }
    .client-expertise-section .additional-talented-images img {
        max-width: 90%;
        margin-bottom: 15px;
    }
    .client-expertise-section .additional-talented-images img:last-child {
        margin-bottom: 0;
    }

    /* Adjustments for additional entrepreneurial images on smaller screens */
    .client-expertise-section .additional-entrepreneurial-images {
        flex-direction: column;
        align-items: center;
    }
    .client-expertise-section .additional-entrepreneurial-images img {
        max-width: 90%;
        margin-bottom: 15px;
    }
    .client-expertise-section .additional-entrepreneurial-images img:last-child {
        margin-bottom: 0;
    }

    .client-expertise-section .creative-focus-lists {
        flex-direction: column;
        align-items: center;
    }
}

/* About Our Lawyers Section Styles */
.about-our-lawyers-section {
    padding: 80px 0;
    background-color: var(--primary-bg); /* Alternating dark theme background */
}

.about-our-lawyers-section h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    font-size: 2.5rem; /* Consistent with other section titles */
    margin-bottom: 1.5rem;
    /* The ::after for underline should be inherited or can be specifically styled if needed */
}

.about-our-lawyers-section .lead-paragraph {
    text-align: center;
    font-size: 1.2em;
    font-weight: 500;
    color: var(--accent-gold); /* Gold accent for emphasis */
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Styles for the image in About Our Lawyers section */
.about-our-lawyers-section .lawyer-section-image-container {
    margin: 0 auto 3rem auto; /* Center image and add bottom margin */
    max-width: 700px; /* Control image width */
    border-radius: 8px;
    overflow: hidden; /* To respect border-radius on image */
    box-shadow: var(--box-shadow);
}

.about-our-lawyers-section .lawyer-section-image-container img {
    width: 100%;
    height: auto;
    display: block; /* Remove extra space below image */
    object-fit: cover;
}

.about-our-lawyers-section .lawyer-details-content {
    max-width: 850px; /* Control width for readability */
    margin: 0 auto; /* Center the content block */
}

.about-our-lawyers-section .lawyer-details-content p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: left; /* Main text paragraphs left-aligned */
}

.about-our-lawyers-section .lawyer-details-content p:last-child {
    margin-bottom: 0;
}

/* Ensure responsive adjustments for About Our Lawyers if necessary */
@media (max-width: 768px) {
    .about-our-lawyers-section {
        padding: 60px 0;
    }
    .about-our-lawyers-section h2 {
        font-size: 2.2rem;
    }
    .about-our-lawyers-section .lead-paragraph {
        font-size: 1.1em;
        margin-bottom: 2rem;
    }
    .about-our-lawyers-section .lawyer-details-content p {
        font-size: 1rem;
    }
}

/* Responsive adjustments for Client Expertise Section if needed */
@media (max-width: 768px) {
    .client-expertise-section h2 {
        font-size: 2.2em;
    }
    .client-expertise-section .tagline {
        font-size: 1.2em;
    }
    .client-expertise-section .description {
        font-size: 1em;
    }
    .client-expertise-section .creative-services-focus h3 {
        font-size: 1.8em;
    }
    .client-expertise-section .creative-focus-lists {
        flex-direction: column;
        align-items: center;
    }
    .client-expertise-section .creative-focus-lists ul {
        min-width: 90%; /* Allow lists to take more width */
        text-align: center; /* Center text in list items if preferred */
    }
     .client-expertise-section .creative-focus-lists li {
        justify-content: center; /* Center icon and text if ul is centered */
    }
    /* Adjustments for additional images on smaller screens */
    .client-expertise-section .additional-creative-images {
        flex-direction: column; /* Stack images vertically */
        align-items: center; /* Center images when stacked */
    }
    .client-expertise-section .additional-creative-images img {
        max-width: 90%; /* Allow images to take more width when stacked */
        margin-bottom: 15px; /* Space between stacked images */
    }
    .client-expertise-section .additional-creative-images img:last-child {
        margin-bottom: 0; /* No bottom margin for the last stacked image */
    }

    /* Adjustments for additional talented images on smaller screens */
    .client-expertise-section .additional-talented-images {
        flex-direction: column;
        align-items: center;
    }
    .client-expertise-section .additional-talented-images img {
        max-width: 90%;
        margin-bottom: 15px;
    }
    .client-expertise-section .additional-talented-images img:last-child {
        margin-bottom: 0;
    }

    /* Adjustments for additional entrepreneurial images on smaller screens */
    .client-expertise-section .additional-entrepreneurial-images {
        flex-direction: column;
        align-items: center;
    }
    .client-expertise-section .additional-entrepreneurial-images img {
        max-width: 90%;
        margin-bottom: 15px;
    }
    .client-expertise-section .additional-entrepreneurial-images img:last-child {
        margin-bottom: 0;
    }

    .client-expertise-section .creative-focus-lists {
        flex-direction: column;
        align-items: center;
    }
} 