﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* --- Keyframes & Root Variables --- */
:root {
    --primary-dark-blue: #0A2342;
    --primary-medium-blue: #2C5D92;
    --primary-light-blue: #376C9E;
    --accent-blue: #5B8AC6;
    --light-gray-bg: #F0F2F5;
    --text-light: #FFFFFF;
    --text-light-alt: #CAD2DB;
    --text-dark: #333333;
    --border-color: #2C5D92;
    --danger-red: #e74c3c;
    --danger-red-hover: #c0392b;
}

@keyframes slowPan {
    0% {
        background-position: center center;
    }

    50% {
        background-position: top left;
    }

    100% {
        background-position: center center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Base & Body Styles --- */
html, body {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-light);
    background-color: var(--primary-dark-blue);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(rgba(10, 35, 66, 0.92), rgba(10, 35, 66, 0.92)), url('../img/industrial_layout.jpg');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        animation: slowPan 90s linear infinite;
        z-index: -1;
    }

/* --- Header & Footer --- */
header, footer {
    background-color: rgba(10, 35, 66, 0.97);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

header {
    position: fixed;
    top: 0;
    left: 0;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    border-bottom: none;
    border-top: 1px solid var(--border-color);
}


.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

    .logo img:hover {
        transform: scale(1.05);
    }

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

    nav ul li {
        margin-left: 25px;
    }

        nav ul li a {
            text-decoration: none;
            color: var(--text-light);
            font-weight: 600;
            font-size: 0.9em;
            padding: 8px 0;
            border-bottom: 2px solid transparent;
            transition: color 0.3s ease, border-bottom-color 0.3s ease;
        }

            nav ul li a:hover, nav ul li a.active {
                color: var(--accent-blue);
                border-bottom-color: var(--accent-blue);
            }

.header-contact {
    font-size: 0.9em;
    color: var(--text-light-alt);
}

    .header-contact a {
        color: var(--text-light-alt);
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .header-contact a:hover {
            color: var(--text-light);
        }

footer p {
    font-size: 0.8em;
    margin: 0;
    width: 100%;
    text-align: center;
    color: var(--text-light-alt);
}

/* --- Main Content & Layout --- */
main {
    flex-grow: 1;
    padding-top: 81px; /* Header height */
    padding-bottom: 81px; /* Footer height */
    box-sizing: border-box;
}

.content-section {
    padding: 60px 5%;
    text-align: center;
}

    .content-section.alternate-bg {
        background-color: rgba(0,0,0,0.15);
    }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out forwards;
}

h1, h2, h3, h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-light);
}

h1 {
    font-size: 3.2em;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

h2 {
    font-size: 2.5em;
}

h3 {
    font-size: 1.5em;
    color: var(--accent-blue);
}

h4 {
    font-size: 1.2em;
}

p {
    line-height: 1.7;
    margin: 0 auto 20px auto;
    max-width: 750px;
    font-size: 1.1em;
    color: var(--text-light-alt);
}

.cta-container {
    margin-top: 40px;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 60px 5%;
}

    .hero p {
        font-size: 1.4em;
        max-width: 800px;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    }

/* --- Radzen Button Customization --- */
.btn {
    margin: 5px;
}

.btn-outline .rz-button {
    background-color: transparent !important;
    border: 2px solid var(--text-light) !important;
}

    .btn-outline .rz-button:hover {
        background-color: var(--text-light) !important;
        color: var(--primary-dark-blue) !important;
    }


/* --- Cards --- */
.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.rz-card.card {
    background-color: rgba(44, 93, 146, 0.7);
    border: 1px solid var(--primary-medium-blue);
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

    .rz-card.card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
        background-color: rgba(44, 93, 146, 0.9);
    }

.card h3 {
    margin-bottom: 15px;
}

.card p {
    font-size: 1em;
    margin-bottom: 0;
    max-width: 100%;
}

.card-icon {
    font-size: 2.5em;
    color: var(--accent-blue);
    margin-bottom: 15px;
}

/* --- Homepage Sections --- */
.industry-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.industry-card {
    width: 100%;
    max-width: 400px;
    min-height: 250px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.industry-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10,35,66,1) 0%, rgba(10,35,66,0.5) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 1;
    padding: 25px;
    box-sizing: border-box;
    text-align: left;
    transition: background 0.3s ease;
}

.industry-card:hover .industry-card-overlay {
    background: linear-gradient(to top, rgba(44,93,146,1) 0%, rgba(44,93,146,0.5) 60%, transparent 100%);
}

.industry-card h3 {
    color: var(--text-light);
}

.industry-card p {
    font-size: 1em;
    max-width: 100%;
    margin-bottom: 15px;
}

/* Testimonial Section - Radzen Carousel */
.testimonial-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}

.testimonial-card {
    background-color: rgba(44, 93, 146, 0.7);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--primary-medium-blue);
    color: var(--text-light);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.2em;
    margin-bottom: 20px;
    color: var(--text-light-alt);
}

.testimonial-author {
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 1em;
}
/* Style for Radzen Carousel pager */
.rz-carousel-content + .rz-carousel-pager {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.rz-carousel-content + .rz-carousel-pager .rz-carousel-pager-item {
    background-color: var(--primary-medium-blue);
    border-radius: 50%;
    width: 12px;
    height: 12px;
    transition: background-color 0.3s ease;
}

.rz-carousel-content + .rz-carousel-pager .rz-carousel-pager-item.rz-state-active {
    background-color: var(--accent-blue);
}

.rz-carousel-content + .rz-carousel-pager .rz-carousel-pager-item .rzi {
    display: none; /* Hide default icons */
}

/* --- Login Page Styles --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background-color: rgba(10, 35, 66, 0.95);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--accent-blue);
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.login-box img {
    height: 60px;
    margin-bottom: 20px;
}

.login-box h3 {
    color: var(--text-light);
    margin-bottom: 25px;
}

.login-box .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.login-box label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light-alt);
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--primary-medium-blue);
    border-radius: 5px;
    background-color: rgba(10, 35, 66, 0.8);
    color: var(--text-light);
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    transition: all 0.3s ease;
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(91, 138, 198, 0.4);
}

.login-box .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    margin-top: 10px;
    background-color: var(--primary-medium-blue);
    border: 1px solid var(--primary-medium-blue);
    color: var(--text-light); /* <-- FIX FOR INVISIBLE BUTTON TEXT */
    cursor: pointer;
}

.login-box .btn:hover {
    background-color: var(--accent-blue);
}

.login-error {
    color: #ff8a8a;
    background-color: rgba(255, 0, 0, 0.15);
    border: 1px solid #e74c3c;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* --- Admin Layout Styles --- */
.admin-layout {
    display: flex;
    height: 100vh;
    background-color: #f4f7fa; /* A light, neutral background */
}

.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background-color: #0A2342; /* Dark sidebar */
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.admin-logo {
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

    .admin-logo a {
        text-decoration: none;
        color: var(--text-light);
        font-size: 1.5em;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .admin-logo img {
        height: 40px;
    }

.admin-main-content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
    color: var(--text-dark);
}

    /* --- Fix for Radzen Card in Admin Area --- */
    .admin-main-content .rz-card {
        background-color: #ffffff; /* Ensure card is white */
        color: var(--text-dark); /* Ensure text in card is dark */
    }

        .admin-main-content .rz-card h1,
        .admin-main-content .rz-card p {
            color: var(--text-dark); /* Override Radzen theme for text inside the card */
        }


/* --- Vertical Nav Menu Styles (Corrected) --- */
.admin-nav-vertical ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Use flexbox for robust control */
    flex-direction: column; /* THIS IS THE KEY FIX: Force vertical stacking */
    gap: 5px; /* Adds space between items */
}

.admin-nav-vertical li {
    width: 90%; /* Ensure list items take full width */
}

/* Style for all links (NavLink and regular <a>) */
.admin-nav-vertical a {
    display: flex;
    box-sizing: border-box; /* Important for correct padding calculation */
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-light-alt);
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-weight: 500;
}

    /* Style for the icons */
    .admin-nav-vertical a i {
        width: 30px; /* Aligns text for all items */
        font-size: 1.1em;
        margin-right: 10px;
        text-align: center;
    }

    /* Hover effect */
    .admin-nav-vertical a:hover {
        background-color: var(--primary-medium-blue);
        color: var(--text-light);
    }

    /* This .active class is automatically added by Blazor's NavLink component */
    .admin-nav-vertical a.active {
        background-color: var(--accent-blue);
        color: var(--text-light);
        font-weight: 600;
    }

/* --- RFQ Page UI Improvements --- */

.rfq-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    text-align: left;
    margin-top: 30px;
}

.rfq-form-card {
    flex: 2;
    min-width: 320px;
    background-color: rgba(0,0,0,0.2) !important;
    border: 1px solid var(--border-color) !important;
}

.rfq-contact-card {
    flex: 1;
    min-width: 300px;
    background-color: rgba(0,0,0,0.2) !important;
    border: 1px solid var(--border-color) !important;
}

.rfq-form h4 {
    color: var(--text-light);
    font-size: 1.2em;
    margin-bottom: 20px;
}

.rfq-form .form-section-header {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.rfq-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.rfq-form .form-group {
    margin-bottom: 15px;
}

/* Style for Radzen form components */
.rfq-form .rz-textbox,
.rfq-form .rz-textarea,
.rfq-form .rz-numeric-input,
.rfq-form .rz-password,
.rfq-form .rz-dropdown {
    background-color: rgba(10, 35, 66, 0.8) !important;
    border: 1px solid var(--primary-medium-blue) !important;
    color: var(--text-light) !important;
}

.rfq-form .rz-inputtext:focus {
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 3px rgba(91, 138, 198, 0.4) !important;
}

.rfq-form .rz-label {
    color: var(--text-light-alt);
    margin-bottom: 8px;
    display: block;
}

/* Contact Card Specifics */
.rfq-contact-card h3 {
    text-align: center;
    color: var(--text-light);
}

.rfq-contact-card p {
    text-align: center;
    max-width: 100%;
    color: var(--text-light-alt);
}

.rfq-contact-card .contact-details {
    margin-top: 25px;
}

    .rfq-contact-card .contact-details p {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .rfq-contact-card .contact-details a {
        color: var(--accent-blue);
        text-decoration: none;
    }

        .rfq-contact-card .contact-details a:hover {
            text-decoration: underline;
        }

    .rfq-contact-card .contact-details i {
        color: var(--accent-blue);
        margin-right: 10px;
        width: 20px;
    }

.rfq-contact-card .office-hours {
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.rfq-form .primary-button {
    background-color: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
    color: var(--text-light) !important;
}


/* --- Knowledge Base Page UI Improvements (Corrected) --- */
.knowledge-base-container {
    text-align: left;
    max-width: 900px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Base style for the entire panel component */
.kb-panel.rz-panel {
    border: 1px solid var(--border-color);
    background: none; /* Remove any default background */
}

/* Style the panel header specifically */
.kb-panel .rz-panel-header {
    background-color: rgba(0,0,0,0.2);
    color: var(--text-light); /* <-- FIX: Header text color */
}

    /* Add a hover effect for better UX */
    .kb-panel .rz-panel-header:hover {
        background-color: rgba(44,93,146,0.5);
    }

/* Style our custom div inside the header template for alignment */
.kb-panel-header {
    display: flex;
    align-items: center;
    font-size: 1.2em;
    font-weight: 600;
}

    /* Style the FontAwesome icon */
    .kb-panel-header i {
        color: var(--accent-blue);
        margin-right: 15px;
        font-size: 1.5em;
        width: 30px;
        text-align: center;
    }

/* Style the expand/collapse (+/-) icon */
.kb-panel .rz-panel-header .rz-panel-toggler {
    color: var(--text-light);
}

/* Style the panel's content area */
.kb-panel .rz-panel-content {
    background-color: rgba(0,0,0,0.3); /* Slightly different background for depth */
    color: var(--text-light-alt); 
    border-top: 1px solid var(--border-color) !important;
}

/* Style our custom div inside the content for padding */
.kb-panel-content {
    padding: 20px;
}

.kb-panel-content p {
    max-width: 100%;
    color: var(--text-light-alt); 
}

/* Style the summary paragraph specifically */
.kb-panel-content p.summary {
    font-style: italic;
    border-left: 3px solid var(--accent-blue);
    padding-left: 15px;
    color: var(--text-light); /* Make summary slightly brighter */
}}

/* --- Master-Detail Layout for Admin Pages --- */

.master-detail-layout {
    display: flex;
    gap: 30px;
    height: calc(100vh - 120px); /* Adjust based on your header/padding */
}

.master-pane {
    flex: 1;
    min-width: 400px;
    display: flex;
    flex-direction: column;
}

.detail-pane {
    flex: 1;
    min-width: 400px;
}

/* Make the grid scrollable within its container */
.master-pane .rz-data-grid {
    flex-grow: 1;
}

/* Ensure form fields are full width in the detail pane */
.detail-pane .rz-w-100 {
    width: 100%;
}

.detail-pane .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 25px;
}

/* --- Product Details Dialog UI Improvements --- */

/* Style the dialog's content area */
.product-dialog .rz-dialog-content {
    padding: 2rem;
    background-color: var(--primary-dark-blue); /* Match site theme */
}

/* Style the cards within the dialog */
.product-dialog-card {
    background-color: rgba(0,0,0,0.2) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-light-alt); /* Set default text color */
}

.product-dialog-header h3 {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 20px;
}

.product-dialog-main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-image-container {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

    .product-image-container img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        border: 2px solid var(--border-color);
    }

.product-description-container {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .product-description-container p {
        color: var(--text-light-alt); /* Ensure paragraph text is visible */
        margin-bottom: 20px;
        font-size: 1.1em;
        line-height: 1.6;
    }

/* Specifications Card styling */
.product-dialog-card h4 {
    color: var(--accent-blue);
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-blue);
    padding-left: 10px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.spec-item {
    background-color: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 5px;
}

.spec-item strong {
    display: block;
    font-size: 0.9em;
    color: var(--text-light-alt);
    margin-bottom: 5px;
}

.spec-item span {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-light); /* Ensure spec text is bright */
}

/* --- Case Study Dialog UI Improvements --- */

/* Style the dialog's content area */
.case-study-dialog .rz-dialog-content {
    padding: 2rem;
    background-color: var(--primary-dark-blue);
}

/* Style the card within the dialog */
.case-study-dialog-card {
    background-color: rgba(0,0,0,0.2) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-light-alt);
}

.case-study-dialog-header h3 {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5em;
}

.case-study-section {
    margin-bottom: 25px;
}

.case-study-section h4 {
    color: var(--accent-blue);
    margin-bottom: 15px;
    border-left: 3px solid var(--accent-blue);
    padding-left: 10px;
    font-size: 1.2em;
}

.case-study-section p {
    color: var(--text-light-alt);
    max-width: 100%;
    line-height: 1.7;
}

.case-study-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-study-section li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
}

.case-study-section li .fa-check {
    color: var(--accent-blue);
    margin-right: 12px;
    margin-top: 5px;
}

/* --- Image Manager Dialog Styles --- */
.image-manager-upload {
    margin-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 20px;
}

.image-gallery {
    max-height: 60vh;
    overflow-y: auto;
}

.image-card {
    width: 150px;
    height: 180px;
    margin: 5px;
    display: flex;
    flex-direction: column;
}

.image-preview {
    height: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 4px;
    margin-bottom: 5px;
}

.image-name {
    font-size: 0.8em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.image-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 5px;
}

/* --- Admin Dialog Form UI Improvements --- */

.rz-dialog-content .form-group .rz-label {
    color: var(--text-dark);
    font-weight: 600;
}

/* --- Admin Dialog Two-Column Layout --- */

.dialog-columns {
    display: flex;
    gap: 25px; /* Space between the columns */
    margin-bottom: 20px;
}

.dialog-column {
    flex: 1; /* Each column takes up equal space */
}

/* --- Case Studies (Projects) Page UI Improvements --- */

.project-gallery {
    /* This class already exists, but ensure it has these properties */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.project-card {
    width: 100%;
    max-width: 380px;
    background-color: rgba(0,0,0,0.2) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .project-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    }

.project-card-image {
    height: 220px;
    overflow: hidden;
}

    .project-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card-content {
    padding: 25px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

    .project-card-content h4 {
        color: var(--text-light);
    }

    .project-card-content p {
        color: var(--text-light-alt);
        max-width: 100%;
        flex-grow: 1; /* Pushes the footer down */
    }

.project-card-footer {
    margin-top: 20px;
    text-align: right;
}

/* --- Responsive Navigation --- */

/* Style for the burger menu icon */
.burger {
    display: none; /* Hidden by default on larger screens */
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    align-self: center;
    margin-left: auto; /* This is the new line that pushes it to the right */
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: 0.4s;
    display: block;
}

/* Media query for tablets and mobile devices (992px and below) */
@media screen and (max-width: 992px) {

    /* Show the burger icon on small screens */
    .burger {
        display: block;
    }

    /* Hide the contact info and the standard nav links */
    .header-contact,
    header nav { /* Target the whole nav container */
        display: none;
    }

        /* When the menu is active, style the nav container as a full-screen overlay */
        header nav.active {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(10, 35, 66, 0.98);
            z-index: 1000;
            display: flex; /* Re-enable display for the overlay */
            justify-content: center;
            align-items: center;
        }

            /* Show the list and stack the links vertically when the menu is active */
            header nav.active ul {
                display: flex;
                flex-direction: column;
                text-align: center;
            }

                /* Adjust spacing and font size for the mobile menu items */
                header nav.active ul li {
                    margin: 20px 0;
                }

                    header nav.active ul li a {
                        font-size: 1.5em;
                        padding: 10px;
                    }
}