/*
* Outcomes Dash - Main CSS File
* Modern tech-focused design with matte colors
*/

/* Base Styles and Variables */
:root {
    --matte-blue: #405275;
    --light-blue: #6B84B1;
    --matte-burgundy: #7E354D;
    --light-burgundy: #AF5575;
    --matte-grey: #607D8B;
    --light-grey: #B0BEC5;
    --ultra-light-grey: #ECEFF1;
    --dark-grey: #37474F;
    --accent-yellow: #FFC107;
    --white: #FFFFFF;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    --dark-blue: #243558;
    --royal-blue: #1E3A8A;
    --robin-egg-blue: #00BFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);  /* This correctly uses Inter as the body font */
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);  /* This correctly uses Cinzel for headings */
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 600;
    color: var(--matte-blue);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--matte-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--matte-burgundy);
}

ul {
    list-style-type: none;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-divider {
    height: 4px;
    width: 60px;
    background-color: var(--matte-burgundy);
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    margin: 0.5rem;
    font-size: 1rem;
    min-width: 150px; /* Ensures buttons have consistent width */
    letter-spacing: 0.5px; /* Improves readability */
}

.primary-btn {
    background-color: var(--matte-burgundy);
    color: var(--white);
}

.primary-btn:hover {
    background-color: var(--light-burgundy);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.secondary-btn {
    background-color: var(--matte-blue);
    color: var(--white);
}

.secondary-btn:hover {
    background-color: var(--light-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header and Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex: 0 0 auto;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 100;
    margin: 0;
    background: linear-gradient(to bottom, #666, #84A3FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /*text-shadow: 0px 2px 3px rgba(0, 0, 0, 0.1);*/
    letter-spacing: 1px;
}

#primary-menu {
    display: flex;
    align-items: center;
}

#primary-menu ul {
    display: flex;
}

#primary-menu ul li {
    margin-left: 1.5rem;
}

#primary-menu ul li a {
    color: var(--matte-blue);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

#primary-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--matte-burgundy);
    transition: width 0.3s ease;
}

#primary-menu ul li a:hover::after,
#primary-menu ul li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--matte-blue);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    background-color: var(--ultra-light-grey);
    margin-top: .1rem;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero-content h1 {
    color: var(--matte-blue);
    margin-bottom: 1rem;
    font-size: 3rem;
}

.hero-content h2 {
    color: var(--matte-burgundy);
    font-weight: 400;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to right, #405275, #7E354D);
    margin-top:25px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    /*border-radius: 22px;*/
    box-shadow:0 10px 30px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);*/
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.feature-list {
    list-style: none;
    margin-left: 1.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.feature-list li::before {
    /*content: '\f00c';*/
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--matte-burgundy);
    position: absolute;
    left: 0;
    top: 4px;
}

/* Dashboard Components Section */
.dashboard-section {
    padding: 6rem 0;
    background-color: var(--ultra-light-grey);
}

.component-category {
    margin-bottom: 4rem;
}

.component-category h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--matte-burgundy);
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.component-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.component-icon {
    font-size: 2.5rem;
    color: var(--matte-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.component-card h4 {
    margin-bottom: 1rem;
    color: var(--matte-burgundy);
}

.component-card ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.component-card ul li {
    position: relative;
    margin-bottom: 0.5rem;
    list-style-type: disc;
    color: var(--matte-grey);
}

/* Data visualization section with Three.js background */
.data-visualization-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

/* Three.js canvas background */
.data-flow-background { /* <--- This is the selector to change */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Wave canvas background */
#data-flow-canvas { /* <--- Changed selector to use the ID */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Ensure it's behind the grid (which has z-index: 1) */
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}
/* Responsive adjustments */
@media (max-width: 992px) {
    .charts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .chart-container {
        padding: 1.5rem;
    }

    .chart {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .chart {
        height: 400px;
    }
}

/* Frosted glass effect for chart containers */
.chart-container {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.1) 100%
    );
    z-index: -1;
}

.chart-container h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--matte-burgundy);
}

.chart {
    height: 450px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.chart-container p {
    text-align: center;
    margin-top: 1rem;
    color: var(--matte-grey);
    font-weight: 500;
}

.chart-container .chart-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--dark-grey);
    max-width: 80%;
    margin: 1rem auto 0;
}

/* FIT Section */
.fit-section {
    padding: 6rem 0;
    background-color: var(--ultra-light-grey);
}

.fit-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.fit-text {
    flex: 1;
    min-width: 300px;
}

.fit-text h3 {
    color: var(--matte-burgundy);
    margin-bottom: 1.5rem;
}

.firstcharacter {
    color: var(--matte-burgundy);
    float: left;
    font-size: 5rem;
    line-height: 60px;
    padding-top: 4px;
    padding-right: 8px;
    padding-left: 3px;
    font-family: var(--font-heading);
}

.fit-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.fit-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /*box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);*/
}

.fit-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--matte-blue);
    margin-bottom: 1.5rem;
    text-align: center;
}

.benefit-card h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--matte-burgundy);
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--ultra-light-grey);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--matte-burgundy);
    margin-bottom: 1.5rem;
    text-align: center;
}

.feature-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--matte-blue);
}

.feature-card h4 {
    color: var(--matte-burgundy);
    margin-top: 1.5rem;
}

/* Human Factor Section */
.human-factor-section {
    padding: 6rem 0;
    background-color: var(--ultra-light-grey);
}

.human-factor-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.human-factor-image {
    flex: 1;
    min-width: 300px;
}

.human-factor-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.human-factor-text {
    flex: 1;
    min-width: 300px;
}

.human-factor-text h3 {
    color: var(--matte-burgundy);
    margin-bottom: 1.5rem;
}

/* Process Section */
.process-section {
    padding: 6rem 0;
    background-color: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 2rem;
    background-color: var(--ultra-light-grey);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -20px;
    left: calc(50% - 20px);
    width: 40px;
    height: 40px;
    background-color: var(--matte-burgundy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step-icon {
    font-size: 2.5rem;
    color: var(--matte-blue);
    margin-bottom: 1.5rem;
}

.process-step h3 {
    margin-bottom: 1rem;
    color: var(--matte-burgundy);
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background-color: var(--ultra-light-grey);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-method {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--matte-burgundy);
    margin-bottom: 1.5rem;
}

.contact-method h3 {
    margin-bottom: 1rem;
    color: var(--matte-blue);
}

.contact-method a {
    color: var(--matte-grey);
    font-weight: 500;
}

.contact-method a:hover {
    color: var(--matte-burgundy);
}

/* Footer */
#main-footer {
    background-color: var(--dark-grey);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    margin-bottom: 1rem;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
}

.footer-nav ul li {
    margin-left: 1.5rem;
}

.footer-nav ul li a {
    color: var(--light-grey);
}

.footer-nav ul li a:hover {
    color: var(--white);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-section {
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content, .hero-image,
    .about-image, .about-text,
    .fit-text, .fit-image,
    .human-factor-image, .human-factor-text {
        flex: 1 1 100%;
    }

    .site-title {
        font-size: 1.3rem;
    }

    .about-image, .fit-image, .human-factor-image {
        margin-bottom: 2rem;
    }

    #primary-menu ul {
        transition: transform 0.3s ease;
        transform: translateY(-10px);
        opacity: 0;
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    #primary-menu ul.show {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    #primary-menu ul li {
        margin: 0;
        text-align: center;
        padding: 0.5rem 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .chart {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.75rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.25rem;
    }

    .chart {
        height: 250px;
    }
}
