/* Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #374151; /* Default text color */
    background-color: #f9fafb; /* Default background */
    overflow-x: hidden;
}
html{
    overflow-x: hidden;
}
/* Responsive Typography for Headings */
h1 {
    font-size: 2.5rem; /* Default for desktop */
}
@media (min-width: 768px) and (max-width: 1023px) {
    h1 {
        font-size: 2.2rem;
    }
}
@media (max-width: 767px) {
    h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
}

h2 {
    font-size: 2.25rem;
}
@media (min-width: 768px) and (max-width: 1023px) {
    h2 {
        font-size: 2rem;
    }
}
@media (max-width: 767px) {
    h2 {
        font-size: 1.5rem;
        line-height: 1.2;
    }
}

h3 {
    font-size: 1.875rem;
}
@media (min-width: 768px) and (max-width: 1023px) {
    h3 {
        font-size: 1.5rem;
    }
}
@media (max-width: 767px) {
    h3 {
        font-size: 1.25rem;
        line-height: 1.2;
    }
}

/* Header & Navigation */
header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ghost-button {
    border-color: #ffffff;
    color: #ffffff;
}
.ghost-button:hover {
    background-color: #ffffff;
    color: #1e40af; /* blue-800 */
}

/* Typewriter Effect */
.type-writer-effect::after {
    content: '|';
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

/* About Section Progress Bars */
[data-progress-bar] {
    transition: width 1s ease-out;
}

/* Services Section Tabs */
.tab-button.active-tab {
    border-color: #3b82f6; /* blue-500 */
    color: #1e40af; /* blue-800 */
}

/* Features Section Flip Cards */
.perspective-card {
    perspective: 1000px;
    height: 250px; /* Fixed height for cards */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.perspective-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.card-front {
    background-color: #eff6ff; /* blue-100 */
    color: #1e40af; /* blue-800 */
}

.card-back {
    background-color: #bfdbfe; /* blue-200 */
    color: #1f2937; /* gray-800 */
    transform: rotateY(180deg);
    padding: 1.5rem;
}

/* How It Works Section Flow Lines */
.flow-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 1.5s ease-out forwards;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

/* FAQ Section Accordion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.faq-answer.open {
    max-height: 500px; /* Adjust as needed */
    opacity: 1;
}

.faq-question .material-symbols-outlined {
    transition: transform 0.3s ease-out;
}

.faq-question.active .material-symbols-outlined {
    transform: rotate(180deg);
}

/* Contact Form Modal */
#contact-form-modal {
    transition: opacity 0.3s ease-out;
}
#contact-form-modal.open {
    opacity: 1;
}
#contact-form-modal.open > div {
    transform: scale(1);
}

/* Footer Accordion for Mobile */
@media (max-width: 767px) {
    .footer-accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .footer-accordion-content.open {
        max-height: 200px; /* Adjust as needed */
    }
    .footer-accordion-header .material-symbols-outlined.rotate-180 {
        transform: rotate(180deg);
    }
}

/* Ensure buttons do not underline text */
button {
    text-decoration: none !important;
}

/* Email word break */
.word-break-all {
    word-break: break-all;
}

/* Responsive font size for site name in header/footer */
header .text-2xl {
    font-size: 1.5rem; /* Default desktop */
}
@media (max-width: 767px) {
    header .text-2xl {
        font-size: 1rem;
    }
}

footer .text-xl {
    font-size: 1.25rem;
}
@media (max-width: 767px) {
    footer .text-xl {
        font-size: 1rem;
    }
}
/*
 * New stock styles for common HTML elements within .lawMatrixNode
 * Designed for readability with moderate font sizes and clear spacing.
 */

.lawMatrixNode {
    /* Container padding: top, right, bottom, left.
     * Provides internal spacing for the content within the node.
     */
    padding: 2rem 2.5rem;
    /* Optional: Add a bottom margin if these nodes are stacked to separate them visually. */
    /* margin-bottom: 2rem; */
}

/* Heading 1 styles: Moderately sized for primary titles */
.lawMatrixNode h1 {
    font-size: 1.6rem; /* Relative to root font size, not overly large */
    font-weight: 600;  /* Semi-bold for emphasis */
    line-height: 1.3;  /* Improved readability for larger text */
    margin-top: 1.8rem; /* Space above the heading */
    margin-bottom: 1rem; /* Space below the heading */
}

/* Heading 2 styles: Slightly smaller than h1, for secondary titles */
.lawMatrixNode h2 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

/* Heading 3 styles: For tertiary titles or sub-sections */
.lawMatrixNode h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
}

/* Heading 4 styles: Closer to body text size, but still distinct */
.lawMatrixNode h4 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Heading 5 styles: Often used for small headings or strong emphasis, bolded */
.lawMatrixNode h5 {
    font-size: 1rem; /* Same as base body text size */
    font-weight: 700; /* Bolder to distinguish from regular text */
    line-height: 1.5;
    margin-top: 0.8rem;
    margin-bottom: 0.4rem;
}

/* Paragraph styles: Standard text block */
.lawMatrixNode p {
    font-size: 1rem; /* Base font size for paragraphs */
    line-height: 1.6; /* Good for readability, provides space between lines */
    margin-bottom: 1rem; /* Space between paragraphs for clear separation */
}

/* Unordered list styles: For bulleted lists */
.lawMatrixNode ul {
    list-style-type: disc; /* Default disc bullets */
    margin-top: 1rem;    /* Space above the list */
    margin-bottom: 1rem; /* Space below the list */
    padding-left: 1.8rem; /* Indentation for the bullet points */
}

/* List item styles: For individual items within a list */
.lawMatrixNode li {
    font-size: 1rem; /* Ensures list items match paragraph font size */
    line-height: 1.5; /* Line height for list items */
    margin-bottom: 0.5rem; /* Space between individual list items */
}
@media (max-width:575px) {
    .text-xl{
        font-size: 0.8rem!important;
    }
    .text-3xl{
        font-size: 1.1rem!important;
    }
    .text-4xl{
        font-size: 1.1rem!important;
    }
    .lawMatrixNode h1{
font-size: 1.2rem!important;
    }
    .lawMatrixNode h2{
font-size: 1rem!important;
    }
    .lawMatrixNode h3{
font-size: 1rem!important;
    }
    .lawMatrixNode h4{
font-size: 1rem!important;
    }
    .lawMatrixNode h5{
font-size: 1rem!important;
    }
}