:root {
    --primary-bg: #000;
    --section-bg: #0a0a0a;
    --card-bg: #111;
    --text-main: #f5f5f5;
    --text-muted: #999;
    --accent: #0078D4;
    --accent-hover: #005fa3;
}

/* Global Layout */
body {
    font-family: "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section {
    background-color: var(--section-bg);
    color: var(--text-main);
    padding: 4rem 0;
}

section + section {
    border-top: 1px solid #1a1a1a;
}

/* Navbar */
.navbar {
    background-color: var(--section-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

    .nav-link:hover {
        color: var(--accent);
    }

/* Hero Banner */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 6rem 2rem;
    text-align: center;
    color: #fff;
}

    .hero-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.55);
        z-index: 0;
    }

    .hero-section .container {
        position: relative;
        z-index: 1;
    }

/* Cards */
.card {
    background-color: var(--card-bg);
    border: none;
    color: var(--text-main);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 20px rgba(0, 120, 212, 0.15);
    }

    .card img {
        max-height: 80px;
        margin-bottom: 1rem;
        object-fit: contain;
    }

.icon-wrapper i {
    font-size: 2.5rem;
    color: var(--accent);
}

/* Portfolio */
.portfolio-icon {
    width: 60px;
    margin-bottom: 1rem;
}

.tooltip {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Forms */
input,
textarea {
    background-color: #1a1a1a;
    color: var(--text-main);
    border: 1px solid #444;
    border-radius: 0.3rem;
}

    input:focus,
    textarea:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 0.2rem rgba(0, 120, 212, 0.25);
    }

/* Validation */
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #dc3545;
    font-size: 0.85rem;
}

/* Blazor Error UI */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,... your inline SVG ...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

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

/* Footer */
.footer {
    background-color: #0a0a0a;
    color: var(--text-muted);
    padding: 2rem 0;
    font-size: 0.9rem;
    text-align: center;
}
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-track {
    display: inline-block;
    animation: scroll-marquee 25s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    display: inline-block;
    margin: 0 2rem;
}

    .marquee-item img {
        height: 60px;
        max-width: 150px;
        filter: brightness(0) invert(1); /* makes logos white if dark-mode */
        opacity: 0.85;
        transition: opacity 0.3s ease;
    }

        .marquee-item img:hover {
            opacity: 1;
        }

@keyframes scroll-marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}
:root {
    --primary-bg: #ffffff;
    --section-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --accent: #0078D4;
    --accent-hover: #005fa3;
}

body.dark-mode {
    --primary-bg: #000000;
    --section-bg: #0a0a0a;
    --card-bg: #111111;
    --text-main: #f5f5f5;
    --text-muted: #999999;
    --accent: #0078D4;
    --accent-hover: #005fa3;
}