/* --- CSS VARIABLES & RESET --- */
:root {
    --primary-color: #D4AF37; /* Metallic Gold */
    --secondary-color: #5D001E; /* Deep Maroon (Constitution/Robes) */
    --accent-color: #C0C0C0; /* Silver/Grey */
    --text-main: #E0E0E0;
    --bg-dark: #0a0a0a;
    --card-bg: #121212;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #000000;
    position: relative;
}

/* Static Low Opacity Background Image */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('ANOOP.png') no-repeat center top;
    background-size: cover;
    opacity: 0.15; /* Low opacity */
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--primary-color);
    color: #000; /* Black text on Gold */
    border: 1px solid var(--primary-color);
    border-radius: 2px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Playfair Display', serif;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn:disabled {
    background-color: #555;
    border-color: #555;
    color: #888;
    cursor: not-allowed;
}

/* --- HEADER --- */
header {
    background-color: var(--secondary-color); /* Maroon Background */
    border-bottom: 3px solid var(--primary-color); /* Gold Border */
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: none;
    font-family: 'Playfair Display', serif;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: #fff; /* White text on Maroon header */
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- LANGUAGE SWITCHER --- */
.lang-switch {
    display: flex;
    gap: 10px;
    margin-left: 15px;
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 15px;
}

.lang-btn {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
    padding: 2px 5px;
}

.lang-btn:hover, .lang-btn.active {
    color: var(--primary-color);
}

/* --- HERO SECTION --- */
.hero {
    /* Darker overlay to make text pop */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('back.jpg');
    background-size: cover;
    background-position: center;
    height: 85vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    border-bottom: 1px solid var(--primary-color);
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px #000;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* --- SECTIONS --- */
.section-padding {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-title .line {
    width: 100px;
    height: 3px;
    background-color: var(--secondary-color); /* Maroon line */
    margin: 0 auto;
    position: relative;
}
/* Decorative element on line */
.section-title .line::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 40%;
    width: 20%;
    height: 11px;
    background-color: var(--primary-color);
}

/* --- ABOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 2px;
    border: 2px solid var(--primary-color); /* Gold border */
    padding: 5px; /* Frame effect */
    background: transparent;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* --- PRACTICE AREAS --- */
.practice-areas {
    background-color: rgba(10, 10, 10, 0.6); /* Slight tint */
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.area-card {
    background: var(--card-bg);
    padding: 45px 30px;
    text-align: center;
    transition: 0.4s;
    border: 1px solid #333;
    border-top: 3px solid var(--secondary-color); /* Maroon top border */
    position: relative;
}

.area-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.1);
}

.area-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.area-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* --- TEAM --- */
.team-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.team-card {
    background: var(--card-bg);
    width: 360px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 1px solid var(--primary-color); /* Gold border frame */
    text-align: center;
    padding: 10px; /* Inner spacing for frame */
}

.team-img-container {
    width: 100%;
    height: 380px;
    overflow: hidden;
    background-color: #1a1a1a;
    border-bottom: 2px solid var(--secondary-color);
}

.team-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.team-info {
    padding: 25px 15px;
}

.team-info h3 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.team-info .designation {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: block;
    background-color: var(--secondary-color);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 2px;
}

/* --- CONTACT --- */
.contact {
    background-color: #080808;
    border-top: 1px solid #222;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid var(--primary-color);
}

.contact-info-item i {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-right: 20px;
    margin-top: 4px;
}

.contact-info-item h4 {
    color: #fff;
    margin-bottom: 5px;
}

form input, form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #333;
    border-left: 3px solid var(--secondary-color);
    border-radius: 0;
    font-family: 'Lato', sans-serif;
    background-color: #151515;
    color: #fff;
    transition: 0.3s;
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #1a1a1a;
}

#status-message {
    margin-top: 15px;
    display: none;
    font-weight: bold;
}

/* --- CHATBOT --- */
#chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chat-btn {
    background-color: var(--primary-color);
    color: #000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    height: 400px;
    background-color: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: opacity 0.3s, transform 0.3s;
    overflow: hidden;
}

.chat-window.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.chat-header {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
}

.chat-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

#chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

#chatbot-close:hover {
    color: var(--primary-color);
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #0a0a0a;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-message.bot {
    background-color: #222;
    color: #d0d0d0;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-message.user {
    background-color: var(--primary-color);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-footer {
    display: flex;
    padding: 10px;
    background-color: #121212;
    border-top: 1px solid #333;
}

#chat-input {
    flex: 1;
    background-color: #222;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    outline: none;
    font-family: 'Lato', sans-serif;
    margin-bottom: 0;
}

#chat-input:focus {
    border-color: var(--primary-color);
}

#chat-send {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-send:hover {
    background-color: #e6c855;
}

/* --- FOOTER --- */
footer {
    background-color: var(--secondary-color); /* Maroon Footer */
    color: #d0d0d0;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
    border-top: 4px solid var(--primary-color);
}

.disclaimer {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.8rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .team-card { width: 100%; }
}

@media (max-width: 480px) {
    #chatbot-container {
        bottom: 20px;
        right: 20px;
    }
    .chat-window {
        width: 280px;
        right: 0;
    }
}