:root {
    --primary-blue: #003366;
    --secondary-blue: #00509d;
    --white: #ffffff;
}

body { font-family: 'Segoe UI', sans-serif; margin: 0; line-height: 1.6; color: #333; }

/* Loader Styles */
#loader-wrapper { position: fixed; top: 0; width: 100%; height: 100%; background: var(--primary-blue); display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.8s; }
.loader-content { color: white; text-align: center; }
.loader-logo { font-size: 2rem; letter-spacing: 3px; margin-bottom: 10px; }
.loader-line { width: 0; height: 2px; background: white; margin: 0 auto; animation: grow 1.5s forwards; }
@keyframes grow { to { width: 120px; } }
.loader-hidden { opacity: 0; visibility: hidden; }

/* Navigation */
nav { background: var(--primary-blue); padding: 15px 5%; display: flex; justify-content: space-between; position: sticky; top: 0; z-index: 1000; }
.logo a { color: white; text-decoration: none; font-weight: bold; }
nav ul { display: flex; list-style: none; gap: 20px; margin: 0; }
nav ul li a { color: white; text-decoration: none; font-size: 0.9rem; }

/* Hero */
.hero { height: 400px; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: white; text-align: center; position: relative; }
.hero::before { content: ""; position: absolute; top:0; left:0; right:0; bottom:0; background: rgba(0, 51, 102, 0.7); }
.hero .container { position: relative; z-index: 2; }

/* General Layout */
.container { padding: 60px 5%; max-width: 1200px; margin: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.card { border: 1px solid #ddd; padding: 25px; text-align: center; border-radius: 8px; background: white; }
.profile-img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin-bottom: 15px; border: 4px solid #eee; }

/* CTA (Wrapper Style 4) */
.wrapper.style4 { background: var(--primary-blue); color: white; padding: 80px 5%; }
.wrapper.style4 .inner { max-width: 1200px; margin: auto; display: flex; justify-content: space-between; align-items: center; }
.actions.stacked { list-style: none; display: flex; flex-direction: column; gap: 15px; min-width: 260px; padding: 0; }
.button.fit { width: 100%; text-align: center; }
.button.primary { background: white; color: var(--primary-blue); padding: 14px; display: block; text-decoration: none; font-weight: bold; border-radius: 5px; transition: 0.3s; }
.button.primary:hover { background: var(--secondary-blue); color: white; }

/* Footer */
#footer { background: #111; color: #888; text-align: center; padding: 50px 5%; }
.icons { list-style: none; display: flex; justify-content: center; gap: 25px; padding: 0; margin-bottom: 20px; font-size: 1.5rem; }
.icons a { color: white; }
.copyright { list-style: none; padding: 0; font-size: 0.8rem; }

@media (max-width: 768px) {
    .wrapper.style4 .inner { flex-direction: column; text-align: center; gap: 30px; }
    .hero h1 { font-size: 2rem; }
}
/* Full Background Contact Section */
.contact-full-bg {
    position: relative;
    min-height: 100vh; /* Set to 100vh to ensure it fills the screen */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Professional Legal Image Link */
    background: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?q=80&w=2070&auto=format&fit=crop');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    padding: 100px 0;
}

/* Dark Blue Overlay to ensure text is readable */
.contact-full-bg::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 31, 63, 0.75); /* Adjust opacity if you want the image clearer */
    z-index: 1;
}

/* Ensure the contact box sits ABOVE the dark overlay */
.contact-box {
    position: relative;
    z-index: 10;
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.contact-header h2 {
    color: #003366;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.info-block i {
    font-size: 2rem;
    color: #00509d;
    margin-bottom: 15px;
}
/* Profile Section Styling */
.profile-section {
    padding: 100px 5%;
    background-color: #fdfdfd;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

/* Subtle line under the main heading */
.section-title h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-blue);
    margin: 10px auto 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Image takes less space than text */
    gap: 60px;
    align-items: center;
}

/* Image with Decorative Box */
.profile-image-wrapper {
    position: relative;
}

.profile-main-img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

/* The subtle blue box behind the image */
.image-accent-box {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-left: 5px solid var(--secondary-blue);
    border-top: 5px solid var(--secondary-blue);
    z-index: 1;
}

/* Typography Improvements */
.profile-header h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin: 0;
}

.designation {
    display: block;
    color: var(--secondary-blue);
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.profile-bio p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Responsive Fix for Mobile */
@media (max-width: 992px) {
    .profile-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .profile-image-wrapper {
        max-width: 400px;
        margin: 0 auto 40px;
    }

    .image-accent-box {
        display: none; /* Hide decorative box on mobile to save space */
    }
}
.icon-heading {
    display: flex;
    align-items: center;
    gap: 15px; /* Spacing between icon and text */
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.icon-heading i {
    color: var(--secondary-blue);
    font-size: 1.8rem;
    width: 40px; /* Ensures text aligns even if icons have different widths */
    text-align: center;
}

.practice-item {
    padding: 20px 0;
}

.practice-item p {
    margin-bottom: 15px;
    color: #444;
}
/* Chat Widget Styles */
#chat-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

#chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary-blue);
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 1.5rem;
}

#chat-window {
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.chat-hidden {
    display: none !important;
}

.chat-header {
    background: var(--primary-blue);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-msg, .user-msg {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 0.9rem;
}

.bot-msg { background: #f0f2f5; align-self: flex-start; }
.user-msg { background: var(--secondary-blue); color: white; align-self: flex-end; }

.chat-input-area {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 5px;
}

#user-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
}

#send-btn {
    background: none;
    border: none;
    color: var(--secondary-blue);
    cursor: pointer;
    font-size: 1.2rem;
}
.profile-grid {
    display: flex;
    flex-wrap: wrap; /* This allows content to stack on mobile */
    gap: 20px;
}

.profile-image-wrapper, .profile-text {
    flex: 1 1 300px; /* Grow, shrink, and set a base width of 300px */
}
/* Tablet and Mobile Styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column; /* Stack menu items */
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem; /* Make text smaller on phones */
    }

    .practice-areas {
        padding: 20px; /* Reduce padding on small screens */
    }
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}