/* ================================
   navbar.css
   All styles for the navigationbar
   ================================ */
header {
    grid-column: 1 / -1;
    height: 80px;
}

#navbar-placeholder {
    height: 80px; /* zelfde als je navbar */
}

.navbar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    top: 0;

    opacity: 0;
    transition: opacity 0.45s ease;

    left: 0;
    z-index: 9;
    background-color: #280137;
    color: #FFD16E;
    text-align: center;
    padding: 10px 25px;
    margin: 0 auto;
    border-bottom: 4px solid #A55B4B;
    font-family: "Roboto", Arial, sans-serif; /* view fonts.css */
}

.navbar-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 12;
    background-color:rgba(59, 39, 65, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: -10px 0 10px rgba(0,0,0, 0.1);
    list-style-type: none;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    padding: 10px 25px;
}

.navbar-center {
    list-style-type: none;
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.navbar-right {
    display: flex;
    line-height: 10px;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}

.navbar-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    flex: 1;
}

nav > ul > li > a, button {
    font-weight: 500;
    font-size: 1.6rem;
}

a {
    color: #F5E0D1;
    text-decoration: none;
}

a:hover {
    text-shadow: 2px 2px 12px #E0D882;
}

nav > ul > li::after {
    content: '';
    position: absolute;
    bottom: 1px;   /* distance from text */
    left: 50%;
    width: 100%;
    height: 2px;    /* thickness of stroke */
    background: linear-gradient(90deg,rgba(245, 224, 209, 0) 0%, rgba(245, 224, 209, 1) 50%, rgba(245, 224, 209, 0) 100%);
    transform: translateX(-50%) scaleX(0); /* start narrow */
    transition: transform 0.3s ease;
    transform-origin: center;
}

nav > ul > li:hover::after {
    transform: translateX(-50%) scaleX(0.9); /* grow to full width */
}

nav > ul {
    list-style: none;
    padding: 0;
    align-items: center;
}

nav > h1 {
    -webkit-box-flex: 1;
    flex: 1 0 33%;
    display: block;
    float: none;
    cursor: pointer;
}

nav > ul > li {
    display: inline;
    line-height: 55px;
    vertical-align: middle;
    padding: 0px 20px;
    position: relative;
}

.navbar-sidebar > li {
    line-height: 30px;
}

.navbar-sidebar > a {
    width: 100%;
}

nav > ul > li > a {
    transition: all 0.3s ease 0s;
}

nav > ul > li > a:hover {
    color: #82CFE0;
}

.navbar-right a {
    margin-left: 15px;
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    transition: background-color 0.3s ease;
  }

.navbar-right a svg {
    display: inline-block;
    width: 18px;
    height: 18px;
    fill: #FDF3D0;
  }

.contact-button {
    padding: 9px 25px;
    background-color: #DCA06D;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease 0s;
    margin: auto;
}

.contact-button:hover {
    background-color: #82CFE0;
}

button {
    cursor: pointer;
}

.logo-align-left{
    display: table-cell;
    float: none;
    vertical-align: middle;
}

.logo-main {
    fill: url("#gradient1");
    width: 60px;
    height: 60px;
    display: block;
    flex-shrink: 0;
}

.menu-button {
    display: none;
    line-height: 10px;
}

/* View Resume link — animated underline, same hover color as nav links */
.navbar-resume-link {
    font-family: "Roboto", Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: #F5E0D1;
    text-decoration: none;
    position: relative;
    padding: 4px 10px;
    margin-top: 5px;;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.navbar-resume-link:hover {
    color: #82CFE0;
    text-shadow: 2px 2px 12px #E0D882;
}

.navbar-resume-link::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(130, 207, 224, 0) 0%, rgba(245, 224, 209, 1) 50%, rgba(130, 207, 224, 0) 100%);
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.navbar-resume-link:hover::after {
    transform: translateX(-50%) scaleX(0.9);
}

@media(max-width: 800px){
    .hideOnMobile{
        display: none;
    }
    .menu-button{
        display: block;
    }
    .navbar-left {
        flex: 1;
    }
    .navbar-center {
        gap: 0px;
    }
    .navbar-right {
        display: none;
        line-height: 10px;
    }
}
@media(max-width: 400px){
    .navbar-sidebar{
        width: 100%;
    }
}
