  /* Custom CSS for professional look and color scheme */
        :root {
            --primary-blue: #0F172A; /* Deeper, richer dark blue (Tailwind slate-900) */
            --secondary-blue: #3B82F6; /* Vibrant blue (Tailwind blue-500) */
            --accent-gold: #F59E0B; /* Bright gold (Tailwind amber-500) */
            --text-light: #E2E8F0; /* Light text color */
            --text-dark: #CBD5E0; /* Slightly darker light text */
            --card-bg: #1F2937; /* Dark gray for cards (Tailwind gray-800) */
            --header-bg: hsl(222.22deg 47.37% 11.18% / 49%); /* Primary blue with transparency for header */
        }

        /* Universal box-sizing and overflow control */
        html {
            box-sizing: border-box;
            overflow-x: hidden; /* Ensure no horizontal scroll at root */
        }
        *, *::before, *::after {
            box-sizing: inherit;
        }
        body {
            font-family: 'Roboto', sans-serif;
            background-color: var(--primary-blue);
            color: var(--text-light);
            overflow-x: hidden; /* Prevent horizontal scroll on body */
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Lora', serif;
        }

        /* Header Styling - Initially relative and transparent */
        .header-sticky {
            position: relative; /* Default position */
            top: 0;
            left: 0;
            right: 0;
            background-color: transparent; /* Transparent until sticky */
            z-index: 50;
            transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, backdrop-filter 0.3s ease-in-out;
            padding: 0.75rem 1rem; /* Default padding for all screens (mobile first) */
        }

        /* Sticky state for header */
        .header-sticky.is-sticky {
            position: fixed; /* Becomes fixed when scrolled */
            background-color: var(--header-bg); /* Use defined background color */
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(8px); /* Apply blur effect */
            width: 100%; /* Ensure it spans full width */
            box-sizing: border-box; /* Include padding in width calculation */
        }

        /* Main content padding to clear fixed header on mobile */
        .main-content-padding-top {
            padding-top: 0; /* Default to 0, adjusted by JS if header is sticky */
        }

        /* Button Styling */
        .btn-primary {
            background-color: var(--accent-gold);
            color: var(--primary-blue);
            transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
            border-radius: 0.5rem; /* Tailwind's rounded-lg */
            font-weight: 700; /* Equivalent to font-bold */
        }
        .btn-primary:hover {
            background-color: #D97706; /* Darker gold on hover (Tailwind amber-600) */
            transform: translateY(-2px);
        }

        /* Adjustments for smaller Free Consultation button in header */
        .btn-consultation-small {
            padding: 0.5rem 1rem; /* Smaller padding */
            font-size: 0.875rem; /* text-sm */
        }
        @media (min-width: 768px) {
            .btn-consultation-small {
                padding: 0.5rem 1.25rem; /* slightly larger on desktop */
                font-size: 1rem; /* text-base */
            }
        }

        /* Hero section button specific sizing */
        .btn-hero-cta {
            padding: 0.75rem 1.5rem; /* Default padding for mobile */
            font-size: 1rem; /* Default text size for mobile */
        }
        @media (min-width: 640px) { /* sm breakpoint */
            .btn-hero-cta {
                padding: 1rem 2rem;
                font-size: 1.125rem; /* text-lg */
            }
        }
        @media (min-width: 768px) { /* md breakpoint */
            .btn-hero-cta {
                padding: 1.25rem 2.5rem;
                font-size: 1.25rem; /* text-xl */
            }
        }


        /* Card Styling */
        .service-card, .attorney-card, .testimonial-card {
            background-color: var(--card-bg);
            border-left: 4px solid var(--accent-gold);
            transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
            border-radius: 0.5rem; /* Tailwind's rounded-lg */
            overflow: hidden; /* For image in attorney card */
        }
        .service-card:hover, .attorney-card:hover, .testimonial-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }

        /* Hamburger Menu Animation */
        .hamburger-icon {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            width: 30px;
            height: 20px;
            cursor: pointer;
            z-index: 60;
        }

        .hamburger-icon span {
            display: block;
            width: 100%;
            height: 3px;
            background-color: var(--accent-gold);
            border-radius: 2px;
            transition: all 0.3s ease-in-out;
        }

        .hamburger-icon.open span:nth-child(1) {
            transform: translateY(8.5px) rotate(45deg);
        }

        .hamburger-icon.open span:nth-child(2) {
            opacity: 0;
        }

        .hamburger-icon.open span:nth-child(3) {
            transform: translateY(-8.5px) rotate(-45deg);
        }

        /* Sidebar Styling (for mobile navigation) */
        .sidebar {
            width: 220px; /* Slimmer width */
            transform: translateX(-100%);
            transition: transform 0.3s ease-in-out;
            background: linear-gradient(180deg, var(--primary-blue) 0%, rgba(44, 82, 130, 0.8) 100%); /* Colorful gradient */
            border-right: 2px solid var(--accent-gold); /* Golden border for definition */
            z-index: 50;
            position: fixed; /* Always fixed for mobile */
            top: 0;
            left: 0;
            height: 100%;
            padding: 1.25rem; /* Adjusted padding */
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        }

        .sidebar.open {
            transform: translateX(0);
        }

        .sidebar-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 40;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        }

        .sidebar-backdrop.open {
            opacity: 1;
            visibility: visible;
        }

        /* Star Rating Icons */
        .star-icon {
            color: var(--accent-gold); /* Gold color for stars */
            display: inline-block;
            width: 1.25rem; /* w-5 */
            height: 1.25rem; /* h-5 */
        }

        /* Testimonial Carousel Styling */
        .testimonial-carousel {
            position: relative;
            overflow: hidden;
        }

        .carousel-container {
            display: flex;
            transition: transform 0.5s ease-in-out;
            gap: 2rem; /* Consistent gap for desktop */
            touch-action: pan-y; /* Allow vertical scrolling, prevent horizontal default */
        }

        .carousel-item {
            min-width: 100%; /* Default to full width on mobile */
            box-sizing: border-box;
            padding: 1rem; /* Adjust padding as needed */
        }

        .carousel-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.5);
            color: white;
            padding: 0.5rem;
            border-radius: 50%;
            z-index: 10;
            cursor: pointer;
            opacity: 0.7;
            transition: opacity 0.3s;
        }
        .carousel-button:hover {
            opacity: 1;
        }
        .carousel-button.left { left: 1rem; }
        .carousel-button.right { right: 1rem; }

        /* Floating Buttons Container */
        .floating-buttons-container {
            position: fixed;
            bottom: 1.5rem;
            right: 1rem; /* Adjusted for mobile */
            display: flex;
            flex-direction: column; /* Stack buttons vertically */
            align-items: center;
            gap: 0.75rem; /* Space between buttons */
            z-index: 40;
        }

        /* Individual Floating Button Styling (reset position for container management) */
        .floating-buttons-container button,
        .floating-buttons-container a {
            position: static; /* Let container manage position */
            /* Inherit padding, border-radius, box-shadow from existing styles */
        }

        /* Scroll to Top Button */
        #scrollToTopBtn {
            background-color: var(--accent-gold);
            color: white;
            padding: 0.75rem;
            border-radius: 9999px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            opacity: 0; /* Hidden by default */
            visibility: hidden; /* Hidden by default */
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        }
        #scrollToTopBtn.show {
            opacity: 1;
            visibility: visible;
        }

        /* Floating AI Chat Button */
        #openAiPanelBtn {
            background-color: var(--secondary-blue);
            color: white;
            padding: 0.75rem;
            border-radius: 9999px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            opacity: 0.9;
            transition: background-color 0.3s, transform 0.2s;
        }
        #openAiPanelBtn:hover {
            background-color: #2563EB; /* Darker blue */
            transform: scale(1.05);
        }

        /* Floating WhatsApp Button */
        #openWhatsappBtn {
            background-color: #25D366; /* WhatsApp green */
            color: white;
            padding: 0.75rem;
            border-radius: 9999px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            cursor: pointer;
            opacity: 0.9;
            transition: background-color 0.3s, transform 0.2s;
        }
        #openWhatsappBtn:hover {
            background-color: #1DA851; /* Darker green */
            transform: scale(1.05);
        }

        /* AI Tools Panel */
        #aiToolsPanel {
            position: fixed;
            bottom: 0;
            right: 0;
            width: min(95vw, 450px); /* Responsive width */
            height: min(85vh, 700px); /* Responsive height */
            background-color: var(--card-bg);
            border-top-left-radius: 1rem;
            border-top-right-radius: 1rem;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
            transform: translateY(100%); /* Initially hidden below screen */
            transition: transform 0.3s ease-in-out;
            z-index: 55; /* Above main content, below sidebar */
            display: flex;
            flex-direction: column;
            overflow: hidden; /* Hide scrollbars within the panel */
        }
        #aiToolsPanel.open {
            transform: translateY(0); /* Slide up */
        }
        #aiToolsPanel .panel-header {
            background-color: var(--secondary-blue);
            color: white;
            padding: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top-left-radius: 1rem;
            border-top-right-radius: 1rem;
        }
        #aiToolsPanel .panel-content {
            flex-grow: 1;
            padding: 1rem;
            overflow-y: auto; /* Enable scrolling for content inside panel */
        }

        /* Attorney Modal Specific Styles */
        #attorneyDetailsModal {
            display: none; /* Hidden by default */
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.75);
            align-items: center;
            justify-content: center;
            z-index: 60; /* Higher than sidebar and AI panel */
        }
        #attorneyDetailsModal.open {
            display: flex; /* Show when 'open' class is added */
        }

        .attorney-modal-content {
            background-color: var(--card-bg);
            border-radius: 1rem;
            width: 90%;
            max-width: 700px;
            max-height: 90vh;
            overflow-y: auto;
            padding: 2rem;
            position: relative;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
        }
        .attorney-modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 1.5rem;
            cursor: pointer;
        }
        .attorney-modal-close:hover {
            color: var(--accent-gold);
        }
        .attorney-modal-image {
            width: 150px;
            height: 150px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid var(--accent-gold);
            margin: 0 auto 1.5rem;
        }
        
        /* Fallback for hero background image */
        .bg-home-section-fallback {
            background-image: url('https://placehold.co/1920x1080/0F172A/FFFFFF?text=Indian+Law+Theme'); /* Placeholder with theme colors */
        }
        .text-accent-gold { /* Ensure this uses the CSS variable */
            color: var(--accent-gold);
        }
        .home{
            background-image: url('assets/law.png');
        }


        /* Responsive adjustments */
        @media (min-width: 768px) {
            .header-sticky {
                display: flex; /* Always display header on desktop */
                justify-content: space-between;
                padding: 1rem 2.5rem; /* Adjust padding for desktop */
            }
            .header-sticky .hamburger-icon {
                display: none; /* Hide hamburger on desktop */
            }
            .header-sticky nav {
                display: block; /* Show desktop nav */
            }
            .main-content-padding-top {
                padding-top: 0 !important; /* No padding needed on desktop, override JS */
            }
            .sidebar {
                display: none; /* Hide mobile sidebar on desktop */
            }
            .sidebar-backdrop {
                display: none; /* No backdrop needed on desktop */
            }
            /* Testimonial carousel for desktop */
            .testimonial-carousel .carousel-item {
                min-width: calc(50% - 1rem); /* 2 items per row on md, accounting for gap */
            }
            /* Footer columns for desktop */
            .footer-grid-cols {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }
            /* Services columns for desktop */
            .services-grid-cols {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }
        @media (max-width: 767px) {
            /* Services columns for mobile */
            .services-grid-cols {
                grid-template-columns: repeat(2, minmax(0, 1fr)); /* Two columns on mobile */
            }
            /* Footer columns for mobile */
            .footer-grid-cols {
                grid-template-columns: repeat(2, minmax(0, 1fr)); /* Two columns on mobile */
            }
        }
        @media (min-width: 1024px) {
             .testimonial-carousel .carousel-item {
                min-width: calc(33.333% - 1.333rem); /* 3 items per row on lg, accounting for gap */
            }
        }
        /* Disclaimer Modal Styles */
        .disclaimer-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
        }
        .disclaimer-content {
            background-color: #1F2937; /* Equivalent to bg-gray-800 or similar dark background */
            padding: 2.5rem;
            border-radius: 0.5rem;
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
            max-width: 600px;
            width: 90%;
            text-align: center;
            color: #E5E7EB; /* Equivalent to text-gray-200 */
        }
        .disclaimer-content h2 {
            font-size: 2.25rem; /* text-3xl */
            font-weight: 700; /* font-bold */
            margin-bottom: 1rem;
            color: #F59E0B; /* accent-gold */
        }
        .disclaimer-content p {
            font-size: 1.125rem; /* text-lg */
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }
        .disclaimer-content button {
            background-color: #F59E0B; /* accent-gold */
            color: #0F172A; /* primary-blue */
            font-weight: 700; /* font-bold */
            padding: 0.75rem 2rem;
            border-radius: 0.5rem;
            transition: background-color 0.3s ease;
            cursor: pointer;
        }
        .disclaimer-content button:hover {
            background-color: #fbbf24; /* yellow-400 */
        }

        /* Styles for audio playback message */
        #audioPlayMessage {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }
        #audioPlayMessage.show {
            opacity: 1;
        }
        