:root {
    --primary-blue: #007bff;
    --secondary-blue: #1e90ff;
    --dark-bg: #0d1a2f;
    --medium-dark-bg: #1a2a40;
    --text-color: #e0e6f0;
    --light-text: #a0b0c0;
    --border-color: #2a3d54;
    --container-width: 1100px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--dark-bg);
    color: var(--text-color);
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

header {
    background-color: rgba(13, 26, 47, 0.9);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 35px;
    display: block;
}

main {
    padding-top: 75px; /* Adjusted to match header height */
}

section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
}
section:last-of-type {
    border-bottom: none;
}

#home {
    background: linear-gradient(rgba(13, 26, 47, 0.7), rgba(13, 26, 47, 0.7)), url('img/background.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin: 0 0 0.8rem 0;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 123, 255, 0.6);
}

.hero p {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 300;
    color: var(--text-color); /* Changed to white as requested */
    letter-spacing: 1px;
}

h2 {
    text-align: center;
    margin: 0 0 3.5rem 0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--secondary-blue);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--medium-dark-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.solution-card h3 {
    color: var(--primary-blue);
    margin-top: 0;
    font-size: 1.6rem;
    font-weight: 600;
}

.solution-card p {
    color: var(--light-text);
    line-height: 1.7;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    color: var(--light-text);
}

.button {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.button:hover {
    background-color: var(--secondary-blue);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

#contact form {
    display: flex;
    flex-direction: column;
    max-width: 700px;
    margin: auto;
    gap: 1rem;
}

#contact input, #contact textarea {
    padding: 1.1rem;
    background-color: var(--medium-dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

#contact input::placeholder, #contact textarea::placeholder {
    color: var(--light-text);
    opacity: 0.7;
}

#contact input:focus, #contact textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.3);
}

footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #081220;
    color: var(--light-text);
    border-top: 1px solid var(--border-color);
}


/* --- CORRECTED RESPONSIVE MENU STYLES --- */

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-blue);
}

.hamburger-menu {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    z-index: 1001; /* Make sure it's above the menu */
}

.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Hamburger animation to 'X' */
.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}


/* --- MEDIA QUERY FOR RESPONSIVENESS --- */
@media (max-width: 850px) {
    .hamburger-menu {
        display: flex; /* Show hamburger on mobile */
    }

    .nav-links {
        position: fixed;
        top: 75px; /* Position below the header */
        left: -100%; /* Start off-screen */
        width: 100%;
        height: calc(100vh - 75px);
        background-color: rgba(13, 26, 47, 0.98);
        backdrop-filter: blur(10px);
        
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        transition: left 0.4s ease-in-out;
        z-index: 999; /* This makes it appear ON TOP */
    }

    .nav-links.active {
        left: 0; /* Slide menu in */
    }

    .nav-links li {
        margin: 2rem 0;
    }
    
    .nav-links li a {
        font-size: 1.5rem;
    }
}


/* --- RESULTS SECTION STYLES --- */

#results {
    text-align: center;
}

.results-title {
    margin-bottom: 0.5rem;
}

.results-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
    color: var(--light-text);
    margin-top: 0;
    margin-bottom: 3.5rem;
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 4rem auto;
}

/* Tabulator Custom Theme */
#example-table {
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--medium-dark-bg) !important;
    font-size: 14px;
}

.tabulator-header {
    background-color: #111e31 !important;
    border-bottom: 1px solid var(--primary-blue) !important;
    color: var(--text-color) !important;
    font-weight: 600 !important;
}

.tabulator-row {
    background-color: var(--medium-dark-bg) !important;
    color: var(--light-text) !important;
}

.tabulator-row:hover {
    background-color: #213552 !important;
}

.tabulator-footer {
    background-color: #111e31 !simple;
    border-top: 1px solid var(--border-color) !important;
}

.tabulator-page {
    color: var(--text-color) !important;
}

.tabulator-page.active {
    color: var(--primary-blue) !important;
}

/* --- Form Label Styles --- */
#contact form label {
  text-align: left;
  color: var(--light-text);
  margin-bottom: -0.5rem; /* Adjusts space between label and input */
  font-weight: 500;
}