:root {
    --primary: #eb055d;
    --primary-70: #eb055db3;
    --primary-50: #eb055d80;
    --primary-40: #eb055d65;
    --black: #000;
    --black-70: #000000b3;
    --white: #fff;
    --white-10: #ffffff1a;
    --white-20: #ffffff33;
    --white-50: #ffffff80;
}

/* ==========================================================================
   Custom scroll bar
   ========================================================================== */

html {
    scrollbar-color: var(--primary) var(--black);
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    width: .5rem;
    height: .5rem;
    -webkit-appearance: none;
}

html::-webkit-scrollbar-track {
    background-color: var(--black);
}

html::-webkit-scrollbar-thumb {
    background-color: var(--primary);
}

html::-webkit-scrollbar-corner {
    background-color: var(--black);
}

/* ==========================================================================
   Bootstrap overrides
   ========================================================================== */

* {
    font-family: "Poppins", sans-serif;
    word-break: break-word;
}

header {
    padding: 3rem 0;
}

nav {
    gap: 0 1rem;
}

body {
    text-shadow: 0 0 4px var(--black);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, var(--black) 0%, var(--primary) 300%);
}

main {
    gap: 8rem;
}

section {
    scroll-margin-top: 3.5rem;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

.h1 {
    font-size: 3rem;
}

.h3 {
    font-size: 1.7rem;
}

.h4 {
    font-size: 1.5rem;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.badge {
    white-space: normal;
}

a,
.icon-link {
    color: var(--white);
    text-decoration-color: var(--white-50);
    transition: all .2s ease-in-out;
}

a:hover,
.icon-link:focus,
a:hover,
.icon-link:focus {
    color: var(--primary);
    text-decoration-color: var(--primary-70);
}

a:active,
.icon-link:active {
    color: var(--primary-70);
    text-decoration-color: var(--primary-50);
}

.modal.fade.show {
    background: var(--white-20);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7px);
}

.modal-content {
    background: var(--black-70);
}

/* ==========================================================================
   Navigation styling
   ========================================================================== */

nav .nav-item {
    transition: all .25s ease-in-out;
    padding: 0;
    border-radius: 0.25rem;
    color: var(--white);
}

nav .nav-item:hover,
nav .nav-item:active {
    color: var(--primary);
    background-color: var(--white-10);
}

/* ==========================================================================
   Navigation hover tooltip
   ========================================================================== */

.nav-tooltip {
    transition: opacity .25s ease-in-out;
    font-size: 1.2rem;
}

.nav-tooltip .tooltip-arrow::before {
    border-bottom-color: var(--primary) !important;
}

.nav-tooltip .tooltip-inner {
    color: var(--white);
    background-color: transparent;
    text-shadow: 0 0 4px var(--black);
    padding: 0.3rem 0.6rem;
    background-color: var(--black);
    border-radius: 0.5rem;
    border: 2px solid var(--primary);
}

/* ==========================================================================
   Button styling
   ========================================================================== */

p,
li,
button,
.btn,
.badge {
    letter-spacing: 0.3px;
}

button,
.btn {
    padding: 0.7rem 2rem;
    color: var(--white);
    background-color: var(--primary-70);
    text-shadow: none;
    border: unset;
    border-radius: 0.75rem;
    outline: unset;
    box-shadow: unset;
    transition: all .2s ease-in-out;
}

button:hover,
button:focus,
.btn:hover,
.btn:focus {
    background-color: var(--primary-50) !important;
}

button:active,
.btn:active {
    background-color: var(--primary-40) !important;
}

.intro-buttons .btn {
    min-width: 160px;
    max-width: 291px;
}

/* ==========================================================================
   Custom class styling
   ========================================================================== */

.logo {
    height: 50px;
}

@media (max-width: 768px) {
    .logo {
        height: 70px;
    }
}

.neon {
    filter: drop-shadow(0px 0px 4px var(--primary));
}

.bi.coloured {
    color: var(--primary-70);
}

#skills .badge {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
    border: unset;
    border-radius: 0.75rem;
    outline: unset;
    box-shadow: unset;
    cursor: default;
}

#skills .badge>svg {
    margin-right: 0.5rem;
    filter: drop-shadow(0px 0px 3px var(--black-70));
}

.back-blur {
    background: var(--white-20);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(7px);
}

.no-animation {
    transition: none;
}

#projects .project-desc,
.icon-link {
    font-size: 0.8rem;
}

footer .footer-button {
    transition: all .25s ease-in-out;
    padding: 0.8rem 1rem;
    cursor: pointer;
}

footer .footer-button.link {
    padding: 0.5rem 1rem;
}

footer .footer-button:hover,
footer .footer-button:active {
    color: var(--primary);
    background-color: var(--white-10);
}