:root {
    /* Vintage 50s Garage Palette */
    --primary-color: #D62828;
    /* Rusty Red - vibrant but deep */
    --primary-hover: #b01b1b;
    --secondary-color: #1D3557;
    /* Navy Blue - classic mechanic uniform */
    --accent-color: #F4A261;
    /* Burnt Orange/Gold - chrome details */

    /* Light Mode Defaults (Cream/Off-White Paper) */
    --bg-body: #F4F1EA;
    /* Vintage Cream */
    --bg-card: #FAF9F6;
    --bg-navbar: #FFFFFF;
    --text-main: #2B2D42;
    /* Charcoal - softer than black */
    --text-muted: #555B6E;
    --text-light: #FAF9F6;
    --border-color: #8D99AE;
    /* Steel Grey */

    --card-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15);
    /* Solid hard shadow for retro feel */
    --hero-overlay-opacity: 0.2;
    --transition-speed: 0.2s;
}

[data-bs-theme="dark"] {
    /* Dark Mode (Night Garage) */
    --bg-body: #1B1B1C;
    /* Dark Asphalt */
    --bg-card: #252627;
    --bg-navbar: #1B1B1C;
    --text-main: #E0E1DD;
    --text-muted: #AFAFAF;
    --text-light: #E0E1DD;
    --border-color: #4A4E69;

    --primary-color: #E63946;
    /* Slightly brighter red for visibility */
    --secondary-color: #457B9D;
    /* Steel Blue */
    --card-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);

    /* Footer Dark Mode Overrides */
    .page-footer {
        background: #111111 !important;
        color: #cccccc !important;
    }

    .page-footer a {
        color: #aaaaaa !important;
    }

    .page-footer a:hover {
        color: var(--primary-color) !important;
    }

    /* Fix bg-light in dark mode to match body/card */
    .bg-light {
        background-color: var(--bg-body) !important;
        color: var(--text-main) !important;
    }
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: none;
    /* Hide default cursor */
}

/* Custom JS Cursor Container */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    pointer-events: none;
    /* Let clicks pass through */
    z-index: 9999;
    transform: translate(-50%, -50%);
    /* Center on mouse */
    color: var(--primary-color);
    font-size: 24px;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
    transition: color 0.2s ease, transform 0.1s ease-out;
    /* Smooth follow, fast rotate */
}

/* Active State (Hover) - Rotate like turning a bolt */
#custom-cursor.cursor-active {
    transform: translate(-50%, -50%) rotate(45deg);
    color: var(--primary-hover);
    font-size: 28px;
    /* Slight zoom */
}

/* Ensure links don't show hand cursor */
a,
button,
.btn,
.nav-link,
input[type="submit"] {
    cursor: none !important;
}

/* Navbar - Vintage Style */
.navbar.clean-navbar {
    background: var(--bg-navbar) !important;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: none;
    padding-top: 15px;
    padding-bottom: 15px;
    transition: all 0.3s ease;
}

.navbar .navbar-brand {
    color: var(--primary-color) !important;
    font-weight: 800;
    font-size: 1.5rem;
}

.navbar .nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    margin-left: 15px;
    position: relative;
    transition: color 0.3s;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 100%;
}

.navbar .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Vintage Buttons */
.btn-primary {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    /* Slightly rounded, not pill */
    padding: 10px 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 5px;
    /* Add spacing */
    box-shadow: 4px 4px 0px var(--primary-hover);
    /* Hard shadow */
    transition: all 0.2s ease;
    color: white !important;
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translate(2px, 2px);
    /* Click effect */
    box-shadow: 2px 2px 0px var(--primary-hover);
}

.btn-outline-dark {
    border: 2px solid var(--text-main);
    color: var(--text-main);
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px var(--text-muted);
}

.btn-outline-dark:hover {
    background: var(--text-main);
    color: var(--bg-body);
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--text-muted);
}

.clean-block.clean-info {
    padding-top: 120px;
    padding-bottom: 80px;
}

.block-heading h2 {
    color: var(--text-main);
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.block-heading h2 span {
    color: var(--primary-color) !important;
}

.block-heading p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Global Heading Colors (Red Accent as requested) */
h3,
h4,
.card-title {
    color: var(--primary-color) !important;
}

/* Ensure Bootstrap text-primary uses our Red */
.text-primary {
    color: var(--primary-color) !important;
}

/* Cards & Content - Retro Panel Style */
.card-hover-effect {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--card-shadow);
    height: 100%;
}

.card-hover-effect:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0px var(--primary-color);
    border-color: var(--primary-color);
}

.feature-box {
    padding: 2rem;
    text-align: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-speed);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    /* Center everything including flex children */
}

.feature-box:hover {
    transform: translate(-3px, -3px);
    box-shadow: 8px 8px 0px var(--primary-color);
    border-color: var(--primary-color);
}

.feature-box .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
    width: 100%;
    /* Ensure no overlap */
    position: relative;
    z-index: 1;
}

.feature-box .icon i {
    display: inline-block;
    /* Ensure i behaves like a block for transform but flows like text */
}

/* Vintage styled links for feature box */
.vintage-link {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
    transition: all 0.3s ease;
    margin-top: auto;
    /* Push to bottom */
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vintage-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
    /* Slide effect */
}

.vintage-link i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.vintage-link:hover i {
    transform: translateX(4px);
}



/* Images */
.hero-image {
    border-radius: 20px;
    box-shadow: 20px 20px 0px var(--secondary-color);
    transition: all 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.02);
    box-shadow: 10px 10px 0px var(--primary-color);
}

/* Footer */
footer.page-footer {
    background: var(--secondary-color);
    color: white;
    padding-top: 60px;
}

footer.page-footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: 0.3s;
    text-decoration: none;
}

footer.page-footer a:hover {
    color: white;
    padding-left: 5px;
}

footer.page-footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-copyright {
    padding: 20px 0;
}

/* Fix for unwanted blue chevrons/arrows */
footer.page-footer ul,
footer.page-footer li {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

footer.page-footer li::before,
footer.page-footer li::after,
footer.page-footer a::before,
footer.page-footer a::after {
    content: none !important;
    display: none !important;
    border: none !important;
}

footer.page-footer i {
    color: var(--primary-color) !important;
    /* Force Red Icons */
}

/* Vintage Theme Decoration: Red Wrench Bullet */
footer.page-footer ul li a {
    display: inline-flex;
    align-items: center;
}

footer.page-footer ul li a::before {
    content: "\f0ad" !important;
    /* Wrench Icon - Force display */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 0.8em;
    display: inline-block !important;
    /* Override previous fix */
    transition: transform 0.3s ease;
}

footer.page-footer ul li a:hover::before {
    transform: rotate(45deg);
    /* Mechanical turn effect */
}