.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: rgba(34, 34, 34, 0.85);
    padding: 1em 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
}

.nav-logo {
    font-family: "Dancing Script", cursive;
    user-select: none;
    margin: 0;
    margin-left: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 2em;
    flex: 0 0 auto;
}

.nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
/* Social icons container on navbar */
}

.nav-social {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.social-icon {
    width: 32px;
    height: 32px;
    margin-left: 6px;
    margin-right: 6px;
    filter: brightness(0) invert(1);
    transition: 0.2s;
}

.social-icon:hover {
    filter: brightness(0.7) invert(0.7) sepia(1) saturate(5) hue-rotate(320deg);
}

.nav-link {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.nav-link:hover {
    color: rgb(255, 99, 79);
    font-weight: bold;
    text-decoration: none;
    font-size: 120%;
}

/* Hide mobile nav on desktop, show on mobile; Hide desktop nav on mobile */
.navbar-mobile {
  display: none;
}

@media (max-width: 768px) {
    .navbar {
        display: none;
    }
    .navbar-mobile {
        position: fixed;
        top: 0; left: 0; right: 0;
        width: 100vw;
        height: 30px;
        background: rgba(34, 34, 34, 0.85);
        backdrop-filter: blur(12px);
        padding: 1em 0;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .mobile-logo {
        margin-top: 0; margin-bottom: 0;
        margin-left: auto;
        margin-right: 12px;
        font-size: 2em;
        font-family: Dancing Script, cursive;
        color: #fff;
        font-weight: bold;
        user-select: none;
    }
    .mobile-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        width: 40px;
        /* height: 40px; */
        margin-left: 12px;
    }
    .mobile-hamburger span {
        height: 4px;
        width: 28px;
        background: #fff;
        margin: 5px 0;
        border-radius: 2px;
        display: block;
        transition: 0.3s;
    }
    .nav-toggle {
        display: none;
    }
    .mobile-menu {
        position: absolute;
        top: 62px; left: 0; width: 100vw;
        transform: translateY(-32px);
        transition: 0.35s;
        background: rgba(34, 34, 34, 0.90);
        backdrop-filter: blur(50px);
        display: none;
        flex-direction: column;
        /* z-index: 101; */
        padding-bottom: 1em;
    }
    .nav-toggle:checked ~ .mobile-menu {
        opacity: 1;
        transform: translateY(0);
        animation: slideIn 0.5s ease forwards;
    }
    @keyframes slideIn {
        from { opacity: 0; transform: translateY(-30px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .nav-toggle:checked ~ .mobile-menu .nav-link,
    .nav-toggle:checked ~ .mobile-menu .nav-social {
        opacity: 0;
        transform: translateY(20px);
        animation: menuItemFadeIn 0.4s forwards;
    }
    .nav-toggle:checked ~ .mobile-menu .nav-link:nth-child(1) { animation-delay: 0.10s; }
    .nav-toggle:checked ~ .mobile-menu .nav-link:nth-child(2) { animation-delay: 0.20s; }
    .nav-toggle:checked ~ .mobile-menu .nav-link:nth-child(3) { animation-delay: 0.30s; }
    .nav-toggle:checked ~ .mobile-menu .nav-social    { animation-delay: 0.45s; }
    @keyframes menuItemFadeIn {
        from { opacity: 0; transform: translateY(20px);}
        to { opacity: 1; transform: translateY(0);}
    }
    .nav-toggle:checked + .mobile-hamburger + .mobile-logo + .mobile-menu {
        display: flex;
    }
    .mobile-links {
        flex-direction: column;
        align-items: flex-start;
        padding: 1em 2em;
    }
    .mobile-social {
        display: flex;
        margin-left: 1.2em;
        margin-bottom: 8px;
        margin-top: 6px;
    }
    .social-icon {
        width: 32px;
        height: 32px;
        margin-right: 12px;
        filter: brightness(0) invert(1);
        transition: filter 0.2s;
    }
    .social-icon:hover {
        filter: brightness(0.7) invert(0.7) sepia(1) saturate(5) scale(10) hue-rotate(320deg);
    }
    .nav-link {
        color: #fff;
        margin: 0 0 18px 0;
        text-decoration: none;
        font-weight: bold;
        font-size: 1.2em;
        display: block;
        transition: 0.2s;
    }
    .nav-link:hover {
        color: rgb(255, 99, 79);
        font-weight: bold;
        text-decoration: none;
    }
}
