/*
================================================
TABLE OF CONTENTS
================================================
1.  :root Variables & General Styles
2.  Header & Navigation
3.  Hero Section
4.  Trusted By, Services & Framework Sections
5.  Results (Stats) Section
6.  Testimonials & FAQ Sections
7.  Final CTA Section
8.  Footer
9.  Sub-Page Styles (Contact, Legal)
10. Animations & Keyframes
11. Responsive Media Queries
================================================
*/

/* 1. :root Variables & General Styles */
:root {
    --color-primary: #5A67D8;
    /* Indigo */
    --color-accent: #007BFF;
    /* Blue */
    --color-dark: #0D1B2A;
    --color-text: #4A5568;
    --color-light: #FFFFFF;
    --color-background: #F8F9FA;
    --color-border: #E2E8F0;

    --font-main: 'Figtree', sans-serif;

    --header-height: 90px;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --section-padding: 100px 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-light);
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-main);
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-padding);
}

.highlight {
    background: -webkit-linear-gradient(45deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    margin-bottom: 4rem;
    max-width: 600px;
}

.text-center {
    text-align: center;
}

/* FIX: Ensures the centered section title block is always centered */
.section-title.text-center {
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 10px 20px rgba(90, 103, 216, 0.25);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(90, 103, 216, 0.35);
}

/* 2. Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    max-height: 80px;
    filter: brightness(0);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--color-dark);
    font-weight: 600;
}

#hamburger-btn {
    display: none;
    background: none;
    border: none;
    z-index: 1001;
    cursor: pointer;
}

#hamburger-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-dark);
    transition: all 0.3s ease-in-out;
    border-radius: 3px;
}

/* 3. Hero & Trusted By Sections */
#hero {
    padding: calc(var(--header-height) + 80px) 0 100px;
    text-align: center;
    background-color: #fff;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

#hero h1 {
    margin-bottom: 1.5rem;
}

#hero p {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

#trusted-by {
    padding: 2rem 0;
    background-color: var(--color-background);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

#trusted-by p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #718096;
    font-weight: 600;
}

.scroller {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.scroller-inner {
    display: flex;
    gap: 4rem;
    width: fit-content;
    animation: scroll 30s linear infinite;
}

.scroller-inner span {
    font-weight: 700;
    font-size: 1.2rem;
    color: #A0AEC0;
    white-space: nowrap;
}

/* 4. Services & Framework Sections */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: all var(--transition-speed) ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent);
}

#framework {
    background-color: #fff;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
    padding-left: 30px;
    border-left: 2px solid var(--color-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -41px;
    width: 18px;
    height: 18px;
    background-color: var(--color-light);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content span {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* 5. Results (Stats) & Why Us Sections */
#results {
    background: var(--color-dark);
}

#results .subtitle,
#results h2,
#results p {
    color: var(--color-light);
}

#results .subtitle {
    color: var(--color-accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item .stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-light);
    background: -webkit-linear-gradient(45deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#why-us {
    background-color: var(--color-light);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.why-us-image {
    height: auto;
    background-color: var(--color-border);
    border-radius: var(--border-radius);
}

.why-us-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 1rem;
}

.why-us-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* 6. Testimonials & FAQ Sections */
#testimonials {
    background-color: #fff;
}

.testimonial-slider-wrapper {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
}

.testimonial-slide {
    text-align: center;
    display: none;
    background-color: var(--color-light);
    padding: 3rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.testimonial-slide.active {
    display: block;
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
}

.slider-controls {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.slider-controls button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #fff;
    cursor: pointer;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-in-out;
}

/* 7. Final CTA Section */
#final-cta {
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
}

#final-cta h2,
#final-cta p {
    color: #fff;
}

/* 8. Footer */
#main-footer {
    background-color: var(--color-dark);
    color: #fff;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4,
.footer-col a,
.footer-col li,
.footer-col p {
    color: #adb5bd;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid #343a40;
}

/* 9. Sub-Page Styles */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    background-color: #fff;
}

#contact-page .contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.contact-info-wrapper {
    background-color: var(--color-dark);
    color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-info-wrapper h3,
.contact-info-wrapper h4,
.contact-info-wrapper p {
    color: #fff;
}

.legal-content .container {
    max-width: 800px;
    background-color: #fff;
    padding: 4rem;
}

.legal-content h2 {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* 10. Animations & Keyframes */
@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s, transform 0.8s;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 11. Responsive Media Queries */
@media (max-width: 992px) {
    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 350px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
    }

    #main-nav.is-active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 30px;
    }

    .header-cta {
        display: none;
    }

    #hamburger-btn {
        display: block;
        z-index: 1001;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    #footer-brand {
        grid-column: 1 / -1;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
    }

    /* CONTACT PAGE RESPONSIVE FIX */
    #contact-page .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}