/* Shared CSS for DataDash Website */

/* Root variables for colors and fonts */
:root {
    --primary-color: #DC2626; /* A strong, confident red */
    --primary-hover: #B91C1C; /* A slightly darker red for hover */
    --background-color: #0c0a13; /* Dark background */
    --surface-color: #1a1625;   /* Slightly lighter surface for cards */
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --border-color: #333;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --font-main: 'Inter', sans-serif;
    --font-code: 'Source Code Pro', monospace;
}

/* General Body Styles */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.main-header {
    background-color: var(--background-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--text-color);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    padding: 1rem 0; /* Add padding to bridge the gap */
    margin: -1rem 0; /* Negative margin to keep alignment */
}

.dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.dropdown-toggle:hover {
    color: var(--text-color);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 150px;
    z-index: 1100;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: var(--primary-color);
    color: white;
}


/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}


/* Main Content & Section Styling */
main {
    padding-top: 2rem;
}

section {
    padding: 4rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}


/* Code Block Styling */
.code-block-container {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
}

pre {
    background-color: #110e1b;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    text-align: left;
}

code {
    font-family: var(--font-code);
    font-size: 0.95rem;
    color: #c3c3c3;
}


/* Features Table */
.features-table-section {
    background-color: var(--surface-color);
}

.features-table {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto 0 auto;
    border-collapse: collapse;
    text-align: center;
}

.features-table th, .features-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.features-table th {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.features-table td:first-child {
    text-align: left;
    font-weight: 600;
}

.features-table .check {
    color: var(--success-color);
    font-size: 1.5rem;
}

.features-table .cross {
    color: var(--danger-color);
    font-size: 1.5rem;
}


/* Footer Styles */
.main-footer {
    background-color: #110e1b;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

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

.footer-links a, .footer-links span {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    color: var(--text-color);
}

.main-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Styles for the Use Cases Page --- */
.use-cases-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.use-cases-container h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.use-cases-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.use-case-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.use-case-card h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.use-case-card p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.use-case-card .btn {
    margin-top: 1rem;
}

.final-cta {
    padding: 4rem 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
}

.final-cta p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.final-cta .btn {
    margin: 0 0.5rem;
}

