/*
================================================
TABLE OF CONTENTS
================================================
1.  :root Variables
2.  Global Styles & Resets
3.  Utility Classes
4.  Header & Navigation
5.  Footer
6.  Buttons & Forms
7.  Hero Section
8.  Services Section
9.  About / Stats Section
10. Interactive Report Section
11. Testimonials Section
12. ROI Calculator Section
13. Call-to-Action (CTA) Section
14. Page-Specific Styles (Contact, Legal)
15. Animations & Keyframes
16. Media Queries (Responsiveness)
================================================
*/

/* 1. :root Variables */
:root {
    --primary-color: #0d1117;
    --secondary-color: #161b22;
    --accent-color: #58a6ff;
    --accent-hover: #79c0ff;
    --text-light: #f0f6fc;
    --text-dark: #8b949e;
    --bg-light: #ffffff;
    --border-color: #30363d;
    --white-color: #ffffff;
    --gradient: linear-gradient(135deg, var(--accent-color), #1f6feb);
    --font-family: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 8px;
    --shadow: 0 10px 30px rgba(56, 139, 253, 0.15);
    --transition-speed: 0.3s ease;
}


/* 2. Global Styles & Resets */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--primary-color);
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 100px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 3. Utility Classes */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title h2 {
    margin-bottom: 20px;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: #777;
}

/* 4. Header & Navigation */
.site-header {
    background-color: var(--primary-color);
    padding: 0 20px;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-speed);
}

.site-header.scrolled {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    height: 70px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    
    transition: height var(--transition-speed);
}

.site-header.scrolled .logo img {
    height: 35px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: var(--text-light);
    font-weight: 500;
    padding: 10px 5px;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white-color);
    border-radius: 3px;
    transition: all var(--transition-speed);
}

.nav-open .hamburger-menu span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-open .hamburger-menu span:nth-child(2) {
    opacity: 0;
}

.nav-open .hamburger-menu span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 5. Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h4 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient);
}

.footer-column.about p {
    color: #ccc;
    line-height: 1.8;
}

.footer-logo img {
    height: 45px;
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    transition: all var(--transition-speed);
}

.footer-column ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-column.contact p {
    color: #ccc;
    margin-bottom: 10px;
}

.footer-column.contact a {
    color: #ccc;
}

.footer-column.contact a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: #aaa;
    font-size: 0.9rem;
}

/* 6. Buttons & Forms */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient);
    color: var(--white-color);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 169, 157, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 169, 157, 0.4);
    color: var(--white-color);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--white-color);
    color: var(--white-color);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: var(--white-color);
    color: var(--primary-color);
}

.header-cta {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 169, 157, 0.2);
}

/* 7. Hero Section */
.hero-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -100px;
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: 5%;
    right: 5%;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 20%;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-weight: 900;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 8. Services Section */
.services-section {
    background-color: var(--white-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #e0e1dd;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 30px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white-color);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* 9. About / Stats Section */
.about-stats-section {
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text .section-tag {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text ul {
    list-style: none;
    margin-top: 20px;
}

.about-text ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}

.about-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-weight: 900;
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stat-item {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-item h3::after {
    content: '%';
}

.stat-item:nth-child(2) h3::after,
.stat-item:nth-child(4) h3::after {
    content: '+';
}

.stat-item p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

/* 10. Interactive Report Section */
.interactive-report-section {
    background-color: var(--white-color);
}

.report-dashboard {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.report-header h3 {
    color: var(--white-color);
}

.date-range {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.report-kpi {
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: var(--border-radius);
}

.report-kpi h4 {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.kpi-change {
    font-weight: 600;
}

.kpi-change.positive {
    color: #2ecc71;
}

.kpi-change.negative {
    color: #e74c3c;
}

.report-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.chart-container h4 {
    color: var(--white-color);
    margin-bottom: 20px;
}

.bar-chart {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    height: 150px;
}

.bar-item {
    flex-grow: 1;
    background-color: var(--bar-color, var(--accent-color));
    height: var(--bar-value, 0%);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-out;
    position: relative;
}

.bar-item::after {
    content: attr(data-label);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    white-space: nowrap;
}

.report-dashboard.visible .bar-item {
    height: var(--bar-value);
}

.line-chart-placeholder {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.line-chart-placeholder svg {
    width: 100%;
    height: auto;
}

.line-chart-placeholder span {
    margin-top: 15px;
    font-weight: 600;
    color: var(--accent-color);
}

/* 11. Testimonials Section */
.testimonials-section {
    background-color: var(--bg-light);
    position: relative;
}

.testimonials-section::before {
    content: '“';
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10rem;
    color: rgba(0, 169, 157, 0.1);
    font-family: serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-slider-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    transition: transform var(--transition-speed);
}

.testimonial-slide {
    min-width: 100%;
    padding: 20px;
    text-align: center;
}

.testimonial-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.author-info span {
    color: #777;
    font-size: 0.9rem;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
    pointer-events: none;
}

.slider-controls button {
    pointer-events: all;
    background-color: var(--white-color);
    border: 1px solid #ddd;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

.slider-controls button:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
    border-color: var(--accent-color);
}

.prev-btn {
    margin-left: -25px;
}

.next-btn {
    margin-right: -25px;
}

/* 12. ROI Calculator Section */
.roi-calculator-section {
    background-color: var(--white-color);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background-color: var(--bg-light);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.calculator-form input {
    font-weight: 600;
    font-size: 1.2rem;
}

.calculator-results {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 40px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calculator-results h4 {
    color: var(--white-color);
    margin-bottom: 30px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-item span {
    color: var(--text-light);
}

.result-item strong {
    font-size: 2rem;
    color: var(--accent-color);
}

.disclaimer {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: auto;
    padding-top: 20px;
}


/* 13. Call-to-Action (CTA) Section */
.cta-section {
    background: var(--gradient);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    color: var(--white-color);
}

.cta-content h2 {
    color: var(--white-color);
    margin-bottom: 20px;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-section .cta-button {
    background: var(--white-color);
    color: var(--primary-color);
    box-shadow: none;
}

.cta-section .cta-button:hover {
    background: #f1f1f1;
    transform: translateY(-3px) scale(1.05);
}

/* 14. Page-Specific Styles (Contact, Legal) */
.page-hero-section {
    padding: 150px 0 80px;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
}

.page-hero-section h1 {
    color: var(--white-color);
}

.page-hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 10px auto 0;
    color: var(--text-light);
}

/* Contact Page */
.contact-page-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    background-color: var(--white-color);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form-container h2,
.contact-info-container h2 {
    margin-bottom: 15px;
}

.contact-form-container p,
.contact-info-container p {
    margin-bottom: 30px;
}

#contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--white-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-info-item h4 {
    margin-bottom: 5px;
}

.contact-info-item p {
    margin-bottom: 0;
    line-height: 1.5;
}

/* Legal Pages */
.legal-content-section {
    padding: 80px 0;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
}

.legal-text h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.legal-text h2:first-of-type {
    margin-top: 0;
}

.legal-text p,
.legal-text ul {
    margin-bottom: 20px;
}

.legal-text ul {
    list-style: disc;
    padding-left: 20px;
}

.legal-text li {
    margin-bottom: 10px;
}


/* 15. Animations & Keyframes */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.fade-in {
    opacity: 0;
}

.animate-on-scroll.fade-in.is-visible {
    opacity: 1;
}

.animate-on-scroll.fade-in-up {
    transform: translateY(50px);
}

.animate-on-scroll.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.slide-in-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll.slide-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.animate-on-scroll.zoom-in {
    transform: scale(0.9);
}

.animate-on-scroll.zoom-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* 16. Media Queries (Responsiveness) */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .about-content,
    .calculator-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-text {
        text-align: center;
    }

    .stats-grid {
        grid-row: 1;
        margin-bottom: 40px;
    }

    .report-charts {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 80px 0;
    }

    /* Mobile Navigation */
    .header-cta {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transition: left var(--transition-speed);
    }

    .nav-open .nav-links {
        left: 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 150px 0 100px;
        min-height: 80vh;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .report-grid {
        grid-template-columns: 1fr 1fr;
    }

    .slider-controls {
        display: none;
        /* Hide arrows on mobile, rely on swipe (if implemented) */
    }

    .calculator-wrapper {
        padding: 30px;
    }

}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .stats-grid,
    .report-grid {
        grid-template-columns: 1fr;
    }
}