@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    /* prevent horizontal scroll */
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
}

nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background-color: transparent;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    z-index: 100;
}

.logo-space {
    color: white;
    font-weight: bold;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
}

.logo-space img {
    height: 85px;
    width: auto;
    display: block;
}

.nav-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-title h1 {
    font-size: 1.75rem;
    margin: 0;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    white-space: nowrap;
    /* single line */
}

.site-title p {
    display: none;
    /* remove subtitle text */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2.5rem; /* Increased spacing between links */
}

nav li {
    /* remove margin since using gap */
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 0;
    width: 100%;
    max-width: none;
    /* allow full-width content */
    margin: 0;
}

footer {
    /* transparent footer placed naturally */
    background-color: transparent;
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    width: 100%;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.accept-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.accept-btn:hover {
    background-color: #45a049;
}

/* Hero Section Styles */
.hero {
    background-image: url('Hero.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 100px 20px;
    min-height: 100vh;
    /* fill entire viewport */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.hero .description {
    font-size: 1.2rem;
    max-width: 800px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    background-color: transparent;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

/* Hover effects temporarily disabled for buttons */
.btn:hover,
.btn:focus {
    /* no visual change on hover for now */
    background-color: transparent;
    color: white;
    border-color: white;
    box-shadow: none;
    transform: none;
    outline: none;
}

/* Removed scattered child positioning styles */

.insights-intro {
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

@keyframes shine {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

section h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

/* Introduction Section */
.intro {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Practice Areas Section */
.practice-areas {
    text-align: center;
}

.practice-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.practice-item {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.practice-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.practice-item .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.practice-item .content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.practice-item .content p {
    color: #555;
    line-height: 1.6;
}

/* Publications and Research Section */
.publications-research {
    text-align: center;
    width: 100%;
    /* full width */
    padding: 4rem 2rem;
    position: relative;
    background-image: url('publications-hero.jpg');
    /* hero image for this section */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* optional, to match main hero */
}

.publications-research::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(153, 148, 148, 0.4);
    /*lighter overlay for better image visibility */
    z-index: 1;
}

.publications-research>* {
    position: relative;
    z-index: 2;
}

.publications-research h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.publications-research .intro-text {
    font-size: 1.4rem;
    /* bigger font */
    margin-bottom: 3rem;
    color: #010101;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.publications-list {
    list-style: none;
    padding: 0;
    position: relative;
    max-width: 800px;
    /* increased width */
    margin: 0 auto;
}

.publications-list::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #3498db;
    transform: translateX(-50%);
}

.publication-item {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    width: calc(50% - 2rem);
    box-sizing: border-box;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.publication-item:nth-child(odd) {
    left: 0;
    text-align: right;
    margin-right: 1rem;
}

.publication-item:nth-child(even) {
    left: 50%;
    margin-left: 1rem;
}

.publication-item::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: #3498db;
    border-radius: 50%;
    transform: translateY(-50%);
}

.publication-item:nth-child(odd)::after {
    right: -10px;
}

.publication-item:nth-child(even)::after {
    left: -10px;
}

.publication-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Legal Insights Section */
.legal-insights {
    text-align: center;
    width: 100%;
    padding: 4rem 2rem;
    background-image: url('legalInsight-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.legal-insights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.legal-insights>* {
    position: relative;
    z-index: 2;
}

.legal-insights h2 {
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.insights-intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    color: #333;
}

.topics {
    margin: 0 auto 3rem;
    position: relative;
    max-width: 1200px;
    /* added to contain grid */
}

.topics h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.topics-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* explicit 3 columns on large screens */
    gap: 2rem;
}

@media (max-width: 900px) {
    .topics-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .topics-list {
        grid-template-columns: 1fr;
    }
}

.topics-list li {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    text-align: left;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.topic-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.topics-list li h4 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.topics-list li p {
    font-size: 0.9rem;
    margin: 0;
    color: #555;
    line-height: 1.4;
}

.topics-list li.visible {
    opacity: 1;
    transform: translateY(0);
}

.insights-btn {
    background-color: #3498db;
    /* make button visible */
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
    display: inline-block;
    margin-top: 2rem;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.insights-btn:hover {
    background-color: #2980b9;
    cursor: pointer;
}

.topics-list li.visible:hover {
    /* hover disabled: keep visible state but no extra transform or shadow */
    box-shadow: 0 8px 24px 0 rgba(52, 152, 219, 0.10);
    transform: none !important;
}

/* Practice Areas Section (New) */
.practice-section {
    background-color: #f4f6f9;
    padding: 5rem 2rem;
    color: #333;
}

.practice-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.practice-intro h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.practice-intro p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.practice-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #3498db;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.practice-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background-color: #f1f8ff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.practice-card h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 1rem;
}

.practice-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.drafting-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.drafting-list li {
    margin-bottom: 0.5rem;
}

/* About Us Section */
.about-section {
    background-color: #ffffff;
    padding: 5rem 2rem;
    color: #333;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fcfcfc;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}


.about-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

@media (min-width: 900px) {
    .about-flex {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .about-image {
        flex: 0 0 350px;
        position: sticky;
        top: 2rem;
    }
    
    .about-content {
        flex: 1;
        text-align: left;
    }
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 4px solid #fff;
    object-fit: cover;
}

.about-content h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
}

.about-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(52, 152, 219, 0.75), rgba(0, 0, 0, 0));
    margin: 3rem 0;
}

.about-content h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.interest-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.interest-list li {
    background-color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    transition: transform 0.2s;
}

.interest-list li:hover {
    transform: translateX(5px);
}

.interest-list .icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Consultation Section */
.consultation-section {
    background-color: #f8f9fa;
    text-align: center;
    padding: 5rem 2rem;
    border-top: 1px solid #e9ecef;
}

.consultation-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: none;
}

.consultation-section p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Contact Section */
.contact-section {
    background-color: #f8f9fa;
    padding: 5rem 2rem;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: none;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    line-height: 1.6;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-details-vertical {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-item .icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
    margin-bottom: 0;
}

.contact-item h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.contact-item p {
    margin: 0;
    color: #555;
    font-size: 1rem;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Contact Form Styles */
.contact-form-wrapper {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-header h3 {
    margin-top: 0;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Primary Button Style (for both new sections) */
.primary-btn {
    background-color: #2c3e50;
    color: white;
    border: 2px solid #2c3e50;
    padding: 12px 32px;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.primary-btn:hover {
    background-color: transparent;
    color: #2c3e50;
    cursor: pointer;
}

/* --- Mobile Responsiveness --- */

@media (max-width: 768px) {
    /* Navigation Bar */
    nav {
        padding: 1rem;
        flex-direction: column;
        background-color: rgba(44, 62, 80, 0.95); /* Semi-transparent dark bg for mobile */
    }
    
    .logo-space img {
        height: 60px;
    }
    
    .nav-header {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .site-title h1 {
        font-size: 1.3rem;
        white-space: normal; /* Allow wrapping on very small screens */
        text-align: center;
    }
    
    nav ul {
        gap: 1rem;
        justify-content: center;
    }

    /* Hero Section */
    .hero {
        padding: 120px 15px 60px; /* Add top padding to account for taller mobile nav */
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .hero .description {
        font-size: 1rem;
    }

    /* General Typography & Spacing */
    section h2 {
        font-size: 2rem !important;
    }
    
    .practice-section,
    .publications-research,
    .legal-insights,
    .about-section,
    .consultation-section,
    .contact-section {
        padding: 3rem 1.5rem;
    }

    /* Intro Section */
    .intro {
        padding: 2rem 1.5rem;
    }

    /* Publications Outline */
    .publications-list::before {
        left: 0; /* Move the timeline line to the left edge */
    }
    
    .publication-item {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left !important;
        transform: translateX(0) !important;
    }
    
    .publication-item:nth-child(even), 
    .publication-item:nth-child(odd) {
        left: 0;
        padding-left: 3rem; /* Space for the timeline dot */
    }

    .publication-item::after {
        left: -10px !important; /* Place dot on the left line */
        right: auto !important;
    }

    /* Contact Details */
    .contact-details-vertical {
        align-items: center; /* Center items on mobile */
    }
    
    .contact-item {
        width: 100%;
        max-width: 350px;
    }
}