@font-face {
    font-family: 'Architects Daughter';
    src: url('/Website/assets/fonts/ArchitectsDaughter-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

header {
    position: sticky;
    top: 0;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    background-color: rgb(26, 26, 46);
    color: #fff;
    z-index: 1000;
    height: 3em;
}

header img {
    height: 50px;
}

nav {
    font-family: "Architects Daughter", sans-serif;
    display: flex;
    flex-wrap: wrap;
}

nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
}

nav a:hover {
    color: #3077b4;
    transition: all 0.3s ease;
}

/* ===== Hover underline animation ===== */
.hover-underline-animation {
    display: inline-block;
    position: relative;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #0087ca;
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
}

.hover-underline-animation.left::after {
    transform-origin: bottom right;
}

.hover-underline-animation.left:hover::after {
    transform-origin: bottom left;
}

/* ===== Side menu (mobile) ===== */
.menu-icon {
    display: none;
    z-index: 1001;
    position: fixed;
    top: 5px;
    right: 20px;
    width: 50px;
    height: 44px;
    padding: 4px 8px;
    background: #262626;
    box-sizing: border-box;
    cursor: pointer;
}

.menu-icon span {
    width: 100%;
    height: 4px;
    display: block;
    background: #fff;
    margin: 6px 0;
    transition: .5s;
}

.sidebar {
    z-index: 1001;
    position: fixed;
    top: 0;
    left: -300px;
    width: 200px;
    height: 100vh;
    background: rgb(26, 26, 46, 0.75);
    transition: .5s;
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    backdrop-filter: blur(3px);
}

.sidebar.active {
    left: 0px;
}

.sidebar .menu {
    margin: 0;
    padding: 40px 0;
}

.sidebar .menu li {
    list-style: none;
    font-family: sans-serif;
}

.sidebar .menu li a {
    font-family: "Architects Daughter", sans-serif;
    display: block;
    padding: 10px 0;
    text-transform: uppercase;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
}

.sidebar .menu li a:hover {
    color: #3077b4;
    transition: all 0.3s ease;
}

.menu-icon.active span {
    position: absolute;
    width: calc(100% - 16px);
    top: calc(50% - 8px);
}

.menu-icon.active span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg);
}

.menu-icon.active span:nth-child(2) {
    display: none;
}

.social-icon {
    margin: 0;
    padding: 0 20px;
    position: absolute;
    bottom: 40px;
    left: 30px;
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

.social-icon li {
    width: 30%;
    text-align: center;
    list-style: none;
}

.social-icon li a {
    display: block;
    font-size: 18px;
    color: #fff;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: .5s;
}

@media (max-width: 768px) {
    nav {
        display: none;
    }

    .menu-icon {
        display: block;
    }
}
