:root {
    /* Colors derived from the logo (dark red and dark green) */
    --primary: #8e1529;
    /* Dark Red from logo */
    --primary-light: #b41b34;
    --primary-dark: #630e1c;
    --secondary: #224d35;
    /* Dark Green from logo */
    --secondary-light: #2d6646;
    --secondary-dark: #153322;
    --bg-dark: #f8fafc;
    /* Deep dark background */
    --bg-surface: #ffffff;
    --bg-surface-light: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --white: #ffffff;
    --radius: 16px;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    --glow: 0 0 20px rgba(142, 21, 41, 0.15);
}

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

body {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background effects */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(100px);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(120px);
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand img {
    max-height: 55px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
    transition: transform 0.3s;
}

.brand:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 5% 4rem;
    /* Reduced top padding */
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(142, 21, 41, 0.2);
    border: 1px solid var(--primary);
    color: var(--primary-light);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Brands Collage */
.brands-collage {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    max-width: 650px;
    width: 100%;
    z-index: 1;
}

.hero-bg-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    object-fit: contain;
}

.brand-item {
    width: 100%;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
    object-fit: contain;
    height: 100px;
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s, box-shadow 0.3s;
}

.brand-item:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Informational Info Blocks */
.info-section {
    padding: 5rem 5%;
}

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

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
    background: rgba(142, 21, 41, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.info-card p {
    color: var(--text-muted);
}

/* Forms */
.form-section {
    padding: 4rem 5%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.form-container {
    width: 100%;
    max-width: 650px;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.form-container>p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-main);
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: var(--glow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(142, 21, 41, 0.3);
    border: 1px solid var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(142, 21, 41, 0.5);
    background: var(--primary-light);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border: 1px solid var(--secondary-dark);
    box-shadow: 0 5px 15px rgba(34, 77, 53, 0.3);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(34, 77, 53, 0.5);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-login {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
}

/* Dashboard specifics */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--bg-dark);
}

.sidebar {
    width: 260px;
    background: var(--bg-surface);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.sidebar a {
    display: block;
    padding: 0.85rem 1.25rem;
    color: var(--text-muted);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(142, 21, 41, 0.05);
    color: var(--primary);
}

.main-content {
    flex: 1;
    padding: 2.5rem;
    height: 100vh;
    overflow-y: auto;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    background: var(--bg-surface);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: #f1f5f9;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

tr:hover td {
    background: #f8fafc;
}

td {
    color: var(--text-main);
}

/* Footer */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    max-height: 60px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

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

/* Mobile logic */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 3rem;
    }

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

    .nav-menu {
        display: none;
    }

    /* Could add hamburger here later */
    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        padding: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        flex-direction: row;
        overflow-x: auto;
        gap: 1rem;
    }

    .sidebar a {
        margin-bottom: 0;
        white-space: nowrap;
        padding: 0.5rem 1rem;
    }

    .sidebar h2 {
        margin-bottom: 0;
        align-self: center;
        margin-right: 1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}