*, ::after, ::before {
    box-sizing: content-box !important;
    font-family: 'Rajdhani', sans-serif;
}

:root {
    --skew-offset: 40px; /* single value to rule them all */
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('../assets/images/background_forge.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.5) contrast(1.1);
    z-index: -1;
}

body
{
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    background: transparent;
}

/* NAVBAR RESPONSIVE + LOGO LEFT & NAV RIGHT */

section#top-bar
{
    width: 100%;
    background-color: black;
}

.collapse
{
    margin-right: 1rem;
}

#logo
{
    filter: invert(100%);
}

.me-3
{
    margin-bottom: 0.35rem;
    margin-top: 0.35rem;
    border-color: white !important;
}

.navbar-toggler-icon
{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

#navbar
{
    height: 100%;
}

#navbar .nav-element
{
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 550;
    padding: 0 calc(10px + var(--skew-offset));
    width: 130px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;

    position: relative;

    background-image: radial-gradient(circle, rgb(24, 24, 24), rgb(24, 24, 24));
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0% 0%;

    transition: background-size 0.45s ease, color 0.45s ease;

    clip-path: polygon(var(--skew-offset) 0, 100% 0, calc(100% - var(--skew-offset)) 100%, 0 100%);
    background-color: #000000;
}

#navbar .nav-element span
{
    position: relative;
    z-index: 2;
    transition: filter 0.45s ease;
}

#navbar .nav-element.contact
{
    clip-path: polygon(var(--skew-offset) 0, 100% 0, 100% 100%, 0 100%);
}

#navbar .nav-element:hover
{
    color: white;
    background-size: 250% 250%;
    transition: background-size 2.3s ease, color 0.25s;
}

#navbar .nav-element:hover span
{
    animation: furnace-pulse 5s infinite;
}

@keyframes furnace-pulse {
    0%   { filter: drop-shadow(0px 0px 4px #FF5500) drop-shadow(0px 0px 8px #FF3300); }
    15%  { filter: drop-shadow(0px 0px 7px #FF6600) drop-shadow(0px 0px 14px #FF4400); }
    28%  { filter: drop-shadow(0px 0px 3px #CC3300) drop-shadow(0px 0px 6px #8B2E00); }
    45%  { filter: drop-shadow(0px 0px 9px #FF5500) drop-shadow(0px 0px 18px #FF3300); }
    60%  { filter: drop-shadow(0px 0px 4px #FF4400) drop-shadow(0px 0px 9px #CC3300); }
    72%  { filter: drop-shadow(0px 0px 11px #FF6600) drop-shadow(0px 0px 20px #FF5500); }
    85%  { filter: drop-shadow(0px 0px 3px #8B2E00) drop-shadow(0px 0px 7px #CC3300); }
    100% { filter: drop-shadow(0px 0px 4px #FF5500) drop-shadow(0px 0px 8px #FF3300); }
}

.dropdown-menu
{
    background-color: black !important;
    color: white !important;
    --bs-dropdown-link-hover-bg: transparent !important;
    --bs-dropdown-link-active-bg: transparent !important;
}

#navbar .dropdown-item
{
    background-image: radial-gradient(circle, rgb(24, 24, 24), rgb(24, 24, 24));
    background-size: 0% 0%;
    background-position: center;
    background-repeat: no-repeat;
    width: -webkit-fill-available;
    text-align: center;
}

#navbar .dropdown-item:hover,
#navbar .dropdown-item:focus
{
    color: white;
    background-size: 250% 250%;
    transition: background-size 2.3s ease, color 0.25s;
}

.nav-particle
{
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #FF5500, #8B2E00);
    pointer-events: none;
    z-index: 1;
    animation: particle-fly linear forwards;
}

@keyframes particle-fly {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--spread), var(--rise)) scale(0);
        opacity: 0;
    }
}

/* Animate dropdown arrow */
.dropdown-toggle::after
{
    transition: transform 0.35s ease;
}

/* Expanded state */
.dropdown-toggle[aria-expanded="true"]::after
{
    transform: rotate(180deg);
}

.vl
{
    border: none;
    width: 13px;
    height: 40px;
    margin: 0 2px;
    background: #8b2e00b5;
    padding: 0;
    clip-path: polygon(var(--skew-offset) 0, 100% 0, calc(100% - var(--skew-offset)) 100%, 0 100%);
}

/* Mobile Fix */
@media (max-width: 991px)
{
    #navbar .nav-element
    {
        width: 100%;
        height: 50px;
    }

    .vl
    {
        display: none;
    }

    #navbar .dropdown-menu
    {
        position: static !important;
        transform: none !important;
        width: 100%;
        border: none;
        margin: 0;
        text-align: center;
    }

    #navbar .dropdown, #navbar .dropdown-menu
    {
        width: 100%;
    }
}

.offcanvas-header, .offcanvas-body
{
    background-color: black !important;
}

/* MAIN RESPONSIVE */

main
{
    color: white;
    padding: 20px;
    flex: 1;
    align-items: center;
}

@media (max-width: 991px)
{
    main
    {
        color: white;
        padding: 20px;
        flex: 1;
        align-items: center;
    }
}

.container-fluid
{
    padding: 0 !important;
}

.section-header
{
    margin-left: 20px;
    margin-top: 20px;
}

.floating-box
{
    background: rgb(0, 0, 0);
    color: white;
}

h1, h2, h3, h4, h5, h6
{
    text-transform: uppercase;
    font-weight: 600 !important;
    filter: drop-shadow(0px 0px 7px #FF5500);
}

.forge-button
{
    color: white !important;
    font-weight: bold !important;
    background: linear-gradient(45deg, #8B2E00, #FF5500, #8B2E00);
    border: none !important;
    border-radius: 0 !important;
}

.forge-button span
{
    display: inline-block;
    transition: transform 0.25s ease;
}

.center-btn
{
    display: block !important;
    width: 8rem;
    margin-left: auto;
    margin-right: auto;
}

.forge-button:hover span
{
    transform: scale(1.15);
}

/* FOOTER TO MAKE RESPONSIVE */

footer
{
    padding: 15px;
    background-color: black;
    color: white;
    display: flex;
    flex-direction: row;
    text-align: center;
}

footer p
{
    margin: auto;
    margin-left: auto;
    margin-right: auto;
}

/* ------------- SCROLLBARS -------------- */

/* WebKit browsers (Chrome, Edge, Safari) */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px; /* for horizontal scrollbars */
}

*::-webkit-scrollbar-track {
    background: #333;
}

*::-webkit-scrollbar-thumb {
    background: #8b2e00;
    border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #8b2e00;
}

/* Firefox */
* {
    scrollbar-width: thin; /* thin scrollbar */
    scrollbar-color: #8b2e00 #333;
}

/* ------------- OVERLAY -------------- */

.overlay
{
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.75);
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s;

    width: 100vw;
    height: 100vh;  
}

.overlay.active
{
    visibility: visible;
    opacity: 1;
}

/* close button */

.popup-close
{
    position: absolute;

    top: 10px;
    right: 15px;

    font-size: 26px;
    cursor: pointer;
}