/* Custom Loader CSS */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0F1A1A; /* Matches --midnight var */
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    width: 320px;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.roof-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Path styling */
.roof-path {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

/* Background Path (Empty Track) */
.roof-path-bg {
    stroke: rgba(255, 255, 255, 0.15); /* Light gray effect on dark background */
}

/* Foreground Path (Progress) */
.roof-path-fg {
    stroke: #E05A36; /* Terracotta/Orange brand color */
    transform-origin: left center;
    transition: stroke-dashoffset 0.1s linear; 
}

.loader-logo {
    margin-top: 30px;
    width: 150px; /* Adjust size as needed */
    height: auto;
    opacity: 0.9;
}
